| Summary: | kwin_x11 hangs when USB keyboard unplugged while laptop suspended | ||
|---|---|---|---|
| Product: | [Plasma] kwin | Reporter: | magiblot |
| Component: | general | Assignee: | KWin default assignee <kwin-bugs-null> |
| Status: | RESOLVED UPSTREAM | ||
| Severity: | normal | ||
| Priority: | NOR | ||
| Version First Reported In: | 5.26.5 | ||
| Target Milestone: | --- | ||
| Platform: | Other | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
| Attachments: |
kwin_x11 stacktrace during hang (gdb thread apply all bt)
Xorg stacktrace during hang (gdb thread apply all bt) |
||
Created attachment 155439 [details]
Xorg stacktrace during hang (gdb thread apply all bt)
kwin hangs in QtXCB's Xinput code. While looking at the code, it seems like Qt waits for a reply from X server. Can you report this issue to Xorg developers please and leave a link here? If I am to report this to Xorg it would be best to first collect more information. Is there any way I can get a log of the messages sent between Kwin and Xorg, so that it becomes evident which message Kwin is waiting a response for, and whether Xorg is actually at fault for not responding? Hi @Vlad Zahorodnii, could you please help me with the question I made in Comment 3? Before reporting this as an Xorg bug, we should first make sure that Kwin is not, for example, waiting a reply to a message it has not even sent. A log would clear any doubts. Thank you. |
Created attachment 155438 [details] kwin_x11 stacktrace during hang (gdb thread apply all bt) SUMMARY kwin_x11 hangs when USB keyboard is unplugged while the laptop is suspended. STEPS TO REPRODUCE 1. Plug an external USB keyboard to my laptop. (probably a mouse also works, or both) 2. Start a X11 Plasma session. 3. Suspend the laptop and close the lid. 4. Unplug the external keyboard. 5. Open the laptop lid, so that it wakes up from suspension. OBSERVED RESULT The desktop doesn't show up. The screen remains black. The laptop's keyboard and touchpad are unresponsive. The external keyboard, if plugged again, is also unresponsive. I have to press SysRq key combinations to kill the X server or reboot, or log into the machine via SSH. Switching VTs does not work: chvt hangs. EXPECTED RESULT The desktop shows up and the laptop's keyboard and touchpad work properly. SOFTWARE/OS VERSIONS Operating System: Arch Linux KDE Plasma Version: 5.26.5 KDE Frameworks Version: 5.102.0 Qt Version: 5.15.8 Kernel Version: 6.1.6-arch1-3 (64-bit) Graphics Platform: X11 Processors: 12 × Intel® Core™ i7-8750H CPU @ 2.20GHz Memory: 30,8 GiB of RAM Graphics Processor: Mesa Intel® UHD Graphics 630 ADDITIONAL INFORMATION Thank you very much.