input-remapper icon indicating copy to clipboard operation
input-remapper copied to clipboard

Doesn't work in Ubuntu Desktop 20.04

Open DavidATapia opened this issue 2 years ago โ€ข 2 comments

The GUI will load devices but doesn't provide any means to map keys. Ubuntu 20.04 desktop. Doesn't seem like it's ever been tested.

$ input-remapper-gtk -d 20:49:40.666745 105052 GUI INFO logger.py:223: input-remapper-gtk 1.5.0 e31a1b2bc5d23fe13130afcc242063196335399f https://github.com/sezanzeb/input-remapper 20:49:40.666824 105052 GUI INFO logger.py:231: python-evdev 1.3.0 20:49:40.666852 105052 GUI WARNING logger.py:234: 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! 20:49:40.666876 105052 GUI DEBUG input-remapper-gtk:55: Using locale directory: /usr/share/input-remapper/lang 20:49:40.669373 105052 GUI DEBUG pipe.py:62: Creating new pipe for "/tmp/input-remapper-davidtapia/results" 20:49:40.669582 105052 GUI DEBUG pipe.py:62: Creating new pipe for "/tmp/input-remapper-davidtapia/commands" 20:49:40.675855 105052 GUI INFO global_config.py:105: Loaded config from "/home/davidtapia/.config/input-remapper/config.json" 20:49:40.678068 105052 GUI INFO daemon.py:199: Connected to the service 20:49:40.678110 105052 GUI DEBUG daemon.py:235: Telling service about "/home/davidtapia/.config/input-remapper" 20:49:40.679013 105052 GUI DEBUG user_interface.py:246: Running pkexec input-remapper-control --command helper -d 20:49:44.973974 105057 Control DEBUG input-remapper-control:230: Call for "['/usr/bin/input-remapper-control', '--command', 'helper', '-d']" 20:49:44.977898 105057 Control DEBUG input-remapper-control:212: Booting finished 20:49:44.978362 105057 Control INFO input-remapper-control:260: Done 20:49:44.989200 105052 GUI DEBUG global_uinputs.py:80: creating fake UInput device: 'input-remapper keyboard' 20:49:44.989262 105052 GUI DEBUG global_uinputs.py:80: creating fake UInput device: 'input-remapper gamepad' 20:49:44.989286 105052 GUI DEBUG global_uinputs.py:80: creating fake UInput device: 'input-remapper mouse' 20:49:44.989308 105052 GUI DEBUG global_uinputs.py:80: creating fake UInput device: 'input-remapper keyboard + mouse' 20:49:45.078415 105067 GUI-Helper DEBUG pipe.py:79: Using existing pipe for "/tmp/input-remapper-davidtapia/results" 20:49:45.078533 105067 GUI-Helper DEBUG pipe.py:79: Using existing pipe for "/tmp/input-remapper-davidtapia/commands" 20:49:45.078589 105067 GUI-Helper DEBUG helper.py:110: Sending groups 20:49:45.079543 105067 GUI-Helper DEBUG groups.py:337: Discovering device paths 20:49:45.079960 105067 GUI-Helper DEBUG groups.py:378: Found "3_49153_7658_usb-0000:00:14.0-11", "/dev/input/event262", "HID c001:1dea Keyboard", type: keyboard 20:49:45.113631 105052 GUI DEBUG groups.py:337: Discovering device paths 20:49:45.114142 105052 GUI DEBUG groups.py:446: Did not find any input device 20:49:45.686219 105067 GUI-Helper DEBUG groups.py:378: Found "24_1160_4618_i2c-DELL0A69:00", "/dev/input/event16", "DELL0A69:00 0488:120A UNKNOWN", type: unknown 20:49:45.710202 105067 GUI-Helper DEBUG groups.py:378: Found "24_1160_4618_i2c-DELL0A69:00", "/dev/input/event15", "DELL0A69:00 0488:120A Touchpad", type: touchpad 20:49:45.734218 105067 GUI-Helper DEBUG groups.py:378: Found "24_1160_4618_i2c-DELL0A69:00", "/dev/input/event5", "DELL0A69:00 0488:120A Mouse", type: mouse 20:49:45.758216 105067 GUI-Helper DEBUG groups.py:378: Found "25_0_0_-", "/dev/input/event4", "Dell WMI hotkeys", type: unknown 20:49:45.782160 105067 GUI-Helper DEBUG groups.py:378: Found "25_0_0_-", "/dev/input/event3", "Dell Privacy Driver", type: unknown 20:49:45.810204 105067 GUI-Helper DEBUG groups.py:378: Found "25_0_0_-", "/dev/input/event14", "Intel HID 5 button array", type: unknown 20:49:45.842158 105067 GUI-Helper DEBUG groups.py:378: Found "25_0_0_-", "/dev/input/event13", "Intel HID events", type: unknown 20:49:45.870426 105067 GUI-Helper DEBUG groups.py:378: Found "3_1133_8209_usb-0000:00:14.0-13", "/dev/input/event11", "Logitech K520", type: keyboard 20:49:45.886174 105067 GUI-Helper DEBUG groups.py:378: Found "3_1133_16469_usb-0000:00:14.0-13", "/dev/input/event10", "Logitech Wireless Mouse", type: mouse 20:49:45.914293 105067 GUI-Helper DEBUG groups.py:378: Found "30_0_0_DP-2", "/dev/input/event12", "DP-2", type: unknown 20:49:45.930109 105067 GUI-Helper DEBUG groups.py:378: Found "30_0_0_DP-1", "/dev/input/event9", "DP-1", type: unknown 20:49:45.954283 105067 GUI-Helper DEBUG groups.py:378: Found "25_0_6_LNXVIDEO", "/dev/input/event8", "Video Bus", type: unknown 20:49:45.986200 105067 GUI-Helper DEBUG groups.py:378: Found "25_0_6_LNXVIDEO", "/dev/input/event7", "Video Bus", type: unknown 20:49:46.022193 105067 GUI-Helper DEBUG groups.py:378: Found "17_2_1_isa0060", "/dev/input/event6", "PS/2 Generic Mouse", type: unknown 20:49:46.046331 105067 GUI-Helper DEBUG groups.py:378: Found "17_1_1_isa0060", "/dev/input/event2", "AT Translated Set 2 keyboard", type: keyboard 20:49:46.087058 105067 GUI-Helper INFO groups.py:449: Found "HID c001:1dea Keyboard", "DELL0A69:00 0488:120A Mouse", "Dell WMI hotkeys", "Logitech K520", "Logitech Wireless Mouse", "DP-2", "DP-1", "Video Bus", "PS/2 Generic Mouse", "AT Translated Set 2 keyboard" 20:49:46.087697 105067 GUI-Helper DEBUG helper.py:91: Waiting for the first command 20:49:46.090309 105052 GUI DEBUG reader.py:99: Received 10 devices 20:49:46.092423 105052 GUI DEBUG preset.py:379: The newest preset is "Logitech K520", "new preset" 20:49:46.092777 105052 GUI DEBUG user_interface.py:600: Selecting device "Logitech K520" 20:49:46.093067 105052 GUI DEBUG user_interface.py:384: "Logitech K520" presets: "new preset" 20:49:46.093542 105052 GUI DEBUG user_interface.py:714: Selecting preset "new preset" 20:49:46.094486 105052 GUI DEBUG editor.py:322: Disabling the text input 20:49:46.095962 105052 GUI DEBUG editor.py:322: Disabling the text input 20:49:46.097025 105052 GUI INFO preset.py:170: Loading preset from "/home/davidtapia/.config/input-remapper/presets/Logitech K520/new preset.json" 20:49:46.098269 105052 GUI DEBUG editor.py:322: Disabling the text input 20:49:46.098892 105052 GUI DEBUG editor.py:322: Disabling the text input 20:49:46.099749 105052 GUI DEBUG reader.py:190: Sending start msg to helper for "Logitech K520" 20:49:46.099948 105052 GUI DEBUG reader.py:206: Clearing reader 20:49:46.100128 105067 GUI-Helper DEBUG helper.py:103: Starting mainloop 20:49:46.100397 105067 GUI-Helper DEBUG helper.py:117: Received command "Logitech K520" 20:49:46.100560 105067 GUI-Helper DEBUG helper.py:139: No more commands in pipe 20:49:46.100948 105067 GUI-Helper DEBUG helper.py:174: Starting reading keycodes from "Logitech K520" 20:49:54.792170 105052 GUI DEBUG user_interface.py:600: Selecting device "HID c001:1dea Keyboard" 20:49:54.792668 105052 GUI DEBUG user_interface.py:384: "HID c001:1dea Keyboard" presets: "new preset 2", "new preset" 20:49:54.793322 105052 GUI DEBUG user_interface.py:714: Selecting preset "new preset 2" 20:49:54.794174 105052 GUI DEBUG editor.py:322: Disabling the text input 20:49:54.794925 105052 GUI DEBUG editor.py:322: Disabling the text input 20:49:54.795597 105052 GUI INFO preset.py:170: Loading preset from "/home/davidtapia/.config/input-remapper/presets/HID c001:1dea Keyboard/new preset 2.json" 20:49:54.796660 105052 GUI DEBUG editor.py:322: Disabling the text input 20:49:54.797274 105052 GUI DEBUG editor.py:322: Disabling the text input 20:49:54.798035 105052 GUI DEBUG reader.py:190: Sending start msg to helper for "HID c001:1dea Keyboard" 20:49:54.798254 105052 GUI DEBUG reader.py:206: Clearing reader 20:49:54.798485 105067 GUI-Helper DEBUG helper.py:193: Stops reading due to new command 20:49:54.826183 105067 GUI-Helper DEBUG helper.py:117: Received command "HID c001:1dea Keyboard" 20:49:54.826428 105067 GUI-Helper DEBUG helper.py:139: No more commands in pipe 20:49:54.826687 105067 GUI-Helper DEBUG helper.py:174: Starting reading keycodes from "HID c001:1dea Keyboard" 20:49:58.907048 105052 GUI DEBUG reader.py:206: Clearing reader 20:50:18.720625 105052 GUI DEBUG reader.py:162: down ยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยท <InputEvent KEY_VOLUMEDOWN (114) down> 20:50:18.720897 105052 GUI DEBUG reader.py:147: release ยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยท <InputEvent KEY_VOLUMEDOWN (114) up> 20:50:22.072121 105052 GUI DEBUG reader.py:162: down ยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยท <InputEvent KEY_VOLUMEDOWN (114) down> 20:50:22.072422 105052 GUI DEBUG reader.py:147: release ยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยท <InputEvent KEY_VOLUMEDOWN (114) up> 20:50:36.204519 105052 GUI DEBUG reader.py:206: Clearing reader 20:50:38.397518 105052 GUI DEBUG reader.py:162: down ยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยท <InputEvent KEY_VOLUMEDOWN (114) down> 20:50:38.397897 105052 GUI DEBUG reader.py:147: release ยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยท <InputEvent KEY_VOLUMEDOWN (114) up>

