Commit 7c33ee0a authored by Oliver Henshaw's avatar Oliver Henshaw
Browse files

DPMS idle timeouts are stored in seconds

Meant that screen power-saving was probably never activated.

BUG: 310506
CCBUG: 304877
parent 3f3f9ac0
......@@ -194,9 +194,9 @@ Item {
id: dpmsSwitch
onCheckedChanged: {
if (checked) {
batteryDpmsConfig.writeEntry("idleTime", Math.round(dpmsTimeSlider.value)*60*100)
lowBatteryDpmsConfig.writeEntry("idleTime", Math.round(dpmsTimeSlider.value)*60*100)
acDpmsConfig.writeEntry("idleTime", Math.round(dpmsTimeSlider.value)*60*100)
batteryDpmsConfig.writeEntry("idleTime", Math.round(dpmsTimeSlider.value)*60)
lowBatteryDpmsConfig.writeEntry("idleTime", Math.round(dpmsTimeSlider.value)*60)
acDpmsConfig.writeEntry("idleTime", Math.round(dpmsTimeSlider.value)*60)
} else {
batteryDpmsConfig.deleteEntry("idleTime")
lowBatteryDpmsConfig.deleteEntry("idleTime")
......@@ -212,12 +212,12 @@ Item {
maximumValue: 60
onValueChanged: {
if (dpmsSwitch.checked) {
batteryDpmsConfig.writeEntry("idleTime", Math.round(value)*60*100)
lowBatteryDpmsConfig.writeEntry("idleTime", Math.round(value)*60*100)
acDpmsConfig.writeEntry("idleTime", Math.round(value)*60*100)
batteryDpmsConfig.writeEntry("idleTime", Math.round(value)*60)
lowBatteryDpmsConfig.writeEntry("idleTime", Math.round(value)*60)
acDpmsConfig.writeEntry("idleTime", Math.round(value)*60)
}
}
Component.onCompleted: value = batteryDpmsConfig.readEntry("idleTime")/60/100
Component.onCompleted: value = batteryDpmsConfig.readEntry("idleTime")/60
}
PlasmaComponents.Label {
enabled: dpmsTimeSlider.checked
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment