Ubuntu 17.10、联想 P51、Xorg、NVIDIA Quadro M1200 上的背光不起作用

Ubuntu 17.10、联想 P51、Xorg、NVIDIA Quadro M1200 上的背光不起作用

在使用独立显卡艰难安装 NVIDIA 驱动程序后,我终于发现我的显示器背光始终处于全强度,并且无法通过键盘控制进行更改。

关于我的系统

% sudo apt list --installed | grep nvidia
nvidia-387/artful,now 387.22-0ubuntu0~gpu17.10.2 amd64 [installed]
nvidia-opencl-icd-387/artful,now 387.22-0ubuntu0~gpu17.10.2 amd64 [installed,automatic]
nvidia-prime/artful,now 0.8.5 amd64 [installed,automatic]
nvidia-settings/artful,now 387.22-0ubuntu0~gpu17.10.1 amd64 [installed,automatic]

% ls /sys/class/backlight  # empty!

% ls /proc/acpi/ibm/                    
beep  bluetooth  cmos  driver  fan  hotkey  kbdlight  led  light  volume
% cat /proc/acpi/ibm/light
status:     off
commands:   on, off

% journalctl -b | grep backlight
Nov 17 10:46:10 P51 systemd[1]: Created slice system-systemd\x2dbacklight.slice.
Nov 17 10:46:10 P51 systemd[1]: Starting Load/Save Screen Backlight Brightness of leds:tpacpi::kbd_backlight...
Nov 17 10:46:10 P51 systemd[1]: Started Load/Save Screen Backlight Brightness of leds:tpacpi::kbd_backlight.
Nov 17 10:46:22 P51 gsd-media-keys[1489]: Failed to set new screen percentage: GDBus.Error:org.gtk.GDBus.UnmappedGError.Quark._gsd_5fpower_5fmanager_5ferror.Code0: Screen backlight not available

% journalctl | grep ACPI
[...]
Nov 17 10:46:10 P51 kernel: ACPI Error: [\_SB_.PCI0.XHC_.RHUB.HS11] Namespace lookup failure, AE_NOT_FOUND (20170531/dswload-210)
Nov 17 10:46:10 P51 kernel: ACPI Exception: AE_NOT_FOUND, During name lookup/catalog (20170531/psobject-252)
Nov 17 10:46:10 P51 kernel: ACPI Exception: AE_NOT_FOUND, (SSDT:ProjSsdt) while loading table (20170531/tbxfload-228)
Nov 17 10:46:10 P51 kernel: ACPI Error: 1 table load failures, 11 successful (20170531/tbxfload-246)
[...]

我尝试过

  • 我尝试使用以下设置之一进行修改(然后重新启动GRUB_CMDLINE_LINUX_DEFAULT/etc/default/grubupdate-grub2

    acpi_backlight=video
    acpi_backlight=vendor # thinkpad_acpi.brightness...
    acpi_backlight=native
    
  • 我创建/usr/share/X11/xorg.conf.d/10-nvidia-brightness.conf

    Section "Device"
        Identifier     "Device0"
        Driver         "nvidia"
        VendorName     "NVIDIA Corporation"
        BoardName      "Quadro M1200"
        Option         "RegistryDwords" "EnableBrightnessControl=1"
    EndSection
    

上述方法均未产生任何值得一提的结果。

答案1

我找到了一种适用于我的 HP Zbook 15(配备 nvidia quadro K610M)的解决方法。但所有 UI 或热键都不起作用。我总是不得不使用终端...

我的解决方案是设置acpi_backlight没有任何在 grub 配置中(/etc/default/grub):GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi_backlight=none"

然后我用x背光命令(只需添加apt-get install xbacklighthttp://manpages.ubuntu.com/manpages/xenial/man1/xbacklight.1.html

例如对于 50% 的亮度我可以输入xbacklight =50

来源:https://askubuntu.com/a/937133/783249

相关内容