Bug 483094 - When monitor goes to sleep and system locks, kscreenlocker becomes unresponsive/stuck when monitor wakes up
Summary: When monitor goes to sleep and system locks, kscreenlocker becomes unresponsi...
Status: CONFIRMED
Alias: None
Product: kscreenlocker
Classification: Plasma
Component: general (show other bugs)
Version: 6.1.4
Platform: Arch Linux Linux
: NOR grave
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords: qt6
: 483722 489846 (view as bug list)
Depends on:
Blocks:
 
Reported: 2024-03-10 10:39 UTC by once-solemn
Modified: 2024-09-17 16:36 UTC (History)
17 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description once-solemn 2024-03-10 10:39:24 UTC
SUMMARY
The lockscreen sometimes (often) become unresponsive/stuck after having been locked and the screen turned off. Sometimes it responds, but refuses to login despite hitting enter or the the little > icon. It can take upwards of a minute before it unlocks. When it refuses to accept the password, I have to switch to another TTY and use loginctl to login to the Plasma session.

This happened on Plasma 5.27 as well.

STEPS TO REPRODUCE
1. Lock the screen using Meta+L or the Lock button in the menu.
2. Start typing password to unlock.
3. Kscreenlocker is now unresponsive/stuck for upwards to a minute

EXPECTED RESULT
That the screen unlocks more or less instantaneously after hitting enter.

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 6.0.1
KDE Frameworks Version: 6.0.0
Qt Version: 6.6.2
Kernel Version: 6.7.9-zen1-1.1-zen (64-bit)
Graphics Platform: X11
Processors: 8 × Intel® Core™ i7-4770K CPU @ 3.50GHz
Memory: 7.7 GiB of RAM
Graphics Processor: AMD Radeon R9 Fury Series
Manufacturer: MSI
Product Name: MS-7818
System Version: 1.0

ADDITIONAL INFORMATION

Output from /usr/lib/kscreenlocker_greet:
 /usr/lib/kscreenlocker_greet 
Locked at 1710066913
QMetaObject::invokeMethod: No such method ScreenLocker::AccessDeniedNetworkReply::error(QNetworkReply::NetworkError)
QMetaObject::invokeMethod: No such method ScreenLocker::AccessDeniedNetworkReply::error(QNetworkReply::NetworkError)
file:///usr/share/plasma/look-and-feel/org.kde.breeze.desktop/contents/lockscreen/MediaControls.qml:31:13: QML QQuickImage: Blocked request.
Unlocked
Comment 1 once-solemn 2024-03-14 12:19:52 UTC
Okay, so..
I'm not sure if this is actually kscreenlocker, or if it's Kwin, or an entirely other component instead, or if this is an entirely unrelated bug.

I went ahead and turned off automatic lockscreen, so I wouldn't have to deal with being stuck on the lockscreen, however, now after coming back and waking the screen up from automatically turning off, the Plasma is completely unresponsive. I see the cursor change and react to open apps, but Plasma itself is unresponsive for a period, before reacting again. 

Monitor is a ViewSonic XG2405 if that has any relevance.
Comment 2 Nate Graham 2024-03-14 18:00:03 UTC
All of this does sound quite related.

A way to narrow it down is to manually lock the screen with meta+L without involving sleep/wake at all. When you manually lock and unlock, do you still see the issue?

Also, I'm guessing this is a single-screen desktop system, right?
Comment 3 once-solemn 2024-03-15 05:55:43 UTC
(In reply to Nate Graham from comment #2)
> All of this does sound quite related.
> 
> A way to narrow it down is to manually lock the screen with meta+L without
> involving sleep/wake at all. When you manually lock and unlock, do you still
> see the issue?
> 
> Also, I'm guessing this is a single-screen desktop system, right? 

If I manually lock and unlock before the monitor turns off, I don't see an issue, no. Also, just to be clear, it's not the system going into sleep/hibernation, just the monitor turning off.

Yep, it is a single screen desktop.
Comment 4 Nate Graham 2024-03-19 13:28:33 UTC
Thanks. Does it happen on Wayland too, or only X11?
Comment 5 Cherkah 2024-03-19 13:57:47 UTC
 i've the same issue && when i lock manually the screen with meta+L everything is OK.

it happen on Wayland as i am using wayland.

i was thinking that bug was related to my "resume kernel" setting or with my Graphics Processor unit but apparently it is not.

Operating System: EndeavourOS 
KDE Plasma Version: 6.0.2
KDE Frameworks Version: 6.0.0
Qt Version: 6.6.2
Kernel Version: 6.8.1-zen1-1-zen (64-bit)
Graphics Platform: Wayland
Processors: 12 × Intel® Core™ i7-9750H CPU @ 2.60GHz
Memory: 15.4 Gio of RAM
Graphics Processor: NVIDIA GeForce GTX 1650/PCIe/SSE2
Comment 6 Nate Graham 2024-03-19 19:10:39 UTC
For people affected, does the issue go away if you change your Plasma style to something other than "Breeze"? For example "Breeze Dark?" Not the global scheme or the color scheme; just the Plasma style.
Comment 7 Cherkah 2024-03-19 22:38:38 UTC
> plasma style to something other than "Breeze"? For example "Breeze Dark?" Not the global scheme or the color
> scheme; just the Plasma style.

my plasma style it is "lightly" & it happens....
Comment 8 Cherkah 2024-03-19 22:43:06 UTC
> plasma style to something other than "Breeze"? For example "Breeze Dark?" Not the global scheme or the color
> scheme; just the Plasma style.

my plasma style it is "lightly" & it happens....

The only way to overcome the problem is to " killall plasmashell && kstart plasmashell "
Comment 9 once-solemn 2024-03-22 07:18:59 UTC
It happened on both Wayland and X11, yes.

I can't, currently, check whether switching the Plasma style "fixes" it, as I'm not near that machine, but will get back as soon as I've tried. :)
Comment 10 once-solemn 2024-04-01 08:28:55 UTC
Well, changing the Plasma style didn't change anything for me either.

I'm honestly at a loss for how to really test this.
Comment 11 Simone Lazzaris 2024-06-27 07:32:29 UTC Comment hidden (spam)
Comment 12 Simone Lazzaris 2024-06-27 07:38:16 UTC
Likely a duplicate of https://bugs.kde.org/show_bug.cgi?id=485084
Comment 13 Nate Graham 2024-06-27 16:35:05 UTC
That looks like a different issue. This one looks more likely to be related to the odd network errors:

giu 26 08:26:49 betelgeuse kscreenlocker_greet[126137]: QMetaObject::invokeMethod: No such method ScreenLocker::AccessDeniedNetworkReply::error(QNetworkReply::NetworkError)

For anyone affected who sees those errors, are you using a non-default login screen theme, or are you using a remote URL for your avatar image, or are you on a network home directory or something? Is there *anything* network-related that might be unusual with respect to your setup that you can comment on?
Comment 14 Bug Janitor Service 2024-07-12 03:47:02 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 15 once-solemn 2024-07-13 07:25:05 UTC
(In reply to Nate Graham from comment #13)
> That looks like a different issue. This one looks more likely to be related
> to the odd network errors:
> 
> giu 26 08:26:49 betelgeuse kscreenlocker_greet[126137]:
> QMetaObject::invokeMethod: No such method
> ScreenLocker::AccessDeniedNetworkReply::error(QNetworkReply::NetworkError)
> 
> For anyone affected who sees those errors, are you using a non-default login
> screen theme, or are you using a remote URL for your avatar image, or are
> you on a network home directory or something? Is there *anything*
> network-related that might be unusual with respect to your setup that you
> can comment on?

Nothing remote, and just the default lock screen. To be precise, it happens on both default, and non-default login themes.

I probably won't be much help in the future, as I've had to switch desktop. But I did a quick test on 6.1.2, and can confirm it still happens there.
Comment 16 TraceyC 2024-07-15 14:32:40 UTC
From the output, it looks like it's the media controls on the lock screen that blocked the unlock request. It makes me wonder what was playing at the time, and through what application
It makes me wonder if the network stack hadn't fully woken yet and was being polled by the media widget, which hung waiting for the still sleeping service?

Setting to confirmed since the problem still happens for the OP
Comment 17 once-solemn 2024-07-20 07:18:38 UTC
(In reply to TraceyC from comment #16)
> From the output, it looks like it's the media controls on the lock screen
> that blocked the unlock request. It makes me wonder what was playing at the
> time, and through what application
> It makes me wonder if the network stack hadn't fully woken yet and was being
> polled by the media widget, which hung waiting for the still sleeping
> service?
> 
> Setting to confirmed since the problem still happens for the OP

I usually have Spotify running at pretty much at all times, but as far as I remember, I actually did run a test with Spotify closed where it still happened. Also tried with the .deb(AUR) version and Flatpak version. However, I don't recall if I had say, Firefox open, with youtube, which would still work with the media play widget, yes?
Comment 18 Antonio 2024-07-22 21:00:10 UTC
I am also having issues with this, without any programs open. Issues started when updating to Plasma 6.1.

Hardware Information
  - 12th Gen Intel(R) Core(TM) i7-12700H (12+8) @ 4.70 GHz
  - Intel Iris Xe Graphics @ 1.40 GHz [Integrated]
  - NVIDIA GeForce RTX 3060 Mobile / Max-Q [Discrete]
- Software Information
  - Arch Linux x86_64
  - 6.9.10-arch1-1
  - sddm 0.21.0 (X11) 
  - KDE Plasma 6.1.3
Comment 19 Nate Graham 2024-07-23 16:32:16 UTC
(In reply to Antonio from comment #18)
> I am also having issues with this, without any programs open. Issues started
> when updating to Plasma 6.1.
> 
> Hardware Information
>   - 12th Gen Intel(R) Core(TM) i7-12700H (12+8) @ 4.70 GHz
>   - Intel Iris Xe Graphics @ 1.40 GHz [Integrated]
>   - NVIDIA GeForce RTX 3060 Mobile / Max-Q [Discrete]
> - Software Information
>   - Arch Linux x86_64
>   - 6.9.10-arch1-1
>   - sddm 0.21.0 (X11) 
>   - KDE Plasma 6.1.3

With this exact same log messaging?

MetaObject::invokeMethod: No such method ScreenLocker::AccessDeniedNetworkReply::error(QNetworkReply::NetworkError)
QMetaObject::invokeMethod: No such method ScreenLocker::AccessDeniedNetworkReply::error(QNetworkReply::NetworkError)
file:///usr/share/plasma/look-and-feel/org.kde.breeze.desktop/contents/lockscreen/MediaControls.qml:31:13: QML QQuickImage: Blocked request.

Or no?
Comment 20 Antonio 2024-07-24 16:38:53 UTC
(In reply to Nate Graham from comment #19)
> (In reply to Antonio from comment #18)
> > I am also having issues with this, without any programs open. Issues started
> > when updating to Plasma 6.1.
> > 
> > Hardware Information
> >   - 12th Gen Intel(R) Core(TM) i7-12700H (12+8) @ 4.70 GHz
> >   - Intel Iris Xe Graphics @ 1.40 GHz [Integrated]
> >   - NVIDIA GeForce RTX 3060 Mobile / Max-Q [Discrete]
> > - Software Information
> >   - Arch Linux x86_64
> >   - 6.9.10-arch1-1
> >   - sddm 0.21.0 (X11) 
> >   - KDE Plasma 6.1.3
> 
> With this exact same log messaging?
> 
> MetaObject::invokeMethod: No such method
> ScreenLocker::AccessDeniedNetworkReply::error(QNetworkReply::NetworkError)
> QMetaObject::invokeMethod: No such method
> ScreenLocker::AccessDeniedNetworkReply::error(QNetworkReply::NetworkError)
> file:///usr/share/plasma/look-and-feel/org.kde.breeze.desktop/contents/
> lockscreen/MediaControls.qml:31:13: QML QQuickImage: Blocked request.
> 
> Or no?

I tried running the same file as comment #0, but that locked the screen for the root user and didn't output that. Are the logs for the normal flow stored somewhere? I don't know where to locate it, sorry.

If this adds any value, when putting the pc to sleep, with the option of locking after wakeup, this problem doesn't happen. It also doesn't happen when locking with "super L" + "L". It only happens after automatic lock with any specified time (I set it to 1 minute for easy reproduction).

Also, ocasionally, the password input will never pop up and will have to reboot through tty3.
Comment 21 Antonio 2024-07-24 16:48:10 UTC
Important note (sorry I didn't include it earlier, I just noticed...).

This only happens when I am using only nvidia. In hybrid or integrated mode, this does not happen. Is that the case for other people that had the problem?
Comment 22 Andrew M 2024-08-02 03:36:11 UTC
Another Nvidia on X11 user here. Here's my observation:
I get the described freeze/lag when the display is powered down but only when using the Nvidia proprietary driver on my work PC's GeForce GT 1030. Changing from proprietary driver to the nouveau driver solves the problem at the expense of everything else being generally laggy, nouveau being nouveau.
No freezing issues seen on my 2 personal computers with AMD graphics on Wayland.

Questions to ask others here are:
* Does this (still) affect AMD and Intel graphics? I see the bug submitter was on AMD.
* Does switching from nvidia proprietary to nouveau stop this from happening?
Comment 23 once-solemn 2024-08-07 15:51:53 UTC
I can confirm this still happens in Plasma 6.1.4 on AMD, mesa 24.1.5
Comment 24 Ksenia Turek 2024-08-14 20:22:22 UTC
I can confirm that the bug still happens on Plasma version 6.1.4.
I also found a simple temporary workaround.

I commented out the entire Image object with id: albumArt, starting at line 31 in the file
/usr/share/plasma/look-and-feel/org.kde.breeze.desktop/contents/lockscreen/MediaControls.qml

This will remove the album art from the lock screen, but will also stop the bug from happening.
Comment 25 Vedran Rodic 2024-08-17 07:45:38 UTC
*** Bug 489846 has been marked as a duplicate of this bug. ***
Comment 26 Vedran Rodic 2024-08-17 07:46:24 UTC
*** Bug 483722 has been marked as a duplicate of this bug. ***
Comment 27 Vedran Rodic 2024-08-17 07:48:33 UTC
I experience the same issue.

Latest Arch Linux on Xorg, single monitor, open source Radeon drivers. 

Linux 6.10.4
kscreenlocker 6.1.4
xorg-server 21.1.13
xf86-video-amdgpu 23.0.0
sddm 0.21.0
Comment 28 Karol Bryd 2024-08-20 20:00:19 UTC
Happens for me as well. Super irritating...it happens 8 out of 10 cases. What helps for me is to switch to console and pkill -f -9 kscreenlocker_greet. As far I remember, it started happening around Plasma 6.1. Maybe it is related, or not but, often monitor blinks multiple times and displays information that frequency is out of range. Sometimes only one screen is detected (monitor has to be enabled via Nvidia settings app), sometimes monitors display the same screen.

I have a two monitor setup.

Operating System: Fedora Linux 40
KDE Plasma Version: 6.1.4
KDE Frameworks Version: 6.5.0
Qt Version: 6.7.2
Kernel Version: 6.10.4-200.fc40.x86_64 (64-bit)
Graphics Platform: X11
Processors: 24 × AMD Ryzen 9 5900X 12-Core Processor
Memory: 62,7 GiB of RAM
Graphics Processor: NVIDIA GeForce RTX 3060/PCIe/SSE2
Manufacturer: Micro-Star International Co., Ltd.
Product Name: MS-7C91
System Version: 2.0
Comment 29 Nate Graham 2024-08-20 20:35:09 UTC
I just encountered this today on git master.
Comment 30 once-solemn 2024-08-21 05:52:58 UTC
Well, this is kind of funny, but I can't replicate this anymore.
I installed F40 to test the "solution" in Comment 24, but that file doesn't exist on this install. 

X11
KDE Plasma Version: 6.1.4
KDE Frameworks Version: 6.5.0
Qt Version: 6.7.2
Mesa version: 24.1.5
Comment 31 once-solemn 2024-08-21 10:57:17 UTC
Nevermind, it is happening again.
I've changed two things between then, and now, I moved the default panel to the top, switched it to "fit content", and then switched notification popups to the top right corner.
Comment 32 Abubakar Yagoub 2024-08-26 02:10:31 UTC
I am getting this error when using wallhaven wallpaper plugin, the network related action here is fetching a wallpaper from wallhaven, not even the initial wallpaper is fetched correctly, it fails everytime
here is the link to the plugin
https://github.com/Blacksuan19/plasma-wallpaper-wallhaven-reborn
Comment 33 Vedran Rodic 2024-08-31 03:44:51 UTC
(In reply to Ksenia Turek from comment #24)
> I can confirm that the bug still happens on Plasma version 6.1.4.
> I also found a simple temporary workaround.
> 
> I commented out the entire Image object with id: albumArt, starting at line
> 31 in the file
> /usr/share/plasma/look-and-feel/org.kde.breeze.desktop/contents/lockscreen/
> MediaControls.qml
> 
> This will remove the album art from the lock screen, but will also stop the
> bug from happening.

Nope. that didn't help. And this is happening regardles of the album art being displayed or not (for me it's never showing).
Comment 34 Billy Messenger 2024-09-17 16:30:11 UTC
I am also having this issue, except that sometimes the system also locks up after logging in after booting.
Comment 35 Billy Messenger 2024-09-17 16:34:40 UTC
I've also been having monitor troubles ever since Plasma 6.1. https://bugs.kde.org/show_bug.cgi?id=489457

There's definitely some kind of bug that has been introduced around that time, but I'm at a loss on what it could be.

Annoying because I love Plasma, and I don't want to switch to a different DE just for this issue.
Comment 36 Billy Messenger 2024-09-17 16:36:45 UTC
How do I go about getting the list of commits that happened between versions 6.0 and 6.1?