Re: [PATCH 2.6.18-mm2] acpi: add backlight support to the sony_acpi driver

Alessandro Guido
2006-10-02T11:23:28Z

On Sun, 1 Oct 2006 17:19:12 -0700
Andrew Morton <akpm@osdl.org> wrote:
>
> umm, OK, but now how do I adjust my screen brightness? ;)
>
> I assume that cute userspace applications for controlling backlight
> brightness via the generic backlight driver either exist or are in
> progress? What is the status of that?
>

I use this tool: http://www.xs4all.nl/~bsamwel/laptop_mode/tools/
that automagically fires up whenever needed

$ cat /etc/laptop-mode/batt-start/brightness
#!/bin/sh
echo -n CHOOSE_A_LOW_VALUE > /sys/class/backlight/sony/brightness

and

$ cat /etc/laptop-mode/batt-stop/brightness
#!/bin/sh
let val="`</proc/acpi/sony/brightness_default` - 1"
echo -n "$val" > /sys/class/backlight/sony/brightness

But I seldom use my laptop in battery mode.

> I assume that cute userspace applications for controlling backlight
> brightness via the generic backlight driver either exist or are in
> progress? What is the status of that?
>

I think the new gnome-power-manager does it, but I'm not sure since I use Xfce.

> Thanks.

Thank you.