Bug 360421 - After waking from standby mouse clicks and keyboard input doesn't reach kscreenlocker or other applications, session kill necessary
Summary: After waking from standby mouse clicks and keyboard input doesn't reach kscre...
Status: RESOLVED WORKSFORME
Alias: None
Product: kscreenlocker
Classification: Plasma
Component: greeter (show other bugs)
Version: unspecified
Platform: Arch Linux Linux
: NOR critical
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-03-11 18:25 UTC by Johannes
Modified: 2021-07-21 04:33 UTC (History)
10 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Johannes 2016-03-11 18:25:25 UTC
After waking up from suspend, having screen locker enabled, I cannot enter my password anymore. The cursor in the password field won't blink and typing doesn't add any characters. Clicking isn't reacted to as well.

This behaviour happens as well when I disable the screen locker. The system fully resumes (e.g. music or videos resume playing), but no input is possible.

In both cases I have to kill the entire session or restart the computer to be able to re-login.

If I wake up from suspension to the screenlocker and the error hasn't occurred, switching to another TTY and back will make it happen. If I'm just "plainly" using the desktop and switching to another TTY and back, it will not stop reacting to everything, but input becomes incredibly slow, if there are reactions at all. At the same time the "Xorg" process goes up to 100% CPU usage and "kglobalaccel5" about 40%. Other applications around 15% for a few seconds, then Xorg and kglobalaccel5 will share 60%/40%.
The same behaviour occurs when I put the laptop into a docking station or release it (even without external monitor attached to it).
In these cases it more or less recovers, the CPU usage goes down after a while and I can go on working (even though some applications won't to it anymore and have to be restarted, but I have found no pattern there yet)

Reproducible: Sometimes

Steps to Reproduce:
1. Go to suspend
2. Resume from suspend


Actual Results:  
No input (mouse&keyboard) reaches the running applications.

Expected Results:  
I have a working mouse&keyboard input, can enter my password and resume working.

Here's some of my journal _after_ switching the TTY. An oddly high number of  screen changes without anything changing.

Mär 11 18:48:18 XXYYZZ kscreen_backend_launcher[13220]: kscreen: Primary output changed from KScreen::Output(Id: 66 , Name: "LVDS1" ) ( "LVDS1" ) to KScreen::Output(Id: 66 , Name: "LVDS1" ) ( "LVDS1" )
Mär 11 18:48:18 XXYYZZ kscreen_backend_launcher[13220]: kscreen: Primary output changed from KScreen::Output(Id: 66 , Name: "LVDS1" ) ( "LVDS1" ) to KScreen::Output(Id: 66 , Name: "LVDS1" ) ( "LVDS1" )
Mär 11 18:48:19 XXYYZZ kscreen_backend_launcher[13220]: kscreen: Primary output changed from KScreen::Output(Id: 66 , Name: "LVDS1" ) ( "LVDS1" ) to KScreen::Output(Id: 66 , Name: "LVDS1" ) ( "LVDS1" )
Mär 11 18:48:19 XXYYZZ kscreen_backend_launcher[13220]: kscreen: Primary output changed from KScreen::Output(Id: 66 , Name: "LVDS1" ) ( "LVDS1" ) to KScreen::Output(Id: 66 , Name: "LVDS1" ) ( "LVDS1" )
Mär 11 18:48:51 XXYYZZ kcminit[13439]: Initializing  "kcm_input" :  "kcminit_mouse"
Mär 11 18:48:51 XXYYZZ kwin_x11[13215]: QXcbConnection: XCB error: 3 (BadWindow), sequence: 851, resource id: 65011720, major code: 18 (ChangeProperty), minor code: 0
Mär 11 18:48:54 XXYYZZ kscreen_backend_launcher[13220]: kscreen: Primary output changed from KScreen::Output(Id: 66 , Name: "LVDS1" ) ( "LVDS1" ) to KScreen::Output(Id: 66 , Name: "LVDS1" ) ( "LVDS1" )
Mär 11 18:48:54 XXYYZZ kscreen_backend_launcher[13220]: kscreen: Primary output changed from KScreen::Output(Id: 66 , Name: "LVDS1" ) ( "LVDS1" ) to KScreen::Output(Id: 66 , Name: "LVDS1" ) ( "LVDS1" )
Mär 11 18:48:54 XXYYZZ kscreen_backend_launcher[13220]: kscreen: Primary output changed from KScreen::Output(Id: 66 , Name: "LVDS1" ) ( "LVDS1" ) to KScreen::Output(Id: 66 , Name: "LVDS1" ) ( "LVDS1" )
Mär 11 18:48:54 XXYYZZ kscreen_backend_launcher[13220]: kscreen: Primary output changed from KScreen::Output(Id: 66 , Name: "LVDS1" ) ( "LVDS1" ) to KScreen::Output(Id: 66 , Name: "LVDS1" ) ( "LVDS1" )
Mär 11 18:49:23 XXYYZZ kwin_x11[13215]: QXcbConnection: XCB error: 3 (BadWindow), sequence: 38548, resource id: 12582920, major code: 18 (ChangeProperty), minor code: 0
Mär 11 18:49:24 XXYYZZ kscreen_backend_launcher[13220]: kscreen: Primary output changed from KScreen::Output(Id: 66 , Name: "LVDS1" ) ( "LVDS1" ) to KScreen::Output(Id: 66 , Name: "LVDS1" ) ( "LVDS1" )
Mär 11 18:49:24 XXYYZZ kscreen_backend_launcher[13220]: kscreen: Primary output changed from KScreen::Output(Id: 66 , Name: "LVDS1" ) ( "LVDS1" ) to KScreen::Output(Id: 66 , Name: "LVDS1" ) ( "LVDS1" )
Mär 11 18:49:24 XXYYZZ kscreen_backend_launcher[13220]: kscreen: Primary output changed from KScreen::Output(Id: 66 , Name: "LVDS1" ) ( "LVDS1" ) to KScreen::Output(Id: 66 , Name: "LVDS1" ) ( "LVDS1" )
Mär 11 18:49:24 XXYYZZ kscreen_backend_launcher[13220]: kscreen: Primary output changed from KScreen::Output(Id: 66 , Name: "LVDS1" ) ( "LVDS1" ) to KScreen::Output(Id: 66 , Name: "LVDS1" ) ( "LVDS1" )
Mär 11 18:50:02 XXYYZZ kdeinit5[13185]: org.kde.kurifilter-shorturi: "konsole"                    
Mär 11 18:50:02 XXYYZZ kdeinit5[13185]: org.kde.kurifilter-shorturi: path = "konsole"  isLocalFullPath= false  exists= false  url= QUrl("konsole")
Mär 11 18:50:02 XXYYZZ kdeinit5[13185]: org.kde.kurifilter-ikws: "konsole" : QUrl("file:konsole") , type = 3
Mär 11 18:50:02 XXYYZZ kdeinit5[13185]: org.kde.kurifilter-ikws: "konsole"                        
Mär 11 18:50:02 XXYYZZ kscreen_backend_launcher[13220]: kscreen: Primary output changed from KScreen::Output(Id: 66 , Name: "LVDS1" ) ( "LVDS1" ) to KScreen::Output(Id: 66 , Name: "LVDS1" ) ( "LVDS1" )
Mär 11 18:50:02 XXYYZZ kscreen_backend_launcher[13220]: kscreen: Primary output changed from KScreen::Output(Id: 66 , Name: "LVDS1" ) ( "LVDS1" ) to KScreen::Output(Id: 66 , Name: "LVDS1" ) ( "LVDS1" )
Mär 11 18:50:02 XXYYZZ kscreen_backend_launcher[13220]: kscreen: Primary output changed from KScreen::Output(Id: 66 , Name: "LVDS1" ) ( "LVDS1" ) to KScreen::Output(Id: 66 , Name: "LVDS1" ) ( "LVDS1" )
Mär 11 18:50:02 XXYYZZ kscreen_backend_launcher[13220]: kscreen: Primary output changed from KScreen::Output(Id: 66 , Name: "LVDS1" ) ( "LVDS1" ) to KScreen::Output(Id: 66 , Name: "LVDS1" ) ( "LVDS1" )
Mär 11 18:50:02 XXYYZZ kdeinit5[13185]: kscreen: Primary output changed from KScreen::Output(Id: 66 , Name: "LVDS1" ) ( "LVDS1" ) to KScreen::Output(Id: 66 , Name: "LVDS1" ) ( "LVDS1" )
Mär 11 18:50:02 XXYYZZ kdeinit5[13185]: kscreen: Primary output changed from KScreen::Output(Id: 66 , Name: "LVDS1" ) ( "LVDS1" ) to KScreen::Output(Id: 66 , Name: "LVDS1" ) ( "LVDS1" )
Mär 11 18:50:02 XXYYZZ kdeinit5[13185]: kscreen.kded: Change detected                             
Mär 11 18:50:02 XXYYZZ konsole[13460]: QCoreApplication::arguments: Please instantiate the QApplication object first
Mär 11 18:50:02 XXYYZZ konsole[13461]: QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
Mär 11 18:50:02 XXYYZZ konsole[13460]: QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
Mär 11 18:50:02 XXYYZZ kscreen_backend_launcher[13220]: kscreen: Primary output changed from KScreen::Output(Id: 66 , Name: "LVDS1" ) ( "LVDS1" ) to KScreen::Output(Id: 66 , Name: "LVDS1" ) ( "LVDS1" )
Mär 11 18:50:02 XXYYZZ kscreen_backend_launcher[13220]: kscreen: Primary output changed from KScreen::Output(Id: 66 , Name: "LVDS1" ) ( "LVDS1" ) to KScreen::Output(Id: 66 , Name: "LVDS1" ) ( "LVDS1" )
Mär 11 18:50:02 XXYYZZ kscreen_backend_launcher[13220]: kscreen: Primary output changed from KScreen::Output(Id: 66 , Name: "LVDS1" ) ( "LVDS1" ) to KScreen::Output(Id: 66 , Name: "LVDS1" ) ( "LVDS1" )
Mär 11 18:50:02 XXYYZZ kscreen_backend_launcher[13220]: kscreen: Primary output changed from KScreen::Output(Id: 66 , Name: "LVDS1" ) ( "LVDS1" ) to KScreen::Output(Id: 66 , Name: "LVDS1" ) ( "LVDS1" )
Mär 11 18:50:02 XXYYZZ kdeinit5[13185]: kscreen: Primary output changed from KScreen::Output(Id: 66 , Name: "LVDS1" ) ( "LVDS1" ) to KScreen::Output(Id: 66 , Name: "LVDS1" ) ( "LVDS1" )
Mär 11 18:50:02 XXYYZZ kscreen_backend_launcher[13220]: kscreen: Primary output changed from KScreen::Output(Id: 66 , Name: "LVDS1" ) ( "LVDS1" ) to KScreen::Output(Id: 66 , Name: "LVDS1" ) ( "LVDS1" )
Mär 11 18:50:02 XXYYZZ kscreen_backend_launcher[13220]: kscreen: Primary output changed from KScreen::Output(Id: 66 , Name: "LVDS1" ) ( "LVDS1" ) to KScreen::Output(Id: 66 , Name: "LVDS1" ) ( "LVDS1" )
Mär 11 18:50:02 XXYYZZ kdeinit5[13185]: kscreen: Primary output changed from KScreen::Output(Id: 66 , Name: "LVDS1" ) ( "LVDS1" ) to KScreen::Output(Id: 66 , Name: "LVDS1" ) ( "LVDS1" )
Mär 11 18:50:02 XXYYZZ kscreen_backend_launcher[13220]: kscreen: Primary output changed from KScreen::Output(Id: 66 , Name: "LVDS1" ) ( "LVDS1" ) to KScreen::Output(Id: 66 , Name: "LVDS1" ) ( "LVDS1" )
Mär 11 18:50:02 XXYYZZ kscreen_backend_launcher[13220]: kscreen: Primary output changed from KScreen::Output(Id: 66 , Name: "LVDS1" ) ( "LVDS1" ) to KScreen::Output(Id: 66 , Name: "LVDS1" ) ( "LVDS1" )
Mär 11 18:50:02 XXYYZZ kdeinit5[13185]: kscreen.kded: Change detected
Mär 11 18:50:02 XXYYZZ kscreen_backend_launcher[13220]: kscreen: Primary output changed from KScreen::Output(Id: 66 , Name: "LVDS1" ) ( "LVDS1" ) to KScreen::Output(Id: 66 , Name: "LVDS1" ) ( "LVDS1" )
Mär 11 18:50:02 XXYYZZ kscreen_backend_launcher[13220]: kscreen: Primary output changed from KScreen::Output(Id: 66 , Name: "LVDS1" ) ( "LVDS1" ) to KScreen::Output(Id: 66 , Name: "LVDS1" ) ( "LVDS1" )
Mär 11 18:50:02 XXYYZZ kscreen_backend_launcher[13220]: kscreen: Primary output changed from KScreen::Output(Id: 66 , Name: "LVDS1" ) ( "LVDS1" ) to KScreen::Output(Id: 66 , Name: "LVDS1" ) ( "LVDS1" )
Mär 11 18:50:02 XXYYZZ kscreen_backend_launcher[13220]: kscreen: Primary output changed from KScreen::Output(Id: 66 , Name: "LVDS1" ) ( "LVDS1" ) to KScreen::Output(Id: 66 , Name: "LVDS1" ) ( "LVDS1" )
Mär 11 18:50:02 XXYYZZ kscreen_backend_launcher[13220]: kscreen: Primary output changed from KScreen::Output(Id: 66 , Name: "LVDS1" ) ( "LVDS1" ) to KScreen::Output(Id: 66 , Name: "LVDS1" ) ( "LVDS1" )
Mär 11 18:50:02 XXYYZZ kscreen_backend_launcher[13220]: kscreen: Primary output changed from KScreen::Output(Id: 66 , Name: "LVDS1" ) ( "LVDS1" ) to KScreen::Output(Id: 66 , Name: "LVDS1" ) ( "LVDS1" )
Mär 11 18:50:02 XXYYZZ kscreen_backend_launcher[13220]: kscreen: Primary output changed from KScreen::Output(Id: 66 , Name: "LVDS1" ) ( "LVDS1" ) to KScreen::Output(Id: 66 , Name: "LVDS1" ) ( "LVDS1" )
Mär 11 18:50:02 XXYYZZ kscreen_backend_launcher[13220]: kscreen: Primary output changed from KScreen::Output(Id: 66 , Name: "LVDS1" ) ( "LVDS1" ) to KScreen::Output(Id: 66 , Name: "LVDS1" ) ( "LVDS1" )
Mär 11 18:50:02 XXYYZZ kdeinit5[13185]: kscreen: Primary output changed from KScreen::Output(Id: 66 , Name: "LVDS1" ) ( "LVDS1" ) to KScreen::Output(Id: 66 , Name: "LVDS1" ) ( "LVDS1" )
Mär 11 18:50:02 XXYYZZ kdeinit5[13185]: kscreen: Primary output changed from KScreen::Output(Id: 66 , Name: "LVDS1" ) ( "LVDS1" ) to KScreen::Output(Id: 66 , Name: "LVDS1" ) ( "LVDS1" )
Mär 11 18:50:02 XXYYZZ kdeinit5[13185]: kscreen.kded: Change detected
Mär 11 18:50:03 XXYYZZ kdeinit5[13185]: kscreen.kded: Saving current config to file
Mär 11 18:50:03 XXYYZZ kdeinit5[13185]: kscreen.kded: Calculating config ID for KScreen::Config(0x9139e0)
Mär 11 18:50:03 XXYYZZ kdeinit5[13185]: kscreen.kded:         Part of the Id:  "46d063b31aa4bfa4aa488b784881c4eb"
Mär 11 18:50:03 XXYYZZ kdeinit5[13185]: kscreen.kded:         Config ID: "b42afda34ff5f252655c26442199ed66"
Mär 11 18:50:03 XXYYZZ kdeinit5[13185]: kscreen.kded: Config saved on:  "/home/XXXX/.local/share/kscreen/b42afda34ff5f252655c26442199ed66"
Comment 1 Martin Flöser 2016-03-11 19:49:14 UTC
next time it happens, please try:
* login in to a tty (e.g. ctrl+Alt+F2)
* run loginctl unlock-sessions
* switch back to graphical tty

if unlocked, win, otherwise go back to the tty and:
* killall -9 kscreenlocker_greet
* switch back to graphical tty.
Comment 2 Johannes 2016-03-13 11:00:40 UTC
Did that, it helped (the screen was unlocked and usable again), but the problems about  high CPU load after TTY switching remained.

"Unfortunately" the error only occurred once since your comment, which is odd since before it happened 50% of the time or so. So I couldn't check out what happens if I wake up with screen locker deactivated.
Comment 3 Martin Flöser 2016-03-14 07:07:57 UTC
next time try to kill kglobalaccel. Maybe then xorg usage goes down.
Comment 4 Johannes 2016-03-15 09:15:01 UTC
Killing kglobalaccel didn't help. The Xorg usage went up to 100% and other applicatoins (plasmashell, kwalletd5, kwin_x11, ksmserver, yakuake, and krunner) went up to ~22% cpu usage.

Also afterwards the complete screen froze (mouse was movable but nothing reacted, killing the konsole that was in foreground from another TTY didn't make it disappear as well).
Comment 5 slartibart70 2016-12-23 09:01:46 UTC
Same here with fedora25/kde on lenovo laptop t420(intel graphics)

Sleep/resume goes well if the laptop is sleeping for a short period of time. But if you let it sleep overnight, kscreenlocker just won't accept any keystrokes (nor is the cursor flashing in the input fields)
Alternative shell (Alt-F2) is coming up slowly, meaning the keyboard inputs go to the system, the reaction does take a while. So, keyboard is working properly, but switching back to graphical input and we are still stuck (no mouse, no keyboard response)

This is very annyoing!!!
Comment 6 William Becker 2017-01-01 18:11:40 UTC
Same issues re login after sleep on up-to-date arch/kde on a Lenovo X220.

In addition, the 60/40 xorg/kglobalaccel thing just started happening out of the blue in the middle of a session which took me to this bug report - however it did stop happening after about 30 seconds.
Comment 7 3.14159265 2017-05-24 12:54:07 UTC
I'm also affected on kubuntu 17.04. I can cause this problem either by switching to tty or by plugging in new usb device (suspending works at the moment).
After enabling everything in kdebugdialog I noticed, that every time this problem occurs my .xsession-erros contains several repetitions of

Initializing  "kcm_input" :  "kcminit_mouse"
QXcbConnection: XCB error: 3 (BadWindow), sequence: 25627, resource id: 113246216, major code: 18 (ChangeProperty), minor code: 0
kdeinit5: Got SETENV 'KDE_MULTIHEAD=false' from launcher

where 'resource id' is identical for all massages of all errorous events in whole kde session.
Comment 8 Oskar Roesler 2019-03-17 09:58:41 UTC
I have a definitely related bug: https://bugs.kde.org/show_bug.cgi?id=405355
Comment 9 soredake 2020-12-31 10:03:46 UTC
Any progress on this?
Comment 10 Nate Graham 2021-06-21 22:25:40 UTC
The kglobalaccel 100% CPU bug was fixed in Plasma 5.21. Is anyone able to reproduce this in 5.21 or 5.22?
Comment 11 Bug Janitor Service 2021-07-06 04:33:46 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 12 Bug Janitor Service 2021-07-21 04:33:34 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!