我已经
sudo apt-get purge nvidia*
sudo apt-get install --reinstall xserver-xorg-video-intel libgl1-mesa-glx libgl1-mesa-dri xserver-xorg-core
sudo dpkg-reconfigure xserver-xorg
sudo update-alternatives --remove gl_conf /usr/lib/nvidia-current/ld.so.conf
我还将 nouveau 驱动程序列入了黑名单
/etc/modprobe.d/blacklist-nvidia-nouveau.conf
blacklist nouveau
options nouveau modeset=0
但是当我尝试运行 glxgears 时,它什么也没有呈现(黑屏)。
$ vblank_mode=0 glxgears
ATTENTION: default value of option vblank_mode overridden by environment.
xorg 日志中的错误:
grep "EE" /var/log/Xorg.0.log
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[ 274.620] (II) Initializing extension MIT-SCREEN-SAVER
[ 274.623] (EE) AIGLX error: dlopen of /usr/lib/x86_64-linux-gnu/dri/i965_dri.so failed (/usr/lib/x86_64-linux-gnu/dri/i965_dri.so: cannot open shared object file: No such file or directory)
[ 274.623] (EE) AIGLX error: unable to load driver i965
答案1
https://www.linuxbabe.com/desktop-linux/switch-intel-nvidia-graphics-card-ubuntu
sudo prime-select intel
此实用程序存在于 ubuntu 新安装中。
必须安装下一个包。
i A libgl1-mesa-dri - free implementation of the OpenGL API -- DRI modules