Trigger a key combo on Presses, not after Presses+Release
https://github.com/sezanzeb/input-remapper/discussions/1072 I had a conversation on discord claiming that his similar setup work as it trigger immediately after presses. So I wonder if there is something wrong with my setup here.
Sorry if it's duplicate issue, I cant find similar issue with my wording.
When mapping, for example, the "a" key as input to "b" as output, then the "b" will appear once "a" is pressed down.
If this doesn't behave this way for you, then there is something (maybe input-remapper, maybe something else) broken on your system. The screenshot in https://github.com/sezanzeb/input-remapper/discussions/1072 looks fine.
I have never observed the behavior that you described on my systems.
Hm... To figure that one out, you'll have to play around with the bebug logs of sudo pkill -f input-remapper && sudo input-remapper-reader-service -d and sudo evtest. There is the possibility that it's just somehow broken due to peculiarities of your linux distro.
When mapping, for example, the "a" key as input to "b" as output, then the "b" will appear once "a" is pressed down.
If this doesn't behave this way for you, then there is something (maybe input-remapper, maybe something else) broken on your system. The screenshot in #1072 looks fine.
I have never observed the behavior that you described on my systems.
Hm... To figure that one out, you'll have to play around with the bebug logs of
sudo pkill -f input-remapper && sudo input-remapper-reader-service -dandsudo evtest. There is the possibility that it's just somehow broken due to peculiarities of your linux distro.
Hello, Thanks for replying, even though you not actively maintaining this repo anymore:)
As you already say, this is only ME problem, I ask another person with the same setup and their behaviour is normal (which is like you said, when "a" is press "b" will appear). Mine was "a" press + released, only then "b" appear.
19:32:35.262953 35701 reader-service DEBUG logger.py:294: Using rich.traceback 19:32:35.291525 35701 reader-service DEBUG data.py:118: Found data at "/usr/share/input-remapper" 19:32:35.302032 35701 reader-service INFO paths.py:72: Creating dir "/tmp/input-remapper-pilite" 19:32:35.302333 35701 reader-service DEBUG pipe.py:70: Creating new pipe for "/tmp/input-remapper-pilite/reader-results" 19:32:35.302544 35701 reader-service DEBUG pipe.py:70: Creating new pipe for "/tmp/input-remapper-pilite/reader-commands" 19:32:35.302936 35701 reader-service DEBUG reader_service.py:154: Discovering initial groups 19:32:35.303231 35701 reader-service DEBUG groups.py:354: Discovering device paths 19:32:35.303761 35701 reader-service DEBUG groups.py:391: "Lid Switch" has no useful capabilities 19:32:35.313829 35701 reader-service DEBUG groups.py:402: Found unknown "Sleep Button" at "/dev/input/event1", hash "9cfc19c3c931a9d205fc3fa9d159a97e", key "25_0_3_PNP0C0E" 19:32:35.338890 35701 reader-service DEBUG groups.py:402: Found keyboard "AT Translated Set 2 keyboard" at "/dev/input/event4", hash "0df5be1d762f356bd1ae2648f339783d", key "17_1_1_isa0060" 19:32:35.344868 35701 reader-service DEBUG groups.py:402: Found keyboard "Logitech USB Receiver" at "/dev/input/event5", hash "e9a67299d19ec96ab59683858735f84f", key "3_1133_50504_usb-0000:00:14.0-4" 19:32:35.357703 35701 reader-service DEBUG groups.py:402: Found mouse "Logitech USB Receiver Mouse" at "/dev/input/event6", hash "3053316a9883deb9b2680fdf4ec5566b", key "3_1133_50504_usb-0000:00:14.0-4" 19:32:35.367777 35701 reader-service DEBUG groups.py:402: Found unknown "Logitech USB Receiver Consumer Control" at "/dev/input/event7", hash "e76f1b711639b821aba73daa6135a79b", key "3_1133_50504_usb-0000:00:14.0-4" 19:32:35.373687 35701 reader-service DEBUG groups.py:402: Found unknown "Logitech USB Receiver System Control" at "/dev/input/event8", hash "1f8e8b04edaf430879ea6daab2439b75", key "3_1133_50504_usb-0000:00:14.0-4" 19:32:35.380784 35701 reader-service DEBUG groups.py:402: Found unknown "Logitech USB Receiver" at "/dev/input/event9", hash "cc2310f50fc5ef2c9d4ba2b520dd6e3c", key "3_1133_50504_usb-0000:00:14.0-4" 19:32:35.397707 35701 reader-service DEBUG groups.py:402: Found touchpad "Logitech USB Receiver" at "/dev/input/event10", hash "a26093d551eefee9502869385d05d770", key "3_1133_50504_usb-0000:00:14.0-4" 19:32:35.407752 35701 reader-service DEBUG groups.py:402: Found keyboard "Logitech USB Receiver" at "/dev/input/event11", hash "7f2969d31f13eb98fd9f8485092848ed", key "3_1133_50504_usb-0000:00:14.0-5.1" 19:32:35.421761 35701 reader-service DEBUG groups.py:402: Found mouse "Logitech USB Receiver Mouse" at "/dev/input/event12", hash "3053316a9883deb9b2680fdf4ec5566b", key "3_1133_50504_usb-0000:00:14.0-5.1" 19:32:35.436837 35701 reader-service DEBUG groups.py:402: Found unknown "Logitech USB Receiver Consumer Control" at "/dev/input/event13", hash "e76f1b711639b821aba73daa6135a79b", key "3_1133_50504_usb-0000:00:14.0-5.1" 19:32:35.445749 35701 reader-service DEBUG groups.py:402: Found unknown "Logitech USB Receiver System Control" at "/dev/input/event14", hash "1f8e8b04edaf430879ea6daab2439b75", key "3_1133_50504_usb-0000:00:14.0-5.1" 19:32:35.458868 35701 reader-service DEBUG groups.py:402: Found unknown "MSI WMI hotkeys" at "/dev/input/event15", hash "b716a3b4ec76de5056579772e60b58d8", key "25_0_0_wmi" 19:32:35.467848 35701 reader-service DEBUG groups.py:391: "gpio-keys" has no useful capabilities 19:32:35.494849 35701 reader-service DEBUG groups.py:402: Found unknown "Video Bus" at "/dev/input/event17", hash "97ce48b026f7f5a939d64ade3b570921", key "25_0_6_LNXVIDEO" 19:32:35.502757 35701 reader-service DEBUG groups.py:402: Found unknown "Video Bus" at "/dev/input/event18", hash "97ce48b026f7f5a939d64ade3b570921", key "25_0_6_LNXVIDEO" 19:32:35.509678 35701 reader-service DEBUG groups.py:391: "HDA Intel PCH Mic" has no useful capabilities 19:32:35.522782 35701 reader-service DEBUG groups.py:391: "HDA Intel PCH Headphone" has no useful capabilities 19:32:35.533755 35701 reader-service DEBUG groups.py:391: "HDA Intel PCH HDMI/DP,pcm=3" has no useful capabilities 19:32:35.545678 35701 reader-service DEBUG groups.py:391: "HDA Intel PCH HDMI/DP,pcm=7" has no useful capabilities 19:32:35.550681 35701 reader-service DEBUG groups.py:391: "HDA Intel PCH HDMI/DP,pcm=8" has no useful capabilities 19:32:35.561020 35701 reader-service DEBUG groups.py:402: Found keyboard "solaar-keyboard" at "/dev/input/event28", hash "24e2acfd0a5445afc99394ee68a96767", key "3_1_1_py-evdev-uinput" 19:32:35.567893 35701 reader-service DEBUG groups.py:402: Found graphics-tablet "RustDesk UInput Keyboard" at "/dev/input/event24", hash "e825c53c9e4af16e6346cfc67abfb341", key "3_4660_22136_-" 19:32:35.575747 35701 reader-service DEBUG groups.py:402: Found mouse "mouce-library-fake-mouse" at "/dev/input/event25", hash "f28806c2b067c370d8da4c9045b7281e", key "3_8738_13107_-" 19:32:35.584720 35701 reader-service DEBUG groups.py:402: Found keyboard "Logi K650" at "/dev/input/event29", hash "d0961f79ed31aec4e48722b244a0f7de", key "5_1133_45935_40:ec:99:c7:3f:5c" 19:32:35.585107 35701 reader-service INFO groups.py:481: Found "Sleep Button", "AT Translated Set 2 keyboard", "Logitech USB Receiver", "Logitech USB Receiver 2", "MSI WMI hotkeys", "Video Bus", "solaar-keyboard", "RustDesk UInput Keyboard", "mouce-library-fake-mouse", "Logi K650" 19:32:35.585164 35701 reader-service DEBUG reader_service.py:161: Sending groups 19:32:35.585317 35701 reader-service DEBUG reader_service.py:193: Waiting for commands
Here is my log, and I think this looks pretty normal. and my sudo evtest:
Event: time 1741318543.509003, type 4 (EV_MSC), code 4 (MSC_SCAN), value 90005 Event: time 1741318543.509003, type 1 (EV_KEY), code 276 (BTN_EXTRA), value 1 Event: time 1741318543.509003, -------------- SYN_REPORT ------------ Event: time 1741318543.516882, type 4 (EV_MSC), code 4 (MSC_SCAN), value 90005 Event: time 1741318543.516882, type 1 (EV_KEY), code 276 (BTN_EXTRA), value 0
This is what I suspected: when I press evtest wasnt give me type 1 (EV_KEY), code 276 (BTN_EXTRA), value 1 at all. It wait until I released the button only then it pop up both press+release event: type 1 (EV_KEY), code 276 (BTN_EXTRA), value 1 and type 1 (EV_KEY), code 276 (BTN_EXTRA), value 0
My left and right key behave normally tho:
Event: time 1741318780.088054, type 4 (EV_MSC), code 4 (MSC_SCAN), value 90001 Event: time 1741318780.088054, type 1 (EV_KEY), code 272 (BTN_LEFT), value 1 Event: time 1741318780.088054, -------------- SYN_REPORT ------------ Event: time 1741318780.193158, type 4 (EV_MSC), code 4 (MSC_SCAN), value 90001 Event: time 1741318780.193158, type 1 (EV_KEY), code 272 (BTN_LEFT), value 0 Event: time 1741318780.193158, -------------- SYN_REPORT ------------ Event: time 1741318780.748154, type 4 (EV_MSC), code 4 (MSC_SCAN), value 90002 Event: time 1741318780.748154, type 1 (EV_KEY), code 273 (BTN_RIGHT), value 1 Event: time 1741318780.748154, -------------- SYN_REPORT ------------ Event: time 1741318780.845007, type 4 (EV_MSC), code 4 (MSC_SCAN), value 90002 Event: time 1741318780.845007, type 1 (EV_KEY), code 273 (BTN_RIGHT), value 0 Event: time 1741318780.845007, -------------- SYN_REPORT ------------ Event: time 1741318784.197948, type 4 (EV_MSC), code 4 (MSC_SCAN), value 90001 Event: time 1741318784.197948, type 1 (EV_KEY), code 272 (BTN_LEFT), value 1 Event: time 1741318784.197948, -------------- SYN_REPORT ------------ Event: time 1741318784.317949, type 4 (EV_MSC), code 4 (MSC_SCAN), value 90001 Event: time 1741318784.317949, type 1 (EV_KEY), code 272 (BTN_LEFT), value 0 Event: time 1741318784.317949, -------------- SYN_REPORT ------------
press and release in this case show up seperately
Hope my words isnt too confusing. Thank you