diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2016-04-24 19:22:56 +1000 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2016-04-24 19:22:56 +1000 |
commit | 3b095cf3cd208624f0f7fdb353982185827aa6a4 (patch) | |
tree | fc1eaff5c910be87302bd2f895230109c552636a /tdecore/tdehw/tdehardwaredevices.cpp | |
parent | dfd961b2b9ee29c7ca05c4e288cdeaaff9b2d6e8 (diff) | |
download | tdelibs-3b095cf3cd208624f0f7fdb353982185827aa6a4.tar.gz tdelibs-3b095cf3cd208624f0f7fdb353982185827aa6a4.zip |
tdecore: Initial support for hybrid suspend (aka suspend to RAM + suspend to disk).
Update to dbus interface and hardware device manager will be commit separately.
This relates to bug 2601.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'tdecore/tdehw/tdehardwaredevices.cpp')
-rw-r--r-- | tdecore/tdehw/tdehardwaredevices.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tdecore/tdehw/tdehardwaredevices.cpp b/tdecore/tdehw/tdehardwaredevices.cpp index 9c5a0833d..e2a935e61 100644 --- a/tdecore/tdehw/tdehardwaredevices.cpp +++ b/tdecore/tdehw/tdehardwaredevices.cpp @@ -3363,6 +3363,9 @@ void TDEHardwareDevices::updateExistingDeviceInformation(TDEGenericDevice* exist if (line.contains("reboot")) { hibernationmethods.append(TDESystemHibernationMethod::Reboot); } + if (line.contains("suspend")) { + hibernationmethods.append(TDESystemHibernationMethod::Suspend); + } if (line.contains("testproc")) { hibernationmethods.append(TDESystemHibernationMethod::TestProc); } @@ -3384,6 +3387,9 @@ void TDEHardwareDevices::updateExistingDeviceInformation(TDEGenericDevice* exist if (line.contains("reboot")) { hibernationmethod = TDESystemHibernationMethod::Reboot; } + if (line.contains("suspend")) { + hibernationmethod = TDESystemHibernationMethod::Suspend; + } if (line.contains("testproc")) { hibernationmethod = TDESystemHibernationMethod::TestProc; } |