input-remapper icon indicating copy to clipboard operation
input-remapper copied to clipboard

Autoload not working

Open Heinrich-XIAO opened this issue 6 months ago • 0 comments

Please install the newest version from source to see if the problem has already been solved.

System Information and logs

  1. input-remapper-control --version input-remapper 2.0.1 f06b3ed601cceb68f79f6b1b2e0d98e8d97fa839 https://github.com/sezanzeb/input-remapper python-evdev 1.7.1
  2. which linux distro (ubuntu 20.04, manjaro, etc.) Fedora asahi 40
  3. which desktop environment (gnome, plasma, xfce4, etc.) Hyprland with GNOME software
  4. sudo ls -l /proc/1/exe to check if you are using systemd yes i am using systemd lrwxrwxrwx 1 root root 0 Aug 20 23:53 /proc/1/exe -> /usr/lib/systemd/systemd
  5. cat ~/.config/input-remapper-2/config.json to see if the "autoload" config is written correctly { "version": "2.0.1", "autoload": { "Apple Internal Keyboard / Trackpad 2": "Numbers", "GEM GEM80": "Numbers" } }
  6. systemctl status input-remapper -n 50 the service has to be running × input-remapper.service - Input Remapper Loaded: loaded (/etc/systemd/system/input-remapper.service; enabled; preset: disabled) Drop-In: /usr/lib/systemd/system/service.d └─10-timeout-abort.conf Active: failed (Result: exit-code) since Tue 2024-08-20 23:47:23 UTC; 32min ago Duration: 137ms Main PID: 3991 (code=exited, status=2) CPU: 132ms

Aug 20 23:47:23 fedora systemd[1]: input-remapper.service: Scheduled restart job, restart counter is at 5. Aug 20 23:47:23 fedora systemd[1]: input-remapper.service: Start request repeated too quickly. Aug 20 23:47:23 fedora systemd[1]: input-remapper.service: Failed with result 'exit-code'. Aug 20 23:47:23 fedora systemd[1]: Failed to start input-remapper.service - Input Remapper.

Testing the setup

  1. input-remapper-control --command hello
  2. sudo pkill -f input-remapper-service && sudo input-remapper-service -d & sleep 2 && input-remapper-control --command autoload, are your keys mapped now? yes
  3. (while the previous command is still running) sudo evtest and search for a device suffixed by "mapped". Select it, does it report any events? Share the output. no such command
  4. sudo udevadm control --log-priority=debug && sudo udevadm control --reload-rules && journalctl -f | grep input-remapper, now plug in the device that should autoload

Heinrich-XIAO avatar Aug 21 '24 00:08 Heinrich-XIAO