DavidATapia avatar Jul 14 '22 00:07 DavidATapia

Can you describe the problem you have in more detail? When you want to create a new mapping you:

  1. select the input device e.g. your keyboard
  2. click on Change Key
  3. press a key and release it again
  4. the input field is automatically selected.
  5. enter your target key or macro

At which step does this not work?

jonasBoss avatar Jul 14 '22 17:07 jonasBoss

I'm having the same problem on Ubuntu 20.04 - I can click on 'change key' which then changes to 'press key'. However pressing keys has 0 effect on anything, the GUI doesn't reflect anything no matter what keys I press.

mzjp2 avatar Aug 25 '22 17:08 mzjp2

I can't reproduce this unfortunately. Please try out the beta branch.

sezanzeb avatar Sep 19 '22 20:09 sezanzeb

Same issue here (Zorin OSย 16.2) and this is my debug log:

18:20:11.308349 24717 reader-service DEBUG reader_service.py:195: Received command "AT Translated Set 2 keyboard"
18:20:11.310340 24717 reader-service DEBUG event_reader.py:190: Starting to listen for events from /dev/input/event3, fd 17
18:20:11.310544 24717 reader-service DEBUG event_reader.py:108: read loop stopped
Task exception was never retrieved
future: <Task finished name='Task-5' coro=<Event.wait() done, defined at /usr/lib/python3.8/asyncio/locks.py:296> exception=RuntimeError("Task <Task pending name='Task-5' coro=<Event.wait() running at /usr/lib/python3.8/asyncio/locks.py:309> cb=[_wait.<locals>._on_completion() at /usr/lib/python3.8/asyncio/tasks.py:518]> got Future <Future pending> attached to a different loop")>
Traceback (most recent call last):
  File "/usr/lib/python3.8/asyncio/locks.py", line 309, in wait
    await fut
