Bug 306925

Summary: When settings lightness to the lowest value, the setting will not work.
Product: [Frameworks and Libraries] solid Reporter: Weng Xuetian <wengxt>
Component: powermanagementAssignee: Dario Freddi <drf>
Status: RESOLVED FIXED    
Severity: normal CC: kde
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In: 4.10

Description Weng Xuetian 2012-09-17 12:42:25 UTC
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.
Comment 1 Kai Uwe Broulik 2012-10-29 16:19:33 UTC
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.
Comment 2 Weng Xuetian 2013-01-09 12:56:47 UTC
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