Bug 188233 - add suspend-hybrid to solid
Summary: add suspend-hybrid to solid
Status: RESOLVED NOT A BUG
Alias: None
Product: solid
Classification: Unmaintained
Component: powermanagement-daemon (show other bugs)
Version: unspecified
Platform: Unlisted Binaries Linux
: NOR wishlist
Target Milestone: ---
Assignee: Dario Freddi
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-03-27 09:28 UTC by Michael Gutmann
Modified: 2010-10-02 12:47 UTC (History)
1 user (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 Michael Gutmann 2009-03-27 09:28:23 UTC
Version:            (using KDE 4.2.1)
OS:                Linux
Installed from:    Unspecified Linux

Using uswsusp you can do s2both besides s2disk and s2ram. HAL reports this function:

ArchBook:~$ lshal | fgrep suspend
  org.freedesktop.Hal.Device.SystemPowerManagement.method_execpaths = {'hal-system-power-suspend', 'hal-system-power-suspend-hybrid', 'hal-system-power-hibernate', 'hal-system-power-shutdown', 'hal-system-power-reboot', 'hal-system-power-set-power-save'} (string list)
  power_management.can_suspend = true  (bool)
  power_management.can_suspend_hybrid = true  (bool)
  power_management.quirk.dpms_suspend = true  (bool)

But it looks like, as if solid does not know about this:

ArchBook:~$ solid-powermanagement query suspend
to_disk
to_ram

Please also add "Suspend to Ram and Disk" to the power management profiles.
Comment 1 Dario Freddi 2009-03-27 10:50:16 UTC
In 4.3, suspend to ram automatically checks if Hybrid suspend is available. If so, it triggers it, otherwise falls back to standard ram suspension.

We are still discussing the means of implementation, so this should be configurable in some way in the future, either by adding an option as you said, either by adding something that will let you define the standard behavior of ram suspension.

If you wanted to add your idea to this, you'd be welcome :)