<table><tr><td style="">bshah created this revision.<br />Restricted Application added a project: Plasma.<br />Restricted Application added a subscriber: plasma-devel.
</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/D5976" rel="noreferrer">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>This code watches the device in the sysfs for changes, if device is<br />
changed it reads the brightness again and updates it.</p>
<p>However that is,</p>
<p>a) Redundant: as if we update the brightness we already know what<br />
brightness we set it to</p>
<p>b) Covers corner case: If something other then powerdevil updates the<br />
brightness, this will update the internal brightness code accordingly</p>
<p>So, lets remove this extra overhead of going through udev/uevent and<br />
make things bit more simpler</p></div></div><br /><div><strong>TEST PLAN</strong><div><p>tested brightness control using keyboard, battery monitor</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R122 Powerdevil</div></div></div><br /><div><strong>BRANCH</strong><div><div>remove-udevqt</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D5976" rel="noreferrer">https://phabricator.kde.org/D5976</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>CMakeLists.txt<br />
cmake/FindUDev.cmake<br />
daemon/CMakeLists.txt<br />
daemon/backends/CMakeLists.txt<br />
daemon/backends/upower/powerdevilupowerbackend.cpp<br />
daemon/backends/upower/powerdevilupowerbackend.h<br />
daemon/backends/upower/udevqt.h<br />
daemon/backends/upower/udevqt_p.h<br />
daemon/backends/upower/udevqtclient.cpp<br />
daemon/backends/upower/udevqtclient.h<br />
daemon/backends/upower/udevqtdevice.cpp<br />
daemon/backends/upower/udevqtdevice.h</div></div></div><br /><div><strong>To: </strong>bshah, Plasma, broulik<br /><strong>Cc: </strong>plasma-devel, ZrenBot, spstarr, progwolff, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, mart, lukas<br /></div>