Bug 505033

Summary: On X11, when turning off monitor using global shortcut, it always turns back on after a few seconds
Product: [Plasma] plasmashell Reporter: Dmitry <doctor.wotson>
Component: Power management & brightnessAssignee: Plasma Bugs List <plasma-bugs>
Status: CONFIRMED ---    
Severity: normal CC: duha.bugs, fanzhuyifan, graeme, kde, nate, xaver.hugl
Priority: NOR Keywords: X11-only
Version First Reported In: 6.3.5   
Target Milestone: 1.0   
Platform: openSUSE   
OS: Linux   
See Also: https://bugs.kde.org/show_bug.cgi?id=505953
Latest Commit: Version Fixed In:
Sentry Crash Report:
Bug Depends on:    
Bug Blocks: 506459    

Description Dmitry 2025-05-30 20:23:33 UTC
SUMMARY
When I set a hotkey combination in the Hotkey settings to manually turn off the monitor and then try to use those hotkeys, the monitor turns off, but only for a couple of seconds, and then turns back on.

STEPS TO REPRODUCE
1. I open System settings, then select Keyboard, Hotkeys.
2. I select Power Management, then select the Turn off monitor option and set the desired key combination.
3. I click Apply, then try to use this key combination to turn off the monitor.

OBSERVED RESULT
The monitor turns off for only a couple of seconds and then turns on again...

EXPECTED RESULT
The monitor should turn off after pressing the specified hot keys and should turn on from the keyboard or mouse usage...

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: openSUSE Tumbleweed KDE
KDE Plasma Version: 6.3.5
KDE Frameworks Version: 6.14.0
Qt Version: 6.9.0

ADDITIONAL INFORMATION
I see this behavior of the System Settings on my laptop and desktop at the same time. Both computers have the same version of OpenSUSE installed.
Here is info from my laptop:
Operating System: openSUSE Tumbleweed 20250522
KDE Plasma Version: 6.3.5
KDE Frameworks Version: 6.14.0
Qt Version: 6.9.0
Kernel Version: 6.14.6-1-default (64-bit)
Graphics Platform: X11
Processors: 16 × AMD Ryzen 7 5700U with Radeon Graphics
Memory: 7.1 GiB of RAM
Graphics Processor: AMD Radeon Graphics
Manufacturer: HP
Product Name: HP Laptop 17-cp0xxx
Comment 1 David Redondo 2025-06-03 08:56:34 UTC
Maybe the reverse of https://bugs.kde.org/show_bug.cgi?id=488134
Comment 2 Nate Graham 2025-06-04 16:39:23 UTC
Cannot reproduce with my laptop's built-in screen.

Operating System: Fedora Linux 42
KDE Plasma Version: 6.4.80
KDE Frameworks Version: 6.15.0
Qt Version: 6.9.0
Kernel Version: 6.14.8-300.fc42.x86_64 (64-bit)
Graphics Platform: Wayland
Processors: 16 × AMD Ryzen 7 7840U w/ Radeon™ 780M Graphics
Memory: 16 GiB of RAM (14.9 GiB usable)
Graphics Processor: AMD Radeon 780M
Manufacturer: HP
Product Name: HP Pavilion Plus Laptop 14-ey0XXX


Is the screen that always turns on the one that's built into your laptop? Or an external screen?
Comment 3 Dmitry 2025-06-04 17:30:43 UTC
(In reply to Nate Graham from comment #2)
> Cannot reproduce with my laptop's built-in screen.
> 
> Operating System: Fedora Linux 42
> KDE Plasma Version: 6.4.80
> KDE Frameworks Version: 6.15.0
> Qt Version: 6.9.0
> Kernel Version: 6.14.8-300.fc42.x86_64 (64-bit)
> Graphics Platform: Wayland
> Processors: 16 × AMD Ryzen 7 7840U w/ Radeon™ 780M Graphics
> Memory: 16 GiB of RAM (14.9 GiB usable)
> Graphics Processor: AMD Radeon 780M
> Manufacturer: HP
> Product Name: HP Pavilion Plus Laptop 14-ey0XXX
> 
> 
> Is the screen that always turns on the one that's built into your laptop? Or
> an external screen?

I have now checked the system operation on a laptop (built-in screen) and a desktop, in both cases the X11 graphics platform was used, the result was the same, as described before, but if I logged into the system under Wayland on both computers, then everything works fine, the screen turns off with the assigned keys! I am still working on X11, and apparently many people still remain on it for some reasons... Therefore, this system error is still relevant.
Comment 4 Nate Graham 2025-06-04 17:32:07 UTC
Ok, I guess it's X11-only.
Comment 5 Nate Graham 2025-06-04 20:06:56 UTC
Can reproduce on X11.
Comment 6 Graeme Gott 2025-06-27 11:03:18 UTC
(In reply to Nate Graham from comment #4)
> Ok, I guess it's X11-only.

I can reproduce this bug in Wayland on my desktop computer.

Operating System: Arch Linux 
KDE Plasma Version: 6.4.1
KDE Frameworks Version: 6.15.0
Qt Version: 6.9.1
Kernel Version: 6.15.3-arch1-1 (64-bit)
Graphics Platform: Wayland
Processors: 16 × AMD Ryzen 7 5700G with Radeon Graphics
Memory: 32 GiB of RAM (30.7 GiB usable)
Graphics Processor: AMD Radeon Graphics
Product Name: B550M Pro4
Comment 7 David Redondo 2025-06-30 06:52:16 UTC
Cannot reproduce on Wayland with ctrl+ä. Which shortcut are you using?
Comment 8 Dmitry 2025-06-30 08:25:19 UTC
(In reply to David Redondo from comment #7)
> Cannot reproduce on Wayland with ctrl+ä. Which shortcut are you using?

I reproduced this with Meta+O.
Comment 9 Graeme Gott 2025-06-30 09:38:12 UTC
(In reply to David Redondo from comment #7)
> Cannot reproduce on Wayland with ctrl+ä. Which shortcut are you using?

I use Meta+F12 as my shortcut.
Comment 10 Zamundaaa 2025-07-03 15:31:02 UTC
Let's not mix up problems here. The issues on Wayland are almost certainly bug 493879 - a workaround for the output missing - while the X11 problem is something else.