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

From: Alessandro Guido
Date: Mon Oct 02 2006 - 07:23:47 EST


On Sun, 1 Oct 2006 17:19:12 -0700
Andrew Morton <akpm@xxxxxxxx> 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.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/