Bug 490911 - Disabling "Lock after waking from sleep" feature causes the system to require two presses of the power button to wake from sleep
Summary: Disabling "Lock after waking from sleep" feature causes the system to require...
Status: RESOLVED WORKSFORME
Alias: None
Product: plasmashell
Classification: Plasma
Component: Power management & brightness (other bugs)
Version First Reported In: 6.2.4
Platform: Arch Linux Linux
: NOR minor
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-07-28 03:44 UTC by Jan Tenner
Modified: 2025-09-12 03:48 UTC (History)
4 users (show)

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


Attachments
journalctl -p 0..4 -xb (19.72 KB, text/plain)
2024-07-28 03:44 UTC, Jan Tenner
Details
All packages @ workstation (20.37 KB, text/plain)
2024-08-15 18:54 UTC, Jan Tenner
Details
Last installed packages by time (6.13 KB, text/plain)
2024-08-15 18:55 UTC, Jan Tenner
Details
the "resume failure" @ 20:08:41 // second button press @ 20:08:58 (21.56 KB, text/plain)
2024-08-15 18:56 UTC, Jan Tenner
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Tenner 2024-07-28 03:44:04 UTC
Created attachment 172059 [details]
journalctl -p 0..4 -xb

SUMMARY
I got two systems with plasma 6.1; one Arch and one on Voidlinux.
Both show the same behavior. To wake up from suspend (suspend from RAM) i need to press the power button twice.
After the first time the systems looks like it is coming back up, but goes back to suspend. The second press brings it back normal to a normal working state.

STEPS TO REPRODUCE
1. Boot and get system to suspend.
2. First power button press does not bring the system back; goes back to suspend.
3. Second press of the power button wakes the system up to a normal operation state.

OBSERVED RESULT
- Back to suspend

EXPECTED RESULT
- Waking up

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: LTS-Kernel (6.6.43) /w Plasma 6.1 

ADDITIONAL INFORMATION
I'm not sure i filed the bug in the right category, but - journalctl -p 0..4 -xb - showed an ksplash error  with "exit-code" "failed". I attach journalctl -p 0..4 -xb > power_after_suspend2.txt || Suspend @ 04:51 || Wakeup @ 05:22

Thanks, Jan
Comment 1 Jan Tenner 2024-07-28 03:48:06 UTC
To be more sure, that it is a kde error,
i installed xfce && gnome, both work fine. They wake up with a single power button press.

~Jan
Comment 2 Nate Graham 2024-07-30 19:28:43 UTC
KSplash isn't involved here. Some questions:

What kind of hardware is this? Laptop or desktop? What kind?

Can you reproduce this issue in a new clean user account?

Did it just start happening recently, after an upgrade? Or has it always happened?
Comment 3 Jan Tenner 2024-07-30 20:04:20 UTC
Hi Nate, two systems same behavior:
- Endeavouros - arch: older laptop (Lenovo T480) /w Intel Kaby Lake
- Voidlinux: newer workstation /w AMD 5600G

This is "new"; i don't remember exactly, i think the void-system started to show it first, than the arch-system; both after an update 2-3 weeks ago.

I just added a new user, and out of the box the suspend to RAM works!
But i realized that on both system i don't have "Lock (screen) after waking up from sleep" configured.
==> On the old & the new user, if lock screen after waking up is enabled, waking up works like it should.
==> On the old & new user, if i disable the lock screen after waking up, i need to press the button twice.
Comment 4 Nate Graham 2024-07-31 17:56:53 UTC
Thanks, that helps a lot.

I still can't reproduce it myself; if I disable "Lock after waking from sleep" on git master (which will become Plasma 6.2 in a few months) and put my laptop to sleep without closing the lid, I can still wake it up with a single press of the power button, not two.

However knowing which exact setting triggers the issue is helpful. Hopefully a developer can figure out from that data point what might be going wrong.
Comment 5 Jan Tenner 2024-08-04 09:58:20 UTC
With a spare SSD, i installed Arch (Endeavouros) and Plasma 6.1.3 fresh
on my workstation /w AMD 5600G

