我刚买了一台新的华硕笔记本电脑(Ryzen 7 4800h、Nvidia GTX 1660ti),在使用 Linux 时遇到了几个图形问题。如标题所述,到目前为止,问题是无法检测到第二个屏幕(HDMI),亮度控制根本不起作用(这让我的眼睛很难受,哈哈)。
我尝试过 nvidia-440 和 nvidia-435 驱动程序,但都没有成功。至少,与我也尝试过的 Linux Mint 相比,Ubuntu 的 CPU 似乎没有承受过重的负载。
我已将所有内容更新,并且还使用了自动安装命令:
sudo apt-get update && sudo apt-get upgrade -y
sudo ubuntu-drivers autoinstall
这是输出inxi -G
:
Graphics: Device-1: NVIDIA TU116M [GeForce GTX 1660 Ti Mobile] driver: nvidia v: 435.21
Device-2: Advanced Micro Devices [AMD/ATI] Renoir driver: N/A
Display: x11 server: X.Org 1.20.8 driver: ati,fbdev unloaded: modesetting,nouveau,nvidia,radeon,vesa
resolution: 1920x1080~77Hz
OpenGL: renderer: llvmpipe (LLVM 9.0.1 128 bits) v: 3.3 Mesa 20.0.4
(它显示 nvidia-435 驱动程序,因为这是我的最后一次尝试,但如前所述,它也不适用于 440)。
此外,Nvidia X Server Settings 面板一片空白,只有“帮助”和“退出”按钮。单击帮助只会显示没有帮助:
我还留下了输出,lshw -c video
以防万一有用:
*-display
description: VGA compatible controller
product: TU116M [GeForce GTX 1660 Ti Mobile]
vendor: NVIDIA Corporation
physical id: 0
bus info: pci@0000:01:00.0
version: a1
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress vga_controller bus_master cap_list rom
configuration: driver=nvidia latency=0
resources: irq:68 memory:fb000000-fbffffff memory:b0000000-bfffffff memory:c0000000-c1ffffff ioport:f000(size=128) memory:fc000000-fc07ffff
*-display UNCLAIMED
description: VGA compatible controller
product: Renoir
vendor: Advanced Micro Devices, Inc. [AMD/ATI]
physical id: 0
bus info: pci@0000:05:00.0
version: c6
width: 64 bits
clock: 33MHz
capabilities: pm pciexpress msi msix vga_controller bus_master cap_list
configuration: latency=0
resources: memory:d0000000-dfffffff memory:e0000000-e01fffff ioport:c000(size=256) memory:fc500000-fc57ffff
还有以下输出lspci | grep -A 1 -i vga
:
01:00.0 VGA compatible controller: NVIDIA Corporation TU116M [GeForce GTX 1660 Ti Mobile] (rev a1)
01:00.1 Audio device: NVIDIA Corporation TU116 High Definition Audio Controller (rev a1)
--
05:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Renoir (rev c6)
05:00.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Device 1637
答案1
通过更新到 5.6 内核,我最终可以让第二台显示器工作:
wget -c https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.6/linux-headers-5.6.0-050600_5.6.0-050600.202003292333_all.deb
wget -c https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.6/linux-image-unsigned-5.6.0-050600-generic_5.6.0-050600.202003292333_amd64.deb
wget -c https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.6/linux-modules-5.6.0-050600-generic_5.6.0-050600.202003292333_amd64.deb
sudo dpkg -i *.deb
关于屏幕亮度,这只是部分起作用;最小亮度和混合亮度之间的差异很小。
答案2
我认为上一篇文章中缺少一个文件:linux-headers-xxx-generic
主线内核安装需要 4 个文件,而不仅仅是 3 个。
因此尝试使用 5.10.4 内核(今天最新版本):
wget -c https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.10.4/amd64/linux-headers-5.10.4-051004-generic_5.10.4-051004.202012301142_amd64.deb
wget -c https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.10.4/amd64/linux-headers-5.10.4-051004_5.10.4-051004.202012301142_all.deb
wget -c https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.10.4/amd64/linux-image-unsigned-5.10.4-051004-generic_5.10.4-051004.202012301142_amd64.deb
wget -c https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.10.4/amd64/linux-modules-5.10.4-051004-generic_5.10.4-051004.202012301142_amd64.deb
sudo dpkg -i *.deb