[PATCH] Fix reduce screen brightness feature for 64bit builds
Christian Hesse
list at eworm.de
Wed May 29 20:54:21 CEST 2013
Marcus Overhagen <marcus.overhagen at gmail.com> on Wed, 2013/05/29 19:13:
> This fixes the "Reduce screen brightness when computer is inactive"
> feature for 64 bit installations that use the xfpm-power-backlight-helper.
>
> The level setting is stored as guint, loading it into a glong on
> 64 bit linux has the upper 32 bit unitialized and doesn't work,
> except when they happened to be zero by chance.
>
> This does not fix the alternate codepath used for xrandr extension,
> as I can't test that currently.
>
> Please apply this patch.
>
> Marcus Overhagen (1):
> Fix for the "Reduce screen brightness when computer is inactive"
> feature on 64 bit installations that use the
> xfpm-power-backlight-helper.
>
> src/xfpm-backlight.c | 5 +++--
> 1 file changed, 3 insertions(+), 2 deletions(-)
I have never missed this feature. But yes, it's broken and the patch fixes it.
Thanks a lot! ;)
--
main(a){char*c=/* Schoene Gruesse */"B?IJj;MEH"
"CX:;",b;for(a/* Chris get my mail address: */=0;b=c[a++];)
putchar(b-1/(/* gcc -o sig sig.c && ./sig */b/42*2-3)*42);}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 490 bytes
Desc: not available
URL: <http://mail.xfce.org/pipermail/xfce4-dev/attachments/20130529/f2c07fb4/attachment.pgp>
More information about the Xfce4-dev
mailing list