Summary: | Monitor power saving won't work when using DisplayPort cable | ||
---|---|---|---|
Product: | [Plasma] Powerdevil | Reporter: | Mircea Kitsune <sonichedgehog_hyperblast00> |
Component: | general | Assignee: | Plasma Bugs List <plasma-bugs> |
Status: | RESOLVED DOWNSTREAM | ||
Severity: | major | CC: | aagaande, buddha, ecc_2000, florian, inkbottle007, julien.dlq, nate, postix, poultrymanager, pqwoerituytrueiwoq, rommy, rptreat, rushpl, sonichedgehog_hyperblast00, ts+kde, tuomas, wannabetheguy, xaver.hugl |
Priority: | NOR | ||
Version: | 5.18.5 | ||
Target Milestone: | --- | ||
Platform: | Other | ||
OS: | Linux | ||
See Also: |
https://bugs.kde.org/show_bug.cgi?id=426609 https://bugs.kde.org/show_bug.cgi?id=413618 |
||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Mircea Kitsune
2020-06-04 16:23:21 UTC
I can confirm that disabling hotplugging fixes this problem. After going to System Settings - Workspace - Startup and Shutdown - Background Services and disabling KScreen 2, I'm able to properly put my monitor into standby. This component is responsible for waking the monitor up immediately after it powers down even when you don't press a key or move the mouse. Note that this only fixes monitor standby for the X11 Plasma session, not Wayland which appears to be an unrelated issue. Even with KScreen2 disabled, I still get a session crash and taken back to the login screen when my monitor goes into standby over the DP cable. Standby via HDMI works in Wayland too. This is unfortunately still an issue, seemingly on both X11 and Wayland. It might be specific to different types of monitors: Some only do this on a DisplayPort connection, others even over HDMI cable. When it happens the system won't allow that monitor to go into standby, waking it up right after the screen has gone to sleep. Only way to resolve is to disable the KScreen service which also turns off hot plugging... at least on X11, on Wayland even that won't let the monitor stay powered off (it also crashed KWin on WL). You can mimic `xset dpms force off` on wayland, doing: `qdbus org.kde.kglobalaccel /component/org_kde_powerdevil invokeShortcut "Turn Off Screen"`, even if it seems a bit convoluted, since it involves "shortcut" instead of going straight to the point. Some other issue related to "monitor power saving": https://bugs.kde.org/show_bug.cgi?id=348082 "monitor is randomly powered back on". This happens here too. Ubuntu 20.04, powerdevil 5.18.4.1-0ubuntu1, kscreen 5.18.4.1-0ubuntu1. External display (connected via USB-C) doesn't power off after the timeout, but the laptop's screen does. The laptop is ThinkPad T14 Gen1. Stopping KScreen2 seems to help. I've also had issues with the screen hot-plugging, even before stopping KScreen2: When connecting or disconnecting the external display, KDE doesn't seem to notice it at all. I found a workaround that if I run just "xrandr" without any params, it will then notice the new/removed display and the desktop is configured correctly. Could this power-off issue then be somehow related to KScreen2 being jammed or something like that? A possibly relevant merge request was started @ https://invent.kde.org/plasma/kwin/-/merge_requests/1463 Sorry for the noise, I thought otherwise at first but that MR doesn't really help for this issue. To at least add some more info about why this issue happens: Some monitors make some GPUs detect a unplug and then a hotplug event when they go into standby, making the system wake up because it thinks it detected a new monitor. It's a really annoying issue that's relevant for random combinations of hardware and software. A possible workaround for Wayland is https://invent.kde.org/plasma/kwin/-/merge_requests/919, which makes KWin ignore all outputs until you explicitly wake it up again. An actual fix for this is required to be at the kernel level, in the GPU drivers, on a per-hardware basis. I also encountered this issue and was able to successfully workaround by disabling the KScreen 2 service. Got on Plasma 5.23.3 in Manjaro. Even in this release the issue hasn't been fully addressed: Tested Wayland session again on my mother's computer, it uses a common HDMI connection for the monitor. Once the monitor shut itself off, it came right back up as usual... this time however I only saw the desktop wallpaper and none of the keys worked, it's like the entire system froze as not even Alt + Shift + F# to change runlevel worked any more, though I could still move the mouse pointer around which was peculiar. this is interesting, with my RX 580 this is not a issues, i have matching 1080p 144hz monitors (AOC C24G1) I am using 2 display ports, and this is not a issue Operating System: Kubuntu 22.04 KDE Plasma Version: 5.23.4 KDE Frameworks Version: 5.89.0 Qt Version: 5.15.2 Kernel Version: 5.16.0-051600rc5-generic (64-bit) Graphics Platform: X11 Processors: 12 × AMD Ryzen 5 3600 6-Core Processor Memory: 15.6 GiB of RAM Graphics Processor: Radeon RX 580 Series $ apt-cache policy powerdevil powerdevil: Installed: 4:5.23.4-0ubuntu1 Candidate: 4:5.23.4-0ubuntu1 Version table: *** 4:5.23.4-0ubuntu1 500 500 http://us.archive.ubuntu.com/ubuntu jammy/universe amd64 Packages 100 /var/lib/dpkg/status ------------------- However when using my 5600G's integrated gpu via hdmi (the only video out port, oh the limitations of the itx form factor) i get this issue though in wayland it wakes to a black screen that allows me to do nothing on x11 i can work around this by disabling xscreen2, however in wayland this has no effect After testing a couple monitor on different hardware over different ports, this issue looks to only affect AMD gpus as well as some monitors, it does not matter if it is HDMI or Display port it looks like if your monitor supports disabling auto source detection turning that off is a workaround perhaps kscreen/powerdevil should ignore 'new' connections when entering power savings move for a few seconds (probably 5 to 10 should be good), if this behavior can be limited to connections that were in use before entering power savings mode and only target amd gpus that would be a suitable workaround this bug should only affect a small minority of users on rare occasions I am also facing this issue on my triple monitor setup using DP, HDMI and DVI (I suspect my DP-Monitor is to blame here...). For me this also leads to annoying side effects such as my windows being moved around. Operating System: Fedora Linux 35 KDE Plasma Version: 5.23.3 KDE Frameworks Version: 5.89.0 Qt Version: 5.15.2 Kernel Version: 5.15.11-200.fc35.x86_64 (64-bit) Graphics Platform: Wayland Processors: 8 × Intel® Core™ i7-6700 CPU @ 3.40GHz Memory: 15.6 GiB of RAM Graphics Processor: AMD Radeon R9 380 Series (In reply to ecc_2000 from comment #11) > I am also facing this issue on my triple monitor setup using DP, HDMI and > DVI (I suspect my DP-Monitor is to blame here...). For me this also leads to > annoying side effects such as my windows being moved around. disable your monitors auto-detect source feature, that is the best workaround there is (In reply to pqwoerituytrueiwoq from comment #12) > disable your monitors auto-detect source feature, that is the best workaround there is I looked everywhere for that: My monitor OSD doesn't have an option for that, at least not any I can find. For the record my screen is a ViewSonic VX2458-C-MHD: https://www.viewsonic.com/us/products/shop/monitors/vx2458-c-mhd.html The issue no longer occurs for me. Hardware configuration hasn't changed, mouse, keyboard, monitor, etc. Latest debian-sid, wayland as pure as possible. (In reply to Chris from comment #14) > The issue no longer occurs for me. Hardware configuration hasn't changed, > mouse, keyboard, monitor, etc. Latest debian-sid, wayland as pure as > possible. What kernel version? the command 'uname -r' will print the version number 5.17.0-2-amd64 Kernel 5.18 and I definitely still have the problem. Sadly also on HDMI alongside DP. It occurs both in X11 and Wayland: In X11 it can be stopped by disabling the KScreen2 service, in Wayland it will do it regardless of whether that service is running so there's virtually no way to use monitor power saving (at least it no longer crashes as well). This is frustrating and very unfortunate, after so many years I wonder if this can ever be addressed. A possibly relevant merge request was started @ https://invent.kde.org/plasma/kwin/-/merge_requests/2940 Only addition I can make is confirming the issue is heavily dependent on the monitor model. I just bought a new Samsung Odyssey to replace my Viewsonic monitor over multiple issues: Where the Viewsonic wouldn't normally stay in sleep under either X11 or Wayland, the Samsung does so in both with KScreen2 enabled and on either HDMI or DP cables. The old monitor was moved to another computer... on it standby actually works now, despite not working on the same cable on my box. And both machines use AMD cards, I forgot if I still enable amdgpu on my mother's PC which may explain why there it's working at least in X11. Hopefully affected monitor models will also be fixed, there seem to be quite a few especially around lower end products. Hi, I had the same problem, but with the last update it seems to be solved. VERSION: Operating System: Arch Linux KDE Plasma Version: 5.26.3 KDE Frameworks Version: 5.100.0 Qt Version: 5.15.7 Kernel Version: 6.0.9-arch1-1 (64-bit) Graphics Platform: Wayland I'm not sure if this is exactly the right issue, but I seem to be experiencing something like this ever since upgrading from Fedora KDE 36 to Fedora KDE 37. I have an Asus XG27AQ at 144hz using DisplayPort, and an Asus VS239 at 60hz using HDMI. Both are plugged in to a 6700XT. The last version of KDE on Fedora KDE 36 was 5.25.5, and my monitors would stay asleep as expected. After upgrading to Fedora KDE 37 which brought KDE 5.26.3, as long as both monitors are powered on, they immediately wake up after entering sleep. If I turn off the HDMI monitor, the DisplayPort monitor stays asleep. If I turn off the DisplayPort monitor, the HDMI monitor wakes up after entering sleep. This persisted with 5.26.4, and at the moment with 5.26.5. On Wayland in all instances. Disabling kscreen2 doesn't help. At the end of Fedora KDE 36, I had kernel 6.0.7. Fedora KDE 37 brought that to 6.0.8. I'm now on 6.1.6. Only reason the issue was finally resolved for me is last year I got a new monitor from Samsung due to the old one showing signs of failing. The Samsung Odyssey monitor will correctly go and stay in standby, both in X11 and Wayland on both HDMI and DisplayPort cable, also enabling or disabling automatic source detection in the monitor OSD doesn't effect it (works fine on both). By comparison the ViewSonic will not stay powered down on either cable: It will only on X11 if I disable the KScreen2 service, on Wayland never. On the machine it's now on (also Manjaro / KDE) I just disabled monitor power saving especially since WL can still experience minor issues when there's no screen, I put the whole machine into standby / suspend which saves more power anyway. (In reply to Nick from comment #21) > I'm not sure if this is exactly the right issue, but I seem to be > experiencing something like this ever since upgrading from Fedora KDE 36 to > Fedora KDE 37. > I have an Asus XG27AQ at 144hz using DisplayPort, and an Asus VS239 at 60hz > using HDMI. Both are plugged in to a 6700XT. > > The last version of KDE on Fedora KDE 36 was 5.25.5, and my monitors would > stay asleep as expected. > After upgrading to Fedora KDE 37 which brought KDE 5.26.3, as long as both > monitors are powered on, they immediately wake up after entering sleep. > If I turn off the HDMI monitor, the DisplayPort monitor stays asleep. If I > turn off the DisplayPort monitor, the HDMI monitor wakes up after entering > sleep. > This persisted with 5.26.4, and at the moment with 5.26.5. > > On Wayland in all instances. Disabling kscreen2 doesn't help. > At the end of Fedora KDE 36, I had kernel 6.0.7. Fedora KDE 37 brought that > to 6.0.8. I'm now on 6.1.6. I am experiencing this issue as well I have a framework laptop with the display open. a radeon rx5700 connected by a razer chroma egpu enclosure. A monitor connected to the video card by the display port. The computer locks when idle but both the laptop and the monitor stay on all night. =/ Are there any logs I could attach that might be relevant and useful? Also to add, I am running fedora 37 kde spin with the 5.27 release of kde plasma under wayland (In reply to Matt Keith from comment #24) > Also to add, I am running fedora 37 kde spin with the 5.27 release of kde > plasma under wayland Running Nobara 37 (Fedora based) and switching to X11 gets my monitors to behave correctly. So my end, it's a Wayland thing. Ultimately this is caused by a distro issue: the kidletime library not being build with wayland support. See Bug 462695 for more details. Fedora has a patch. I tested it and it works for me. Should hit the repos soon. Details in the other bug referenced above. |