RuntimeError: Task <Task pending name='Task-5' coro=<Event.wait() running at /usr/lib/python3.8/asyncio/locks.py:309> cb=[_wait.<locals>._on_completion() at /usr/lib/python3.8/asyncio/tasks.py:518]> got Future <Future pending> attached to a different loop
18:20:11.310839 24717 reader-service INFO event_reader.py:206: read loop for /dev/input/event3 stopped
18:20:36.493463 24697 GUI DEBUG controller.py:615: Stopping Recording Keys
18:20:36.493663 24697 GUI DEBUG reader_client.py:185: Stopping recorder.
18:20:36.493776 24697 GUI DEBUG reader_client.py:120: Sending "stop-reading" to ReaderService
18:20:36.494132 24697 GUI DEBUG message_broker.py:76: from reader_client.py:196: Signal=recording_finished: Signal: MessageType.recording_finished
18:20:36.494252 24717 reader-service DEBUG reader_service.py:195: Received command "stop-reading"

marcoleder avatar Mar 26 '23 16:03 marcoleder

any update?

marcoleder avatar Apr 01 '23 15:04 marcoleder

any update?

upgrade to a newer ubuntu version (22.04 LTS or 23.04) and install the newest python version. That might make it work, see https://github.com/sezanzeb/input-remapper/issues/676

sezanzeb avatar Aug 08 '23 15:08 sezanzeb

Or install 1.5.1, if you don't want to upgrade ubuntu https://github.com/sezanzeb/input-remapper/releases/tag/1.5.1

sezanzeb avatar Aug 17 '23 07:08 sezanzeb

Thank you for pointing me in the right direction, 1.5.1 works like a charm, many thanks!ย 

marcoleder avatar Aug 24 '23 09:08 marcoleder