[arch-general] thinkpad t61 and not able to adjust brightness

Adam Stokes adam.stokes at gmail.com
Fri Apr 17 13:18:52 EDT 2009


On Fri, Apr 17, 2009 at 10:27 AM, Sergey Manucharian <sergeym at rmico.com> wrote:
> On Fri, 17 Apr 2009 09:47:38 -0400
> Adam Stokes <adam.stokes at gmail.com> wrote:
>
>> Thanks for the information, I did add those keycodes to my .Xmodmap
>> with no change unfortunately. I also installed the acpi/acpid packages
>> but I haven't actually rebooted yet since it seems that acpid will not
>> run due to some devices being in use at the moment.
>>
>> If there are anymore ideas I would like to hear them.
>
> When long time ago I had a similar problem I've added the
> following into the main "case" structure in "/etc/acpi/handler.sh":
>
> ---------------------------8<-------------------------------
> video)
>   case "$2" in
>   LCD0) case "$3" in
>         00000086) /usr/local/bin/brightness_up ;;
>         00000087) /usr/local/bin/brightness_down ;;
>                *) logger "LCD0 button undefined: $1 $2 $3 $4" ;;
>         esac ;;
>   *) logger "Video button undefined: $1 $2 $3 $4" ;;
>   esac ;;
> ---------------------------8<-------------------------------
> I really don't remember what "00000086" and "00000087" stand for.
> The brightness changing scripts are below.
>
> "/usr/local/bin/brightness_up":
> ---------------------------8<-------------------------------
> #!/bin/bash
> # LCD brightness up
> declare -i BRIGHT
> let BRIGHT=`cat /sys/class/backlight/acpi_video0/actual_brightness`+1
> if [ "$BRIGHT" -gt 15 ]; then
>  BRIGHT=15
> fi
> echo $BRIGHT > /sys/class/backlight/acpi_video0/brightness
> ---------------------------8<-------------------------------
>
> and "/usr/local/bin/brightness_down":
> ---------------------------8<-------------------------------
> #!/bin/bash
> # LCD brightness down
> declare -i BRIGHT
> let BRIGHT=`cat /sys/class/backlight/acpi_video0/actual_brightness`-1
> if [ "$BRIGHT" -lt 0 ]; then
>  BRIGHT=0
> fi
> echo $BRIGHT > /sys/class/backlight/acpi_video0/brightness
> ---------------------------8<-------------------------------
>
> Cheers,
> Sergey
>
>

Thanks I'll give it a shot though it looks to me like this is just
another way of doing:

echo # >/sys/class/backlight/acpi_video0/brightness

Thanks again

-- 
( adam stokes ) || ( adam.stokes at gmail.com )


More information about the arch-general mailing list