MacBookPro 11,5 - 如何控制亮度?

MacBookPro 11,5 - 如何控制亮度?

我正在运行 Ubuntu 16.04 和 Gnome 在此处输入图片描述

# sudo dmidecode -s system-product-name
MacBookPro11,5

我的问题:

  • 亮度键(fn + f1、fn + f2)不会改变亮度。
  • gnome 电源设置下没有亮度滑块(只有键盘背光亮度)
    在此处输入图片描述

  • 我似乎能够改变亮度的唯一方法是编辑/sys/class/backlight/radeon_bl0/brightness然后重新启动。

  • 设置只是--brightness对比度xrandr,不会改变背光强度。(这可能是预期的功能,xrandr但不是我/任何人想要调整亮度的方式)

我的显示:

$ xrandr
Screen 0: minimum 320 x 200, current 2880 x 1800, maximum 16384 x 16384
eDP connected primary 2880x1800+0+0 (normal left inverted right x axis y axis) 331mm x 207mm
   2880x1800     59.99*+
   1920x1200     59.88  
   1920x1080     59.96  
   1600x1200     59.87  
   1680x1050     59.95  
   1400x1050     59.98  
   1280x1024     59.89  
   1440x900      59.89  
   1280x960      59.94  
   1280x854      59.89  
   1280x800      59.81  
   1280x720      59.86  
   1152x768      59.78  
   1024x768      59.92  
   800x600       59.86  
   848x480       59.66  
   720x480       59.71  
   640x480       59.38  
DisplayPort-0 disconnected (normal left inverted right x axis y axis)
DisplayPort-1 disconnected (normal left inverted right x axis y axis)
HDMI-0 disconnected (normal left inverted right x axis y axis)

我的/etc/default/grub文件

# If you change this file, run 'update-grub' afterwards to update

#

 /boot/grub/grub.cfg.
# For full documentation of the options in this file, see:
#   info -f grub -n 'Simple configuration'

GRUB_DEFAULT=0
GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
#GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
# Changed in order to get backlight control working
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash pcie_aspm=force acpi_backlight=vendor"
GRUB_CMDLINE_LINUX=""

# Uncomment to enable BadRAM filtering, modify to suit your needs
# This works with Linux (no patch required) and with any kernel that obtains
# the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)
#GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"

# Uncomment to disable graphical terminal (grub-pc only)
#GRUB_TERMINAL=console

# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
#GRUB_GFXMODE=640x480

# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
#GRUB_DISABLE_LINUX_UUID=true

# Uncomment to disable generation of recovery mode menu entries
#GRUB_DISABLE_RECOVERY="true"

# Uncomment to get a beep at grub start
#GRUB_INIT_TUNE="480 440 1"

我也尝试过acpi_backlight=native,没有结果。

sudo update-grub在对这个文件进行所有更改后,我运行并重新启动。

我的背光文件夹有两个目录:

  • radeon_bl0/
  • gmux_backlight/<- 据我所知,这个没有用过。

我该如何进一步调试它,并使我的背光控制正常工作?

答案1

猜测一下;在之前的版本(macbookpro 11.3)中,你必须运行

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

也许这个也是一样的?

答案2

这是内核问题。您需要修补并重建内核来修复此问题。

我已经创建了一篇关于为 Fedora 修复此问题的博客文章。这里有两个需要应用的补丁链接:http://blog.samalik.com/fedora-24-on-macbook-pro-114-and-115-suspend-and-brightness-fix/

希望有所帮助。

相关内容