Difference between revisions of "Brightness On Thinkpad x61s running Debian"
m (removed duplicate category entry) |
|||
Line 1: | Line 1: | ||
− | ==Brightness On | + | ==Brightness On ThinkPad X61s running Debian== |
Somehow after a fresh installation of Debian Testing "Squeeze" I was not able to control the LCD Brightness with {{key|Fn}}{{key|Pos1}} and {{key|Fn}}{{key|Ende}} any more. {{cmdroot|acpi_listen}} did show that the corresponding ACPI events were generated. | Somehow after a fresh installation of Debian Testing "Squeeze" I was not able to control the LCD Brightness with {{key|Fn}}{{key|Pos1}} and {{key|Fn}}{{key|Ende}} any more. {{cmdroot|acpi_listen}} did show that the corresponding ACPI events were generated. | ||
Line 45: | Line 45: | ||
− | [[ | + | [[Category:X61s]][[Category:Debian]] |
Latest revision as of 14:11, 19 November 2019
Brightness On ThinkPad X61s running Debian
Somehow after a fresh installation of Debian Testing "Squeeze" I was not able to control the LCD Brightness with FnPos1 and FnEnde any more. # acpi_listen
did show that the corresponding ACPI events were generated.
I ended up with this additional set of acpi rules to solve the problem:
/etc/acpi/thinkpad_video_brightnessup.sh
#!/bin/sh # /etc/acpi/thinkpad_video_brightnessup.sh echo $(( $(grep current /proc/acpi/video/VID1/LCD0/brightness | cut -d ' ' -f 2)+10)) > /proc/acpi/video/VID1/LCD0/brightness
/etc/acpi/thinkpad_video_brightnessdown.sh
#!/bin/sh # /etc/acpi/thinkpad_video_brightnessdown.sh echo $(( $(grep current /proc/acpi/video/VID1/LCD0/brightness | cut -d ' ' -f 2)-10)) > /proc/acpi/video/VID1/LCD0/brightness
/etc/acpi/events/video_brightnessdown
# /etc/acpi/events/video_brightnessdown event=video LCD0 00000087 action=/etc/acpi/thinkpad_video_brightnessdown.sh
/etc/acpi/events/video_brightnessup
# /etc/acpi/events/video_brightnessup event=video LCD0 00000086 action=/etc/acpi/thinkpad_video_brightnessup.sh
Restart acpid and the brightness keys work again :-)