<table><tr><td style="">thsurrel created this revision.<br />Restricted Application added a project: Plasma.<br />Restricted Application added a subscriber: plasma-devel.<br />thsurrel requested review of this revision.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D13095">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>Modern hardware allow to adjust the screen brightness very precisely,<br />
with more than hundreds or thousands different possible levels. When<br />
modifying the screen brightness through the keyboard shortcuts, we<br />
are not making the best use of this very fine grain possibility,<br />
notably when in low light conditions. As of today, the progression<br />
is linear, so for a maximum brightness level of 1000 we are making<br />
20 steps of 50. This is not great since jumping from 0 to 50 can be<br />
already too bright when using a laptop in the dark. And when in full<br />
light, going from 950 to 1000 is barely noticeable.</p>

<p>This patch tries to improve the situation by switching from a<br />
linear to a quadratic progression, offering smaller steps in the<br />
low level brightness.</p>

<p>The switch to the quadratic progression is done in<br />
powerdevilbrightnesslogic.cpp, the other modifications ensure that<br />
the OSD still displays equal steps when giving a visual feedback,<br />
otherwise the lower steps are barely distinguishible.</p>

<p>BUG: 362830</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R122 Powerdevil</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D13095">https://phabricator.kde.org/D13095</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>daemon/actions/bundled/brightnesscontrol.cpp<br />
daemon/powerdevilbackendinterface.cpp<br />
daemon/powerdevilbackendinterface.h<br />
daemon/powerdevilbrightnesslogic.cpp</div></div></div><br /><div><strong>To: </strong>thsurrel<br /><strong>Cc: </strong>plasma-devel, ragreen, Pitel, ZrenBot, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, mart<br /></div>