不需要安装驱动,因为内核已经存在,你什么都不用动
ps:我是华为显卡魔方,所以,插到雷电4才能工作,并且,插完不会如图所示(重启后好像行了),如果你想查看显卡是否连接,请:
如果报告命令不存在,请使用apt安装它们。
likewendy@likewendy-PC:~$ echo "系统信息:" && uname -a && echo -e "\n显卡信息:" && lspci | grep -i vga && echo -e "\n驱动信息:" && glxinfo | grep "OpenGL renderer" && echo -e "\n雷电接口状态:" && sudo boltctl && echo -e "\n内核驱动模块:" && lsmod | grep amdgpu
系统信息:
Linux likewendy-PC 6.6.47-amd64-desktop-hwe #23.01.00.37 SMP PREEMPT_DYNAMIC Tue Aug 20 17:33:52 CST 2024 x86_64 GNU/Linux
显卡信息:
00:02.0 VGA compatible controller: Intel Corporation Raptor Lake-P [Iris Xe Graphics] (rev 04)
06:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Navi 33 [Radeon RX 7600/7600 XT/7600M XT/7600S/7700S / PRO W7600] (rev c7)
驱动信息:
OpenGL renderer string: Mesa Intel(R) Graphics (RPL-P)
雷电接口状态:
请验证人脸或密码:
验证成功
● WIKO Hi GT Cube
├─ type: peripheral
├─ name: Hi GT Cube
├─ vendor: WIKO
├─ uuid: ba010000-0082-840e-83c3-fed98e518008
├─ generation: Thunderbolt 3
├─ status: authorized
│ ├─ domain: acc98780-7054-e289-ffff-ffffffffffff
│ ├─ rx speed: 40 Gb/s = 2 lanes * 20 Gb/s
│ ├─ tx speed: 40 Gb/s = 2 lanes * 20 Gb/s
│ └─ authflags: none
├─ authorized: 2024年11月07日 星期四 12时54分55秒
├─ connected: 2024年11月07日 星期四 12时54分55秒
└─ stored: 2024年11月07日 星期四 10时38分05秒
├─ policy: iommu
└─ key: no
内核驱动模块:
amdgpu 10948608 1
drm_exec 12288 1 amdgpu
amdxcp 12288 1 amdgpu
gpu_sched 57344 1 amdgpu
drm_buddy 20480 2 amdgpu,i915
drm_suballoc_helper 12288 1 amdgpu
i2c_algo_bit 12288 2 amdgpu,i915
drm_ttm_helper 12288 2 vmwgfx,amdgpu
ttm 90112 4 vmwgfx,amdgpu,drm_ttm_helper,i915
drm_display_helper 200704 2 amdgpu,i915
drm_kms_helper 221184 5 vmwgfx,drm_display_helper,amdgpu,i915
drm 688128 28 vmwgfx,gpu_sched,i2c_hid,drm_kms_helper,drm_exec,drm_suballoc_helper,drm_display_helper,drm_buddy,amdgpu,drm_ttm_helper,i915,ttm,amdxcp
video 73728 2 amdgpu,i915
如果你想测试显卡性能的话:
sudo apt install glmark2
DRI_PRIME=1 glmark2 -s 1920x1080 --fullscreen --visual-config alpha=8:depth=32:stencil=8 --benchmark terrain:duration=20
如果你想使程序使用独显显示,请DRI_PRIME=1
看看我的配置
likewendy@likewendy-PC:~$ neofetch
............ likewendy@likewendy-PC
.';;;;;. .,;,. ----------------------
.,;;;;;;;. ';;;;;;;. OS: Deepin 23 x86_64
.;::::::::' .,::;;,''''',. Host: CREFG-XX M1010
,'.:::::::: .;;'. '; Kernel: 6.6.47-amd64-desktop-hwe
;' 'cccccc, ,' :: '.. .: Uptime: 12 mins
,, :ccccc. ;: .c, '' :. ,; Packages: 2214 (dpkg)
.l. cllll' ., .lc :; .l' l. Shell: bash 5.2.21
.c :lllc ;cl: .l' .ll. :' Resolution: 2520x1680
.l 'looc. . ,o: 'oo' c, DE: DDE
.o. .:ool::coc' .ooo' o. WM: KWin
:: ..... .;dddo ;c Theme: deepin-dark [GTK2], Adwaita [GTK3]
l:... .';lddddo. ,o Icons: square [GTK2], Adwaita [GTK3]
lxxxxxdoolllodxxxxxxxxxc :l Terminal: deepin-terminal
,dxxxxxxxxxxxxxxxxxxl. 'o, CPU: 13th Gen Intel i9-13900H (20) @ 5.200GHz
,dkkkkkkkkkkkkko;. .;o; GPU: Intel Raptor Lake-P [Iris Xe Graphics]
.;okkkkkdl;. .,cl:. GPU: AMD ATI Radeon RX 7600/7600 XT/7600M XT/7600S/7700S / PRO W7600
.,:cccccccc:,. Memory: 11445MiB / 31813MiB