Bug 492176

Summary: Clamshell mode does not wake up monitor
Product: [Plasma] plasmashell Reporter: Andres Betts <anditosan1000>
Component: Power management & brightnessAssignee: Plasma Bugs List <plasma-bugs-null>
Status: REPORTED ---    
Severity: normal CC: ers.trion, natalie_clarius, nate
Priority: NOR Keywords: multiscreen
Version First Reported In: 6.2.4   
Target Milestone: 1.0   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Screenshot: Settings say external display is enabled, even though it's in standby
Screenshot: Built-in display seems to show mouse pointers for both displays
EDID log from Info Center
lspci output for GPU
Artifacts on built-in display after bug is triggered

Description Andres Betts 2024-08-25 19:32:33 UTC
SUMMARY
In my laptop when I use clamshell mode with external usb mouse, keyboard and screen my system goes to sleep, when I wake it up by opening the laptop, the apple display will wake up and turn on the external screen. If I, however, set my laptop to not sleep and only leave the turn screen off setting, when I wake up the computer again, my external monitor will not wake up like it did when the laptop came out of sleep. Is there a way to find out if there is some command or parameter that sleep mode sends and we could implement that for the turn screen on part?


STEPS TO REPRODUCE
1. Place laptop in sleep mode after X amount of time
2. Keep laptop in clamshell mode
3. Wake up laptop from sleep by opening laptop
4. External monitor will wake up as well (Apple Display in this case)

Second workflow
1. Place laptop in "Do nothing" mode after X amount of time
2. Keep laptop in clamshell mode
3. Wait until external monitor turns off after a period of inactivity
4. Move the mouse or type on the keyboard to wake up the display

OBSERVED RESULT
Display does not wake up

EXPECTED RESULT
Display should wake up any time the screen has been off due to inactivity


SOFTWARE/OS VERSIONS
Operating System: Fedora Linux 42
KDE Plasma Version: 6.1.4
KDE Frameworks Version: 6.5.0
Qt Version: 6.7.2
Kernel Version: 6.11.0-0.rc3.20240814git6b0f8db921ab.32.fc42.x86_64 (64-bit)
Graphics Platform: Wayland
Processors: 16 × AMD Ryzen 9 6900HS with Radeon Graphics
Memory: 14.8 GiB of RAM
Graphics Processor: AMD Radeon 680M
Manufacturer: ASUSTeK COMPUTER INC.
Product Name: ROG Zephyrus G14 GA402RJ_GA402RJ
System Version: 1.0
Comment 1 Nate Graham 2024-08-28 16:58:10 UTC
Assuming I tested this correctly, I can't reproduce the issue with my HP Z24m G3 monitor, which is connected to my laptop via a USB-C 4.0 cable (not Thunderbolt) providing DisplayPort signal, power delivery, and USB.

I tested as follows:
1. Plug in laptop and close lid -> external screen stays on as intended
2. Configure system to sleep after one minute -> wait a minute, let it sleep
3. Open lid -> system wakes and both screens become active

1. Plug in laptop and close lid -> external screen stays on as intended
2. Configure system to never sleep, but turn off screens after 30 seconds -> wait 30 seconds, let screen turn off
3. Wiggle the mouse -> screen turns back on

Could be an issue with your monitor.
Comment 2 Andres Betts 2024-08-28 17:42:51 UTC
(In reply to Nate Graham from comment #1)
> Assuming I tested this correctly, I can't reproduce the issue with my HP
> Z24m G3 monitor, which is connected to my laptop via a USB-C 4.0 cable (not
> Thunderbolt) providing DisplayPort signal, power delivery, and USB.
> 
> I tested as follows:
> 1. Plug in laptop and close lid -> external screen stays on as intended
> 2. Configure system to sleep after one minute -> wait a minute, let it sleep
> 3. Open lid -> system wakes and both screens become active
> 
> 1. Plug in laptop and close lid -> external screen stays on as intended
> 2. Configure system to never sleep, but turn off screens after 30 seconds ->
> wait 30 seconds, let screen turn off
> 3. Wiggle the mouse -> screen turns back on
> 
> Could be an issue with your monitor.

It is likely that something is off. I should mention that Windows 11 has no problems turning on the screen. Whether the laptop is in sleep mode, or in active mode with the screen off, any USB mouse or keyboard will wake up the display.

I also have this graphics setup

Device: 0
  Name:        Advanced Micro Devices, Inc. [AMD®/ATI] Rembrandt [Radeon 680M]
  Default:     yes
  Environment: DRI_PRIME=pci-0000_07_00_0


Device: 1
  Name:        Advanced Micro Devices, Inc. [AMD®/ATI] Navi 23 [Radeon RX 6650 XT / 6700S / 6800S]
  Default:     no
  Environment: DRI_PRIME=pci-0000_03_00_0
Comment 3 Fabian Knorr 2025-04-22 06:27:19 UTC
I can reproduce this problem. When the external monitor turns off but the laptop does not sleep, the monitor will not turn back on unless I disconnect and reconnect it (or power cycle the dock, which is equivalent). This never occurs with Gnome Wayland or sway on the same system.

Setup: AMD Radeon 780M, KWin 6.3.4, Arch Linux x86_64 Kernel 6.14.1 with the amdgpu open source driver. Display is connected via DP over USB-C and a dock.

Oddly enough, the bug does not trigger every time, and sometimes a single disconnect / reconnect is sufficient, sometimes not. I have not been able to understand the exact pattern, but I'd say it occurs about half of the time the monitor powers off, and half the time again a single disconnect / reconnect fixes it.

While the external monitor is off, KDE still recognizes it as active. Curiously, when I open the laptop screen, it will show two mouse pointers. I'm attaching pictures of both. Also either the built-in or the external display sometimes show artifacts in this state or after recovering from it, but I'm not sure if it's related to this bug or if it's another minor driver issue.
Comment 4 Fabian Knorr 2025-04-22 06:32:18 UTC
Created attachment 180509 [details]
Screenshot: Settings say external display is enabled, even though it's in standby
Comment 5 Fabian Knorr 2025-04-22 06:33:35 UTC
Created attachment 180510 [details]
Screenshot: Built-in display seems to show mouse pointers for both displays
Comment 6 Fabian Knorr 2025-04-22 06:34:53 UTC
Created attachment 180511 [details]
EDID log from Info Center
Comment 7 Fabian Knorr 2025-04-22 06:35:55 UTC
Created attachment 180512 [details]
lspci output for GPU
Comment 8 Fabian Knorr 2025-04-22 06:40:38 UTC
Created attachment 180513 [details]
Artifacts on built-in display after bug is triggered