Bug 506870 - Docked laptop goes to sleep when logging in while the lid is closed
Summary: Docked laptop goes to sleep when logging in while the lid is closed
Status: RESOLVED WORKSFORME
Alias: None
Product: plasmashell
Classification: Plasma
Component: Power management & brightness (other bugs)
Version First Reported In: 6.4.2
Platform: Other Linux
: NOR normal
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-07-10 15:04 UTC by Mario Ebenhofer
Modified: 2025-08-11 03:46 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mario Ebenhofer 2025-07-10 15:04:35 UTC
SUMMARY
When I turn on my laptop and close the lid before logging in and waiting for plasma to start, it goes to sleep immediately.

STEPS TO REPRODUCE
1. Connect the laptop to a USB-C Dock (I used one from HP, but had the same issue with one from i-tec)
2. Open the lid and press the power button to turn on the laptop
3. Close the lid
4. Log in with SDDM
(Note: The same also happens when closing the lid too early after login, before the shell is actually started)

OBSERVED RESULT
Laptop goes to sleep right after logging in

EXPECTED RESULT
Laptop doesn't go to sleep as long as external displays are connected when it is docked and the lid is closed

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Fedora 42 KDE
KDE Plasma Version: 6.4.2
KDE Frameworks Version:  6.15.0
Qt Version: 6.9.1
Graphics Platform: Wayland
Kernel: 6.15.4-200.fc42.x86_64

ADDITIONAL INFORMATION
Laptop Model: TUXEDO Sirius 16 Gen2
Docking Station: HP USB-C Dock G5

There are also some similar reports on SDDM's Github, that seems to be pretty inactive, though.
https://github.com/sddm/sddm/issues/1600
Comment 1 Oliver Beard 2025-07-10 16:44:09 UTC
So, it goes to sleep after you authenticate and log in, and Plasma takes over? (when the lid is down, and other displays are connected)
Comment 2 Mario Ebenhofer 2025-07-10 17:02:06 UTC
Exactly. I put in my password, press enter, get a black screen for a second or two and then, the desktop just flickers up for a fraction of a second before the laptop goes to sleep. Then, when I open the lid, it wakes up, and when I close it a few seconds later, it says awake.

After some more testing, I also notices, that this only happens when I have just the docking station connected via USB-C for power.
While the barrel power adapter is connected in addition to the dock, the laptop stays awake after logging in. The charging led never turns of in the process though...
I did notice that there are performance and stability issues when I run heavier workloads (especially when the dGPU is used) with just the dock (and no barrel charger), but when that happens, the power led also turns off occasionally, so I don't thing it's getting insufficient power while starting Plasma. 

Is there maybe some way to get any useful logs that could tell us what exactly happens? I did check dmesg, but didn't find anything directly related to power myself. Should I maybe reproduce the issue and attach the dmesg output (or anything else) after a fresh boot?
Comment 3 Jakob Petsovits 2025-07-12 22:32:37 UTC
(In reply to Mario Ebenhofer from comment #2)
> Is there maybe some way to get any useful logs that could tell us what
> exactly happens? I did check dmesg, but didn't find anything directly
> related to power myself. Should I maybe reproduce the issue and attach the
> dmesg output (or anything else) after a fresh boot?

If Plasma's power management service is responsible for it, you can enable verbose output by following these instructions:
https://invent.kde.org/plasma/powerdevil/-/blob/master/README.md#troubleshooting--reporting-bugs
Comment 4 Bug Janitor Service 2025-07-27 03:46:27 UTC
๐Ÿ›๐Ÿงน โš ๏ธ This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information, then set the bug status to REPORTED. If there is no change for at least 30 days, it will be automatically closed as RESOLVED WORKSFORME.

For more information about our bug triaging procedures, please read https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging.

Thank you for helping us make KDE software even better for everyone!
Comment 5 Bug Janitor Service 2025-08-11 03:46:13 UTC
๐Ÿ›๐Ÿงน This bug has been in NEEDSINFO status with no change for at least 30 days. Closing as RESOLVED WORKSFORME.