[Kde-hardware-devel] Review Request 122316: Fix powerdevil brightness calls breaking kded #2
Kai Uwe Broulik
kde at privat.broulik.de
Thu Jan 29 21:06:31 UTC 2015
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/122316/
-----------------------------------------------------------
(Updated Jan. 29, 2015, 9:06 nachm.)
Review request for Solid and David Edmundson.
Changes
-------
Query everything once and then only update.
Needs adjustments in the brightness controls since it will query the current brightness right away to show the OSD which still has the old value. It now calculates that value in advance and then gets a change event from udev.
Bugs: 337674
https://bugs.kde.org/show_bug.cgi?id=337674
Repository: powerdevil
Description
-------
- Query maximum value once and then just return the stored value, it's not like PowerDevil could really cope with it changing anyway
- Query brightness value once and then just update it when udevqt tells us to
- Don't care for the result when setting the brightness, just call it async
*adds refactoring this to be as async as possible to the 5.3 todo*
Diffs (updated)
-----
daemon/actions/bundled/brightnesscontrol.h 5e569fd
daemon/actions/bundled/brightnesscontrol.cpp 692a643
daemon/backends/hal/powerdevilhalbackend.h ab04e53
daemon/backends/hal/powerdevilhalbackend.cpp bec528a
daemon/backends/upower/powerdevilupowerbackend.h 220289c
daemon/backends/upower/powerdevilupowerbackend.cpp 51a052a
daemon/powerdevilbackendinterface.h 702b66b
Diff: https://git.reviewboard.kde.org/r/122316/diff/
Testing
-------
I'm running on the helper now but I was never able to reproduce the problem.
Thanks,
Kai Uwe Broulik
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-hardware-devel/attachments/20150129/0657f27d/attachment.html>
More information about the Kde-hardware-devel
mailing list