Ubuntu 22.04.1 AMD GPU 驱动程序虽然已安装,但未加载

Ubuntu 22.04.1 AMD GPU 驱动程序虽然已安装,但未加载

我已经使用amdgpu-install_22.20.50200-1_all.deb(从 amd.com 下载)安装了 AMD GPU 驱动程序,并遵循本指南

但我发现我的显示设置已变为,2560x1440 93Hz并且我无法更改它。

我试过了sudo lshw -c video,它说UNCLAIMED

$ sudo lshw -c video
  *-display UNCLAIMED       
       description: VGA compatible controller
       product: Navi 10 [Radeon RX 5600 OEM/5600 XT / 5700/5700 XT]
       vendor: Advanced Micro Devices, Inc. [AMD/ATI]
       physical id: 0
       bus info: pci@0000:03:00.0
       version: c1
       width: 64 bits
       clock: 33MHz
       capabilities: pm pciexpress msi vga_controller bus_master cap_list
       configuration: latency=0
       resources: iomemory:400-3ff iomemory:400-3ff memory:4000000000-400fffffff memory:4010000000-40101fffff ioport:4000(size=256) memory:80000000-8007ffff memory:80080000-8009ffff
  *-graphics
       product: EFI VGA
       physical id: 3
       logical name: /dev/fb0
       capabilities: fb
       configuration: depth=32 resolution=2560,1440

我也检查了我的内核版本。

$ uname -r
5.15.0-50-generic
$ dkms status amdgpu
amdgpu/5.16.9.22.20-1438747~22.04, 5.15.0-50-generic, x86_64: installed

我正在尝试双启动 Ubuntu 22.04.1 和 Windows 11。

i9 10900K,RX 5700XT

快速启动、安全启动、TPM 2.0 启用。

我把bcd bootmgr路径修改为grub。

$ clinfo
Number of platforms                               1
  Platform Name                                   AMD Accelerated Parallel Processing
  Platform Vendor                                 Advanced Micro Devices, Inc.
  Platform Version                                OpenCL 2.1 AMD-APP (3452.0)
  Platform Profile                                FULL_PROFILE
  Platform Extensions                             cl_khr_icd cl_amd_event_callback 
  Platform Extensions function suffix             AMD
  Platform Host timer resolution                  1ns

  Platform Name                                   AMD Accelerated Parallel Processing
Number of devices                                 0

NULL platform behavior
  clGetPlatformInfo(NULL, CL_PLATFORM_NAME, ...)  No platform
  clGetDeviceIDs(NULL, CL_DEVICE_TYPE_ALL, ...)   No platform
  clCreateContext(NULL, ...) [default]            No platform
  clCreateContext(NULL, ...) [other]              
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_DEFAULT)  No devices found in platform
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_CPU)  No devices found in platform
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_GPU)  No devices found in platform
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_ACCELERATOR)  No devices found in platform
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_CUSTOM)  No devices found in platform
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_ALL)  No devices found in platform

$ xrandr --listproviders
Providers: number : 0

$ xrandr
xrandr: Failed to get size of gamma for output default
Screen 0: minimum 2560 x 1440, current 2560 x 1440, maximum 2560 x 1440
default connected primary 2560x1440+0+0 0mm x 0mm
   2560x1440     93.00*

我已经添加radeon到了/etc/modules。我已经/etc/X11/xorg.conf像下面这样配置了。

$ lspci | grep VGA
03:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Navi 10 [Radeon RX 5600 OEM/5600 XT / 5700/5700 XT] (rev c1)
Section "Device"
    Identifier             "Screen0"
    Driver                 "amdgpu"
    VendorName             "Advanced Micro Devices, Inc. [AMD/ATI]"
    BusID                  "PCI:3:0:0"
EndSection

Section "Device"
    Identifier             "Screen1"
    Driver                 "amdgpu"
    VendorName             "Advanced Micro Devices, Inc. [AMD/ATI]"
    BusID                  "PCI:3:0:0"
EndSection

/var/log/Xorg.0.logNo screen section available. Using defaults

[    15.172] (==) No Layout section.  Using the first Screen section.
[    15.172] (==) No screen section available. Using defaults.
[    15.172] (**) |-->Screen "Default Screen Section" (0)
[    15.172] (**) |   |-->Monitor "<default monitor>"
[    15.172] (==) No device specified for screen "Default Screen Section".
        Using the first device section listed.
[    15.172] (**) |   |-->Device "Screen0"
[    15.172] (**) |   |-->GPUDevice "Screen1"
[    15.172] (==) No monitor specified for screen "Default Screen Section".
        Using a default monitor configuration.

...

[    15.180] (II) AMDGPU: Driver for AMD Radeon:
        All GPUs supported by the amdgpu kernel driver
[    15.180] (II) AMDGPU(0): [KMS] Kernel modesetting enabled.
[    15.180] (EE) AMDGPU(0): [drm] Failed to open DRM device for pci:0000:03:00.0: No such file or directory
[    15.180] (II) AMDGPU(1): [KMS] Kernel modesetting enabled.
[    15.180] (EE) AMDGPU(1): [drm] Failed to open DRM device for pci:0000:03:00.0: No such file or directory
[    15.181] (EE) Screen 0 deleted because of no matching config section.
[    15.181] (II) UnloadModule: "amdgpu"
[    15.181] (EE) Screen 0 deleted because of no matching config section.
[    15.181] (II) UnloadModule: "amdgpu"
[    15.181] (EE) Device(s) detected, but none match those in the config file.
[    15.181] (==) Matched ati as autoconfigured driver 0
[    15.181] (==) Matched modesetting as autoconfigured driver 1
[    15.181] (==) Matched fbdev as autoconfigured driver 2
[    15.181] (==) Matched vesa as autoconfigured driver 3

...

我怎么解决这个问题?

相关内容