Wakeup from suspend with or without "Lock after waking from sleep" enabled works just fine.

===

So i must have installed something on my void-workstation and on my arch-laptop
that causes this plasma behavior.

Since i gonna use the arch-plasma on my workstation now, i will report back
if the suspend issue returns.

~ Jan
Comment 6 Nate Graham 2024-08-06 17:43:54 UTC
Thanks, let us know what it turns out to be!
Comment 7 Jan Tenner 2024-08-15 18:53:34 UTC
The resume issue is back.
I *think* the last software change on the system was installing flatpak
and then io.github.ungoogled_software.ungoogled_chromium && io.gitlab.librewolf-community.

I don't know how to help, so i attach 3 files:
workstation_packages.txt - well, all the packages on the workstation
expac --timefmt='%Y-%m-%d %T' '%l\t%n' | sort | tail -n 200.txt - last installed packages (200) by time
journalctl -p 0..4 -xb_2.txt - the resume happened @ 20:08:41 // second button press @ 20:08:58
Comment 8 Jan Tenner 2024-08-15 18:54:25 UTC
Created attachment 172655 [details]
All packages @ workstation
Comment 9 Jan Tenner 2024-08-15 18:55:17 UTC
Created attachment 172656 [details]
Last installed packages by time
Comment 10 Jan Tenner 2024-08-15 18:56:18 UTC
Created attachment 172657 [details]
the "resume failure" @ 20:08:41 // second button press @ 20:08:58
Comment 11 Nate Graham 2025-05-08 15:58:59 UTC
Are you saying the issue was caused by installing those web browsers via flatpak?

The current status is not clear; can you clarify?
Comment 12 Jan Tenner 2025-05-08 16:36:59 UTC
Hi Nate, nothing has changed; my Arch-system on the laptop is up-to-date:

KDE Plasma Version: 6.3.4
KDE Frameworks Version: 6.13.0
Qt Version: 6.9.0

Kernel Version: 6.12.26-1-lts (64-bit)
Graphics Platform: Wayland

Processors: 4 × Intel® Core™ i5-6300U CPU @ 2.40GHz
Memory: 15.4 GiB of RAM
Graphics Processor: Intel® HD Graphics 520

Most of the time i need to press the power button twice.
Sometimes once is enough.

==

I gave up on it;
if you want me to "run" something / check, don't hesitated, Jan
Comment 13 Nate Graham 2025-05-09 16:54:53 UTC
I'm still confused about why you need to press the power button to wake up at all; that's odd.
Comment 14 Jan Tenner 2025-05-10 11:52:47 UTC
My desktop-pc runs mint now, so i cannot comment on that anymore.

The laptop, which still has this very issue, is an older thinkpad.
With the lid closed it is on a docking station -> on the docking station is the power button.
Most of the time i need to press the button twice.

But even used without docking station, is shows the same behavior.
When i open the lid, most of the time is does not wake up. I need to press the power button.

To be honest, i use the laptop in the docking station almost exclusively.
I'm used to press the power button twice.
And i really think, since nobody else reported that,
that maybe it is the older laptop or something else i installed.
Comment 15 Nate Graham 2025-05-13 16:14:23 UTC
> When i open the lid, most of the time is does not wake up.

I think this is the actual issue. The fact that you have to press the power button twice is probably a symptom or side effect of it.
Comment 16 Nate Graham 2025-08-13 22:37:15 UTC
Jan, are either of these issues (double-power-button presses, or screen not waking on lid open) still happening in Plasma 6.4 or later?
Comment 17 Bug Janitor Service 2025-08-28 03:47:40 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 18 Bug Janitor Service 2025-09-12 03:48:23 UTC
🐛🧹 This bug has been in NEEDSINFO status with no change for at least 30 days. Closing as RESOLVED WORKSFORME.