input-remapper
input-remapper copied to clipboard
Replugging a device doesn't autoload every other time.
System Information and logs
-
input-remapper 2.0.1 python-evdev 1.6.1 -
Fedora Linux 40 -
KDE Plasma 6.1.3 -
/proc/1/exe -> /usr/lib/systemd/systemd -
{ "version": "2.0.1", "autoload": { "Micro-Star INT'L CO., LTD. MSI GK50 LOW PROFILE Gaming Keyboard": "Caps Lock 2 ESC & CTRL" } } -
● input-remapper.service - Service to inject keycodes without the GUI application Loaded: loaded (/usr/lib/systemd/system/input-remapper.service; enabled; preset: disabled) Drop-In: /usr/lib/systemd/system/service.d └─10-timeout-abort.conf Active: active (running) since Wed 2024-07-24 14:04:17 CEST; 2min 7s ago Main PID: 1382 (input-remapper-) Tasks: 7 (limit: 38046) Memory: 35.9M (peak: 46.0M) CPU: 356ms CGroup: /system.slice/input-remapper.service ├─1382 /usr/bin/python3 /usr/bin/input-remapper-service └─1949 /usr/bin/python3 /usr/bin/input-remapper-service Jul 24 14:04:55 fedora input-remapper-service[1382]: Request to start injecting for "Micro-Star INT'L CO., LTD. MSI GK50 LOW PROFILE Gaming Keyboard" Jul 24 14:04:55 fedora input-remapper-service[1382]: Loading preset from "/home/pavel/.config/input-remapper-2/presets/Micro-Star INT'L CO., LTD. MSI GK50 LOW PROFILE Gaming Keyboard/Caps Lock 2 ESC & CTRL.json" Jul 24 14:04:55 fedora input-remapper-service[6594]: Starting injecting the preset for "Micro-Star INT'L CO., LTD. MSI GK50 LOW PROFILE Gaming Keyboard" Jul 24 14:05:54 fedora input-remapper-service[6594]: ERROR: fd broke, was the device unplugged? Jul 24 14:05:54 fedora input-remapper-service[6594]: read loop for /dev/input/event5 stopped Jul 24 14:05:59 fedora input-remapper-service[1382]: Request to autoload for "Micro-Star INT'L CO., LTD. MSI GK50 LOW PROFILE Gaming Keyboard" Jul 24 14:05:59 fedora input-remapper-service[1382]: Found "Sleep Button", "AT Translated Set 2 keyboard", "ETPS/2 Elantech Touchpad", "PNP0C50:00 04F3:30AA Mouse", "SteelSeries SteelSeries Rival 3", "Video Bus", "MSI WMI hotkeys", "ydotoold virtual device", "input-remapper keyboard", "input-remappe> Jul 24 14:05:59 fedora input-remapper-service[1382]: Autoloading for "Micro-Star INT'L CO., LTD. MSI GK50 LOW PROFILE Gaming Keyboard" Jul 24 14:05:59 fedora input-remapper-service[1382]: Request to start injecting for "Micro-Star INT'L CO., LTD. MSI GK50 LOW PROFILE Gaming Keyboard" Jul 24 14:05:59 fedora input-remapper-service[1382]: Loading preset from "/home/pavel/.config/input-remapper-2/presets/Micro-Star INT'L CO., LTD. MSI GK50 LOW PROFILE Gaming Keyboard/Caps Lock 2 ESC & CTRL.json" Jul 24 14:05:59 fedora input-remapper-service[1382]: Stopping injecting keycodes for group "Micro-Star INT'L CO., LTD. MSI GK50 LOW PROFILE Gaming Keyboard" Jul 24 14:05:59 fedora input-remapper-service[1382]: Request to autoload for "Micro-Star INT'L CO., LTD. MSI GK50 LOW PROFILE Gaming Keyboard" Jul 24 14:05:59 fedora input-remapper-service[1382]: Autoloading for "Micro-Star INT'L CO., LTD. MSI GK50 LOW PROFILE Gaming Keyboard" Jul 24 14:05:59 fedora input-remapper-service[1382]: Not autoloading the same preset "Caps Lock 2 ESC & CTRL" again for group "Micro-Star INT'L CO., LTD. MSI GK50 LOW PROFILE Gaming Keyboard" Jul 24 14:05:59 fedora input-remapper-service[12299]: Starting injecting the preset for "Micro-Star INT'L CO., LTD. MSI GK50 LOW PROFILE Gaming Keyboard" Jul 24 14:05:59 fedora input-remapper-service[1382]: Request to autoload for "Micro-Star INT'L CO., LTD. MSI GK50 LOW PROFILE Gaming Keyboard" Jul 24 14:05:59 fedora input-remapper-service[1382]: Autoloading for "Micro-Star INT'L CO., LTD. MSI GK50 LOW PROFILE Gaming Keyboard" Jul 24 14:05:59 fedora input-remapper-service[1382]: Not autoloading the same preset "Caps Lock 2 ESC & CTRL" again for group "Micro-Star INT'L CO., LTD. MSI GK50 LOW PROFILE Gaming Keyboard" Jul 24 14:05:59 fedora input-remapper-service[1382]: Request to autoload for "Micro-Star INT'L CO., LTD. MSI GK50 LOW PROFILE Gaming Keyboard" Jul 24 14:05:59 fedora input-remapper-service[1382]: Autoloading for "Micro-Star INT'L CO., LTD. MSI GK50 LOW PROFILE Gaming Keyboard" Jul 24 14:05:59 fedora input-remapper-service[1382]: Not autoloading the same preset "Caps Lock 2 ESC & CTRL" again for group "Micro-Star INT'L CO., LTD. MSI GK50 LOW PROFILE Gaming Keyboard" Jul 24 14:05:59 fedora input-remapper-service[1382]: Request to autoload for "Micro-Star INT'L CO., LTD. MSI GK50 LOW PROFILE Gaming Keyboard" Jul 24 14:05:59 fedora input-remapper-service[1382]: Autoloading for "Micro-Star INT'L CO., LTD. MSI GK50 LOW PROFILE Gaming Keyboard" Jul 24 14:05:59 fedora input-remapper-service[1382]: Not autoloading the same preset "Caps Lock 2 ESC & CTRL" again for group "Micro-Star INT'L CO., LTD. MSI GK50 LOW PROFILE Gaming Keyboard" Jul 24 14:06:00 fedora input-remapper-service[12299]: Process Micro-Star INT'L CO., LTD. MSI GK50 LOW PROFILE Gaming Keyboard: Jul 24 14:06:00 fedora input-remapper-service[12299]: Traceback (most recent call last): Jul 24 14:06:00 fedora input-remapper-service[12299]: File "/usr/lib64/python3.12/site-packages/evdev/device.py", line 125, in __init__ Jul 24 14:06:00 fedora input-remapper-service[12299]: fd = os.open(dev, os.O_RDWR | os.O_NONBLOCK) Jul 24 14:06:00 fedora input-remapper-service[12299]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Jul 24 14:06:00 fedora input-remapper-service[12299]: FileNotFoundError: [Errno 2] No such file or directory: '/dev/input/event31' Jul 24 14:06:00 fedora input-remapper-service[12299]: During handling of the above exception, another exception occurred: Jul 24 14:06:00 fedora input-remapper-service[12299]: Traceback (most recent call last): Jul 24 14:06:00 fedora input-remapper-service[12299]: File "/usr/lib64/python3.12/multiprocessing/process.py", line 314, in _bootstrap Jul 24 14:06:00 fedora input-remapper-service[12299]: self.run() Jul 24 14:06:00 fedora input-remapper-service[12299]: File "/usr/lib/python3.12/site-packages/inputremapper/injection/injector.py", line 414, in run Jul 24 14:06:00 fedora input-remapper-service[12299]: forward_devices[device_hash] = self._create_forwarding_device(device) Jul 24 14:06:00 fedora input-remapper-service[12299]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Jul 24 14:06:00 fedora input-remapper-service[12299]: File "/usr/lib/python3.12/site-packages/inputremapper/injection/injector.py", line 361, in _create_forwarding_device Jul 24 14:06:00 fedora input-remapper-service[12299]: forward_to = evdev.UInput( Jul 24 14:06:00 fedora input-remapper-service[12299]: ^^^^^^^^^^^^^ Jul 24 14:06:00 fedora input-remapper-service[12299]: File "/usr/lib64/python3.12/site-packages/evdev/uinput.py", line 155, in __init__ Jul 24 14:06:00 fedora input-remapper-service[12299]: self.device = self._find_device() Jul 24 14:06:00 fedora input-remapper-service[12299]: ^^^^^^^^^^^^^^^^^^^ Jul 24 14:06:00 fedora input-remapper-service[12299]: File "/usr/lib64/python3.12/site-packages/evdev/uinput.py", line 282, in _find_device Jul 24 14:06:00 fedora input-remapper-service[12299]: d = device.InputDevice(path) Jul 24 14:06:00 fedora input-remapper-service[12299]: ^^^^^^^^^^^^^^^^^^^^^^^^ Jul 24 14:06:00 fedora input-remapper-service[12299]: File "/usr/lib64/python3.12/site-packages/evdev/device.py", line 127, in __init__ Jul 24 14:06:00 fedora input-remapper-service[12299]: fd = os.open(dev, os.O_RDONLY | os.O_NONBLOCK) Jul 24 14:06:00 fedora input-remapper-service[12299]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Jul 24 14:06:00 fedora input-remapper-service[12299]: FileNotFoundError: [Errno 2] No such file or directory: '/dev/input/event31'
Testing the setup
-
Connected to the service Daemon answered with "hello" Done - Keys are always mapped after running that command.
- I don't see any device suffixed with
mapped. I see however 2input-remapper*devices. - This works only every other time.
Logs when it doesn't work:
Jul 24 14:13:08 fedora (udev-worker)[18096]: input46: /usr/lib/udev/rules.d/99-input-remapper.rules:10 RUN '/bin/input-remapper-control --command autoload --device $env{DEVNAME}' Jul 24 14:13:08 fedora (udev-worker)[18096]: input46: Running command "/bin/input-remapper-control --command autoload --device " Jul 24 14:13:08 fedora (udev-worker)[18096]: input46: Starting '/bin/input-remapper-control --command autoload --device ' Jul 24 14:13:08 fedora (udev-worker)[18137]: input47: /usr/lib/udev/rules.d/99-input-remapper.rules:10 RUN '/bin/input-remapper-control --command autoload --device $env{DEVNAME}' Jul 24 14:13:08 fedora (udev-worker)[18137]: input47: Running command "/bin/input-remapper-control --command autoload --device " Jul 24 14:13:08 fedora (udev-worker)[18137]: input47: Starting '/bin/input-remapper-control --command autoload --device ' Jul 24 14:13:08 fedora (udev-worker)[18142]: input48: /usr/lib/udev/rules.d/99-input-remapper.rules:10 RUN '/bin/input-remapper-control --command autoload --device $env{DEVNAME}' Jul 24 14:13:08 fedora (udev-worker)[18142]: input48: Running command "/bin/input-remapper-control --command autoload --device " Jul 24 14:13:08 fedora (udev-worker)[18142]: input48: Starting '/bin/input-remapper-control --command autoload --device ' Jul 24 14:13:08 fedora (udev-worker)[18144]: input49: /usr/lib/udev/rules.d/99-input-remapper.rules:10 RUN '/bin/input-remapper-control --command autoload --device $env{DEVNAME}' Jul 24 14:13:08 fedora (udev-worker)[18144]: input49: Running command "/bin/input-remapper-control --command autoload --device " Jul 24 14:13:08 fedora (udev-worker)[18145]: input50: /usr/lib/udev/rules.d/99-input-remapper.rules:10 RUN '/bin/input-remapper-control --command autoload --device $env{DEVNAME}' Jul 24 14:13:08 fedora (udev-worker)[18144]: input49: Starting '/bin/input-remapper-control --command autoload --device ' Jul 24 14:13:08 fedora (udev-worker)[18145]: input50: Running command "/bin/input-remapper-control --command autoload --device " Jul 24 14:13:08 fedora (udev-worker)[18145]: input50: Starting '/bin/input-remapper-control --command autoload --device ' Jul 24 14:13:08 fedora (udev-worker)[18144]: input49: '/bin/input-remapper-control --command autoload --device '(err) 'usage: input-remapper-control [-h] [--command NAME] [--config-dir PATH]' Jul 24 14:13:08 fedora (udev-worker)[18096]: input46: '/bin/input-remapper-control --command autoload --device '(err) 'usage: input-remapper-control [-h] [--command NAME] [--config-dir PATH]' Jul 24 14:13:08 fedora (udev-worker)[18144]: input49: '/bin/input-remapper-control --command autoload --device '(err) ' [--preset NAME] [--device NAME] [--list-devices]' Jul 24 14:13:08 fedora (udev-worker)[18144]: input49: '/bin/input-remapper-control --command autoload --device '(err) ' [--symbol-names] [-d] [-v]' Jul 24 14:13:08 fedora (udev-worker)[18144]: input49: '/bin/input-remapper-control --command autoload --device '(err) 'input-remapper-control: error: argument --device: expected one argument' Jul 24 14:13:08 fedora (udev-worker)[18096]: input46: '/bin/input-remapper-control --command autoload --device '(err) ' [--preset NAME] [--device NAME] [--list-devices]' Jul 24 14:13:08 fedora (udev-worker)[18096]: input46: '/bin/input-remapper-control --command autoload --device '(err) ' [--symbol-names] [-d] [-v]' Jul 24 14:13:08 fedora (udev-worker)[18096]: input46: '/bin/input-remapper-control --command autoload --device '(err) 'input-remapper-control: error: argument --device: expected one argument' Jul 24 14:13:08 fedora (udev-worker)[18142]: input48: '/bin/input-remapper-control --command autoload --device '(err) 'usage: input-remapper-control [-h] [--command NAME] [--config-dir PATH]' Jul 24 14:13:08 fedora (udev-worker)[18142]: input48: '/bin/input-remapper-control --command autoload --device '(err) ' [--preset NAME] [--device NAME] [--list-devices]' Jul 24 14:13:08 fedora (udev-worker)[18142]: input48: '/bin/input-remapper-control --command autoload --device '(err) ' [--symbol-names] [-d] [-v]' Jul 24 14:13:08 fedora (udev-worker)[18142]: input48: '/bin/input-remapper-control --command autoload --device '(err) 'input-remapper-control: error: argument --device: expected one argument' Jul 24 14:13:08 fedora (udev-worker)[18145]: input50: '/bin/input-remapper-control --command autoload --device '(err) 'usage: input-remapper-control [-h] [--command NAME] [--config-dir PATH]' Jul 24 14:13:08 fedora (udev-worker)[18145]: input50: '/bin/input-remapper-control --command autoload --device '(err) ' [--preset NAME] [--device NAME] [--list-devices]' Jul 24 14:13:08 fedora (udev-worker)[18145]: input50: '/bin/input-remapper-control --command autoload --device '(err) ' [--symbol-names] [-d] [-v]' Jul 24 14:13:08 fedora (udev-worker)[18145]: input50: '/bin/input-remapper-control --command autoload --device '(err) 'input-remapper-control: error: argument --device: expected one argument' Jul 24 14:13:08 fedora (udev-worker)[18137]: input47: '/bin/input-remapper-control --command autoload --device '(err) 'usage: input-remapper-control [-h] [--command NAME] [--config-dir PATH]' Jul 24 14:13:08 fedora (udev-worker)[18137]: input47: '/bin/input-remapper-control --command autoload --device '(err) ' [--preset NAME] [--device NAME] [--list-devices]' Jul 24 14:13:08 fedora (udev-worker)[18137]: input47: '/bin/input-remapper-control --command autoload --device '(err) ' [--symbol-names] [-d] [-v]' Jul 24 14:13:08 fedora (udev-worker)[18137]: input47: '/bin/input-remapper-control --command autoload --device '(err) 'input-remapper-control: error: argument --device: expected one argument' Jul 24 14:13:08 fedora (udev-worker)[18096]: input46: Process '/bin/input-remapper-control --command autoload --device ' failed with exit code 2. Jul 24 14:13:08 fedora (udev-worker)[18142]: input48: Process '/bin/input-remapper-control --command autoload --device ' failed with exit code 2. Jul 24 14:13:08 fedora (udev-worker)[18096]: input46: Command "/bin/input-remapper-control --command autoload --device " returned 2 (error), ignoring. Jul 24 14:13:08 fedora (udev-worker)[18142]: input48: Command "/bin/input-remapper-control --command autoload --device " returned 2 (error), ignoring. Jul 24 14:13:08 fedora (udev-worker)[18144]: input49: Process '/bin/input-remapper-control --command autoload --device ' failed with exit code 2. Jul 24 14:13:08 fedora (udev-worker)[18144]: input49: Command "/bin/input-remapper-control --command autoload --device " returned 2 (error), ignoring. Jul 24 14:13:08 fedora (udev-worker)[18145]: input50: Process '/bin/input-remapper-control --command autoload --device ' failed with exit code 2. Jul 24 14:13:08 fedora (udev-worker)[18145]: input50: Command "/bin/input-remapper-control --command autoload --device " returned 2 (error), ignoring. Jul 24 14:13:08 fedora (udev-worker)[18144]: mouse0: /usr/lib/udev/rules.d/99-input-remapper.rules:10 RUN '/bin/input-remapper-control --command autoload --device $env{DEVNAME}' Jul 24 14:13:08 fedora (udev-worker)[18144]: mouse0: Running command "/bin/input-remapper-control --command autoload --device /dev/input/mouse0" Jul 24 14:13:08 fedora (udev-worker)[18144]: mouse0: Starting '/bin/input-remapper-control --command autoload --device /dev/input/mouse0' Jul 24 14:13:08 fedora (udev-worker)[18142]: event7: /usr/lib/udev/rules.d/99-input-remapper.rules:10 RUN '/bin/input-remapper-control --command autoload --device $env{DEVNAME}' Jul 24 14:13:08 fedora (udev-worker)[18142]: event7: Running command "/bin/input-remapper-control --command autoload --device /dev/input/event7" Jul 24 14:13:08 fedora (udev-worker)[18142]: event7: Starting '/bin/input-remapper-control --command autoload --device /dev/input/event7' Jul 24 14:13:08 fedora (udev-worker)[18136]: event8: /usr/lib/udev/rules.d/99-input-remapper.rules:10 RUN '/bin/input-remapper-control --command autoload --device $env{DEVNAME}' Jul 24 14:13:08 fedora (udev-worker)[18136]: event8: Running command "/bin/input-remapper-control --command autoload --device /dev/input/event8" Jul 24 14:13:08 fedora (udev-worker)[18136]: event8: Starting '/bin/input-remapper-control --command autoload --device /dev/input/event8' Jul 24 14:13:08 fedora (udev-worker)[18096]: event9: /usr/lib/udev/rules.d/99-input-remapper.rules:10 RUN '/bin/input-remapper-control --command autoload --device $env{DEVNAME}' Jul 24 14:13:08 fedora (udev-worker)[18096]: event9: Running command "/bin/input-remapper-control --command autoload --device /dev/input/event9" Jul 24 14:13:08 fedora (udev-worker)[18096]: event9: Starting '/bin/input-remapper-control --command autoload --device /dev/input/event9' Jul 24 14:13:08 fedora (udev-worker)[18135]: event5: /usr/lib/udev/rules.d/99-input-remapper.rules:10 RUN '/bin/input-remapper-control --command autoload --device $env{DEVNAME}' Jul 24 14:13:08 fedora (udev-worker)[18135]: event5: Running command "/bin/input-remapper-control --command autoload --device /dev/input/event5" Jul 24 14:13:08 fedora (udev-worker)[18135]: event5: Starting '/bin/input-remapper-control --command autoload --device /dev/input/event5' Jul 24 14:13:08 fedora (udev-worker)[18137]: input47: Process '/bin/input-remapper-control --command autoload --device ' failed with exit code 2. Jul 24 14:13:08 fedora (udev-worker)[18137]: input47: Command "/bin/input-remapper-control --command autoload --device " returned 2 (error), ignoring. Jul 24 14:13:08 fedora (udev-worker)[18139]: event6: /usr/lib/udev/rules.d/99-input-remapper.rules:10 RUN '/bin/input-remapper-control --command autoload --device $env{DEVNAME}' Jul 24 14:13:08 fedora (udev-worker)[18139]: event6: Running command "/bin/input-remapper-control --command autoload --device /dev/input/event6" Jul 24 14:13:08 fedora (udev-worker)[18139]: event6: Starting '/bin/input-remapper-control --command autoload --device /dev/input/event6' Jul 24 14:13:08 fedora (udev-worker)[18144]: mouse0: '/bin/input-remapper-control --command autoload --device /dev/input/mouse0'(err) 'Connected to the service' Jul 24 14:13:08 fedora (udev-worker)[18142]: event7: '/bin/input-remapper-control --command autoload --device /dev/input/event7'(err) 'Connected to the service' Jul 24 14:13:08 fedora (udev-worker)[18136]: event8: '/bin/input-remapper-control --command autoload --device /dev/input/event8'(err) 'Connected to the service' Jul 24 14:13:08 fedora (udev-worker)[18135]: event5: '/bin/input-remapper-control --command autoload --device /dev/input/event5'(err) 'Connected to the service' Jul 24 14:13:08 fedora (udev-worker)[18096]: event9: '/bin/input-remapper-control --command autoload --device /dev/input/event9'(err) 'Connected to the service' Jul 24 14:13:08 fedora (udev-worker)[18139]: event6: '/bin/input-remapper-control --command autoload --device /dev/input/event6'(err) 'Connected to the service' Jul 24 14:13:09 fedora (udev-worker)[18144]: mouse0: '/bin/input-remapper-control --command autoload --device /dev/input/mouse0'(err) 'Found "Sleep Button", "AT Translated Set 2 keyboard", "ETPS/2 Elantech Touchpad", "PNP0C50:00 04F3:30AA Mouse", "SteelSeries SteelSeries Rival 3", "Video Bus", "MSI WMI hotkeys", "ydotoold virtual device", "input-remapper keyboard", "input-remapper Micro-Star INT'L CO., LTD. MSI GK50 LOW PROFILE Gaming forwarde", "Micro-Star INT'L CO., LTD. MSI GK50 LOW PROFILE Gaming Keyboard"' Jul 24 14:13:09 fedora (udev-worker)[18144]: mouse0: '/bin/input-remapper-control --command autoload --device /dev/input/mouse0'(err) 'ERROR: Device "/dev/input/mouse0" is unknown or not an appropriate input device' Jul 24 14:13:09 fedora (udev-worker)[18135]: event5: '/bin/input-remapper-control --command autoload --device /dev/input/event5'(err) 'Found "Sleep Button", "AT Translated Set 2 keyboard", "ETPS/2 Elantech Touchpad", "PNP0C50:00 04F3:30AA Mouse", "SteelSeries SteelSeries Rival 3", "Video Bus", "MSI WMI hotkeys", "ydotoold virtual device", "input-remapper keyboard", "input-remapper Micro-Star INT'L CO., LTD. MSI GK50 LOW PROFILE Gaming forwarde", "Micro-Star INT'L CO., LTD. MSI GK50 LOW PROFILE Gaming Keyboard"' Jul 24 14:13:09 fedora (udev-worker)[18135]: event5: '/bin/input-remapper-control --command autoload --device /dev/input/event5'(err) 'Asking daemon to autoload for /dev/input/event5' Jul 24 14:13:09 fedora input-remapper-service[1382]: Request to autoload for "Micro-Star INT'L CO., LTD. MSI GK50 LOW PROFILE Gaming Keyboard" Jul 24 14:13:09 fedora (udev-worker)[18144]: mouse0: Process '/bin/input-remapper-control --command autoload --device /dev/input/mouse0' failed with exit code 4. Jul 24 14:13:09 fedora (udev-worker)[18144]: mouse0: Command "/bin/input-remapper-control --command autoload --device /dev/input/mouse0" returned 4 (error), ignoring. Jul 24 14:13:09 fedora (udev-worker)[18136]: event8: '/bin/input-remapper-control --command autoload --device /dev/input/event8'(err) 'Found "Sleep Button", "AT Translated Set 2 keyboard", "ETPS/2 Elantech Touchpad", "PNP0C50:00 04F3:30AA Mouse", "SteelSeries SteelSeries Rival 3", "Video Bus", "MSI WMI hotkeys", "ydotoold virtual device", "input-remapper keyboard", "input-remapper Micro-Star INT'L CO., LTD. MSI GK50 LOW PROFILE Gaming forwarde", "Micro-Star INT'L CO., LTD. MSI GK50 LOW PROFILE Gaming Keyboard"' Jul 24 14:13:09 fedora (udev-worker)[18136]: event8: '/bin/input-remapper-control --command autoload --device /dev/input/event8'(err) 'Asking daemon to autoload for /dev/input/event8' Jul 24 14:13:09 fedora (udev-worker)[18096]: event9: '/bin/input-remapper-control --command autoload --device /dev/input/event9'(err) 'Found "Sleep Button", "AT Translated Set 2 keyboard", "ETPS/2 Elantech Touchpad", "PNP0C50:00 04F3:30AA Mouse", "SteelSeries SteelSeries Rival 3", "Video Bus", "MSI WMI hotkeys", "ydotoold virtual device", "input-remapper keyboard", "input-remapper Micro-Star INT'L CO., LTD. MSI GK50 LOW PROFILE Gaming forwarde", "Micro-Star INT'L CO., LTD. MSI GK50 LOW PROFILE Gaming Keyboard"' Jul 24 14:13:09 fedora (udev-worker)[18096]: event9: '/bin/input-remapper-control --command autoload --device /dev/input/event9'(err) 'Asking daemon to autoload for /dev/input/event9' Jul 24 14:13:09 fedora (udev-worker)[18142]: event7: '/bin/input-remapper-control --command autoload --device /dev/input/event7'(err) 'Found "Sleep Button", "AT Translated Set 2 keyboard", "ETPS/2 Elantech Touchpad", "PNP0C50:00 04F3:30AA Mouse", "SteelSeries SteelSeries Rival 3", "Video Bus", "MSI WMI hotkeys", "ydotoold virtual device", "input-remapper keyboard", "input-remapper Micro-Star INT'L CO., LTD. MSI GK50 LOW PROFILE Gaming forwarde", "Micro-Star INT'L CO., LTD. MSI GK50 LOW PROFILE Gaming Keyboard"' Jul 24 14:13:09 fedora (udev-worker)[18142]: event7: '/bin/input-remapper-control --command autoload --device /dev/input/event7'(err) 'Asking daemon to autoload for /dev/input/event7' Jul 24 14:13:09 fedora (udev-worker)[18139]: event6: '/bin/input-remapper-control --command autoload --device /dev/input/event6'(err) 'Found "Sleep Button", "AT Translated Set 2 keyboard", "ETPS/2 Elantech Touchpad", "PNP0C50:00 04F3:30AA Mouse", "SteelSeries SteelSeries Rival 3", "Video Bus", "MSI WMI hotkeys", "ydotoold virtual device", "input-remapper keyboard", "input-remapper Micro-Star INT'L CO., LTD. MSI GK50 LOW PROFILE Gaming forwarde", "Micro-Star INT'L CO., LTD. MSI GK50 LOW PROFILE Gaming Keyboard"' Jul 24 14:13:09 fedora (udev-worker)[18139]: event6: '/bin/input-remapper-control --command autoload --device /dev/input/event6'(err) 'Asking daemon to autoload for /dev/input/event6' Jul 24 14:13:09 fedora input-remapper-service[1382]: Found "Sleep Button", "AT Translated Set 2 keyboard", "ETPS/2 Elantech Touchpad", "PNP0C50:00 04F3:30AA Mouse", "SteelSeries SteelSeries Rival 3", "Video Bus", "MSI WMI hotkeys", "ydotoold virtual device", "input-remapper keyboard", "input-remapper Micro-Star INT'L CO., LTD. MSI GK50 LOW PROFILE Gaming forwarde", "Micro-Star INT'L CO., LTD. MSI GK50 LOW PROFILE Gaming Keyboard" Jul 24 14:13:09 fedora input-remapper-service[1382]: Autoloading for "Micro-Star INT'L CO., LTD. MSI GK50 LOW PROFILE Gaming Keyboard" Jul 24 14:13:09 fedora input-remapper-service[1382]: Request to start injecting for "Micro-Star INT'L CO., LTD. MSI GK50 LOW PROFILE Gaming Keyboard" Jul 24 14:13:09 fedora input-remapper-service[1382]: Loading preset from "/home/pavel/.config/input-remapper-2/presets/Micro-Star INT'L CO., LTD. MSI GK50 LOW PROFILE Gaming Keyboard/Caps Lock 2 ESC & CTRL.json" Jul 24 14:13:09 fedora input-remapper-service[1382]: Stopping injecting keycodes for group "Micro-Star INT'L CO., LTD. MSI GK50 LOW PROFILE Gaming Keyboard" Jul 24 14:13:09 fedora input-remapper-service[1382]: Request to autoload for "Micro-Star INT'L CO., LTD. MSI GK50 LOW PROFILE Gaming Keyboard" Jul 24 14:13:09 fedora input-remapper-service[1382]: Autoloading for "Micro-Star INT'L CO., LTD. MSI GK50 LOW PROFILE Gaming Keyboard" Jul 24 14:13:09 fedora input-remapper-service[1382]: Not autoloading the same preset "Caps Lock 2 ESC & CTRL" again for group "Micro-Star INT'L CO., LTD. MSI GK50 LOW PROFILE Gaming Keyboard" Jul 24 14:13:09 fedora input-remapper-service[18201]: Starting injecting the preset for "Micro-Star INT'L CO., LTD. MSI GK50 LOW PROFILE Gaming Keyboard" Jul 24 14:13:09 fedora input-remapper-service[1382]: Request to autoload for "Micro-Star INT'L CO., LTD. MSI GK50 LOW PROFILE Gaming Keyboard" Jul 24 14:13:09 fedora input-remapper-service[1382]: Autoloading for "Micro-Star INT'L CO., LTD. MSI GK50 LOW PROFILE Gaming Keyboard" Jul 24 14:13:09 fedora input-remapper-service[1382]: Not autoloading the same preset "Caps Lock 2 ESC & CTRL" again for group "Micro-Star INT'L CO., LTD. MSI GK50 LOW PROFILE Gaming Keyboard" Jul 24 14:13:09 fedora (udev-worker)[18135]: event5: '/bin/input-remapper-control --command autoload --device /dev/input/event5'(err) 'Done' Jul 24 14:13:09 fedora input-remapper-service[1382]: Request to autoload for "Micro-Star INT'L CO., LTD. MSI GK50 LOW PROFILE Gaming Keyboard" Jul 24 14:13:09 fedora input-remapper-service[1382]: Autoloading for "Micro-Star INT'L CO., LTD. MSI GK50 LOW PROFILE Gaming Keyboard" Jul 24 14:13:09 fedora input-remapper-service[1382]: Not autoloading the same preset "Caps Lock 2 ESC & CTRL" again for group "Micro-Star INT'L CO., LTD. MSI GK50 LOW PROFILE Gaming Keyboard" Jul 24 14:13:09 fedora input-remapper-service[1382]: Request to autoload for "Micro-Star INT'L CO., LTD. MSI GK50 LOW PROFILE Gaming Keyboard" Jul 24 14:13:09 fedora input-remapper-service[1382]: Autoloading for "Micro-Star INT'L CO., LTD. MSI GK50 LOW PROFILE Gaming Keyboard" Jul 24 14:13:09 fedora input-remapper-service[1382]: Not autoloading the same preset "Caps Lock 2 ESC & CTRL" again for group "Micro-Star INT'L CO., LTD. MSI GK50 LOW PROFILE Gaming Keyboard" Jul 24 14:13:09 fedora (udev-worker)[18096]: event9: '/bin/input-remapper-control --command autoload --device /dev/input/event9'(err) 'Done' Jul 24 14:13:09 fedora (udev-worker)[18136]: event8: '/bin/input-remapper-control --command autoload --device /dev/input/event8'(err) 'Done' Jul 24 14:13:09 fedora (udev-worker)[18142]: event7: '/bin/input-remapper-control --command autoload --device /dev/input/event7'(err) 'Done' Jul 24 14:13:09 fedora (udev-worker)[18139]: event6: '/bin/input-remapper-control --command autoload --device /dev/input/event6'(err) 'Done' Jul 24 14:13:09 fedora kernel: input: input-remapper Micro-Star INT'L CO., LTD. MSI GK50 LOW PROFILE Gaming forwarde as /devices/virtual/input/input51 Jul 24 14:13:09 fedora (udev-worker)[18144]: input51: /usr/lib/udev/rules.d/99-input-remapper.rules:10 RUN '/bin/input-remapper-control --command autoload --device $env{DEVNAME}' Jul 24 14:13:09 fedora (udev-worker)[18144]: input51: Running command "/bin/input-remapper-control --command autoload --device " Jul 24 14:13:09 fedora (udev-worker)[18144]: input51: Starting '/bin/input-remapper-control --command autoload --device ' Jul 24 14:13:09 fedora (udev-worker)[18139]: event6: Process '/bin/input-remapper-control --command autoload --device /dev/input/event6' succeeded. Jul 24 14:13:09 fedora (udev-worker)[18142]: event7: Process '/bin/input-remapper-control --command autoload --device /dev/input/event7' succeeded. Jul 24 14:13:09 fedora (udev-worker)[18135]: event5: Process '/bin/input-remapper-control --command autoload --device /dev/input/event5' succeeded. Jul 24 14:13:09 fedora (udev-worker)[18136]: event8: Process '/bin/input-remapper-control --command autoload --device /dev/input/event8' succeeded. Jul 24 14:13:09 fedora (udev-worker)[18096]: event9: Process '/bin/input-remapper-control --command autoload --device /dev/input/event9' succeeded. Jul 24 14:13:09 fedora (udev-worker)[18144]: input51: '/bin/input-remapper-control --command autoload --device '(err) 'usage: input-remapper-control [-h] [--command NAME] [--config-dir PATH]' Jul 24 14:13:09 fedora (udev-worker)[18144]: input51: '/bin/input-remapper-control --command autoload --device '(err) ' [--preset NAME] [--device NAME] [--list-devices]' Jul 24 14:13:09 fedora (udev-worker)[18144]: input51: '/bin/input-remapper-control --command autoload --device '(err) ' [--symbol-names] [-d] [-v]' Jul 24 14:13:09 fedora (udev-worker)[18144]: input51: '/bin/input-remapper-control --command autoload --device '(err) 'input-remapper-control: error: argument --device: expected one argument' Jul 24 14:13:09 fedora (udev-worker)[18144]: input51: Process '/bin/input-remapper-control --command autoload --device ' failed with exit code 2. Jul 24 14:13:09 fedora (udev-worker)[18144]: input51: Command "/bin/input-remapper-control --command autoload --device " returned 2 (error), ignoring. Jul 24 14:13:09 fedora (udev-worker)[18146]: event256: /usr/lib/udev/rules.d/60-evdev.rules:20 Importing properties from results of builtin command 'hwdb 'evdev:name:input-remapper Micro-Star INT_L CO., LTD. MSI GK50 LOW PROFILE Gaming forwarde:dmi:bvnAmericanMegatrendsInternational,LLC.:bvrE1581IMS.313:bd07/06/2023:br3.19:svnMicro-StarInternationalCo.,Ltd.:pnPulseGL6611UEK:pvrREV1.0:rvnMicro-StarInternationalCo.,Ltd.:rnMS-1581:rvrREV1.0:cvnMicro-StarInternationalCo.,Ltd.:ct10:cvrN/A:sku1581.3:'' Jul 24 14:13:09 fedora (udev-worker)[18146]: event256: /usr/lib/udev/rules.d/60-evdev.rules:20 Failed to run builtin 'hwdb 'evdev:name:input-remapper Micro-Star INT_L CO., LTD. MSI GK50 LOW PROFILE Gaming forwarde:dmi:bvnAmericanMegatrendsInternational,LLC.:bvrE1581IMS.313:bd07/06/2023:br3.19:svnMicro-StarInternationalCo.,Ltd.:pnPulseGL6611UEK:pvrREV1.0:rvnMicro-StarInternationalCo.,Ltd.:rnMS-1581:rvrREV1.0:cvnMicro-StarInternationalCo.,Ltd.:ct10:cvrN/A:sku1581.3:'': No data available Jul 24 14:13:09 fedora (udev-worker)[18146]: event256: /usr/lib/udev/rules.d/60-evdev.rules:25 Importing properties from results of builtin command 'hwdb 'evdev:name:input-remapper Micro-Star INT_L CO., LTD. MSI GK50 LOW PROFILE Gaming forwarde:phys:py-evdev-uinput:ev:220013:dmi:bvnAmericanMegatrendsInternational,LLC.:bvrE1581IMS.313:bd07/06/2023:br3.19:svnMicro-StarInternationalCo.,Ltd.:pnPulseGL6611UEK:pvrREV1.0:rvnMicro-StarInternationalCo.,Ltd.:rnMS-1581:rvrREV1.0:cvnMicro-StarInternationalCo.,Ltd.:ct10:cvrN/A:sku1581.3:'' Jul 24 14:13:09 fedora (udev-worker)[18146]: event256: /usr/lib/udev/rules.d/60-evdev.rules:25 Failed to run builtin 'hwdb 'evdev:name:input-remapper Micro-Star INT_L CO., LTD. MSI GK50 LOW PROFILE Gaming forwarde:phys:py-evdev-uinput:ev:220013:dmi:bvnAmericanMegatrendsInternational,LLC.:bvrE1581IMS.313:bd07/06/2023:br3.19:svnMicro-StarInternationalCo.,Ltd.:pnPulseGL6611UEK:pvrREV1.0:rvnMicro-StarInternationalCo.,Ltd.:rnMS-1581:rvrREV1.0:cvnMicro-StarInternationalCo.,Ltd.:ct10:cvrN/A:sku1581.3:'': No data available Jul 24 14:13:09 fedora (udev-worker)[18146]: event256: /usr/lib/udev/rules.d/65-libwacom.rules:20 Importing properties from results of builtin command 'hwdb --subsystem=input '--lookup-prefix=libwacom:name:input-remapper Micro-Star INT_L CO., LTD. MSI GK50 LOW PROFILE Gaming forwarde:'' Jul 24 14:13:09 fedora (udev-worker)[18146]: event256: /usr/lib/udev/rules.d/65-libwacom.rules:20 Failed to run builtin 'hwdb --subsystem=input '--lookup-prefix=libwacom:name:input-remapper Micro-Star INT_L CO., LTD. MSI GK50 LOW PROFILE Gaming forwarde:'': No data available Jul 24 14:13:09 fedora (udev-worker)[18146]: event256: /usr/lib/udev/rules.d/99-input-remapper.rules:10 RUN '/bin/input-remapper-control --command autoload --device $env{DEVNAME}' Jul 24 14:13:09 fedora (udev-worker)[18146]: event256: Running command "/bin/input-remapper-control --command autoload --device /dev/input/event256" Jul 24 14:13:09 fedora (udev-worker)[18146]: event256: Starting '/bin/input-remapper-control --command autoload --device /dev/input/event256' Jul 24 14:13:09 fedora input-remapper-service[18201]: Process Micro-Star INT'L CO., LTD. MSI GK50 LOW PROFILE Gaming Keyboard: Jul 24 14:13:09 fedora input-remapper-service[18201]: Traceback (most recent call last): Jul 24 14:13:09 fedora input-remapper-service[18201]: File "/usr/lib64/python3.12/site-packages/evdev/device.py", line 125, in __init__ Jul 24 14:13:09 fedora input-remapper-service[18201]: fd = os.open(dev, os.O_RDWR | os.O_NONBLOCK) Jul 24 14:13:09 fedora input-remapper-service[18201]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Jul 24 14:13:09 fedora input-remapper-service[18201]: FileNotFoundError: [Errno 2] No such file or directory: '/dev/input/event31' Jul 24 14:13:09 fedora input-remapper-service[18201]: During handling of the above exception, another exception occurred: Jul 24 14:13:09 fedora input-remapper-service[18201]: Traceback (most recent call last): Jul 24 14:13:09 fedora input-remapper-service[18201]: File "/usr/lib64/python3.12/multiprocessing/process.py", line 314, in _bootstrap Jul 24 14:13:09 fedora input-remapper-service[18201]: self.run() Jul 24 14:13:09 fedora input-remapper-service[18201]: File "/usr/lib/python3.12/site-packages/inputremapper/injection/injector.py", line 414, in run Jul 24 14:13:09 fedora input-remapper-service[18201]: forward_devices[device_hash] = self._create_forwarding_device(device) Jul 24 14:13:09 fedora input-remapper-service[18201]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Jul 24 14:13:09 fedora input-remapper-service[18201]: File "/usr/lib/python3.12/site-packages/inputremapper/injection/injector.py", line 361, in _create_forwarding_device Jul 24 14:13:09 fedora input-remapper-service[18201]: forward_to = evdev.UInput( Jul 24 14:13:09 fedora input-remapper-service[18201]: ^^^^^^^^^^^^^ Jul 24 14:13:09 fedora input-remapper-service[18201]: File "/usr/lib64/python3.12/site-packages/evdev/uinput.py", line 155, in __init__ Jul 24 14:13:09 fedora input-remapper-service[18201]: self.device = self._find_device() Jul 24 14:13:09 fedora input-remapper-service[18201]: ^^^^^^^^^^^^^^^^^^^ Jul 24 14:13:09 fedora input-remapper-service[18201]: File "/usr/lib64/python3.12/site-packages/evdev/uinput.py", line 282, in _find_device Jul 24 14:13:09 fedora input-remapper-service[18201]: d = device.InputDevice(path) Jul 24 14:13:09 fedora input-remapper-service[18201]: ^^^^^^^^^^^^^^^^^^^^^^^^ Jul 24 14:13:09 fedora input-remapper-service[18201]: File "/usr/lib64/python3.12/site-packages/evdev/device.py", line 127, in __init__ Jul 24 14:13:09 fedora input-remapper-service[18201]: fd = os.open(dev, os.O_RDONLY | os.O_NONBLOCK) Jul 24 14:13:09 fedora input-remapper-service[18201]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Jul 24 14:13:09 fedora input-remapper-service[18201]: FileNotFoundError: [Errno 2] No such file or directory: '/dev/input/event31' Jul 24 14:13:09 fedora (udev-worker)[18146]: event256: '/bin/input-remapper-control --command autoload --device /dev/input/event256'(err) 'Connected to the service' Jul 24 14:13:09 fedora (udev-worker)[18146]: event256: '/bin/input-remapper-control --command autoload --device /dev/input/event256'(err) 'ERROR: Failed to access path "/dev/input/event256": FileNotFoundError [Errno 2] No such file or directory: '/dev/input/event256'' Jul 24 14:13:09 fedora (udev-worker)[18146]: event256: '/bin/input-remapper-control --command autoload --device /dev/input/event256'(err) 'Found "Sleep Button", "AT Translated Set 2 keyboard", "ETPS/2 Elantech Touchpad", "PNP0C50:00 04F3:30AA Mouse", "SteelSeries SteelSeries Rival 3", "Video Bus", "MSI WMI hotkeys", "ydotoold virtual device", "input-remapper keyboard", "Micro-Star INT'L CO., LTD. MSI GK50 LOW PROFILE Gaming Keyboard"' Jul 24 14:13:09 fedora (udev-worker)[18146]: event256: '/bin/input-remapper-control --command autoload --device /dev/input/event256'(err) 'ERROR: Device "/dev/input/event256" is unknown or not an appropriate input device' Jul 24 14:13:09 fedora (udev-worker)[18146]: event256: Process '/bin/input-remapper-control --command autoload --device /dev/input/event256' failed with exit code 4. Jul 24 14:13:09 fedora (udev-worker)[18146]: event256: Command "/bin/input-remapper-control --command autoload --device /dev/input/event256" returned 4 (error), ignoring.
Description The bug is that every other time I plug-in my keyboard with a custom presets that are set to autoload, it works only every other time. When I startup my PC and login, or use the GUI to set it to autoload - it works, the next time I replug my device - it doesn't work, then I replug again - it works and the cycle continues with the exact same log output, so it's a consistent problem. It also doesn't seem to happen when waking up my PC from sleep, only when physically unplugging and plugging back.
I think I see the same with my bluetooth trackball on my laptop...
Also Fedora 40 but with Gnome.