Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

input-remapper-service causes system to freeze on resume from hybrid suspend #948

Open
mdpenguin opened this issue Aug 30, 2024 · 0 comments

Comments

@mdpenguin
Copy link

mdpenguin commented Aug 30, 2024

Issue: The computer freezes along with all input devices when resuming from hybrid suspend.
Versions: 1.4 & 2.0.1
OS: Linux Mint 21.3 and Linux Mint 22
Kernel: This started happening with kernel 6.5 and continues to be a problem with 6.8.
Replication steps:

  • Perform fresh install of Linux Mint with a swap partition and run updates
  • Run systemctl hybrid-sleep and note that system enters hybrid suspend without issue
  • Wake system and note that it resumes without issue
  • Install input-remapper then configure and apply a profile
  • Run systemctl hybrid-sleep and note that system enters hybrid suspend without issue
  • Wake system and note that it freezes

There isn't any logging that occurs when freezing upon resume that can be used for troubleshooting. Oddly, this only happens with hybrid suspend and not with suspend or hibernate individually. You can find a discussion of this on Linux Mint's forum here.

To help people understand your problems, run sudo pkill -f input-remapper && input-remapper-gtk -d, reproduce the problem and then share the output here. (note: home directory path replaced with synonym ~)

19:17:32.582438 73314 GUI INFO logger.py:225: input-remapper-gtk 1.4.0  https://github.com/sezanzeb/input-remapper
19:17:32.582563 73314 GUI INFO logger.py:233: python-evdev 1.4.0
19:17:32.582621 73314 GUI 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!
19:17:32.582673 73314 GUI DEBUG input-remapper-gtk:67: Using locale directory: /usr/share/input-remapper/lang
19:17:32.586155 73314 GUI DEBUG pipe.py:62: Creating new pipe for "/tmp/input-remapper-mdpenguin/results"
19:17:32.586745 73314 GUI DEBUG pipe.py:62: Creating new pipe for "/tmp/input-remapper-mdpenguin/commands"
19:17:32.596015 73314 GUI INFO config.py:247: Loaded config from "~/.config/input-remapper/config.json"
19:17:32.597815 73314 GUI INFO daemon.py:207: Starting the service
19:17:32.597906 73314 GUI DEBUG daemon.py:218: Running `pkexec input-remapper-control --command start-daemon  -d`
19:17:36.158272 73323 Control INFO logger.py:289: Starting logging to "/var/log/input-remapper-control"
19:17:36.161280 73323 Control DEBUG input-remapper-control:218: Call for "['/usr/bin/input-remapper-control', '--command', 'start-daemon', '-d']"
19:17:36.174189 73323 Control INFO input-remapper-control:248: Done
19:17:36.402561 73314 GUI DEBUG daemon.py:228: Attempt 1 to reach the service failed:
19:17:36.402689 73314 GUI DEBUG daemon.py:229: "g-dbus-error-quark: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name inputremapper.Control was not provided by any .service files (2)"
19:17:36.422553 73331 Service INFO logger.py:289: Starting logging to "/var/log/input-remapper"
19:17:36.425468 73331 Service DEBUG daemon.py:166: Creating daemon
19:17:36.425688 73331 Service INFO config.py:247: Loaded config from "~/.config/input-remapper/config.json"
19:17:36.425808 73331 Service DEBUG shared_dict.py:57: Starting SharedDict process
19:17:36.427695 73331 Service DEBUG global_uinputs.py:49: creating UInput device: 'input-remapper keyboard'
19:17:36.428419 73332 Service DEBUG shared_dict.py:63: SharedDict process started
19:17:36.535151 73331 Service DEBUG global_uinputs.py:49: creating UInput device: 'input-remapper gamepad'
19:17:36.603638 73314 GUI DEBUG daemon.py:228: Attempt 2 to reach the service failed:
19:17:36.603732 73314 GUI DEBUG daemon.py:229: "g-dbus-error-quark: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name inputremapper.Control was not provided by any .service files (2)"
19:17:36.638953 73331 Service DEBUG global_uinputs.py:49: creating UInput device: 'input-remapper mouse'
19:17:36.757735 73331 Service DEBUG daemon.py:254: Running daemon
19:17:36.806209 73314 GUI DEBUG daemon.py:237: Telling service about "~/.config/input-remapper"
19:17:36.807544 73331 Service INFO config.py:247: Loaded config from "~/.config/input-remapper/config.json"
19:17:36.808155 73314 GUI DEBUG user_interface.py:240: Running `pkexec input-remapper-control --command helper  -d`
19:17:40.101621 73409 Control INFO logger.py:289: Starting logging to "/var/log/input-remapper-control"
19:17:40.104672 73409 Control DEBUG input-remapper-control:218: Call for "['/usr/bin/input-remapper-control', '--command', 'helper', '-d']"
19:17:40.118555 73409 Control INFO input-remapper-control:248: Done
19:17:40.151632 73314 GUI DEBUG global_uinputs.py:69: creating fake UInput device: 'input-remapper keyboard'
19:17:40.151728 73314 GUI DEBUG global_uinputs.py:69: creating fake UInput device: 'input-remapper gamepad'
19:17:40.151786 73314 GUI DEBUG global_uinputs.py:69: creating fake UInput device: 'input-remapper mouse'
19:17:40.325476 73314 GUI DEBUG groups.py:336: Discovering device paths
19:17:40.326259 73314 GUI DEBUG groups.py:377: Found "3_1_1_input-remapper", "/dev/input/event19", "input-remapper gamepad", type: gamepad
19:17:40.326775 73314 GUI INFO groups.py:448: Found "input-remapper gamepad"
19:17:40.366907 73580 GUI-Helper DEBUG pipe.py:79: Using existing pipe for "/tmp/input-remapper-mdpenguin/results"
19:17:40.367129 73580 GUI-Helper DEBUG pipe.py:79: Using existing pipe for "/tmp/input-remapper-mdpenguin/commands"
19:17:40.369317 73580 GUI-Helper DEBUG groups.py:336: Discovering device paths
19:17:40.370177 73580 GUI-Helper DEBUG groups.py:377: Found "25_0_3_PNP0C0E", "/dev/input/event0", "Sleep Button", type: unknown
19:17:40.371119 73580 GUI-Helper DEBUG groups.py:377: Found "25_0_6_LNXVIDEO", "/dev/input/event3", "Video Bus", type: unknown
19:17:40.371483 73580 GUI-Helper DEBUG groups.py:377: Found "3_1118_219_usb-0000:00:14.0-3.3", "/dev/input/event4", "Microsoft Natural® Ergonomic Keyboard 4000", type: keyboard
19:17:40.371941 73580 GUI-Helper DEBUG groups.py:377: Found "3_1118_219_usb-0000:00:14.0-3.3", "/dev/input/event5", "Microsoft Natural® Ergonomic Keyboard 4000", type: keyboard
19:17:40.372407 73580 GUI-Helper DEBUG groups.py:377: Found "3_1133_16495_usb-0000:00:14.0-3.1", "/dev/input/event6", "Logitech MX Ergo", type: mouse
19:17:40.374643 73580 GUI-Helper DEBUG groups.py:377: Found "3_1_1_input-remapper", "/dev/input/event18", "input-remapper keyboard", type: keyboard
19:17:40.375000 73580 GUI-Helper DEBUG groups.py:377: Found "3_1_1_input-remapper", "/dev/input/event19", "input-remapper gamepad", type: gamepad
19:17:40.375202 73580 GUI-Helper DEBUG groups.py:377: Found "3_1_1_input-remapper", "/dev/input/event20", "input-remapper mouse", type: mouse
19:17:40.375623 73580 GUI-Helper INFO groups.py:448: Found "Sleep Button", "Video Bus", "Microsoft Natural® Ergonomic Keyboard 4000", "Logitech MX Ergo", "input-remapper mouse"
19:17:40.395328 73314 GUI DEBUG reader.py:94: Received 5 devices
19:17:40.396068 73314 GUI DEBUG presets.py:137: The newest preset is "Microsoft Natural® Ergonomic Keyboard 4000", "caps lock"
19:17:40.397773 73314 GUI DEBUG user_interface.py:581: Selecting device "Microsoft Natural® Ergonomic Keyboard 4000"
19:17:40.397940 73314 GUI DEBUG user_interface.py:378: "Microsoft Natural® Ergonomic Keyboard 4000" presets: "caps lock"
19:17:40.398145 73314 GUI DEBUG user_interface.py:684: Selecting preset "caps lock"
19:17:40.399316 73314 GUI INFO mapping.py:177: Loading preset from "~/.config/input-remapper/presets/Microsoft Natural® Ergonomic Keyboard 4000/caps lock.json"
19:17:40.400845 73314 GUI DEBUG reader.py:189: Sending start msg to helper for "Microsoft Natural® Ergonomic Keyboard 4000"
19:17:40.401054 73314 GUI DEBUG reader.py:205: Clearing reader
19:17:40.401286 73580 GUI-Helper DEBUG helper.py:100: Received command "Microsoft Natural® Ergonomic Keyboard 4000"
19:17:40.401717 73580 GUI-Helper DEBUG helper.py:155: Starting reading keycodes from "Microsoft Natural® Ergonomic Keyboard 4000", "Microsoft Natural® Ergonomic Keyboard 4000"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant