Bug 477341 - Turning off the screen also locks it
Summary: Turning off the screen also locks it
Status: RESOLVED WORKSFORME
Alias: None
Product: plasmashell
Classification: Plasma
Component: Screen locking (show other bugs)
Version: 5.27.9
Platform: Arch Linux Linux
: NOR minor
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-11-21 18:44 UTC by Puspam Adak
Modified: 2025-04-03 03:46 UTC (History)
2 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 Puspam Adak 2023-11-21 18:44:41 UTC
There are a few ways to forcefully turn off the screen, such as the "Turn Off Screen" shortcut and `xdg-screensaver activate` command. Each of them does turn the screen off, but the screen also gets locked, even if automatic screen locking is disabled in system settings.  
This gets very annoying because the password needs to be typed every time I want to turn off the screen. I remember this didn't happen in the previous version of kscreenlocker.

STEPS TO REPRODUCE
1. Set a shortcut for "Turn Off Screen" or run the command `xdg-screensaver activate` .
2. Invoke the shortcut.

OBSERVED RESULT
The screen gets locked alongside turning off.

EXPECTED RESULT
Screen should not lock after turning off, if automatic screen locking is disabled.

SOFTWARE/OS VERSIONS
Linux: 6.1.62-1-lts
KDE Plasma Version: 5.27.9
KDE Frameworks Version: 5.112.0
Qt Version: 5.15.11
Comment 1 Nate Graham 2023-11-29 22:56:34 UTC
We don't have any control over what `xdg-screensaver activate` does, so let's keep this bug report about what the Turn Off Screen shortcut does. When I assign a key to it in Plasma 6 and activate the shortcut, my screens turn off but the system does not lock. This is what's expected. You say that when you do the same thing, the screen also locks?

Do you by any chance have any customizations or modifications that could help explain this?
Comment 2 Puspam Adak 2023-12-01 19:22:53 UTC
(In reply to Nate Graham from comment #1)
> When I assign a key to it in Plasma 6 and activate the shortcut, my screens
> turn off but the system does not lock. This is what's expected. You say that
> when you do the same thing, the screen also locks?
Yes, the screen locks as well in my case. It started to happen after an update in the month of October 2023. Prior to that, the screen was not locking.

> Do you by any chance have any customizations or modifications that could
> help explain this?
Cannot remember any special configuration I did apart from changing the themes & customizing plasmoids.
The config file of kscreenlocker (~/.config/kscreenlockerrc) may help you:
> [$Version]
> update_info=kscreenlocker.upd:0.1-autolock
> 
> [Daemon]
> Autolock=false
> LockOnResume=false
Comment 3 TraceyC 2025-03-04 23:22:44 UTC
I'm sorry it's been so long since your last message.  I'm not able to reproduce this on git-master of Plasma 6.3.2.

Are you still having this problem with Plasma 6.3.2? If so, please change this back to REPORTED. Thanks.
Comment 4 Bug Janitor Service 2025-03-19 03:47:05 UTC
🐛🧹 ⚠️ This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information, then set the bug status to REPORTED. If there is no change for at least 30 days, it will be automatically closed as RESOLVED WORKSFORME.

For more information about our bug triaging procedures, please read https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging.

Thank you for helping us make KDE software even better for everyone!
Comment 5 Bug Janitor Service 2025-04-03 03:46:50 UTC
🐛🧹 This bug has been in NEEDSINFO status with no change for at least 30 days. Closing as RESOLVED WORKSFORME.