Ubuntu – Screen brightness not working


I use Ubuntu 12.04 on my Sony Vaio (VPCCW2HGX). At the first times, brightness control works well, but after the activating additional drivers (nvidia accelerated graphics driver) brightness control doesn't work. I searched this issue on so many Ubuntu and Linux forums, but solutions doesn't work. I tried these ways:

  1. Installing xbacklight
  2. Adding Option "RegistryDwords" "EnableBrightnessControl=1" to
  3. Updating Nvidia drivers
  4. To try to change brightness by typing sudo setpci -s 00:02.0 F4.B=xx

All of these ways doesn't work. I still can't set screen brightness. Is there anyone know this?

Best Answer

I had the same problem with my Vaio and Ubuntu.

I got it working with the nvidiabl-module and the oBacklight script.

The script is available from this repository, and these instructions may be helpful.

Or use the newer DKMS-based way described in the README file. If you use that technique, you really should read that file thoroughly. However, one method that should work is to download a .deb file and install it. The project is inactive so nvidiabl-dkms_0.87_all.deb will likely remain the latest .debpackage. You can download and install that package with these two commands:

wget https://raw.githubusercontent.com/guillaumezin/nvidiabl/master/install/deb/nvidiabl-dkms_0.87_all.deb
sudo dpkg -i nvidiabl-dkms_0.87_all.deb

The README has information on other ways to install, as well as uninstalling.