Comment 35 for bug 145337

Revision history for this message
mikelopez (e-mikelopez) wrote :

Hi I'm running Kubuntu Gutsy on a Gateway ML6720 laptop and it doesn't work either. Based on the comments here, I decided to write a short bash script as a temporary workaround. It looks like that acpi_fakekey is not working properly. I did however notice that echoing a value to /proc/acpi/video/VGA/LCD/brightness does change the brightness of my LCD.

Not sure if this is the place to upload workarounds so I'm sorry if I'm making a mistake here. Just hoping to help those who wants to get it done without having to wait for the next upgrade.

The attached bash script works with the following syntax (run as root):
Increase brightness: lcdbryt.sh up
Decrease brightness: lcdbryt.sh dn

I placed the script in /usr/bin then edited /etc/acpi/video_brightnessup.sh and video_brightnessdown.sh to call the script I wrote.

my video_brightnessup.sh now looks:
#!/bin/bash
. /usr/share/acpi-support/key-constants
#acpi_fakekey $KEY_BRIGHTNESSUP
lcdbryt.sh up

and my video_brightnessdown.sh now looks:
#!/bin/bash
. /usr/share/acpi-support/key-constants
#acpi_fakekey $KEY_BRIGHTNESSDOWN
lcdbryt.sh dn