Summary: | Turn off screen shortcut turns the screen back on automatically | ||
---|---|---|---|
Product: | [Plasma] Powerdevil | Reporter: | squidinkrf |
Component: | general | Assignee: | Plasma Bugs List <plasma-bugs> |
Status: | RESOLVED DUPLICATE | ||
Severity: | normal | CC: | ad.liu.jin, alberto, contact, denilsonsa, elydgolden, eugene.beetle, jonathangeorgiou94, justin.zobel, kde, natalie_clarius, nate, onestone, saulfautley, till2.schaefer, tinozzo123, xaver.hugl, yuking_net |
Priority: | NOR | ||
Version: | master | ||
Target Milestone: | --- | ||
Platform: | Other | ||
OS: | Linux | ||
URL: | https://github.com/ValveSoftware/steam-for-linux/issues/5607 | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
squidinkrf
2020-06-16 02:06:06 UTC
Can confirm. Can also confirm. It was working fine until I reassigned the shortcut. Now no matter what key I assign my screens turn back on immediately. I don't suppose there's a fix planned anytime soon or a temporary workaround? I used this daily so it's become quite frustrating to not have this feature anymore. Can confirm still an issue on 5.20.2 on KDE Neon User Edition. I found the culprit of this on my system -- Steam. As soon as I quit Steam the shortcut works perfectly. The issue is being tracked here: https://github.com/ValveSoftware/steam-for-linux/issues/5607 Ah yup, that. An old, annoying known issue with Steam :( > I found the culprit of this on my system -- Steam. As soon as I quit Steam the shortcut works perfectly.
I'm not running Steam, but the screen still turns back on after a few seconds (when using a Plasma/PowerDevil shortcut). On the other hand, if I use "xset dpms force off" to accomplish the same, the screen stays off until a key is pressed (or the mouse is moved).
I am not using steam neither and also have this issue. I think the key release event is registered to wake up the screen again after the monitor was turned off with key press. When pressing key and holding it, the screen is turned off as expected, but as soon the key is released, it is turned on again. (for that reason i used to add a sleep 1 to my custom script for turning the monitor off. However, that solution is not really great because it is not working when pressing the key for more that a second and the screen is turned of only after a short delay) I can also reproduce this on wayland. Operating System: Gentoo Linux KDE Plasma Version: 5.22.5 KDE Frameworks Version: 5.86.0 Qt Version: 5.15.2 Kernel Version: 5.13.19-gentoo (64-bit) Graphics Platform: Wayland Processors: 8 × Intel® Core™ i7-4810MQ CPU @ 2.80GHz Memory: 15.5 GiB of RAM Graphics Processor: Mesa DRI Intel® HD Graphics 4600 when calling the command from command line with pre-sleep, it works correctly. So the thing here seems to be indeed, that the key to invoke the shortcut actually triggers the wakeup. workaround: sleep 1 && dbus-send --session --print-reply --dest=org.kde.kglobalaccel /component/org_kde_powerdevil org.kde.kglobalaccel.Component.invokeShortcut string:'Turn Off Screen' Tthe screen turns back on after a few seconds even I use "xset dpms force off". *** Bug 445566 has been marked as a duplicate of this bug. *** The issue is kinda solved on Wayland: because there the screen fades off slowly (instead of instantly), the user has plenty of time to release the buttons used for the shortcut (but if they hold them long enough, then the screen will turn back on). (On X11, about `xset dpms force off`, because the terminal takes a little time to process the instruction, you can have the screen stay off if you release Enter fast enough) *** Bug 462619 has been marked as a duplicate of this bug. *** Plasma 5.27 (released in February 2023) announced a new feature: “While on the lock screen, hit the Esc key to turn off the screen and save some power.” Unfortunately, it seems this feature never worked for some people, as bug 466344 shows. Can confirm on kubuntu 23.04 with plasma 5.27.4 I am experiencing this on Wayland on Fedora 39 KDE Plasma Version: 5.27.10 KDE Frameworks Version: 5.115.0 QT Version: 5.15.12 Kernel version: 6.7.3-200.fc39x86_64 Graphics Platform: Wayland I get the issue both when assigning a shortcut through plasma settings and when running kscreen-doctor --dpms off, even if I add the reported sleep workaround. *** This bug has been marked as a duplicate of bug 480026 *** |