summaryrefslogtreecommitdiffstats
path: root/kmilo
diff options
context:
space:
mode:
Diffstat (limited to 'kmilo')
-rw-r--r--kmilo/generic/generic_monitor.cpp13
1 files changed, 12 insertions, 1 deletions
diff --git a/kmilo/generic/generic_monitor.cpp b/kmilo/generic/generic_monitor.cpp
index 5751037..435b6df 100644
--- a/kmilo/generic/generic_monitor.cpp
+++ b/kmilo/generic/generic_monitor.cpp
@@ -303,7 +303,18 @@ void GenericMonitor::brightnessChange(int direction, int step)
{
tdepowersave->send("do_brightnessDown", step);
}
- _interface->displayProgress(i18n("Brightness"), brightnessLevel);
+
+ DCOPReply reply = tdepowersave->call("brightnessGet");
+ if (reply.isValid())
+ {
+ // Display real brightness value. This may differ from the set value
+ // on machines with few brightness steps.
+ _interface->displayProgress(i18n("Brightness"), (int)reply);
+ }
+ else
+ {
+ _interface->displayProgress(i18n("Brightness"), brightnessLevel);
+ }
}
}
}