Wednesday, March 3, 2010

ACPI brightness on Ubuntu with Nvidia cards and Intel Vpro chipset

Standard
Introduction
I have long had no response on my laptop, a HP 8510w on the brightness buttons. That is the fn+F9 and fn+f10.

It has been a source of irritation, and I decided to fix it.

Here is  how:
  1. Install nvclock
  2. Create nvclock wrapper scripts
  3. Create the necessary acpi config event mappers for acpid. 
Installation of nvclock

sudo apt-get install nvclock

Create nvclock wrapper scripts
Create file /etc/acpi/hp-brightness-up.sh:

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


Create file /etc/acpi/hp-brightness-down.sh:

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


 Create ACPID config files
Create file /etc/acpi/events/hp-brightness-up:

event=video C160 00000086 00000000
action=/etc/acpi/hp-brightness-up.sh
 

Create file /etc/acpi/events/hp-brightness-down:

event=video C160 00000087 00000000
action=/etc/acpi/hp-brightness-down.sh
 

 Restart ACPID subsystem
The acpid system is restarted like this:

sudo /etc/init.d/acpid restart


Final notes
If you have problems with this check to see if the event codes written above match the ones actually returned by the acpi subsystem of your laptop. The tools acpi_listen and acpital will both tell you more info. Start one of these programs in a terminal and to pressing the buttons you wish to configure.

0 kommentarer: