Ubuntu: Macbook Pro backlight control not working on Ubuntu 16.04


I'm trying to fix the backlight issue on my Macbook Pro Retina after installing Ubuntu 16.04.

The problem is the backlight dimmer buttons F1 F2 or Fn+F1 and Fn+F2 are not working at all after installing Ubuntu 16.04.

I have run in some answers that recommends to set the acpi_backlight=vendor on the GRUB_CMDLINE_LINUX_DEFAULT parameter and rebooting it and still not working.

Also I've tried this other workaround https://itsfoss.com/fix-brightness-ubuntu-1310/ but the ls /sys/class/backlight/ directory returns different files, I've also tried to set some configuration similar to the one proposed on the link but then I got an error at booting Ubuntu on the graphics card.

Have anybody figured this out?


What I did was:

sudo vim /etc/rc.local   

and added the following line before the exit line

setpci -v -H1 -s 00:01.00 BRIDGE_CONTROL=0  

then just reboot.

That worked for me.


This may be helpful:

# grab copy of source  curl -O https://cdn.kernel.org/pub/linux/kernel/v4.x/linux-4.8.7.tar.xz  tar xf linux-4.8.7.tar.xz  cd linux-4.8.7/drivers/platform/x86    # patch it  curl -o file.patch https://bugzilla.kernel.org/attachment.cgi?id=218051  patch apple-gmux.c < file.patch    # build it  echo '  obj-m += apple-gmux.o    all:    make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules    clean:    make -C /lib/modules/$(shell uname -r)/build M=$(PWD) clean  ' > Makefile  make    # install  targetDir="/lib/modules/$(uname -r)/kernel/drivers/platform/x86"  sudo cp ${targetDir}/apple-gmux.ko ${targetDir}/apple-gmux.ko.backup  sudo cp apple-gmux.ko ${targetDir}    reboot  

Source: https://bugzilla.kernel.org/show_bug.cgi?id=105051#c37


  1. In the Terminal application enter:
sudo nano /usr/share/X11/xorg.conf.d/10-nvidia-brightness.conf  
  1. Paste:
Section "Device"      Identifier     "Device0"      Driver         "nvidia"      VendorName     "NVIDIA Corporation"      BoardName      "[GPU]"      Option         "RegistryDwords" "EnableBrightnessControl=1"  EndSection  
  1. In a new terminal tab (Control + T) or window enter:

lspci | grep -i --color 'vga\|3d\|2d'

  1. In the first terminal substitude the word [GPU] for the name between brackets shown in the second terminal, leaving out the brackets.

  2. Save the document in the first terminal (Control + O), and reboot the computer.

Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Next Post »