Display brightness OSD notification
Michael Zanetti
michael_zanetti at gmx.net
Fri Apr 9 12:27:42 BST 2010
On Thursday 08 April 2010 15:25:55 Felix Geyer wrote:
> Hi,
>
> I'm proposing a patch that addresses these issues:
> - KDE doesn't provide an OSD notification when the user changes the
> display brightness.
> - The brightness Fn keys don't have an effect if they aren't handled by
> the kernel/hardware.
>
Very nice! I have just tested it. Basically it works, but on every second
press the progress bar fills up again from the beginning. If I keep the
brightness up button pressed, the progress bar jumps up and down.
Any chance this could also be done for the keyboard brightness? It is the last
thing preventing me to throw out the pommed daemon.
Cheers,
Michael
> The OSD is implemented in PowerDevil and the battery applet:
> PowerDevil uses a KActionCollection to register the
> Qt::Key_MonBrightnessUp/Down keys
> and notifies the battery applet by emitting the brightnessChanged() signal.
> The applet currently uses a copy of the OSDWidget class from KMix. This
> needs to be
> improved so both components can share the OSD code, but I'm not sure how
> to do it.
>
> To prevent a double increase/decrease of the brightness on a Fn key
> press, Solid notifies
> PowerDevil of every brightness change. On a key press PowerDevil then
> compares the
> current brightness value with the cached one. Only if both are equal it
> changes the
> brightness. Additionally it checks the brightness_in_hardware HAL
> property. This behaviour
> is consistent with gnome-power-manager using the HAL backend.
>
> Greetings,
> Felix
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20100409/db6c9f02/attachment.sig>
More information about the kde-core-devel
mailing list