2014年1月11日土曜日

let's noteにacpid入れてバックライト調整


debian jessieでやってみた
使用したPCはLet's Note CF-W5

acpi-supportインストール
apt-get install acpi-support

Enabling backlight controlを参考にする

/etc/acpi/bright.sh
#!/bin/sh
bl_dev=/sys/class/backlight/panasonic/brightness
step=1

case $1 in
    -)
        echo $( expr `cat $bl_dev` - $step ) > $bl_dev
        ;;
    +)
        echo $( expr `cat $bl_dev` + $step ) > $bl_dev
        ;;
esac

/etc/acpi/events/bright_d
event=video/brightnessdown
action=/etc/acpi/bright.sh -

/etc/acpi/events/bright_u
event=video/brightnessup
action=/etc/acpi/bright.sh +


参考リンク
https://wiki.archlinux.org/index.php/acpid

0 件のコメント: