Bug 306925 - When settings lightness to the lowest value, the setting will not work.
Summary: When settings lightness to the lowest value, the setting will not work.
Status: RESOLVED FIXED
Alias: None
Product: solid
Classification: Unmaintained
Component: powermanagement (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: Dario Freddi
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-09-17 12:42 UTC by Weng Xuetian
Modified: 2013-01-09 12:56 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 4.10
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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