summaryrefslogtreecommitdiffstats
path: root/tdecore
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2013-09-28 18:30:47 +0200
committerSlávek Banko <slavek.banko@axis.cz>2013-09-28 18:31:28 +0200
commitea75e7f6173f214c197abd580b53b5ef09e49856 (patch)
tree06597f3a5930be23d841e28167d6d5aacf657745 /tdecore
parentbb36045b59e18db88a2a40f9346775193c9ede6b (diff)
downloadtdelibs-ea75e7f6173f214c197abd580b53b5ef09e49856.tar.gz
tdelibs-ea75e7f6173f214c197abd580b53b5ef09e49856.zip
Add freeze suspend state to list of available power states
in TDE hardware library
Diffstat (limited to 'tdecore')
-rw-r--r--tdecore/tdehw/tdehardwaredevices.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/tdecore/tdehw/tdehardwaredevices.cpp b/tdecore/tdehw/tdehardwaredevices.cpp
index 211213112..10fa1d736 100644
--- a/tdecore/tdehw/tdehardwaredevices.cpp
+++ b/tdecore/tdehw/tdehardwaredevices.cpp
@@ -2982,6 +2982,9 @@ void TDEHardwareDevices::updateExistingDeviceInformation(TDEGenericDevice* exist
if (line.contains("standby")) {
powerstates.append(TDESystemPowerState::Standby);
}
+ if (line.contains("freeze")) {
+ powerstates.append(TDESystemPowerState::Freeze);
+ }
if (line.contains("mem")) {
powerstates.append(TDESystemPowerState::Suspend);
}