GPU独显下屏幕亮度不能调节(假设你已经安装了合适的nvidia显卡驱动),我试过修改 /etc/default/grub 的 GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi_backlight=vendor" ,没用。修改和xorg.conf相关的文件,添加EnableBrightnessControl=1也没用。
解决方法:
方法一:
装一个软件brightness-controller,但这个是通过软件手段增加屏幕蒙版来调节亮度,无法提升屏幕背光。参考ubuntu20.04屏幕亮度无法调节(亮度条调节无效)的简单靠谱解决方案及踩坑历程_ubuntu20.04调节屏幕亮度-CSDN博客
sudo add-apt-repository ppa:apandada1/brightness-controller
sudo apt-get update
sudo apt-get brightness-controller
#或者安装brightness-controller-simple
sudo apt-get brightness-controller-simple
方法二:
安装soft-brightness 来替代系统的亮度条。和方法一一样,软件蒙板方法治标不治本。GitHub - F-i-f/soft-brightness: Gnome-shell extension to manage your display brightness via an alpha overlay (instead of the backlight).
https://github.com/F-i-f/soft-brightness/releases/download/v30/soft-brightness@fifi.org.v30.shell-extension.zip
gnome-extensions install soft-brightness@fifi.org.v30.shell-extension.zip
然后在系统菜单的extension中打开它,勾选背光:
方法三:
我自己用pyqt写了一个ui界面brightnessUI,直接调整 /sys/class/backlight/xxx/brightness的亮度:
brightnessUI: Change screen backlight for ubuntu
pip3 install brightnessUI # from PyPI
brightness-ui-install # install desktop and application menu shortcuts
源码安装和更细致的说明去读readme吧。这个对我的ROG电脑ubuntu20管用。