View Single Post
Old 07-08-11, 06:16 AM   #139
Registered User
Join Date: Jul 2011
Posts: 1
Default Re: Linux backlight driver

Okay you guys, I have some good news!

After fooling around with getting backlight controls to work on my Sony Vaio VPCCW17FX for a little over a year now...I've finally found the ideal solution. This should work with most other Sony Vaio users on here who are having this backlight issue, and best of all it works with the Gnome Brightness Applet without any ACPI scripts!

1) Get the latest version of nvidiabl from guillaumezin's github page. Using the .deb installer should work fine, but if your model is not supported then you may need to download the source, add your model's details to the laptops.h file, and compile it yourself.

2) Download the source code for Gnome Power Manager by typing this in a terminal:
sudo apt-get install git (if you haven't already installed git)
git clone git://
3) Open ~/gnome-power-manager/src/gpm-backlight-helper.c in a text editor. On line 63, replace "sony" with "nvidia_backlight", so that the section looks like this:
	/* available kernel interfaces in priority order */
	static const gchar *backlight_interfaces[] = {
4) Compile (but don't install!) the new gnome-power-manager by typing this into the terminal:
[WARNING] This package has a lot of dependencies! It will tell you if you are missing something, but you may have to go through this multiple times before you get all of the dependency packages installed. If apt-get says it can't find one, remember to replace the version number with * or possibly add the asterisk onto the end of the package name.
cd ~/gnome-power-manager
5) Remove anything from /etc/acpi and /etc/acpi/events that could cause unwanted behaviors with the backlight. For example,, sony-brightness-down, etc.

6) Temporarily stop gnome-power-manager by going to System Monitor (Under System Settings in 11.04, under the System>Administration menu otherwise). Go to the Processes tab and select gnome-power-manager, then click on the End Process button. This should remove the battery/charging icon from the task bar (just for a minute!).

7) Replace the old gnome-power-backlight-helper with the new one by typing this into the terminal:
cd ~/gnome-power-manager/src
sudo rm /usr/sbin/gnome-power-backlight-helper
sudo cp gnome-power-backlight-helper /usr/sbin/gnome-power-backlight-helper
rm ~/gnome-power-manager (if you wish to delete the source files)
8) Restart Gnome Power Manager by going to System Settings (or the System>Preferences menu) and selecting Power Management. You can close the window as soon as you see the battery/charging icon re-appear in the task bar.

That should do it, test your brightness up/down hotkeys to see if they correctly adjust the backlight! Hopefully this works for all of you who have been just as frustrated about finding a real-deal solution as I have!
bhb192 is offline   Reply With Quote