Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

autoloading is not working after reboot #892

Open
c02y opened this issue May 16, 2024 · 0 comments
Open

autoloading is not working after reboot #892

c02y opened this issue May 16, 2024 · 0 comments

Comments

@c02y
Copy link

c02y commented May 16, 2024

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 f5151aab27ae0e7d8b1f0c80ce92a718e3a86e71 https://github.com/sezanzeb/input-remapper python-evdev 1.7.0
  2. which linux distro (ubuntu 20.04, manjaro, etc.) Archlinux
  3. which desktop environment (gnome, plasma, xfce4, etc.) i3wm v4.23
  4. sudo ls -l /proc/1/exe to check if you are using systems lrwxrwxrwx 1 root root 0 May 16 23:44 /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": {
        "Getech HUGE TrackBall": "Elecom-Huge",
        "Kensington SlimBlade Pro(2.4GHz Receiver) Kensington SlimBlade Pro Trackball(2.4GHz Receiver)": "Kensington-Slimblade-Pro-Wireless"
    }
}
  1. systemctl status input-remapper -n 50 the service has to be running
● input-remapper.service - Service to inject keycodes without the GUI application
     Loaded: loaded (/usr/lib/systemd/system/input-remapper.service; enabled; preset: disabled)
     Active: active (running) since Thu 2024-05-16 23:44:28 CST; 16min ago
   Main PID: 914 (input-remapper-)
      Tasks: 5 (limit: 18854)
     Memory: 33.6M (peak: 34.1M)
        CPU: 206ms
     CGroup: /system.slice/input-remapper.service
             ├─914 /usr/bin/python3 /usr/bin/input-remapper-service
             └─968 /usr/bin/python3 /usr/bin/input-remapper-service

May 16 23:44:27 Archlinux systemd[1]: Starting Service to inject keycodes without the GUI application...
May 16 23:44:28 Archlinux input-remapper-service[914]: input-remapper-service 2.0.1 f5151aab27ae0e7d8b1f0c80ce92a718e3a86e71 https://github.com/sezanzeb/input-remapper
May 16 23:44:28 Archlinux input-remapper-service[914]: python-evdev 1.7.0
May 16 23:44:28 Archlinux systemd[1]: Started Service to inject keycodes without the GUI application.
May 16 23:44:56 Archlinux input-remapper-service[914]: Request to autoload for "Bose Revolve+ SoundLink (AVRCP)"
May 16 23:44:56 Archlinux input-remapper-service[914]: ERROR: Request to autoload "Bose Revolve+ SoundLink (AVRCP)" before a user told the service about their session using set_config_dir
May 16 23:57:02 Archlinux input-remapper-service[914]: Loaded config from "/home/chz/.config/input-remapper-2/config.json"

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 device suffixed by "mapped"
  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

After all this, if I reboot my system, the autoload is still not working.

After reboot:

$ systemctl status input-remapper
● input-remapper.service - Service to inject keycodes without the GUI application
     Loaded: loaded (/usr/lib/systemd/system/input-remapper.service; enabled; preset: disabled)
     Active: active (running) since Fri 2024-05-17 00:12:34 CST; 8s ago
   Main PID: 5679 (input-remapper-)
      Tasks: 5 (limit: 18854)
     Memory: 28.5M (peak: 29.3M)
        CPU: 347ms
     CGroup: /system.slice/input-remapper.service
             ├─5679 /usr/bin/python3 /usr/bin/input-remapper-service
             └─5683 /usr/bin/python3 /usr/bin/input-remapper-service

May 17 00:12:33 Archlinux systemd[1]: Starting Service to inject keycodes without the GUI application...
May 17 00:12:34 Archlinux input-remapper-service[5679]: input-remapper-service 2.0.1 f5151aab27ae0e7d8b1f0c80ce92a718e3a86e71 https://github.com/sezanzeb/input-remapper
May 17 00:12:34 Archlinux input-remapper-service[5679]: python-evdev 1.7.0
May 17 00:12:34 Archlinux systemd[1]: Started Service to inject keycodes without the GUI application.

After manually Apply the preset in input-remapper GUI application

$ systemctl status input-remapper
● input-remapper.service - Service to inject keycodes without the GUI application
     Loaded: loaded (/usr/lib/systemd/system/input-remapper.service; enabled; preset: disabled)
     Active: active (running) since Fri 2024-05-17 00:12:34 CST; 1min 46s ago
   Main PID: 5679 (input-remapper-)
      Tasks: 6 (limit: 18854)
     Memory: 37.2M (peak: 37.6M)
        CPU: 436ms
     CGroup: /system.slice/input-remapper.service
             ├─5679 /usr/bin/python3 /usr/bin/input-remapper-service
             ├─5683 /usr/bin/python3 /usr/bin/input-remapper-service
             └─7859 /usr/bin/python3 /usr/bin/input-remapper-service

May 17 00:12:33 Archlinux systemd[1]: Starting Service to inject keycodes without the GUI application...
May 17 00:12:34 Archlinux input-remapper-service[5679]: input-remapper-service 2.0.1 f5151aab27ae0e7d8b1f0c80ce92a718e3a86e71 https://github.com/sezanzeb/input-remapper
May 17 00:12:34 Archlinux input-remapper-service[5679]: python-evdev 1.7.0
May 17 00:12:34 Archlinux systemd[1]: Started Service to inject keycodes without the GUI application.
May 17 00:14:02 Archlinux input-remapper-service[5679]: Loaded config from "/home/chz/.config/input-remapper-2/config.json"
May 17 00:14:14 Archlinux input-remapper-service[5679]: Loaded config from "/home/chz/.config/input-remapper-2/config.json"
May 17 00:14:14 Archlinux input-remapper-service[5679]: Request to start injecting for "Kensington SlimBlade Pro(2.4GHz Receiver) Kensington SlimBlade Pro Trackball(2.4GHz Receiver)"
May 17 00:14:15 Archlinux input-remapper-service[5679]: Found "Video Bus", "Ideapad extra buttons", "CUST0001:00 04F3:3138 Mouse", "Milsky 84EC-S", "Kensington SlimBlade Pro(2.4GHz Receiver) Kensington SlimBlade >
May 17 00:14:15 Archlinux input-remapper-service[5679]: Loading preset from "/home/chz/.config/input-remapper-2/presets/Kensington SlimBlade Pro(2.4GHz Receiver) Kensington SlimBlade Pro Trackball(2.4GHz Receiver>
May 17 00:14:15 Archlinux input-remapper-service[7859]: Starting injecting the preset for "Kensington SlimBlade Pro(2.4GHz Receiver) Kensington SlimBlade Pro Trackball(2.4GHz Receiver)"

BTW: I have to click the APPLY button twice to load the preset for my device, you can see the log as well, there are two lines of Loaded config from ..., the first line is the first APPLY button, it doesn't load my preset.

I add input-remapper-control --command autoload autostart in my wm config, it will autoload my preset, just a temporary workaround.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant