Bug 188233

Summary: add suspend-hybrid to solid
Product: [Frameworks and Libraries] solid Reporter: Michael Gutmann <gutnix>
Component: powermanagement-daemonAssignee: Dario Freddi <drf>
Status: RESOLVED NOT A BUG    
Severity: wishlist CC: drf
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Unlisted Binaries   
OS: Linux   
Latest Commit: Version Fixed In:

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 :)