| Summary: | Screen goes to sleep, wakes, sleeps, wakes and stays on. | ||
|---|---|---|---|
| Product: | [Plasma] kwin | Reporter: | zero <zero.city802> |
| Component: | general | Assignee: | KWin default assignee <kwin-bugs-null> |
| Status: | RESOLVED WORKSFORME | ||
| Severity: | normal | CC: | guido.iodice, nate, xaver.hugl |
| Priority: | NOR | ||
| Version First Reported In: | 6.4.3 | ||
| Target Milestone: | --- | ||
| Platform: | Arch Linux | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
| Attachments: | Journalctl log of the sleep and wake cycle | ||
|
Description
zero
2025-07-22 07:52:47 UTC
Not sure if useful/relevant but;
$ kscreen-doctor -o
Output: 1 DP-2 944f274e-2cfe-46c5-a942-55c810ef4a3f
enabled
connected
priority 1
DisplayPort
replication source:0
Modes: 1:3440x1440@120*! 2:3440x1440@60 3:3440x1440@175 4:2560x1440@175 5:2560x1440@120 6:2560x1440@60 7:1920x1200@120 8:1920x1080@175 9:1920x1080@120 10:1920x1080@120 11:1920x1080@120 12:1920x1080@60 13:1920x1080@60 14:1600x1200@120 15:1680x1050@60 16:1600x900@60 17:1280x1024@60 18:1440x900@60 19:1280x800@60 20:1280x720@60 21:1280x720@60 22:1280x720@60 23:1024x768@60 24:800x600@60 25:720x480@60 26:720x480@60 27:640x480@60 28:640x480@60 29:1600x1200@60 30:1600x1200@175 31:1280x1024@175 32:1024x768@175 33:1920x1200@60 34:1920x1200@175 35:1280x800@175 36:1600x900@175 37:1368x768@60 38:1368x768@175 39:1280x720@175
Geometry: 0,0 3440x1440
Scale: 1
Rotation: 1
Overscan: 0
Vrr: Never
RgbRange: Full
HDR: enabled
SDR brightness: 150 nits
SDR gamut wideness: 0%
Peak brightness: 400 nits
Max average brightness: 248 nits
Min brightness: 0 nits
Wide Color Gamut: enabled
ICC profile: none
Color profile source: sRGB
Color power preference: prefer accuracy
Brightness control: supported, set to 75% and dimming to 100%
Color resolution: 10 bits per color, range: [8; 16] bits per color
Allow EDR: unsupported
The same happens on my other OS on the same system. $ kinfo Operating System: Manjaro Linux KDE Plasma Version: 6.3.6 KDE Frameworks Version: 6.16.0 Qt Version: 6.9.1 Kernel Version: 6.15.7-1-MANJARO (64-bit) Graphics Platform: Wayland Processors: 20 × Intel® Core™ i5-14600K Memory: 31.1 GiB of RAM Graphics Processor: AMD Radeon RX 7900 XT Follow up: As this problem is way out of my league knowledge wise, I tried diagnosing with ChatGPT. What didnt work: - Using different kernel (tested 6.15.7-1, 6.12.39-1) - Kernel param: amdgpu.dc=0 - Kernel param: amdgpu_hotplug.dc=0 This led me to: $ udevadm monitor --subsystem-match=drm KERNEL[3864.424231] change /devices/pci0000:00/0000:00:01.0/0000:01:00.0/0000:02:00.0/0000:03:00.0/drm/card1 (drm) UDEV [3864.432087] change /devices/pci0000:00/0000:00:01.0/0000:01:00.0/0000:02:00.0/0000:03:00.0/drm/card1 (drm) KERNEL[3867.922168] change /devices/pci0000:00/0000:00:01.0/0000:01:00.0/0000:02:00.0/0000:03:00.0/drm/card1 (drm) UDEV [3867.931875] change /devices/pci0000:00/0000:00:01.0/0000:01:00.0/0000:02:00.0/0000:03:00.0/drm/card1 (drm) Turned on debugging temporarily, letting the monitor sleep and wake(by itself) showed me this; $ sudo dmesg -w | grep hotplug [ 1512.751780] amdgpu 0000:03:00.0: [drm:drm_sysfs_connector_hotplug_event] [CONNECTOR:101:DP-2] generating connector hotplug event [ 1512.751833] amdgpu 0000:03:00.0: [drm:drm_client_dev_hotplug] fbdev: ret=0 [ 1516.397131] amdgpu 0000:03:00.0: [drm:drm_sysfs_connector_hotplug_event] [CONNECTOR:101:DP-2] generating connector hotplug event [ 1516.397177] amdgpu 0000:03:00.0: [drm:drm_client_dev_hotplug] fbdev: ret=0 So this was tracked down to being a hotplug event triggering the monitor to wake again, and (according to ChatGPT) causes the DPMS idle timer to no be tracked anymore/broken after that. Bug report for this issue: https://gitlab.freedesktop.org/drm/amd/-/issues/662 --- After messing with a lot of stuff the waking is no longer occurring. I have no idea what I did that "fixed" it for me thats the annoying part. My current settings/what I've changed since this bug report: - Boot/grub.cfg: Removed kernel params for iommu(on manjaro system) - Monitor: Enter standby in 60 seconds (previously this was set to 30 seconds) - Monitor: VRR: On - Monitor sleep timer: 30 mins (probably unrelated but mentioning it anyways) - KDE: Adaptive Sync: Always - KDE: Refresh rate: 175Hz - KDE: Lock screen automatically: Never - KDE: Dim screen auto: Never - KDE: Turn off screen: 30s I can confirm this on Plasma 6.4.5, but it seems a bit different When an external monitor is active and the laptop monitor is deactivated, the (external) screen wakes up on its own after going into automatic standby mode. This only happens on Wayland (X11 is ok) in this configuration: if both screens are active or only the laptop screen is active, the problem does not occur. Also, while the external monitor is waking up, for an instant (less than a second), also the laptop monitor turns on, then turns off again, while the external monitor remains on. My configuration is pretty different: Operating System: Manjaro Linux KDE Plasma Version: 6.4.5 KDE Frameworks Version: 6.19.0 Qt Version: 6.10.0 Kernel Version: 6.18.0-rc1-1-MANJARO (64-bit) Graphics Platform: Wayland Processors: 8 × 11th Gen Intel® Core™ i5-1135G7 @ 2.40GHz Memory: 16 GiB of RAM (15.3 GiB usable) Graphics Processor: Intel® Iris® Xe Graphics > [ 1512.751780] amdgpu 0000:03:00.0: [drm:drm_sysfs_connector_hotplug_event] [CONNECTOR:101:DP-2] generating connector hotplug event > [ 1512.751833] amdgpu 0000:03:00.0: [drm:drm_client_dev_hotplug] fbdev: ret=0 > [ 1516.397131] amdgpu 0000:03:00.0: [drm:drm_sysfs_connector_hotplug_event] [CONNECTOR:101:DP-2] generating connector hotplug event > [ 1516.397177] amdgpu 0000:03:00.0: [drm:drm_client_dev_hotplug] fbdev: ret=0 Oof, almost 4 seconds apart, that's the worst case I've seen so far. If you manage to undo whatever AI-hallucinated things you did to your system to reproduce the problem again, please try putting KWIN_DPMS_WORKAROUND_TIMEOUT=5000 into /etc/environment + rebooting, and check if that helps. The default is 2000(ms), I'm not sure how much we want to increase that still. Maybe increasing it to 5s would still be okay; unplugging and immediately re-plugging a display that quickly and expecting it to wake up in that scenario is rather unlikely. (In reply to Guido from comment #4) > I can confirm this on Plasma 6.4.5, but it seems a bit different That is a different issue, and will be fixed by https://invent.kde.org/plasma/kwin/-/merge_requests/8282 🐛🧹 ⚠️ 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! 🐛🧹 This bug has been in NEEDSINFO status with no change for at least 30 days. Closing as RESOLVED WORKSFORME. |