我想我用的是radeon而不是amdgpu? 我该如何改变?

所以我在17.04,我知道amdgpu-pro在4.10内核上不可用。 但我很好奇我正在跑步,所以我用过

lspci -k | grep -EA3 'VGA|3D|Display' 

它又回来了

 01:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Hawaii XT / Grenada XT [Radeon R9 290X/390X] Subsystem: ASUSTeK Computer Inc. R9 290X DirectCU II OC Kernel driver in use: radeon Kernel modules: radeon, amdgpu 

那么这是否意味着我有amdgpu但radeon正在使用中? 我似乎无法找到有关如何在驱动程序之间切换的信息。 我遇到的其他相关问题是否有人知道oibaf作为替代方案,或者任何人都可以告诉我是否值得努力回归内核? 我主要使用它作为游戏装备,而且我在radeon中的兼容性很差。 我宁愿不必回到16.10只是因为amd似乎对我们的linux用户没有爱。

这样做的新方法不涉及将任何模块列入黑名单。 您只需要向内核发送两个参数:

对于加勒比群岛的GPU

 radeon.cik_support=0 amdgpu.cik_support=1 

适用于Sea Islands GPU

 radeon.si_support=0 amdgpu.si_support=1 

我个人喜欢将它添加为默认值,所以我编辑/ etc / default / grub,然后我将内核参数添加到GRUB_CMDLINE_LINUX_DEFAULT,如下所示:

 # If you change this file, run 'update-grub' afterwards to update # /boot/grub/grub.cfg. # For full documentation of the options in this file, see: # info -f grub -n 'Simple configuration' GRUB_DEFAULT=0 GRUB_HIDDEN_TIMEOUT=0 GRUB_HIDDEN_TIMEOUT_QUIET=true GRUB_TIMEOUT=10 GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian` GRUB_CMDLINE_LINUX_DEFAULT="radeon.cik_support=0 amdgpu.cik_support=1 radeon.si_support=0 amdgpu.si_support=1" GRUB_CMDLINE_LINUX="" # Uncomment to enable BadRAM filtering, modify to suit your needs # This works with Linux (no patch required) and with any kernel that obtains # the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...) #GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef" # Uncomment to disable graphical terminal (grub-pc only) #GRUB_TERMINAL=console # The resolution used on graphical terminal # note that you can use only modes which your graphic card supports via VBE # you can see them in real GRUB with the command `vbeinfo' #GRUB_GFXMODE=640x480 # Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux #GRUB_DISABLE_LINUX_UUID=true # Uncomment to disable generation of recovery mode menu entries #GRUB_DISABLE_RECOVERY="true" # Uncomment to get a beep at grub start #GRUB_INIT_TUNE="480 440 1" 

请记住运行update-grub并重新启动系统,以使更改生效。

我可以确认这适用于运行Ubuntu 17.10的390x。 (我相信你也可以在17.04做同样的事情)

将它列入黑名单就可以了。 我现在正在运行AMDGPU,至少在专业人员可用之前。 我将列出步骤作为答案,以防其他人来寻找答案。

黑名单内置内核模块是在启动时完成的,因此grub可以完成工作。 编辑

 /ect/default/grub 

用您选择的编辑器添加

 modprobe.blacklist=radeon 

在GRUB_CMDLINE_LINUX_DEFAULT旁边,可能已经存在的任何东西,例如安静的启动。 然后,保存更改并更新grub。

 sudo update-grub2 

重启,你应该使用AMDGPU而不是radeon。 我应该强调确保您的卡兼容,否则将您的gfx模块列入黑名单可能会导致问题。