如何在Zenbook的16.04中grub的acpi_osi不够时启用亮度按钮?
情况:在华硕Zenbook UX303UA中分别使用F5和F6来降低和增加亮度,当我可以在系统偏好设置中更改亮度时, /etc/default/grub
GRUB_CMDLINE_LINUX_DEFAULT
的acpi_osi=
不足。
相关:(请参阅亮度热键不适用于笔记本电脑华硕k501ux [Ubuntu 16.04.1]和屏幕亮度键不起作用(fn + f5 / f6) ),后者就足够了。
Ubuntu的文档说,但它已经过时,并不特别包括16.04
注:自BIOS更新214添加“支持Windows8亮度控制”。 这意味着亮度按钮不再适用于Ubuntu。 Zenbook Prime wiki中的亮度解决方法2适用于改变亮度。
这里有一些关于设置的Bash脚本,但是它们的绑定对于不同的系统是错误的。 执行xev
,按F5和F6 ,并研究输出,显示操作无效(传输0 bytes
),显示UEFI固件问题(Pilot6)
KeyPress event, serial 37, synthetic NO, window 0x3a00001, root 0xb5, subw 0x0, time 16483030, (-1385,943), root:(303,995), state 0x0, keycode 71 (keysym 0xffc2, F5), same_screen YES, XLookupString gives 0 bytes: XmbLookupString gives 0 bytes: XFilterEvent returns: False KeyRelease event, serial 37, synthetic NO, window 0x3a00001, root 0xb5, subw 0x0, time 16483120, (-1385,943), root:(303,995), state 0x0, keycode 71 (keysym 0xffc2, F5), same_screen YES, XLookupString gives 0 bytes: XFilterEvent returns: False KeyPress event, serial 37, synthetic NO, window 0x3a00001, root 0xb5, subw 0x0, time 16483312, (-1385,943), root:(303,995), state 0x0, keycode 72 (keysym 0xffc3, F6), same_screen YES, XLookupString gives 0 bytes: XmbLookupString gives 0 bytes: XFilterEvent returns: False KeyRelease event, serial 37, synthetic NO, window 0x3a00001, root 0xb5, subw 0x0, time 16483387, (-1385,943), root:(303,995), state 0x0, keycode 72 (keysym 0xffc3, F6), same_screen YES, XLookupString gives 0 bytes: XFilterEvent returns: False
输出不成功
做
-
像这样在
/etc/default/grub
文件中添加没有值的选项acpi_osi
# guillaume-desclaux https://ubuntuforums.org/showthread.php?t=2243162 GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi_osi="
-
运行
update-grub
- 重新开始
输出: Fn + F5和Fn + F6无法正常工作:显示右上角亮度变化的迹象,但实际上根本不影响亮度。 图1亮度设置为最小值,图2亮度增加而亮度没有变化,图3亮度在“系统偏好设置”中相应改变
Bios升级?
我在这里的新主题中扩展了这个问题。 我最后不需要升级BIOS,因为它是最新的(2个月大的笔记本电脑2016年9月4日)。
硬件:华硕Zenbook UX303UA R4028T,UX305
操作系统:Ubuntu 16.04 64位,14.04
文档:Ubuntu关于华硕Zenbook的文档 ,华硕Zenbook Prime 文档显然不相关
相关: 如何使用媒体按钮更改Zenbook UX305的亮度?
差分解决方案: 此处使用非apt-get软件等ALS传感器
-
在
/etc/default/grub
文件的参数GRUB_CMDLINE_LINUX_DEFAULT
中添加没有值的选项acpi_osi
,就像在正文中一样# guillaume-desclaux https://ubuntuforums.org/showthread.php?t=2243162 GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi_osi="
-
编辑
/usr/share/X11/xorg.conf.d/20-intel.conf
并在其中添加以下内容# http://askubuntu.com/a/536618/25388 Section "Device" Identifier "card0" Driver "intel" Option "Backlight" "intel_backlight" BusID "PCI:0:2:0" EndSection
-
运行
sudo update-grub
。
输出:亮度控制现在按预期工作。