16

I have upgraded to ubuntu 18.04 LTS the display brightness controls are not working. It appears that the brightness is in its lowest level and I am not able to change display brightness at all. It was working on 16.04 LTS. My laptop uses Intel Graphics card.

I have tried to solve that by creating the file /usr/share/X11/xorg.conf.d/20-intel.conf with the following content. It worked the first time, but after one reboot it remains back to the previous problem.

Section "Device"
        Identifier  "card0"
        Driver      "intel"
        Option      "Backlight"  "intel_backlight"
        BusID       "PCI:0:2:0"
EndSection

What can I do?

  • Does the Screen Brightness slider in Settings > Power show at all, or is it greyed out? – Broadsworde May 10 '18 at 4:14
  • The screen brightness slider in Settings->Power does not work, the screen brightness does not change. – Claudio Diniz May 10 '18 at 12:52
  • Ok, I solved the problem by installing xbacklight and adding it to startup applications. – Claudio Diniz May 10 '18 at 14:28
  • I rebooted the computer again and the problem came back. – Claudio Diniz May 10 '18 at 18:11
19

I also had this problem, but on different distributions the solution was different.

Solution provided by Anas Elazhar worked well until I switched to Xubuntu:

Open the file /etc/default/grub using gedit or any other text editor. Find below line.

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"  

Change above line to

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi_backlight=vendor"

If it doesn't work for you either try to change acpi_backlight value to video:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi_backlight=video"

Also create the file /usr/share/X11/xorg.conf.d/80-backlight.conf but content is slightly different from the file that you created:

Section "Device"
    Identifier  "Intel Graphics"
    Driver      "intel"
    Option      "AccelMethod"     "sna"
    Option      "Backlight"       "acpi_video0"
    BusID       "PCI:0:2:0"
EndSection

If combination acpi_backlight=video with this file doesn't work change acpi_backlight back to vendor.

And do not forget to run sudo update-grub command in terminal every time you change /etc/default/grub!

  • adding of ` acpi_backlight=vendor` was enough (+restart). Ubuntu 18.04. Samsung R510 – it3xl Apr 13 at 21:08
  • 1
    XUbuntu 18.04 on Lenovo Thinkpad T480s: acpi_backlight=video and file 80-backlight.conf did the trick. – kiltek Jul 6 at 18:52
6

Open the file /etc/default/grub using gedit or any other text editor. Find below line.

  GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"  

Change above line to

  GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi_backlight=vendor"

This would ensure to load device specific drivers before default drivers in Linux.

Save the file and close text editor.

Open terminal and run below command.

  update-grub

Reboot.

After reboot, try adjusting brightness using Laptop dedicated control keys. Good Luck.

  • 2
    I did that, but it does not work in my laptop. – Claudio Diniz May 18 '18 at 12:29
  • Try ducky's answer – Anas Elazhar May 23 '18 at 13:53
1

Based on my current Ubuntu 18.04 installation (from today), I can adjust brightness at the login screen with the function keys (out of the box!). However, I am using i3 with Gnome, and after login, I am no more shown brightness controls in Gnome control centre.

Above answers didn't unfortunately work for me: Instead, using Ducky's xorg script together with Grub option made my i3 + Gnome session having undesired display behaviour and getting slower.

Anyway, at least for the case you go for a non-Gnome session (e.g. i3), I can point you to https://github.com/szekelyszilv/ybacklight which (given you have meson and ninja installed) can be built by:

  • downloading, unpacking and changing into ybacklight main directory
  • mkdir build; meson build; cd build; ninja install

or, (without those tools and if you don't want to install it in the system), by:

  • cd src; gcc ybacklight.c -o ybacklight; cp ybacklight to-your-pref-dir

and then be attached to function keys via WMs config. E.g. in i3wm, I added:

bindsym XF86MonBrightnessUp exec ybacklight -inc 10 
bindsym XF86MonBrightnessDown exec ybacklight -dec 10 

to my .config/i3/config.

Furthermore, setting brightness requires root privileges, e.g., achievable with "sudo ybacklight ..." as well as an entry to /etc/sudoers: see How can I add a new user as sudoer using the command line?

  • 1
    You can also just build it with cd src; gcc ybacklight.c -o ybacklight. To set the brightness, it needs root privileges, so I used sudo (and added an appropriate entry to /etc/sudoers). – Mark May 30 '18 at 1:04
  • Thx, absolutely right. Far better than my solution with chmod. – Mario May 30 '18 at 7:45
1

I've recently updated to 18.04 and I have found that changing GRUB_CMDLINE_LINUX_DEFAULT in /etc/default/grub to the following

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi_backlight=video"

and adding,

Option         "RegistryDwords" "EnableBrightnessControl=1"

to /etc/X11/xorg.conf under

Section "Device"

fixed the control and brightness keys issues running Nvidia 390 driver.

  • GuyFork's answer WILL brick your GTK. DO NOT USE HIS INSTRUCTIONS. – mortal Jun 27 '18 at 23:11
  • @tak I really don't see how this could affect your hardware. If you are sure, please post an answer explaining exactly what you did and what happened. – terdon Jun 28 '18 at 8:46
  • @tak maybe this will not work for everyone just like a lot of other post/instructions from various groups did not work for me. if it doesn't work for you, you can always purge remove nvidia* and try another way as i have done many times with many laptops and various releases. – GuyFork Jul 13 '18 at 18:37
  • It also broke my system. It was not loading until I remove /etc/X11/xorg.conf file in recovery mode. Do not recommend to use it. – Experimenter Jan 22 at 13:37
0

I started the nvidia X server settings and in the x server display configuration changed the selection to X Screen0 and it worked.

The brightness control works now. Also before doing that I've changed the grub to acpibacklight=video0.

  • Welcome to Ask Ubuntu! I recommend to edit this answer to expand it with specific details about how to do this. (See also How do I write a good answer? for general advice about what sorts of answers are considered most valuable on Ask Ubuntu.) – David Foerster Aug 24 '18 at 8:44
0

On Ubuntu 18.04 (with xfce desktop) my brightness problem finally solved.

I opened 'Onboard Settings' under the 'Settings' menu. If your desktop doesn't have one, you can download it from Software Center.

On the 'Onboard Preferences' window, click the Layout menu, then choose the 'Full Keyboard' (Desktop keyboard with edit and function keys). Click here to view the Onboard Settings window

0

Installing Brightness Controller helped me in fixing up the issue

 sudo add-apt-repository ppa:apandada1/brightness-controller
 sudo apt update
 sudo apt install brightness-controller

You can access the Brightness Controller after download by searching for it.

protected by Community Oct 5 '18 at 17:24

Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).

Would you like to answer one of these unanswered questions instead?

Not the answer you're looking for? Browse other questions tagged or ask your own question.