Skip to content
This repository has been archived by the owner on Nov 1, 2021. It is now read-only.

Inputs dead on resume/disconnect from external display #3273

Open
J0nnyMak0 opened this issue Oct 19, 2021 · 6 comments
Open

Inputs dead on resume/disconnect from external display #3273

J0nnyMak0 opened this issue Oct 19, 2021 · 6 comments

Comments

@J0nnyMak0
Copy link
Contributor

J0nnyMak0 commented Oct 19, 2021

I've been encountering this odd issue for a while now. Every once in a while, after resume from suspend (closing and reopening the lid), either my trackpad or keyboard or both are disabled. Going through another suspend-resume cycle usually fixes the issue and I get my inputs back. There is nothing in dmesg or journal. I'm attaching the part of the log corresponding to the problem resume followed by the suspend-resume cycle that fixed the issue. It seems to happen more frequently when I suspend after disconnecting from external monitors, but I think I've also seen it happen without external monitors being in the picture.

dead_input.log


wlroots has migrated to gitlab.freedesktop.org. This issue has been moved to:

https://gitlab.freedesktop.org/wlroots/wlroots/-/issues/3273

@emersion
Copy link
Member

It would be helpful to get a log of sudo libinput list-devices when all inputs are dead.

@J0nnyMak0
Copy link
Contributor Author

It would be helpful to get a log of sudo libinput list-devices when all inputs are dead.

Thanks. Will do next time, maybe by connecting an external keyboard.

@J0nnyMak0
Copy link
Contributor Author

J0nnyMak0 commented Oct 26, 2021

I attached external keyboard and mouse after the latest occurrence of the issue. Attached is the list of inputs with the laptop's built-in keyboard dead but touchpad working.
inputs.txt

And here are the sway inputs:

Input device: Logitech MX Master
  Type: Mouse
  Identifier: 1133:16449:Logitech_MX_Master
  Product ID: 16449
  Vendor ID: 1133
  Libinput Send Events: enabled

Input device: Logitech MX Master
  Type: Keyboard
  Identifier: 1133:16449:Logitech_MX_Master
  Product ID: 16449
  Vendor ID: 1133
  Active Keyboard Layout: English (US)
  Libinput Send Events: enabled

Input device: HID 05f3:0007 System Control
  Type: Keyboard
  Identifier: 1523:7:HID_05f3:0007_System_Control
  Product ID: 7
  Vendor ID: 1523
  Active Keyboard Layout: English (US)
  Libinput Send Events: enabled

Input device: HID 05f3:0007
  Type: Keyboard
  Identifier: 1523:7:HID_05f3:0007
  Product ID: 7
  Vendor ID: 1523
  Active Keyboard Layout: English (programmer Dvorak)
  Libinput Send Events: enabled

Input device: HID 05f3:0007 Consumer Control
  Type: Keyboard
  Identifier: 1523:7:HID_05f3:0007_Consumer_Control
  Product ID: 7
  Vendor ID: 1523
  Active Keyboard Layout: English (US)
  Libinput Send Events: enabled

Input device: SynPS/2 Synaptics TouchPad
  Type: Touchpad
  Identifier: 2:7:SynPS/2_Synaptics_TouchPad
  Product ID: 7
  Vendor ID: 2
  Libinput Send Events: enabled

@emersion
Copy link
Member

Hm, and does sudo libinput debug-events show the events normally while Sway doesn't?

@J0nnyMak0
Copy link
Contributor Author

Hm, and does sudo libinput debug-events show the events normally while Sway doesn't?

Yes, that is correct. sudo libinput debug-events registers key presses on the internal keyboard that has no effect in sway.

@J0nnyMak0
Copy link
Contributor Author

FWIW, this just happened when I disconnected my external monitors. No suspend/resume cycle involved this time. I'll change the title to reflect the same.

@J0nnyMak0 J0nnyMak0 changed the title Inputs dead on resume Inputs dead on resume/disconnect from external display Oct 27, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Development

No branches or pull requests

2 participants