sezanzeb / input-remapper

🎮 ⌨ An easy to use tool to change the behaviour of your input devices.
GNU General Public License v3.0
3.56k stars 151 forks source link

Errors thrown when attempting to map keys: #833

Open simple-coder-x opened 6 months ago

simple-coder-x commented 6 months ago

[user@nixos:~]$ sudo -E input-remapper-gtk [sudo] password for user: input-remapper-gtk 2.0.1 2.0.1 https://github.com/sezanzeb/input-remapper python-evdev 1.6.1 Done Connected to the service Loaded config from "/home/user/.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 0x7f5653e55390>>" WARNING: HandlerDisabled exit failed: "nothing connected to <bound method CodeEditor._on_gtk_changed of <inputremapper.gui.components.editor.CodeEditor object at 0x7f5653e55390>>" Found "ASUS ROG STRIX Go 2.4", "Logitech M705", "BETOP Interactive BETOP T6 For Keyboard & Mouse", "Logitech K350", "Logitech K400 Plus" Found "ASUS ROG STRIX Go 2.4", "Logitech M705", "BETOP Interactive BETOP T6 For Keyboard & Mouse", "Logitech K350", "Logitech K400 Plus" Loading group "Logitech K350" Loading preset "coding-keymapping" Loading preset from "/home/user/.config/input-remapper-2/presets/Logitech K350/coding-keymapping.json" Loading group "Logitech K350" Loading preset "coding-keymapping" Loading preset from "/home/user/.config/input-remapper-2/presets/Logitech K350/coding-keymapping.json" Loading preset "coding-keymapping" Loading preset from "/home/user/.config/input-remapper-2/presets/Logitech K350/coding-keymapping.json" Loading preset "coding-keymapping" Loading preset from "/home/user/.config/input-remapper-2/presets/Logitech K350/coding-keymapping.json" WARNING: Unknown type for InputConfig unknown ERROR: Call to xmodmap -pke failed with "Command '['xmodmap', '-pke']' returned non-zero exit status 1." ERROR: Call to xmodmap -pke failed with "Command '['xmodmap', '-pke']' returned non-zero exit status 1."

Moanrisy commented 2 months ago

I have same problem, can't map or recording the input devices. But renaming the preset working just fine

:45:50.410903 30664 GUI INFO data_manager.py:378: Moving "/home/moanrisy/.config/input-remapper-2/presets/BY Tech Gaming Keyboard/new preset.json" to "/home/moanrisy/.config/input-remapper-2/presets/BY Tech Gaming Keyboard/assdfasdfqq.json" 07:45:50.411656 30664 GUI DEBUG message_broker.py:76: from data_manager.py:100: Signal=group: GroupData(group_key='BY Tech Gaming Keyboard', presets=('assdfasdfqq',)) 07:45:50.413263 30664 GUI DEBUG message_broker.py:76: from data_manager.py:111: Signal=preset: PresetData(name='assdfasdfqq', mappings=[MappingData(input_combination=<InputCombination (<InputConfig (99, 99) unknown, 99, None, at 0x7f6050c94c70>) at 0x7f605b3a9740>, target_uinput='keyboard', output_symbol=None, output_type=None, output_code=None, name=None, mapping_type=None, release_combination_keys=True, macro_key_sleep_ms=0, deadzone=0.1, gain=1.0, expo=0.0, rel_rate=60, rel_to_abs_input_cutoff=2, release_timeout=0.05, force_release_timeout=False, message_type=<MessageType.mapping: 'mapping'>)], autoload=False) 07:45:50.414326 30664 GUI DEBUG message_broker.py:97: adding new Listener for MessageType.mapping: <bound method MappingSelectionLabel._on_mapping_changed of <MappingSelectionLabel for Combination (InputConfig unknown) as Empty Mapping at 0x7f605b248340>> 07:45:50.414404 30664 GUI DEBUG message_broker.py:97: adding new Listener for MessageType.combination_update: <bound method MappingSelectionLabel._on_combination_update of <MappingSelectionLabel for Combination (InputConfig unknown) as Empty Mapping at 0x7f605b248340>> 07:45:50.415664 30664 GUI DEBUG message_broker.py:76: from data_manager.py:125: Signal=mapping: {'target_uinput': 'keyboard'} 07:45:50.417869 30664 GUI DEBUG message_broker.py:76: from data_manager.py:136: Signal=selected_event: InputConfig unknown 07:45:50.418050 30664 GUI DEBUG message_broker.py:76: from data_manager.py:136: Signal=selected_event: InputConfig unknown 07:45:50.418211 30664 GUI DEBUG message_broker.py:76: from controller.py:720: Signal=status_msg: StatusData(ctx_id=5, msg='"Empty Mapping": The input specifies a key or macro input, but no macro or key is programmed.', tooltip='The input specifies a key or macro input, but no macro or key is programmed.') 07:45:50.418352 30664 GUI DEBUG message_broker.py:76: from controller.py:720: Signal=status_msg: StatusData(ctx_id=5, msg='"Empty Mapping": The input specifies a key or macro input, but no macro or key is programmed.', tooltip='The input specifies a key or macro input, but no macro or key is programmed.')

simple-coderxx commented 1 month ago

@Moanrisy Cool, thanks for taking a look, if you could let me know if you were able to get it working on your end, thanks.

Moanrisy commented 1 month ago

Still not working on me. After some hours I'm giving up and use other alternative software.