I recently installed Ubuntu 11.10 on my Mac Book Pro 7,1. I installed the NVIDIA driver (285). The brightness keys are working (F1 and F2) and I get the box showing the brightness but it does nothing. I can change the brightness in the NVIDIA X Server Settings application. How can I get the brightness working without uninstalling the driver? Thanks in advance.
I was able to get my brightness keys working on my Lenovo W530 on Ubuntu 12.04.
These days X automatically configures itself, so creating an xorg.conf file might make your system inflexible. Instead you can add a section to a file in /usr/share/X11/xorg.conf.d/ and X will include that section in the configuration that it automatically generates.
So to get the screen brightness keys working with your Nvidia graphics card, create a file in the xorg.conf.d directory, e.g:
Paste the following into the file:
Log out and log back in, or reboot, and your brightness keys should now work!
(I blogged this here)
I had a similar issue with my laptop, there is an option you need to add to your
You need to enable Brightness Control.
Open terminal and type
There are some computers, such as my Lenovo W520, that don't with the
Just download and install the latest Deb file from here: https://github.com/downloads/guillaumezin/nvidiabl/nvidiabl-dkms_0.72_all.deb
to ensure that the module will be loaded when the computer boots.
Im personally using Vaio VPCCW21FX (Nvidia Graphic) and Ubuntu Studio 11.10 .. I tried many solutions and nothing could resolve my problem with LCD brightness! Finally wrote these two perl files to manually set brightness/Contrast and Gamma functions inside Nvidia driver config file.
This will be helpfull only if you are able to change brightness within Nvidia X Server Settings
Step 1: create this file and name it "Brightness-Up.pl" (you can use any text editing tool like : gedit,nano,vi,etc.. copy & paste)
Step 2: then make another file, name it "Brightness-Down.pl" and fill with this code:
Step 3: You need to create another file which contains Nvidia Settings.. name it "Nvidia-Settings.cfg" its important that you write name exactly same. fill with:
Thats it! now place these files in unique folder.. you have to bind your Function Keys to these two perl file.you can use Compiz>commands to do that. Run below command to install the compizconfig-settings-manager
or even you can run seperately with these two commands in shell (terminal):
where Brightness is folder I put those files in it.
Thank you for providing the great script qgj. It's sad that this bug still persists and the work-around is needed. I had the same issue as James getting an error due to the options no longer being valid with nvidia-settings for my specific display type. As luck would have it, there is a better setting available for backlight brightness. I have modified the bash script to use this setting instead.
Your mileage may vary with this script as some displays/adapters support different options. If you encounter issues with it please read the help and comments in the script.
Hope it helps someone!
The above perl script didnt work for me so I wrote my own script as a bash script (since I don't know perl). It got a bit long but it creates the settings file by itself and can be used with command line options to adjust brightness or gamma or both at the same time. I use it with the --brightness-up and --brightness-down switches for the brightness keys on my Keyboard. Easy to assign in XFCE4 and surely also in KDE / GNOME.
Save the file somewhere in your PATH e.g.
Don't forget to
Before you can use it you have to type
This will create the settings file and can also be used to reset the brightness at any time.
for more options:
The other answers are good steps to try, but note that some combinations of Ubuntu/Linux Kernel and the Nvidia driver just won't work. I used 12.04 for years, and even though I tried all the above answers, I couldn't get any of the Nvidia drivers to support screen dimming on my Macbook Pro 5,5.
When I finally upgraded to 14.04, I tried the Nouveau driver, which did support screen dimming, and was generally faster and more reliable and Nvidia. Unfortunately, it doesn't support suspend/resume, making it useless on a laptop. I switched back to Nvidia, but several drivers caused X/lightdm to crash, preventing me from even logging in. I finally found that the Nvidia 340 driver was stable with my Macbook Pro 5,5 and Ubuntu 14.04 and also supported dimming.
FYI, just worked through this on a Lenovo W520, and the addition of the simple line Option "RegistryDwords" "EnableBrightnessControl=1"
to xorg.conf was enough - no need for any of the other bogosity, and all works fine with a current NVidia release (specifically, running 346.35)