Bug 483275 - after wake from suspend get wrong resolution on second display
Summary: after wake from suspend get wrong resolution on second display
Status: CLOSED UPSTREAM
Alias: None
Product: kwin
Classification: Plasma
Component: multi-screen (show other bugs)
Version: 6.0.1
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords: multiscreen, qt6
: 483028 (view as bug list)
Depends on:
Blocks:
 
Reported: 2024-03-11 18:26 UTC by Erfan
Modified: 2024-04-04 21:54 UTC (History)
4 users (show)

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


Attachments
after happend (55.06 KB, application/octet-stream)
2024-03-16 07:53 UTC, Erfan
Details
before happend (55.51 KB, application/octet-stream)
2024-03-16 07:54 UTC, Erfan
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Erfan 2024-03-11 18:26:16 UTC
Hi i have this problem from plasma 5 and now on plasma 6 is same. some times when i suspend system or system suspend automatic after timeout. and wake my system up my second display that connected via vga port get the smallest resolution 640x480 and even monitor name change to DP-1 and i can not back that to default without disconnect cable and reconnect then resetting that in kde system settings its only happend on lockscreen i try sddm but it's not happend.
i have hybrid gpus intel 520 mesa and nvidia 940mx with propriety driver. i disable nvidia-resume and nvidia-suspend because with those i get blackscreen every time on my both monitor

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 6.7.9 zen / 6.0.1
(available in About System)
KDE Plasma Version:  6.0.1
KDE Frameworks Version:  6.0.0
Qt Version: 6.6.2
Comment 1 Nate Graham 2024-03-11 18:42:32 UTC
Not a critical issue as there's no data loss; downgrading severity.

Does this happen on X11, or Wayland, or both?
Comment 2 Nate Graham 2024-03-11 18:42:52 UTC
.
Comment 3 Erfan 2024-03-11 21:09:00 UTC
(In reply to Nate Graham from comment #1)
> Not a critical issue as there's no data loss; downgrading severity.
> 
> Does this happen on X11, or Wayland, or both?

I use wayland and it's most of the time happend on wayland last time i try x11 was on plasma 5.27.10 and if i wasn't wrong never happend
Comment 4 Erfan 2024-03-11 21:52:55 UTC
OK i try x11 and on x11 desktop a little bit faster load than lock screen so you can see every things on desktop after a sec lock screen came up its wired, it wasn't happend in plasma 5 and about resolution nothing change but window on second display unable to close or minimize with buttons after i maximize with double click on title bar i can use that buttons
Comment 5 Nate Graham 2024-03-13 16:39:11 UTC
Can you please use punctuation and proper English sentences, and also stick to a single topic? Otherwise it's very difficult to tell what you're saying and unfortunately the bug report will not be actionable.

Does this issue happen if you plug the affected screen into a different physical port on one of your GPUs? Or does it only happen when the screen is plugged into a VGA port?
Comment 6 Erfan 2024-03-15 09:35:44 UTC
(In reply to Nate Graham from comment #5)
> Can you please use punctuation and proper English sentences, and also stick
> to a single topic? Otherwise it's very difficult to tell what you're saying
> and unfortunately the bug report will not be actionable.
> 
> Does this issue happen if you plug the affected screen into a different
> physical port on one of your GPUs? Or does it only happen when the screen is
> plugged into a VGA port?

ok sorry. my second monitor is old and only support vga and I don't use much hdmi port to tell about that
Comment 7 Zamundaaa 2024-03-15 15:05:15 UTC
This sounds like a driver bug, it probably fails to read the EDID. To confirm that, please attach the output of drm_info when the resolution is correct, and again when the resolution is wrong.
Comment 8 Erfan 2024-03-16 07:53:29 UTC
Created attachment 167298 [details]
after happend
Comment 9 Erfan 2024-03-16 07:54:30 UTC
Created attachment 167299 [details]
before happend
Comment 10 Erfan 2024-03-16 08:05:20 UTC
(In reply to Zamundaaa from comment #7)
> This sounds like a driver bug, it probably fails to read the EDID. To
> confirm that, please attach the output of drm_info when the resolution is
> correct, and again when the resolution is wrong.

i make attachments for them. i didn't found drm_info in my system so i install that from aur i hope it was what you need
Comment 11 Nate Graham 2024-03-18 21:09:45 UTC
*** Bug 483028 has been marked as a duplicate of this bug. ***
Comment 12 Erfan 2024-03-22 09:28:50 UTC
(In reply to Nate Graham from comment #11)
> *** Bug 483028 has been marked as a duplicate of this bug. ***

Is there any hope this fix on next update
Comment 13 Zamundaaa 2024-03-22 14:55:22 UTC
Sorry, I got a bit sidelined here. In your drm_info output, I see
│       │   ├───1600x900@60.00 preferred driver phsync pvsync 
│       │   ├───1280x1024@60.02 driver phsync pvsync 
│       │   ├───1152x864@75.00 driver phsync pvsync 
│       │   ├───1024x768@75.03 driver phsync pvsync 
│       │   ├───1024x768@60.00 driver nhsync nvsync 
│       │   ├───832x624@74.55 driver nhsync nvsync 
│       │   ├───800x600@75.00 driver phsync pvsync 
│       │   ├───800x600@60.32 driver phsync pvsync 
│       │   ├───800x600@56.25 driver phsync pvsync 
│       │   ├───640x480@75.00 driver nhsync nvsync 
│       │   ├───640x480@59.94 driver nhsync nvsync 
│       │   └───720x400@70.08 driver nhsync pvsync 

as the mode list when it's correct, and
│       │   ├───640x480@59.94 preferred driver nhsync nvsync 
│       │   ├───1024x768@60.00 driver nhsync nvsync 
│       │   ├───800x600@60.32 driver phsync pvsync 
│       │   ├───800x600@56.25 driver phsync pvsync 
│       │   └───848x480@60.00 driver phsync pvsync 
when it's wrong.

So the driver changes the mode list, and we can't do anything about that - it's a driver bug. Please report it at https://forums.developer.nvidia.com/c/gpu-graphics/linux
Comment 14 Erfan 2024-04-03 17:27:01 UTC
(In reply to Zamundaaa from comment #13)
> So the driver changes the mode list, and we can't do anything about that -

sorry i reopen this, It's not driver issue i install gnome desktop and it's never happened i try many times (i suspend in gdm with second display connected or in gnomeshell) and it's only happened on plasma i use latest gnome 46
Comment 15 Nate Graham 2024-04-04 21:54:49 UTC
Working as expected on GNOME doesn't mean it's not a driver bug. The features of drivers can be used in different ways by different compositors. It's quite possible we're hitting this bug because we're using a feature of the driver that happens to be buggy, and GNOME's Mutter is using a different feature that's not buggy in the same way.