Bug 488201

Summary: Screen's resolution is 480x640 after woken from standby, until unplugged and re-plugged
Product: [Plasma] kwin Reporter: cantfind
Component: multi-screenAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED UPSTREAM    
Severity: normal CC: marton2+kde, nate, xaver.hugl
Priority: NOR Keywords: multiscreen
Version: 6.1.3   
Target Milestone: ---   
Platform: Manjaro   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: journalctl for the relevant time.
The correct display arrangement
Incorrect display arrangement after the display is turned back on
Output of drm_info when the displays work correctly
Output of drm_info when the displays are not working as expected

Description cantfind 2024-06-08 09:42:38 UTC
Created attachment 170264 [details]
journalctl for the relevant time.

SUMMARY

When going out of standby mode (first time after boot), the resolution is set to 480x640 (log shows it things the screen size is (0,0)).
If I let the monitor go to standby again, it gets the resolution correct the second time it goes out of standby.


STEPS TO REPRODUCE
1. Boot to desktop
2. Don't do anything and let the monitor go to standby
3. Press any key to wake it up

OBSERVED RESULT
Screen resolution is 480x640

EXPECTED RESULT
Screen resolution should remain 1440.

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 6.0.5
KDE Frameworks Version: 6.2.0
Qt Version: 6.7.1

ADDITIONAL INFORMATION
Graphics card is nvidia GTX 1080ti, driver is 550.78.
Monitor is Gigabyte M270
Comment 1 Nate Graham 2024-06-10 19:14:03 UTC

*** This bug has been marked as a duplicate of bug 484037 ***
Comment 2 Intergalactic Narwhal 2024-08-12 11:14:41 UTC
I have the exact same problem. I can see that this is a duplicate of 464037 but that one is a little different, this covers my situation exactly. I have to unplug and replug the monitor, then it returns to the correct resolution.

Linux/KDE Plasma (Fedora): 
KDE Plasma Version: 6.1.3
KDE Frameworks Version: 6.4.0
Qt Version: 6.7.2
Graphics card is Intel + Nvidia
Comment 3 Nate Graham 2024-08-12 11:44:14 UTC
Ok, re-opening this one.
Comment 4 Zamundaaa 2024-08-12 13:47:40 UTC
Please attach the output of drm_info when the resolution is wrong
Comment 5 Intergalactic Narwhal 2024-08-12 14:44:13 UTC
I have attached four files.
correct.txt shows the output of drm_info BEFORE the display is turned off.
incorrect.txt shows drm_info AFTER it has turned off and turned on again.

I have also attached two screenshots, config_correct.png shows the configuration dialog when everything works fine.
The display_arr_incorrect.png is a screenshot of the entire screen with the right half (sensitive parts) cropped. But you can see that the external display stayed at the same position with incorrect resolution while the internal display remained correctly positioned and sized. I saw this bug appear in other way as well, last time the external monitor moved to the top right of the internal monitor without a gap but also with a 640x480 resolution.

The flow for me:
- display gets locked after a timeout, SDDM is shown
- after a while,  both monitors are turned of correctly
- when I moved the mouse, SDDM comes back as expected but the external monitor has the 640x480 resolution

Also it happened to me that this issue only occurs on the first two suspends, the third time the display came back properly.
Please let me know if you need more info.
Comment 6 Intergalactic Narwhal 2024-08-12 14:44:35 UTC
Created attachment 172542 [details]
The correct display arrangement
Comment 7 Intergalactic Narwhal 2024-08-12 14:44:58 UTC
Created attachment 172543 [details]
Incorrect display arrangement after the display is turned back on
Comment 8 Intergalactic Narwhal 2024-08-12 14:45:35 UTC
Created attachment 172544 [details]
Output of drm_info when the displays work correctly
Comment 9 Intergalactic Narwhal 2024-08-12 14:46:07 UTC
Created attachment 172545 [details]
Output of drm_info when the displays are not working as expected
Comment 10 Zamundaaa 2024-08-12 15:41:52 UTC
The driver reports 640x480@59.94 as the only mode. Please report this to NVidia (https://forums.developer.nvidia.com/c/gpu-graphics/linux)