sezanzeb / input-remapper

🎮 ⌨ An easy to use tool to change the behaviour of your input devices.
GNU General Public License v3.0
3.88k stars 161 forks source link

when installed on Librem5(PureOS) pulseaudio does not load #410

Closed chri2 closed 2 years ago

chri2 commented 2 years ago

PureOS is basically a Debian without blobs.

When 99-input-remapper.rules is active the pulseaudio server of the default user 'purism' cannot be loaded, because it doesn't find any soundcards.

The Librem5 got the following two soundcards:

root@pureos:~# aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: L5 [Librem 5], device 0: 308b0000.sai-wm8962 wm8962-0 [308b0000.sai-wm8962 wm8962-0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: Modem [Modem], device 0: 30030000.sai-bm818 bm818-0 [30030000.sai-bm818 bm818-0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

Attached you can find a list of all the inputs available (including an external keyboard/mouse via usb attached).

l5-inputs.txt

input-remapper-control --list-devices shows:

root@pureos:~# input-remapper-control --list-devices
Starting logging to "/var/log/input-remapper-control"
Wireless Keyboard/Mouse
EP0700M09
30370000.snvs:snvs-powerkey
gpio-keys
sezanzeb commented 2 years ago

wow, that's weird. Maybe we can add ID_TYPE=="hid" to the evdev rule. But I first need to try out a few more devices to see if they all have this ID_TYPE. I'll do that later.

Thanks for investigating this already and figuring out that the evdev rule is the cause

sezanzeb commented 2 years ago

Here is my udevadm info output with the xbox 360 controller and a wacom tablet:

inputs.txt

The controller has ID_TYPE=generic unfortunately.

Maybe using ID_PATH!="platform-sound" in the rule does the trick already. I'll try that soon on my computer to test if stuff still works at all.

ACTION=="add", SUBSYSTEM=="input", ID_PATH!="platform-sound", RUN+="/bin/input-remapper-control --command autoload --device $env{DEVNAME}"
sezanzeb commented 2 years ago

Please try out the pulseaudio-broken branch:

git clone https://github.com/sezanzeb/input-remapper.git
cd input-remapper
git checkout pulseaudio-broken
./scripts/build.sh
sudo apt install ./dist/input-remapper-1.4.2.deb

If that works I'll push it to main and also make a new release