Bug 475243 - Allow choosing the time before hibernating while asleep
Summary: Allow choosing the time before hibernating while asleep
Status: CONFIRMED
Alias: None
Product: systemsettings
Classification: Applications
Component: kcm_powerdevil (show other bugs)
Version: 5.27.9
Platform: Manjaro Linux
: NOR wishlist
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
: 459440 (view as bug list)
Depends on:
Blocks:
 
Reported: 2023-10-05 12:33 UTC by ale.moh
Modified: 2024-09-08 20:52 UTC (History)
6 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 ale.moh 2023-10-05 12:33:17 UTC
Simply add a field in PowerDevil to modify HibernateDelaySec at /etc/systemd/sleep.conf so that users can set the delay to hibernate once in sleep from the GUI (I think of it as a good addition considering we have the option to enabled "While asleep, hibernate after a period of inactivity", thus having a field to modify the period sounds logical)
Comment 1 Nate Graham 2023-10-11 21:00:13 UTC
Could you outline your use case for needing or wanting to be able to configure the exact amount of time before which the system hibernates while asleep?
Comment 2 Bug Janitor Service 2023-10-26 03:45:46 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 3 ale.moh 2023-10-26 12:22:01 UTC
1. To have more control over my system - in this case thru the GUI - as it is my understanding that this is what most people want when choosing Linux as their OS, along with the customizability that comes with it and KDE
2. In my specific case, to get more battery out of my notebook. If I have not reopened my lid after 20 minutes, I probably won't for the next 2 hours, therefor it makes power economy sense to just hibernate it.
3. Even windows has this option in their power configuration panel
Comment 4 Jakob Petsovits 2023-12-03 05:40:59 UTC
Bug 459440 is a duplicate of this. However, I'm not sure which one to close - this bug, which has a little bit of discussion and is filed under the System Settings KCM for PowerDevil, or Bug 459440, which is older and was filed for the PowerDevil (backend) component?
Comment 5 Nate Graham 2023-12-04 21:37:10 UTC
This one has more discussion so I'd keep this one even though the other one is older.

As for where it should live, the KCM isn't an incorrect place given that it's a request for a new user-facing feature whose UI would live in the KCM.
Comment 6 Nate Graham 2023-12-04 21:37:14 UTC
*** Bug 459440 has been marked as a duplicate of this bug. ***
Comment 7 zzrakic 2023-12-04 21:55:26 UTC
(In reply to Jakob Petsovits from comment #4)
> Bug 459440 is a duplicate of this. However, I'm not sure which one to close
> - this bug, which has a little bit of discussion and is filed under the
> System Settings KCM for PowerDevil, or Bug 459440, which is older and was
> filed for the PowerDevil (backend) component?

Great job Jakob! New UI looks much better :)

Can I ask if selecting "Hibernate" at "While sleeping, enter:", will give you an option to set specific time period after which this will happen?
In case it is not changeable, what is the default value? Could you in that case add info icon on which user could hover and find out after what time action happens?
Comment 8 Jakob Petsovits 2023-12-05 03:01:32 UTC
(In reply to zzrakic from comment #7)
> Can I ask if selecting "Hibernate" at "While sleeping, enter:", will give
> you an option to set specific time period after which this will happen?
> In case it is not changeable, what is the default value? Could you in that
> case add info icon on which user could hover and find out after what time
> action happens?

The UI revamp did not add any functionality that wasn't already there. So you can continue to select a time delay in the top-most field called "After a period of inactivity: (Sleep, Hibernate, Shut down, etc.)" but we still don't have a field to specify the delay for this sleep mode that's now called "Standby, then Hibernate". The PowerDevil backend doesn't support this, so it's not as easy as just adding a field in the settings page.

As mentioned by the OP, this functionality is performed by and configured through systemd. If we want to display or modify it, we'll have to add code to query systemd and perhaps overwrite that /etc/systemd/sleep.conf if there isn't an easier way to do it programmatically.