我刚刚在笔记本电脑上安装了 ubuntu 20.04:
> lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 20.04 LTS
Release: 20.04
Codename: focal
我的笔记本电脑有两张显卡:
> lspci -k | grep -iA3 vga
00:02.0 VGA compatible controller: Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller (rev 09)
Subsystem: ASUSTeK Computer Inc. 2nd Generation Core Processor Family Integrated Graphics Controller
Kernel driver in use: i915
Kernel modules: i915
--
01:00.0 VGA compatible controller: NVIDIA Corporation GF116M [GeForce GT 555M/635M] (rev a1)
Subsystem: ASUSTeK Computer Inc. GeForce GT 555M
Kernel driver in use: nvidia
Kernel modules: nvidiafb, nouveau, nvidia_drm, nvidia
因此,它有资格获得 prime/optimus 功能:
> prime-supported
yes
我将默认图形控制器设置为 nvidia:
> prime-select nvidia
Info: the nvidia profile is already set
... las,重启后,系统运行良好,但没有图形硬件加速:浏览器游戏运行非常慢。这已得到以下证实:
> glxinfo
name of display: :1
Error: couldn't find RGB GLX visual or fbconfig
答案1
解决方案:使用
apt list *nvidia* | grep install
... 我可以将我之前的 19.10 系统与 20.04 系统进行比较,发现nvidia-dkms-390包裹丢失(为什么?)。
因此,安装它解决了问题:
apt install nvidia-dkms-390