Bug 465067 - Main display disables itself if monitor is turned off for some hours
Summary: Main display disables itself if monitor is turned off for some hours
Status: RESOLVED DUPLICATE of bug 466705
Alias: None
Product: KScreen
Classification: Plasma
Component: common (show other bugs)
Version: 5.26.5
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: kscreen-bugs-null@kde.org
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-01-31 01:40 UTC by BroskiBaboski
Modified: 2024-12-11 05:17 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In: 5.27
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description BroskiBaboski 2023-01-31 01:40:31 UTC
SUMMARY
I have a multi monitor setup and a necessity to keep my computer running overnight, I have figured the main display is disabled when I turn on the monitors the next day.
This behavior is inconsistent and happens about 3/4 of the times.

STEPS TO REPRODUCE
1. Physically turn off all monitors
2. Leave the computer running for some hours (lowest detected was after about 3, but more likely to happen if left off for a sleep worth amount of time)

OBSERVED RESULT
The main display ends up disabled, the screen stays black and gives no signal. Sometimes there's random misbehavior such as the taskbar having moved to another display, or the wallpapers shifted, but otherwise the other displays are unaffected in their location.

EXPECTED RESULT
All displays would turn on as normal and no weird behavior happens

SOFTWARE/OS VERSIONS
Operating System: EndeavourOS
KDE Plasma Version: 5.26.5
KDE Frameworks Version: 5.102.0
Qt Version: 5.15.8
Kernel Version: 6.1.8-arch1-1 (64-bit)
Graphics Platform: X11
Processors: 16 × AMD Ryzen 7 3700X 8-Core Processor
Memory: 31,3 GiB of RAM
Graphics Processor: NVIDIA GeForce RTX 2070 SUPER/PCIe/SSE2

ADDITIONAL INFORMATION
• I have a 4 monitors setup: The main one is plugged via DP, as well as 2 of the others. The fourth one is a drawing tablet and is plugged via HDMI
• The main monitor is 144hz, one is 75, the other & the tablet are 60
• In the nvidia settings, I only set the main monitor to force full composition pipeline (for refresh rate and tearing)
• Every setting within KDE about screen energy saving is disabled, I do not wish to have my displays automatically switching off
• When the main display ends disabled, I turn it on and adjust it back via nvidia x server settings, it will be necessary to reconfigure resolution, refresh rate, location, composition pipeline and so on
• The display settings in KDE seem to weirdly behave when attempting to adjust the disabled monitor (moving its location appears to get stuck and things like that). It works correctly after the monitor has been reconfigured via nvidia x server settings
• This only began happening since my relatively recent reinstall of the current release of EndeavourOS, it never happened before on the previous release I had installed last march.
• The same has happened about once or twice as I used alternate output of my main display (HDMI opposed to DP) to play on my nintendo switch for a few hours, suggesting this occurs when there's no signal for an extended period of time
• It doesn't seem to happen if the monitor is off for a short amount of time
Comment 1 Nate Graham 2023-02-06 18:51:29 UTC
This should be fixed in Plasma 5.27. Please re-open if you find that it's not once you upgrade to that version. Thanks!
Comment 2 BroskiBaboski 2023-02-20 15:21:03 UTC
Unfortunately the problem is persisting as of plasma version 5.27.0.
I also noticed that as the main display disables itself, other monitors inherit some of its properties, namely primary status and composition pipeline.

In my ignorance, I'm starting to suspect this might be more of a nvidia linux driver problem than a kde one, but if that were to be the case, I would not know where to report it.
Comment 3 Rock Bollinger 2024-11-27 20:30:19 UTC
I have a similar issue.

SUMMARY
If I turn off my TV (being used as a monitor) for longer than maybe 15 mins, then when I turn it on again, I just get "no signal". Seems to happen at least 90% of the time.

STEPS TO REPRODUCE
1. Turn off TV using the remote. Or use the "turn off screen" setting in Power Management.
2. After >15 mins, turn on TV again.

OBSERVED RESULT
TV stays at "no signal". Using keyboard/mouse has no effect. I have to do a hard power off on my PC by holding down the power button.

EXPECTED RESULT
TV should display the desktop (or lock screen) as usual.

SOFTWARE/OS VERSIONS
Operating System: Kubuntu 24.10
KDE Plasma Version: 6.1.5
KDE Frameworks Version: 6.6.0
Qt Version: 6.6.2
KERNEL: 6.11.0-9-generic
CPU: Intel Core i5-14600KF
GPU: NVIDIA GeForce RTX 4070 Ti SUPER
GPU DRIVER: NVIDIA 560.35.03
RAM: 32 GB
Display: LG C3 42" OLED TV, connected via HDMI

ADDITIONAL INFO
I get a similar issue when attempting to resume from Sleep. 
As a workaround, in power management I prevent the display from turning off. I don't use sleep at all. Instead I configure my PC to turn off after 15 minutes of idle time.
Comment 4 Rock Bollinger 2024-11-27 21:14:09 UTC
Also: I don't get this issue in Win11. And sleep works properly too.
Comment 5 John Kizer 2024-12-06 07:01:07 UTC
Hi - thanks for your bug report! Unfortunately this appears to be an upstream Nvidia driver issue. Please see bullet point 4 of the "Known Issues And Workarounds" section linked here: https://download.nvidia.com/XFree86/Linux-x86_64/565.77/README/dynamicpowermanagement.html#KnownIssuesAndW6426e

(This particular link is to the most recent version, but the same content has appeared since at least version 545)

The individual who identified the documentation from Nvidia about this issue also mentioned that on their system, it couldn't be reproduced on Wayland, so that may be a workaround option for you as well: https://bugs.kde.org/show_bug.cgi?id=466705#c2

The Nvidia forum might possibly provide some more assistance - a link to a recent post on this topic is here: https://forums.developer.nvidia.com/t/black-screen-after-pc-wakes-up-from-suspend/304023

Thanks,

*** This bug has been marked as a duplicate of bug 466705 ***
Comment 6 Rock Bollinger 2024-12-07 13:49:56 UTC
Thanks John.

I've confirmed it's an nVidia driver issue. Switching to the nouveau driver fixes the problem - sleeping and resuming from sleep function correctly, the display comes back on as expected.

Hopefully nVidia fix this soon. The nouveau driver is limited to 60Hz, doesn't have HDR and generally just doesn't look as clear.
Comment 7 Rock Bollinger 2024-12-11 05:17:16 UTC
This issue seems to be fixed in Fedora 41, with nVidia driver 565.57.01. Sleep/Resume now functions correctly, and it's fast!

Operating System: Fedora Linux 41
KDE Plasma Version: 6.2.4
KDE Frameworks Version: 6.8.0
Qt Version: 6.8.0
Kernel Version: 6.11.10-300.fc41.x86_64 (64-bit)
Graphics Platform: Wayland
Processors: 20 × Intel® Core™ i5-14600KF
Memory: 31.2 GiB of RAM
Graphics Processor: NVIDIA GeForce RTX 4070 Ti SUPER/PCIe/SSE2
Manufacturer: Gigabyte Technology Co., Ltd.
Product Name: Z790 D DDR4
nVidia Driver: 565.57.01