KMilo: Restore the brightness control

Signed-off-by: Roman Savochenko <roman@home.home>
pull/62/head
Roman Savochenko 6 months ago
parent 6deb3b43d1
commit dd69654e97

@ -304,14 +304,14 @@ void GenericMonitor::brightnessChange(int direction, int step)
tdepowersave->send("do_brightnessDown", step); tdepowersave->send("do_brightnessDown", step);
} }
DCOPReply reply = tdepowersave->call("brightnessGet"); /*DCOPReply reply = tdepowersave->call("brightnessGet");
if (reply.isValid()) if (reply.isValid())
{ {
// Display real brightness value. This may differ from the set value // Display real brightness value. This may differ from the set value
// on machines with few brightness steps. // on machines with few brightness steps.
_interface->displayProgress(i18n("Brightness"), (int)reply); _interface->displayProgress(i18n("Brightness"), (int)reply);
} }
else else*/
{ {
_interface->displayProgress(i18n("Brightness"), brightnessLevel); _interface->displayProgress(i18n("Brightness"), brightnessLevel);
} }

Loading…
Cancel
Save