Ubuntu – Lenovo Y500 can’t set brightness

brightnesslenovo

I've installed Ubuntu 12.10 on a Lenovo Y500 laptop (2012), video card is Nvidia 650M (no integrated graphics), I'm using driver 310.19. The problem is that I can't adjust brightness at all. If I press the relevant media keys, the indicator in ubuntu works correctly but the brightness is not changed.

So far I've tried the following:

Editing xorg.conf in this way:

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    Option         "RegistryDwords" "EnableBrightnessControl=1"
EndSection

Adding the options acpi_osi=linux acpi_backlight=vendor to the grub boot options

Setting brightness from the terminal and using xbacklight. The values of /sys/class/backlight/acpi_video0/brightness can be changed as well but the brightness remains the same.

Do you have any other hints?

Solution

It is possible to enable the backlight by installing the nvidiabl module. First of all install git and dkms:

$ sudo apt-get install git dkms

Download the code on your machine and compile the package:

$ git clone https://github.com/guillaumezin/nvidiabl.git
$ cd nvidiabl
$ sudo make dkms-install

Now the module should be installed. To activate the nvidiabl module you should issue the command:

$ sudo modprobe nvidiabl

Now the directory /sys/class/backlight/nvidia_backlight/ should be present. In order to manually change the brightness you have to write in the brightness file:

$ sudo su
# echo 100 > /sys/class/backlight/nvidia_backligh/brightness

You can substitute 100 with any value up to 127. In my case not the complete range of backlight are supported. You can tune the brightness calibration by varying the min and max parameters (you will still have to write values in brightness up to 127):

$ sudo modprobe -r nvidiabl
$ sudo modprobe nvidiabl max=100000 min=10

You can load the module at startup by adding nvidiabl (with or without max and min parameters) to the file /etc/modules, but I still haven't figured out how to properly add hotkeys.

Best Answer

I installed Xubuntu 12.10 on my new Lenovo Y500 and also could not adjust brightness, it was at at maximum and could not be controlled. Get installed and used graphics driver:

lshw -c video

Gave me:

configuration: drigver=nouveau latency=0
  • changing the value in /sys/class/backlight/acpi_video0/brightness does not change brightness
  • booting with acpi_backlight=vendor does not change brightness
  • etpci -s 00:01.0 F4.B=XX (XX = 00 to ff) does not change brightness

For the moment I solved this by installing the nvidia driver:

sudo apt-get install linux-source
sudo apt-get install linux-headers-generic
sudo apt-get install nvidia-current-updates

This gives you the terminal command:

sudo nvidia-settings 

Go to: DFP-0-(LGD), Tab: Color Correction

Here you can set the brightness.

Related Question