Skip to content

Instantly share code, notes, and snippets.

@bartcubbins
Last active February 3, 2017 20:13
Show Gist options
  • Select an option

  • Save bartcubbins/0f153803e730293cd62def7de980442d to your computer and use it in GitHub Desktop.

Select an option

Save bartcubbins/0f153803e730293cd62def7de980442d to your computer and use it in GitHub Desktop.
ubuntu brightness
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:
sudo gedit /usr/share/X11/xorg.conf.d/10-nvidia-brightness.conf
Paste the following into the file:
Section "Device"
Identifier "Device0"
Driver "nvidia"
VendorName "NVIDIA Corporation"
BoardName "Quadro K1000M"
Option "RegistryDwords" "EnableBrightnessControl=1"
EndSection
Log out and log back in, or reboot, and your brightness keys should now work!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment