Bug 496546 - Hibernate from power menu not using systemd settings
Summary: Hibernate from power menu not using systemd settings
Status: RESOLVED WORKSFORME
Alias: None
Product: plasmashell
Classification: Plasma
Component: Session Management (other bugs)
Version First Reported In: 5.27.5
Platform: Debian stable Linux
: NOR normal
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-11-21 17:52 UTC by Fab Stz
Modified: 2025-09-17 08:46 UTC (History)
4 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Fab Stz 2024-11-21 17:52:59 UTC
SUMMARY

My system requires to enter hibernation with "/sys/power/disk" set to shutdown, otherwise resume of hibernation fails.

I configured systemd to have "HibernateMode=shutdown" (in /etc/systemd/sleep.conf.d/sleep.conf)

STEPS TO REPRODUCE / OBSERVED RESULT

If I run systemctl hibernate, value in "/sys/power/disk" is set to shutdown automatically
If I click on "hibernate" in the KDE/Plasma menu, the value in "/sys/power/disk" is never updated.

EXPECTED RESULT

Given that on a clear boot the value defaults to "platform" for the kernel (instead of shutdown, which I required) and that the value is not set correctly by powerdevil, I think there is either a bug, or there is no way to configure powerdevil a way to set the desired value for "/sys/power/disk"

SOFTWARE/OS VERSIONS
Operating System: Debian GNU/Linux 12
KDE Plasma Version: 5.27.5
KDE Frameworks Version: 5.103.0
Qt Version: 5.15.8
Kernel Version: 6.1.0-27-amd64 (64-bit)
Graphics Platform: offscreen
Processors: 2 × Intel® Core™2 Duo CPU E8135 @ 2.66GHz
Memory: 7.5 Gio of RAM
Graphics Processor: NVAC

ADDITIONAL INFORMATION
If this is already fixed in a specific commit, can y
Comment 1 Fab Stz 2024-11-21 18:55:54 UTC
I have some doubts on what I reported because it fails in other cases on my system.
Does kde always make a call that is equivalent to systemctl hibernate?
Comment 2 TraceyC 2025-05-29 20:01:14 UTC
Thanks for the bug report. I'm sorry we weren't able to get to this yet. There have been many fixes and improvements since this was reported, and this issue may have been fixed.

Can you please re-test on your system with Plasma 6.3.5 or later and let us know if you can still reproduce the problem? If you can, please set this back to REPORTED. Thanks!
Comment 3 Bug Janitor Service 2025-06-13 03:48:15 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 4 Fab Stz 2025-06-13 04:20:19 UTC
Will check when Debian Trixie is released
Comment 5 Kai Uwe Broulik 2025-06-13 06:04:14 UTC
Wonder if this is an issue in Logind. Plasma merely calls Hibernate on the Logind dbus interface.
Comment 6 Fab Stz 2025-09-17 08:46:59 UTC
Apparently works fine on (with 1 trial):
Operating System: Debian GNU/Linux 13
KDE Plasma Version: 6.3.6
KDE Frameworks Version: 6.13.0
Qt Version: 6.8.2
Kernel Version: 6.12.43+deb13-amd64 (64-bit)