大家好
我电脑是双显卡,我想禁用独立显卡(为了给虚机用)
$ lspci |grep -i vga
00:02.0 VGA compatible controller: Intel Corporation HD G
$ lspci -nn | grep AMD
04:00.0 Display controller [0380]: Advanced Micro Devices, Inc. [AMD/ATI]
我尝试这个方法:
$ head -n 5 /etc/modprobe.d/blacklist.conf
blacklist radeon
blacklist amdgpu
options radeon modeset=0
options amdgpu modeset=0
但是重启后,lsmod 仍然有独立显卡的驱动
驱动是由vga_switcheroo控制:
$ sudo cat /sys/kernel/debug/vgaswitcheroo/switch
0:DIS: :DynOff:0000:04:00.0
1:IGD:+:Pwr:0000:00:02.0