If I set lightness to lowest level, it will be the highest when unplug the ac power. But if I set it to "a little bit higher" than the lowest, it will work. Reproducible: Always Steps to Reproduce: 1. Open battery profile 2. Set lightness to lowest (move the bar to the left most) 3. And unplug Actual Results: The lightness will not change. Expected Results: The lightness change to lowest.
Seems that if you set the brightness slider to zero, KConfigGroup will ignore the settings since it thinks 0 = nothing set and falls back to the default 50.
Git commit 55b759ab8b9f2d45e486fc84495682f00d9326d0 by Weng Xuetian. Committed on 09/01/2013 at 13:55. Pushed by xuetianweng into branch 'KDE/4.10'. fix zero in brightness profile, since -1 is the invalid value REVIEW: 108230 FIXED-IN: 4.10 M +1 -1 powerdevil/daemon/actions/bundled/brightnesscontrol.cpp http://commits.kde.org/kde-workspace/55b759ab8b9f2d45e486fc84495682f00d9326d0