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

Autoload not working #944

Open
Heinrich-XIAO opened this issue Aug 21, 2024 · 0 comments
Open

Autoload not working #944

Heinrich-XIAO opened this issue Aug 21, 2024 · 0 comments

Comments

@Heinrich-XIAO
Copy link

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 f06b3ed 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
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