我读过很多关于 Ubuntu 中显示亮度键盘快捷键问题的帖子。大多数帖子都提供了针对 Ubuntu 14 或更早版本的解答,所以我想尽可能多地提供相关信息。
会发生什么
开机后,我登录后,亮度调节键盘快捷键无效,亮度调到最大。我注销(未重启),重新登录后,键盘快捷键有效。
应该发生什么
无论是第一次、第二次、第三次还是额外登录,亮度控制的键盘快捷键都应该有效,而无需注销并重新登录。
背景细节
- 电脑:三星 NP-R580-JSB1US
- 操作系统 + 类型:Ubuntu 16.04 LTS 64 位
- 图形:GeForce 310M/PCIe/SSE2
- 图形驱动程序:NVIDIA 二进制驱动程序 - nvidia-340 的 340.96 版(专有,已测试)
- 键盘快捷键): Fn+ ↑| Fn+↓
- NVidia 会议地点:
/usr/share/X11/xorg.conf.d/20-nvidia.conf
- NVidia Conf 内容:
# nvidia-settings: X configuration file generated by nvidia-settings
# nvidia-settings: version 361.42 (buildd@lgw01-18) Tue Apr 5 14:33:28 UTC 2016
Section "ServerLayout"
Identifier "Layout0"
Screen 0 "Screen0" 0 0
InputDevice "Keyboard0" "CoreKeyboard"
InputDevice "Mouse0" "CorePointer"
Option "Xinerama" "0"
EndSection
Section "Files"
EndSection
Section "Module"
Load "dbe"
Load "extmod"
Load "type1"
Load "freetype"
Load "glx"
EndSection
Section "InputDevice"
# generated from default
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "auto"
Option "Device" "/dev/psaux"
Option "Emulate3Buttons" "no"
Option "ZAxisMapping" "4 5"
EndSection
Section "InputDevice"
# generated from default
Identifier "Keyboard0"
Driver "kbd"
EndSection
Section "Monitor"
# HorizSync source: edid, VertRefresh source: edid
Identifier "Monitor0"
VendorName "Unknown"
ModelName "Chi Mei Optoelectronics corp."
HorizSync 30.0 - 75.0
VertRefresh 60.0
Option "DPMS"
EndSection
Section "Device"
Identifier "Device0"
Driver "nvidia"
VendorName "NVIDIA Corporation"
BoardName "GeForce 310M"
Option "RegistryDwords" "EnableBrightnessControl=1"
EndSection
Section "Screen"
Identifier "Screen0"
Device "Device0"
Monitor "Monitor0"
DefaultDepth 24
Option "Stereo" "0"
Option "nvidiaXineramaInfoOrder" "DFP-0"
Option "metamodes" "nvidia-auto-select +0+0"
Option "SLI" "Off"
Option "MultiGPU" "Off"
Option "BaseMosaic" "off"
SubSection "Display"
Depth 24
EndSubSection
EndSection
该文件由NVidia X 服务器设置应用程序正如您在文件注释头中所看到的,但用进行了修改,Option "RegistryDwords" "EnableBrightnessControl=1"
然后保存到指定位置(因为我通过研究了解到这是存储这些文件的新方法.conf
)。
结论
这比其他任何事情都更令人烦恼,但如果其他人也遇到过这种情况,或者知道我可以从哪里开始寻找解决方案,请告诉我。
非常感激!