Bug 461428

Summary: [NVIDIA] both the built-in screen and external screen become whole black when i connect the external screen to my laptop
Product: [Plasma] kwin Reporter: xbp <3373462216>
Component: multi-screenAssignee: KWin default assignee <kwin-bugs-null>
Status: REPORTED ---    
Severity: normal CC: kde, nate
Priority: NOR Keywords: multiscreen
Version First Reported In: 5.26.2   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: the output of xport QT_MESSAGE_PATTERN="[%{time hh::mm:s.zzz}] %{function}: %{message}" kquitapp5 kded5 kded5

Description xbp 2022-11-04 15:50:37 UTC
Created attachment 153461 [details]
the output of xport QT_MESSAGE_PATTERN="[%{time hh::mm:s.zzz}] %{function}: %{message}" kquitapp5 kded5 kded5

SUMMARY
***
NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols.
See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***


STEPS TO REPRODUCE
connect another screen to my laptop. 
OBSERVED RESULT
both the external screen and the built-in become black
and even if i successfully boot up both the screen ,if i go out for a while and the computer sleep,   it cannot be waken up.
EXPECTED RESULT
both the screen work well

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: archlinux kde
(available in About System)
KDE Plasma Version: 5.26.2
KDE Frameworks Version: 5.99.0
Qt Version: 5.15.7

ADDITIONAL INFORMATION
Comment 1 Nate Graham 2022-11-12 14:07:52 UTC
> [22::53:26.100] unknown: KScreen::Output(448, "HDMI-0", connected disabled primary, pos: QPoint(0,0), res: QSize(-1, -1), modeId: "", scale: 1, clone: no, rotation: KScreen::Output::None, followPreferredMode: false)
This appears to be Bug 460341.

The remaining parts of the issue don't appear to be KScreen's fault, so I'm moving the bug report to KWin. Are you using the X11 session or the Wayland session? What GPU hardware and drivers are you using?
Comment 2 xbp 2022-11-13 17:47:08 UTC
I‘m using x11 session. I use a nvidia gpu rtx3060laptop and I am using the closed source driver provided in the AUR. The X11 configuration is default.
Comment 3 xbp 2022-11-13 17:53:57 UTC
Besides, if i use xrandr --output HDMI-0 --mode 3840x2160 and use the display configuration in the system settings ,it can work well until i shut it down or it sleeps automatically.
Comment 4 Nate Graham 2022-11-14 20:06:11 UTC
Thanks for the info.