Open UN-9BOT opened 1 year ago
Can you please adjust the numbering in your post to match the issue template? https://github.com/sezanzeb/input-remapper/blob/main/.github/ISSUE_TEMPLATE/autoloading-not-working.md
Where is step 6? I guess that is what step 8 is supposed to be.
This .desktop file is supposed to run after you log in: https://github.com/sezanzeb/input-remapper/blob/main/data/input-remapper-autoload.desktop. I would have expected a log that says Autoloading for all devices
in it. Some DEs have trouble with .desktop files
Indeed, the problem is with the autorun of this .desktop file. Therefore, I wrote the command input-remapper-control --command stop-all && input-remapper-control --command autoload
in the bash script when starting the window manager
Ah, good that you were able to confirm this.
the bash script when starting the window manager
are you referring to the ~/.profile
file? Or is it something specific to qtile?
This is a separate file in the qtile config. (autostart.sh).
allright, thanks. Hopefully this can help other people with qtile.
I'll keep this issue open, maybe someone will even figure out why the .desktop file is not running properly in qtile
input-remapper 1.5.0 bc68fa7f6ec8faf10fb01e4b70426cade6ca50e1 https://github.com/sezanzeb/input-remapper python-evdev 1.6.1
2.6.1.8-arch1-1
x11
qtile 0.22.1
lrwxrwxrwx 1 root root 0 янв 31 08:07 /proc/1/exe -> /usr/lib/systemd/systemd
Connected to the service. Daemon answered with "hello". Done
янв 31 08:07:16 ms1 systemd[1]: Starting Service to inject keycodes without the GUI application... янв 31 08:07:16 ms1 input-remapper-service[450]: input-remapper-service 1.5.0 bc68fa7f6ec8faf10fb01e4b70426cade6ca50> янв 31 08:07:16 ms1 input-remapper-service[450]: python-evdev 1.6.1 янв 31 08:07:16 ms1 systemd[1]: Started Service to inject keycodes without the GUI application. янв 31 08:07:18 ms1 input-remapper-service[450]: Request to autoload for "ELAN0300:00 04F3:30AA Mouse" янв 31 08:07:18 ms1 input-remapper-service[450]: ERROR: Request to autoload "ELAN0300:00 04F3:30AA Mouse" before a u> янв 31 08:07:18 ms1 input-remapper-service[450]: Request to autoload for "Sleep Button" янв 31 08:07:18 ms1 input-remapper-service[450]: ERROR: Request to autoload "Sleep Button" before a user told the se> янв 31 08:07:18 ms1 input-remapper-service[450]: Request to autoload for "Video Bus" янв 31 08:07:18 ms1 input-remapper-service[450]: ERROR: Request to autoload "Video Bus" before a user told the servi> янв 31 08:07:18 ms1 input-remapper-service[450]: Request to autoload for "AT Translated Set 2 keyboard" янв 31 08:07:18 ms1 input-remapper-service[450]: ERROR: Request to autoload "AT Translated Set 2 keyboard" before a > янв 31 08:07:18 ms1 input-remapper-service[450]: Request to autoload for "ELAN0300:00 04F3:30AA Mouse" янв 31 08:07:18 ms1 input-remapper-service[450]: ERROR: Request to autoload "ELAN0300:00 04F3:30AA Mouse" before a u> янв 31 08:07:20 ms1 input-remapper-service[450]: Request to autoload for "MSI WMI hotkeys" янв 31 08:07:20 ms1 input-remapper-service[450]: ERROR: Request to autoload "MSI WMI hotkeys" before a user told the> янв 31 08:07:20 ms1 input-remapper-service[450]: Request to autoload for "COMPANY USB Device " янв 31 08:07:20 ms1 input-remapper-service[450]: ERROR: Request to autoload "COMPANY USB Device " before a user tol> янв 31 08:07:20 ms1 input-remapper-service[450]: Request to autoload for "SONiX USB Keyboard" янв 31 08:07:20 ms1 input-remapper-service[450]: ERROR: Request to autoload "SONiX USB Keyboard" before a user told > янв 31 08:07:20 ms1 input-remapper-service[450]: Request to autoload for "SONiX USB Keyboard" янв 31 08:07:20 ms1 input-remapper-service[450]: ERROR: Request to autoload "SONiX USB Keyboard" before a user told > янв 31 08:07:21 ms1 input-remapper-service[450]: Request to autoload for "ETPS/2 Elantech Touchpad" янв 31 08:07:21 ms1 input-remapper-service[450]: ERROR: Request to autoload "ETPS/2 Elantech Touchpad" before a user> янв 31 08:07:21 ms1 input-remapper-service[450]: Request to autoload for "SONiX USB Keyboard" янв 31 08:07:21 ms1 input-remapper-service[450]: ERROR: Request to autoload "SONiX USB Keyboard" before a user told > янв 31 08:08:37 ms1 input-remapper-service[450]: Loaded config from "/home/un9bot/.config/input-remapper/config.json" янв 31 08:08:37 ms1 input-remapper-service[450]: Loaded config from "/home/un9bot/.config/input-remapper/config.json"
[1] 18309 08:20:19.920847 18311 Service INFO logger.py:225: input-remapper-service 1.5.0 bc68fa7f6ec8faf10fb01e4b70426cade6ca50e1 https://github.com/sezanzeb/input-remapper 08:20:19.920946 18311 Service INFO logger.py:233: python-evdev 1.6.1 08:20:19.920986 18311 Service WARNING logger.py:236: Debug level will log all your keystrokes! Do not post this output in the internet if you typed in sensitive or private information with your device! 08:20:19.921022 18311 Service DEBUG daemon.py:165: Creating daemon 08:20:19.921134 18311 Service INFO global_config.py:104: Loaded config from "/home/un9bot/.config/input-remapper/config.json" 08:20:19.921182 18311 Service DEBUG shared_dict.py:56: Starting SharedDict process 08:20:19.923256 18318 Service DEBUG shared_dict.py:62: SharedDict process started 08:20:19.927871 18311 Service DEBUG daemon.py:251: Running daemon Connected to the service 08:20:21.930025 18311 Service INFO global_config.py:104: Loaded config from "/home/un9bot/.config/input-remapper/config.json" 08:20:21.930797 18311 Service INFO global_config.py:104: Loaded config from "/home/un9bot/.config/input-remapper/config.json" Autoloading all 08:20:21.931689 18311 Service INFO daemon.py:397: Autoloading for all devices 08:20:21.931759 18311 Service DEBUG daemon.py:264: Refreshing because last info is too old 08:20:22.034126 18311 Service DEBUG groups.py:336: Discovering device paths 08:20:22.035084 18311 Service DEBUG groups.py:377: Found "17_2_14_isa0060", "/dev/input/event19", "ETPS/2 Elantech Touchpad", type: touchpad 08:20:22.063998 18311 Service DEBUG groups.py:377: Found "3_2522_8808_usb-0000:03:00.3-2.1.3", "/dev/input/event18", "SONiX USB Keyboard System Control", type: unknown 08:20:22.080895 18311 Service DEBUG groups.py:377: Found "3_2522_8808_usb-0000:03:00.3-2.1.3", "/dev/input/event17", "SONiX USB Keyboard Consumer Control", type: unknown 08:20:22.170478 18311 Service DEBUG groups.py:377: Found "3_2522_8808_usb-0000:03:00.3-2.1.3", "/dev/input/event15", "SONiX USB Keyboard", type: keyboard 08:20:22.194116 18311 Service DEBUG groups.py:377: Found "3_2522_64636_usb-0000:03:00.3-2.2", "/dev/input/event14", "COMPANY USB Device ", type: mouse 08:20:22.467165 18311 Service DEBUG groups.py:377: Found "25_0_0_wmi", "/dev/input/event8", "MSI WMI hotkeys", type: unknown 08:20:22.507121 18311 Service DEBUG groups.py:377: Found "24_1267_12458_i2c-ELAN0300:00", "/dev/input/event7", "ELAN0300:00 04F3:30AA Touchpad", type: touchpad 08:20:22.527146 18311 Service DEBUG groups.py:377: Found "24_1267_12458_i2c-ELAN0300:00", "/dev/input/event6", "ELAN0300:00 04F3:30AA Mouse", type: unknown 08:20:22.553809 18311 Service DEBUG groups.py:377: Found "17_1_1_isa0060", "/dev/input/event5", "AT Translated Set 2 keyboard", type: keyboard 08:20:22.583951 18311 Service DEBUG groups.py:377: Found "25_0_6_LNXVIDEO", "/dev/input/event4", "Video Bus", type: unknown 08:20:22.664106 18311 Service DEBUG groups.py:377: Found "25_0_3_PNP0C0E", "/dev/input/event2", "Sleep Button", type: unknown 08:20:22.704144 18311 Service INFO groups.py:448: Found "ETPS/2 Elantech Touchpad", "SONiX USB Keyboard", "COMPANY USB Device ", "MSI WMI hotkeys", "ELAN0300:00 04F3:30AA Mouse", "AT Translated Set 2 keyboard", "Video Bus", "Sleep Button" 08:20:22.704327 18311 Service INFO daemon.py:342: Autoloading for "COMPANY USB Device " 08:20:22.704373 18311 Service INFO daemon.py:419: Request to start injecting for "COMPANY USB Device " 08:20:22.704442 18311 Service INFO preset.py:169: Loading preset from "/home/un9bot/.config/input-remapper/presets/COMPANY USB Device /mouse.json" 08:20:22.705357 18311 Service DEBUG preset.py:199: <EventCombination (1, 275, 1)> maps to ('KEY_COPY', 'keyboard') 08:20:22.705497 18311 Service DEBUG preset.py:199: <EventCombination (1, 276, 1)> maps to ('KEY_LEFTCTRL+Shift_L+V', 'keyboard') 08:20:22.705618 18311 Service DEBUG global_uinputs.py:59: creating UInput device: 'input-remapper keyboard' 08:20:22.817711 18311 Service DEBUG global_uinputs.py:130: Target "keyboard" already exists 08:20:22.818593 18311 Service DEBUG daemon.py:471: Using keycodes from "/home/un9bot/.config/input-remapper/xmodmap.json" 08:20:22.818689 18311 Service DEBUG system_mapping.py:90: Gathering available keycodes 08:20:22.818752 18311 Service DEBUG system_mapping.py:90: Gathering available keycodes 08:20:22.820986 18311 Service DEBUG system_mapping.py:143: Updated keycodes with 216 new ones 08:20:22.822449 18311 Service INFO daemon.py:342: Autoloading for "SONiX USB Keyboard" 08:20:22.822562 18311 Service INFO daemon.py:419: Request to start injecting for "SONiX USB Keyboard" 08:20:22.822652 18311 Service INFO preset.py:169: Loading preset from "/home/un9bot/.config/input-remapper/presets/SONiX USB Keyboard/keyboard.json" 08:20:22.823142 18385 Service INFO injector.py:300: Starting injecting the preset for "COMPANY USB Device " 08:20:22.823302 18311 Service DEBUG preset.py:199: <EventCombination (1, 58, 1)> maps to ('Pause', 'keyboard') 08:20:22.823376 18311 Service DEBUG global_uinputs.py:130: Target "keyboard" already exists 08:20:22.823504 18311 Service DEBUG daemon.py:471: Using keycodes from "/home/un9bot/.config/input-remapper/xmodmap.json" 08:20:22.823863 18311 Service DEBUG system_mapping.py:143: Updated keycodes with 0 new ones 08:20:22.823896 18385 Service DEBUG context.py:89: Parsing macros 08:20:22.824328 18385 Service DEBUG parse.py:349: Transformed "KEY_LEFTCTRL+Shift_L+V" to "hold_keys(KEY_LEFTCTRL,Shift_L,V)" 08:20:22.824412 18385 Service DEBUG parse.py:428: preparing macro hold_keys(KEY_LEFTCTRL,Shift_L,V) for later execution 08:20:22.824768 18385 Service DEBUG parse.py:272: calls hold_keys with KEY_LEFTCTRL,Shift_L,V 08:20:22.825097 18385 Service DEBUG parse.py:329: string KEY_LEFTCTRL 08:20:22.825183 18385 Service DEBUG parse.py:329: string Shift_L 08:20:22.825258 18385 Service DEBUG parse.py:329: string V 08:20:22.825318 18385 Service DEBUG parse.py:293: add call to hold_keys with ['KEY_LEFTCTRL', 'Shift_L', 'V'], {} Done 08:20:22.825846 18385 Service DEBUG injector.py:197: Grabbing "/dev/input/event14" because of "<EventCombination (1, 275, 1)>" 08:20:22.826002 18385 Service DEBUG injector.py:217: Grab /dev/input/event14 08:20:22.826340 18386 Service INFO injector.py:300: Starting injecting the preset for "SONiX USB Keyboard" 08:20:22.827289 18386 Service DEBUG context.py:89: Parsing macros 08:20:22.827420 18386 Service DEBUG context.py:101: No macros configured 08:20:22.827792 18386 Service DEBUG injector.py:210: No need to grab /dev/input/event18 08:20:22.844029 18386 Service DEBUG injector.py:210: No need to grab /dev/input/event17 08:20:22.863934 18386 Service DEBUG injector.py:197: Grabbing "/dev/input/event15" because of "<EventCombination (1, 58, 1)>" 08:20:22.864207 18386 Service DEBUG injector.py:217: Grab /dev/input/event15 un9bot@ms1 ~ 08:20:22.995032 18385 Service DEBUG numlock.py:65: numlockx not found 08:20:22.995446 18385 Service DEBUG consumer_control.py:85: Starting to listen for events from /dev/input/event14, fd 26 08:20:22.995595 18386 Service DEBUG numlock.py:65: numlockx not found 08:20:22.996020 18386 Service DEBUG consumer_control.py:85: Starting to listen for events from /dev/input/event15, fd 30 08:20:24.631770 18386 Service DEBUG keycode_mapper.py:540: maps to (119, keyboard) ······· ((1, 58, 1)) 08:20:24.743256 18386 Service DEBUG keycode_mapper.py:455: releasing (119, keyboard) ····· ((1, 58, 0)) 08:20:25.351620 18386 Service DEBUG keycode_mapper.py:540: maps to (119, keyboard) ······· ((1, 58, 1)) 08:20:25.447734 18386 Service DEBUG keycode_mapper.py:455: releasing (119, keyboard) ····· ((1, 58, 0)) 08:20:26.111834 18386 Service DEBUG keycode_mapper.py:540: maps to (119, keyboard) ······· ((1, 58, 1))
Testing ... (interrupt to exit) Event: time 1675142783.592432, type 1 (EV_KEY), code 119 (KEY_PAUSE), value 1 Event: time 1675142783.592432, -------------- SYN_REPORT ------------ Event: time 1675142783.703691, type 1 (EV_KEY), code 119 (KEY_PAUSE), value 0 Event: time 1675142783.703691, -------------- SYN_REPORT ------------