Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suspend then hibernate should be a "battery only" feature(?) #123

Open
ViBE-HU opened this issue May 18, 2024 · 0 comments
Open

Suspend then hibernate should be a "battery only" feature(?) #123

ViBE-HU opened this issue May 18, 2024 · 0 comments

Comments

@ViBE-HU
Copy link
Contributor

ViBE-HU commented May 18, 2024

This is just a recommendation. But here's why:

First of all we have now plenty features via your plugin. It is an arsenal. But even well informed users do mistakes sometimes. And losing data can be painful. The problem with this function is that this is not a reversed hybrid sleep/suspend or something like that. It is designed to rely on battery presence. Even if a system has no battery the suspend state will going to work which can misleading for inexperienced desktop users. But it cannot save from data loss like hybrid sleep do if blackout happens.

How suspend then hibernate works:

  1. Suspends the system
  2. Then waits till the battery charge reaches the critical level
  3. Hibernates the system when the critical level reached, otherwise it does nothing just keep suspended

But desktop machines never reaches the critical level. So they stay only suspended which is pretty unfortunate if a random blackout happens. Of course the exact state can be opted out in the settings but it will remains as a risk for those who don't know the difference between these states and/or not as experienced.

The related documentation:
https://www.freedesktop.org/software/systemd/man/latest/systemd-sleep.conf.html#suspend-then-hibernate

@ViBE-HU ViBE-HU changed the title Suspend then hibernate should be a "battery only" feautre(?) Suspend then hibernate should be a "battery only" feature(?) May 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant