My Fn+F8 and Fn+F9 keys to change the screen's brightness appear to no longer work on my Thinkpad laptop.
# ls /sys/class/backlight/
thinkpad_screen
Some guide told me to make this:
# cat /usr/share/X11/xorg.conf.d/20-intel.conf
Section "Device"
Identifier "card0"
Driver "intel"
Option "Backlight" "intel_backlight"
BusID "PCI:0:2:0"
EndSection
And someone else said to do this:
# cat /usr/share/X11/xorg.conf.d/20-nvidia.conf
Section "Device"
Identifier "NVIDIA"
Driver "nvidia"
Option "NoLogo" "True"
Option "RegistryDwords" "EnableBrightnessControl=1"
EndSection
This is my GRUB CMDLINE_LINUX_DEFAULT line, in case it's relevant: GRUB_CMDLINE_LINUX_DEFAULT="nosplash nomodeset acpi_osi=Linux acpi_backlight=vendor"
The Ubuntu wiki page on backlight issues says
Add just kernel parameters thinkpad-acpi.brightness_enable=1 acpi_backlight=vendor to /boot/grub/menu.lst . Execute: sudo update grub
but I don't have a menu.lst and I suspect this is outdated.
Doing something like this does not work: echo 10 > /sys/class/backlight/thinkpad_screen/brightness
Any ideas?
echo 300 | sudo tee /sys/class/backlight/intel_backlight/brightness > /dev/null
changing intel_backlight to yours. Experiment with the 300 figure. If this works then we can post a more reasonable solution. – To Do May 28 '14 at 21:05/sys/class/backlight
and the last thing in my original post was showing that echoing numbers into/sys/class/backlight/thinkpad_screen/brightness
does not work. I do not have Brightness and Lock settings (or at least I don't know how to get to them) as I run xmonad and do everything through a shell. – Espressofa May 28 '14 at 21:09acpi_backlight=vendor
? I think it can be the problem. – AliNajafies May 28 '14 at 21:09nomodeset
does: http://askubuntu.com/questions/207175/what-does-nomodeset-do/207177#207177 . I think it’s worth trying to remove bothacpi_backlight=vendor
andacpi_osi=Linux
one by one. On my system the former disables the hotkeys and the latter resets the brightness on every reboot, but having both makes brightness level be saved and hotkeys work! – AliNajafies May 28 '14 at 21:18ubuntu-drivers
from the shell. – AliNajafies May 29 '14 at 17:53echo 300 | sudo tee /sys/class/backlight/thinkpad_screen/brightness > /dev/null
. Try experimenting with different values. An indication of what values are accepted can be obtained by viewing the value of max_brightness in the same folder. – To Do May 30 '14 at 07:55