[PATCH] xfce4-power-manager: Support for keyboard backlight control

Sonal Santan sonal.santan at gmail.com
Tue Oct 22 23:42:23 CEST 2013


Hello,

Some laptops handle the keyboard brightness control in firmware. Lenovo X1
Carbon is another example. It also uses Fn+Space to cycle through the
Keyboard brightness. However, in this case X does do not see any key event
when Fn+Space is pressed. This is probably because the keystroke is
consumed by the firmware itself.

On Macbook Pro, the keyboard brightness key stroke events,
XF86KbdBrightnessUp and XF86KbdBrightnessDown are received by X since the
firmware does not consume them. With current XFCE, MacBook Pro keyboard
backlight never turns on since nobody acts on those events.

-Sonal



On Tue, Oct 22, 2013 at 1:50 PM, Shuhao <shuhao at shuhaowu.com> wrote:

> Huh. On my Thinkpad W530 I have 2 levels that I can cycle through via
> Fn+Space. Do you know what this is suppose to support?
>
> Shuhao
>
>
> On 10/22/2013 01:24 PM, Sonal Santan wrote:
>
>> Hello,
>>
>> I have enhanced xfce4-power-manager to support backlit keyboard brightness
>> control through keyboard brightness keys. It uses
>> org.freedesktop.UPower.**KbdBacklight interface for increasing or
>> decreasing
>> the keyboard backlight brightness and binds with keys
>> XF86XK_KbdBrightnessUp and XF86XK_KbdBrightnessDown.
>>
>> This feature is useful when the firmware does not handle the keyboard
>> brightness control automatically. For example MacBook Pro leaves it to the
>> OS to control the keyboard brightness through special keys. With this
>> change, I can light up the keyboard on MacBook Pro and control its
>> brightness through the special keys.
>>
>> I have also tested this on Lenovo X1 Carbon where the keyboard brightness
>> is automatically handled by the firmware and this enhancement steps aside
>> without interfering.
>>
>> The patch is attached with this email; please review and apply.
>>
>> Thanks,
>> -Sonal
>>
>>
>>
>> ______________________________**_________________
>> Xfce4-dev mailing list
>> Xfce4-dev at xfce.org
>> https://mail.xfce.org/mailman/**listinfo/xfce4-dev<https://mail.xfce.org/mailman/listinfo/xfce4-dev>
>>
>>  ______________________________**_________________
> Xfce4-dev mailing list
> Xfce4-dev at xfce.org
> https://mail.xfce.org/mailman/**listinfo/xfce4-dev<https://mail.xfce.org/mailman/listinfo/xfce4-dev>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.xfce.org/pipermail/xfce4-dev/attachments/20131022/13536f13/attachment.html>


More information about the Xfce4-dev mailing list