<table><tr><td style="">anthonyfieroni created this revision.<br />anthonyfieroni added reviewers: Plasma, broulik.<br />Herald added a project: Plasma.<br />Herald added a subscriber: plasma-devel.<br />anthonyfieroni 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/D16918">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>The problem:</p>
<ol class="remarkup-list">
<li class="remarkup-list-item">Unplug laptop power supply</li>
<li class="remarkup-list-item">On screen energy saving in settings</li>
<li class="remarkup-list-item">Uncheck screen brightness (on all profiles or on that will be loaded)</li>
<li class="remarkup-list-item">Wait minutes display to do off (not dimmed)</li>
<li class="remarkup-list-item">Plug power supply without display on</li>
<li class="remarkup-list-item">When it's on, screen brightness is 100%</li>
</ol>
<p>Probably it's depends of backend (intel in my case) on dpms it returns *garbage* values even on max brightness (it's still not tested)</p>
<p>The solution:<br />
Trying to cache max brightness level and denied to change screen brightness on garbage values</p></div></div><br /><div><strong>TEST PLAN</strong><div><p><a href="https://phabricator.kde.org/p/broulik/" style="
border-color: #f1f7ff;
color: #19558d;
background-color: #f1f7ff;
border: 1px solid transparent;
border-radius: 3px;
font-weight: bold;
padding: 0 4px;">@broulik</a> if you have better solution, i'll test it</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/D16918">https://phabricator.kde.org/D16918</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>daemon/actions/bundled/brightnesscontrol.cpp<br />
daemon/actions/bundled/brightnesscontrol.h</div></div></div><br /><div><strong>To: </strong>anthonyfieroni, Plasma, broulik<br /><strong>Cc: </strong>broulik, plasma-devel, ragreen, Pitel, ZrenBot, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, mart<br /></div>