2

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?

  • Start by looking into /sys/class/backlight and see which folders are present. Then try 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
  • 1
    Also, can you change the brightness from the Brightness and Lock settings? – To Do May 28 '14 at 21:06
  • Hi! Notice that the first thing I posted was a listing of the folders in /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:09
  • Why did you add acpi_backlight=vendor? I think it can be the problem. – AliNajafies May 28 '14 at 21:09
  • I had to do that in 13.10 for the backlight. Should I try removing? What should my GRUB_CMDLINE_LINUX_DEFAULT line be? Do I need acpi_osi=Linux? I have no idea what nomodeset is but someone had me add it for something.... – Espressofa May 28 '14 at 21:10
  • There’s an answer for what nomodeset does: http://askubuntu.com/questions/207175/what-does-nomodeset-do/207177#207177 . I think it’s worth trying to remove both acpi_backlight=vendor and acpi_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:18
  • Just tried removing them one at a time. No luck. I've now ditched all the options except for nosplash and it appears to behave exactly the same. – Espressofa May 28 '14 at 21:27
  • This also doesn't work: `GRUB_CMDLINE_LINUX="acpi_osi="!Windows 2013"" – Espressofa May 29 '14 at 12:01
  • @AliNa, any ideas? – Espressofa May 29 '14 at 14:55
  • No, sorry. I’m not much technical, just wanted to share my experience. However, if you think you need to install any drivers you can use ubuntu-drivers from the shell. – AliNajafies May 29 '14 at 17:53
  • You need sudo for echoing values to brightness. Try: echo 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
  • This has no effect, unfortunately. max_brightness is 15 and no values between 1 and 15 change the actual_brightness away from 0. – Espressofa May 30 '14 at 11:53

3 Answers3

1

Removing all kernel boot parameters and installing the ppa:xorg-edgers/ppa's nvidia drivers fixed the issue.

0

I found that changing my GRUB CMDLINE_LINUX_DEFAULT line to the following works on my Lenovo y510p:

GRUB_CMDLINE_LINUX_DEFAULT="nosplash quiet acpi_backlight=intel_backlight"

To accomplish this, run this command:

sudo gedit /etc/default/grub

Make the edit, save / exit gedit. Then run the command:

sudo update-grub

Now all you need to do is restart by typing the following command and back lights should work.

sudo reboot

Now the "Fn + up arrow" or "Fn + down arrow" works to brighten or dim the display

hmayag
  • 2,246
  • 5
  • 21
  • 23
0

Creating this file solved the problem for nvidia nvs5400m in a Thinkpad T530. Thank you.

cat /usr/share/X11/xorg.conf.d/20-nvidia.conf 


Section "Device"
        Identifier "NVIDIA"
        Driver "nvidia"
        Option "NoLogo" "True"
        Option "RegistryDwords" "EnableBrightnessControl=1"
EndSection
hg8
  • 13,462