[Kde-hardware-devel] Review Request 121355: Expose actual and maximum brightness value in dataengine

Hrvoje Senjan hrvoje.senjan at gmail.com
Sun Dec 7 20:18:45 UTC 2014



> On Dec. 6, 2014, 12:39 a.m., Hrvoje Senjan wrote:
> > i've lost brightness control in battery monitor after this change. brightnessValueMax returns 9, but Screen Brightness Available is false anyway
> 
> Kai Uwe Broulik wrote:
>     Please update your plasma-workspace, I've adjusted battery monitor accordingly.
> 
> Kai Uwe Broulik wrote:
>     Oh, umm, sorry, misread that. What's the value of Maximum Screen Brightness in the dataengine? Make sure you've restarted kded and plasma.
> 
> Hrvoje Senjan wrote:
>     this happened (noticed it) after upgrade -> logout -> login =). the powerdevil KCM corectly has screen brigtness slider, so issue is exposed only here...
> 
> Kai Uwe Broulik wrote:
>     Please test whether https://git.reviewboard.kde.org/r/121364/ together with https://git.reviewboard.kde.org/r/121365/ help in your situation.

nope, no change. aditionally, with that patches, i get kded5 murdering the CPU...


- Hrvoje


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/121355/#review71445
-----------------------------------------------------------


On Dec. 5, 2014, 10:06 p.m., Kai Uwe Broulik wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://git.reviewboard.kde.org/r/121355/
> -----------------------------------------------------------
> 
> (Updated Dec. 5, 2014, 10:06 p.m.)
> 
> 
> Review request for Plasma and Solid.
> 
> 
> Repository: plasma-workspace
> 
> 
> Description
> -------
> 
> Now that we can finally use absolute brightness values, rather than a fixed 0-100% range, those values should be exposed in the dataengine instead. This allows us to eg. properly handle keyboard brightness controls which usually have just a few steps. I adjusted battery monitor accordingly.
> 
> It also cleans up the code by moving stuff into lambdas and gets rid of the ugly availability stuff by just relying on the maximum values to determin whether it's available. We still don't have means, though, to detect changes in these at runtime.
> 
> 
> Diffs
> -----
> 
>   dataengines/powermanagement/powermanagementengine.h ffad13e 
>   dataengines/powermanagement/powermanagementengine.cpp 04aa49b 
>   dataengines/powermanagement/powermanagementjob.cpp c4e4510 
> 
> Diff: https://git.reviewboard.kde.org/r/121355/diff/
> 
> 
> Testing
> -------
> 
> Works as expected, I need someone without keyboard or screen brightness to test the availability.
> 
> 
> File Attachments
> ----------------
> 
> Battery monitor with keyboard
>   https://git.reviewboard.kde.org/media/uploaded/files/2014/12/04/c00db2e1-5278-4a1b-bd32-ff36777b91c6__batterykeyboardsteps.png
> 
> 
> Thanks,
> 
> Kai Uwe Broulik
> 
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-hardware-devel/attachments/20141207/aa9fbd4d/attachment.html>


More information about the Kde-hardware-devel mailing list