Help with input-remapper

Hey, folks. I’m having some issues with the input remapper app.

I started it from the terminal and this is what I got -

input-remapper-gtk
input-remapper-gtk 2.0.1 568f56cdb438f4ad6db9e96b2900d1228ea736ee https://github.com/sezanzeb/input-remapper
python-evdev 1.7.1
/usr/lib/python3.12/site-packages/inputremapper/gui/messages/message_data.py:45: SyntaxWarning: invalid escape sequence ‘\d’
all_matches = list(re.finditer(“(\d+, )+”, string))
/usr/lib/python3.12/site-packages/inputremapper/gui/controller.py:304: SyntaxWarning: invalid escape sequence ‘\d’
match = re.search(" copy \d$", name)
Done
Connected to the service
Loaded config from “/home/branja/.config/input-remapper-2/config.json”
WARNING: HandlerDisabled entry failed: “nothing connected to <bound method CodeEditor._on_gtk_changed of <inputremapper.gui.components.editor.CodeEditor object at 0x75e13d932390>>”
WARNING: HandlerDisabled exit failed: “nothing connected to <bound method CodeEditor._on_gtk_changed of <inputremapper.gui.components.editor.CodeEditor object at 0x75e13d932390>>”
Found “Sleep Button”, “Video Bus”, “AT Translated Set 2 keyboard”, “SYNA30AF:00 06CB:CE07 Mouse”, “Wireless hotkeys”, “XiaoMi Mi Wireless Mouse”, “V:NO_NO_NONE Fantech Leviosa”, “HP WMI hotkeys”
Loading group “XiaoMi Mi Wireless Mouse”
Traceback (most recent call last):
File “/usr/lib/python3.12/site-packages/inputremapper/gui/reader_client.py”, line 147, in _read
self._update_groups(message_body)
File “/usr/lib/python3.12/site-packages/inputremapper/gui/reader_client.py”, line 292, in _update_groups
self.publish_groups()
File “/usr/lib/python3.12/site-packages/inputremapper/gui/reader_client.py”, line 282, in publish_groups
self.message_broker.publish(GroupsData(groups))
File “/usr/lib/python3.12/site-packages/inputremapper/gui/messages/message_broker.py”, line 66, in publish
self._publish_all()
File “/usr/lib/python3.12/site-packages/inputremapper/gui/messages/message_broker.py”, line 91, in _publish_all
self._publish(*self._messages.popleft())
File “/usr/lib/python3.12/site-packages/inputremapper/gui/messages/message_broker.py”, line 80, in _publish
listener(data)
File “/usr/lib/python3.12/site-packages/inputremapper/gui/controller.py”, line 131, in _on_groups_changed
self.load_group(group_key)
File “/usr/lib/python3.12/site-packages/inputremapper/gui/controller.py”, line 480, in load_group
self.data_manager.load_group(group_key)
File “/usr/lib/python3.12/site-packages/inputremapper/gui/data_manager.py”, line 305, in load_group
self.publish_injector_state()
File “/usr/lib/python3.12/site-packages/inputremapper/gui/data_manager.py”, line 158, in publish_injector_state
self.message_broker.publish(InjectorStateMessage(self.get_state()))
^^^^^^^^^^^^^^^^
File “/usr/lib/python3.12/site-packages/inputremapper/gui/data_manager.py”, line 578, in get_state
return self._daemon.get_state(self.active_group.key)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/lib/python3.12/site-packages/pydbus/proxy_method.py”, line 72, in call
ret = instance._bus.con.call_sync(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
gi.repository.GLib.GError: g-dbus-error-quark: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name is not activatable (2)

Does anyone know what went wrong? Why isn’t it working?

Did you install and start the service?

yay -S input-remapper-git
sudo systemctl enable --now input-remapper

Yes, but it’s still the same. :confused:
I even restarted the service and also, stopped and started it several times.

2 Likes

I downloaded it to see how it would go for me.

The first time I ran it from the terminal it spawned a gui input box asking for my password. I gave it and got the same error you did. It didn’t launch. I launched it once from the desktop file and it asked for my password again, but this time the gui successfully launched.

The third time I launched it from the terminal it asked for my password once more and it threw threw the same error, but the gui still launched.

The GUI launches for me as well, but the app doesn’t work (it works on any other OS I tried so far, and it used to work on Arch/Endeavour OS).
I just don’t know if it’s a me-only problem or a package issue…

What’s the contents of that desktop file?

Update: Patched glib2 is available in official repo.


There are bug reports pointing to issues with the current glib2 version (not only with input-remapper).

Roll back glib2 to 2.82.2 and give it a try. There’s also a patched glib2 in core-testing, which works here too.

1 Like

Seems to be working. Thanks a lot everyone!
I can use input-remapper again

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.