How to enable FN+F7 / FN+F8 (brightness adjustment)

Here are a few easy steps to enable brightness toggle (tested on HP DV3510nr laptop)

STEP 1

install nvclock

sudo apt-get install nvclock

STEP 2

check whether nvclock is working fine

sudo nvclock -S -10
sudo nvclock -S +10

STEP 3

create file hpbrightnessdown.sh in the /etc/acpi folder with the following content

#!/bin/sh
/usr/bin/nvclock -S -10

create file hpbrightnessup.sh in the /etc/acpi folder with the following content

#!/bin/sh
/usr/bin/nvclock -S +10

STEP 4

create file hpbrightnessdown in the /etc/acpi/events folder with the following content

event=video LCD 00000087 00000000
action=/etc/acpi/hpbrightnessdown.sh

create file hpbrightnessup in the /etc/acpi/events folder with the following content

event=video LCD 00000086 00000000
action=/etc/acpi/hpbrightnessup.sh

ATTENTION video LCD 00000086 00000000 and video LCD 00000087 00000000 codes can be obtained by using acpi_listen in the terminal and pressing FN+(brightness up/down key)

STEP 5

run the following commands to make the files executable

sudo chmod +x /etc/acpi/hpbrightnessdown.sh
sudo chmod +x /etc/acpi/hpbrightnessup.sh
sudo chmod +x /etc/acpi/events/hpbrightnessdown
sudo chmod +x /etc/acpi/events/hpbrightnessup

STEP 6

run the following command to restart the acpid service

sudo service acpid restart

Voila :-)


**Just tested on Macbook2,2 - Doesn't work - error: No nvidia card found on system!

 
enable_fn_f7_fn_f8_brightness_adjustment.txt · Last modified: 2010/04/05 05:46 by 24.113.29.223
 
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki