我安装了Ubuntu20.04LTS与5.11.0-34通用内核在我的2009年中期macbook,其中有nvidia geforce 9400 M图形硬件。挂起和从挂起并不适用于nouveau开源图形驱动程序,所以我想安装nvidia专有的图形驱动程序。“附加软件”中提供的nvidia驱动程序是我的机器的正确版本,但它不支持5.11内核,因此我使用https://launchpad.net/~kelebek333/+archive/ubuntu/nvidia-legacy中的以下命令安装了修补好的nvidia驱动程序:
sudo add-apt-repository ppa:kelebek333/nvidia-legacy
sudo apt update
sudo apt install nvidia-340
sudo reboot这使挂起和唤醒非常完美,但却产生了不良的副作用,即从macbook键盘快捷键(F1和F2)、桌面GUI控件和设置中禁用LCD亮度控制。键盘背光控件和音量控件都仍然工作。LCD亮度控制之前曾与新手图形驱动程序“开箱即用”。
将感谢如何获得液晶背光控制功能后,安装英伟达驱动程序的建议。
发布于 2021-09-12 20:39:26
在发布我的问题后,我从AskUbuntu的建议答案中找到了这个答案。这工作和恢复了键盘和图形用户界面LCD背光亮度控制功能。
这是到答案:https://askubuntu.com/a/199652/1128472的链接。
以下是我从答案中所遵循的步骤:
# first I created the following file using this script. A blank text editor window opened.
sudo gedit /usr/share/X11/xorg.conf.d/10-nvidia-brightness.conf
# Next I pasted the following into the file and then saved and quit the text editor.
Section "Device"
Identifier "Device0"
Driver "nvidia"
VendorName "NVIDIA Corporation"
BoardName "Quadro K1000M" # I changed this to "GEFORCE 9400M"
Option "RegistryDwords" "EnableBrightnessControl=1"
EndSection
# Lastly, I rebooted
sudo reboothttps://askubuntu.com/questions/1363377
复制相似问题