diff options
Diffstat (limited to 'brightness_ctrl.cpp')
-rw-r--r-- | brightness_ctrl.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/brightness_ctrl.cpp b/brightness_ctrl.cpp index 21c54e7..d83b4cf 100644 --- a/brightness_ctrl.cpp +++ b/brightness_ctrl.cpp @@ -70,10 +70,9 @@ void BrightnessControl::set_frozen(bool frozen) int BrightnessControl::get_offset(){return offset;} int BrightnessControl::get_brightness() { - //FIXME??: On some devices there are EC-controlled key combinations + //On some devices there are EC-controlled key combinations //that bypasses lightsd entirely (e.g. Fn+Space on ThinkPad for - //keyboard backlight). So we may have to turn to sysfs for this... - //Screw it, just read from sysfs. + //keyboard backlight). So we have to turn to sysfs for the real value... if(brpath.empty())return 0; return round(readint(brpath.c_str())*100./maxbr); } |