如何解决 LInux Mint 20.2 上找不到输出 HDMI-1,无法设置双屏的问题

如何解决 LInux Mint 20.2 上找不到输出 HDMI-1,无法设置双屏的问题

我最近在我的机器上安装了 Linux Mint。但是,我目前面临设置双屏配置的问题。我已使用 HDMI 电缆连接第二台显示器,但系统未检测到它。

我尝试使用命令

xrandr --output HDMI-1 --auto

但它返回以下错误消息:

xrandr: Failed to get size of gamma for output default warning: output HDMI-1 not found; ignoring.

这是我的系统规格:

  • 操作系统:Linux Mint 20.2 Cinnamon
  • 内核:5.4.0-148-generic
  • CPU:AMD Ryzen 3 5300U,带 Radeon 显卡 × 4
  • GPU:Advanced Micro Devices, Inc. [AMD/ATI] 设备 164c

我仔细检查了电缆连接并确保显示器已开机,但仍然没有成功。我渴望利用双屏设置的好处,因此任何帮助或建议将不胜感激。

xrandr 命令向我显示:

xrandr: Failed to get size of gamma for output default
Screen 0: minimum 1920 x 1080, current 1920 x 1080, maximum 1920 x 1080
default connected primary 1920x1080+0+0 0mm x 0mm
1920x1080     77.00* 

inxi -Fxxxrz编辑:我添加了有人要求我在 Linux mint 官方论坛上向他展示的输出。

System:
  Kernel: 5.4.0-148-generic x86_64 bits: 64 compiler: gcc v: 9.4.0 
  Desktop: Cinnamon 5.0.7 wm: muffin 5.0.2 dm: LightDM 1.30.0 
  Distro: Linux Mint 20.2 Uma base: Ubuntu 20.04 focal 
Machine:
  Type: Laptop System: HP product: HP Laptop 15s-eq2xxx v: N/A 
  serial: <filter> Chassis: type: 10 serial: <filter> 
  Mobo: HP model: 887A v: 59.21 serial: <filter> UEFI: AMI v: F.27 
  date: 10/20/2022 
Battery:
  ID-1: BAT0 charge: 0.6 Wh condition: 39.8/39.8 Wh (100%) volts: 9.3/11.3 
  model: HP Primary type: Li-ion serial: <filter> status: Discharging 
CPU:
  Topology: Quad Core model: AMD Ryzen 3 5300U with Radeon Graphics bits: 64 
  type: MT MCP arch: Zen rev: 1 L2 cache: 2048 KiB 
  flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm 
  bogomips: 41522 
  Speed: 1667 MHz min/max: 1400/2600 MHz boost: enabled Core speeds (MHz): 
  1: 1304 2: 1601 3: 1390 4: 1724 5: 1303 6: 3119 7: 1645 8: 1700 
Graphics:
  Device-1: AMD vendor: Hewlett-Packard driver: N/A bus ID: 03:00.0 
  chip ID: 1002:164c 
  Display: x11 server: X.Org 1.20.13 driver: ati,fbdev 
  unloaded: modesetting,radeon,vesa resolution: 1920x1080~77Hz 
  OpenGL: renderer: llvmpipe (LLVM 12.0.0 256 bits) v: 4.5 Mesa 21.2.6 
  compat-v: 3.1 direct render: Yes 
Audio:
  Device-1: AMD vendor: Hewlett-Packard driver: snd_hda_intel v: kernel 
  bus ID: 03:00.1 chip ID: 1002:1637 
  Device-2: AMD Raven/Raven2/FireFlight/Renoir Audio Processor 
  vendor: Hewlett-Packard driver: snd_rn_pci_acp3x v: kernel bus ID: 03:00.5 
  chip ID: 1022:15e2 
  Device-3: AMD Family 17h HD Audio vendor: Hewlett-Packard 
  driver: snd_hda_intel v: kernel bus ID: 03:00.6 chip ID: 1022:15e3 
  Sound Server: ALSA v: k5.4.0-148-generic 
Network:
  Device-1: Realtek RTL8821CE 802.11ac PCIe Wireless Network Adapter 
  vendor: Hewlett-Packard driver: rtl8821ce v: v5.5.2.1_35598.20191029 
  port: f000 bus ID: 01:00.0 chip ID: 10ec:c821 
  IF: wlo1 state: down mac: <filter> 
  IF-ID-1: enx1660cb253e1d state: up speed: N/A duplex: N/A mac: <filter> 
Drives:
  Local Storage: total: 238.47 GiB used: 19.05 GiB (8.0%) 
  ID-1: /dev/nvme0n1 vendor: SK Hynix model: BC711 HFM256GD3JX013N 
  size: 238.47 GiB speed: 31.6 Gb/s lanes: 4 serial: <filter> rev: HPS1 
  scheme: GPT 
Partition:
  ID-1: / size: 231.49 GiB used: 9.42 GiB (4.1%) fs: ext4 dev: /dev/dm-1 
  ID-2: /boot size: 703.1 MiB used: 214.1 MiB (30.5%) fs: ext4 
  dev: /dev/nvme0n1p2 
  ID-3: swap-1 size: 976.0 MiB used: 0 KiB (0.0%) fs: swap dev: /dev/dm-2 
Sensors:
  System Temperatures: cpu: 57.4 C mobo: N/A 
  Fan Speeds (RPM): N/A 
Repos:
  No active apt repos in: /etc/apt/sources.list 
  Active apt repos in: /etc/apt/sources.list.d/additional-repositories.list 
  1: deb [arch=amd64] https://packages.microsoft.com/repos/vscode stable main
  No active apt repos in: /etc/apt/sources.list.d/amdgpu-proprietary.list 
  Active apt repos in: /etc/apt/sources.list.d/amdgpu.list 
  1: deb https://repo.radeon.com/amdgpu/5.4.5/ubuntu focal main
  Active apt repos in: /etc/apt/sources.list.d/nodesource.list 
  1: deb [signed-by=/usr/share/keyrings/nodesource.gpg] https://deb.nodesource.com/node_19.x focal main
  2: deb-src [signed-by=/usr/share/keyrings/nodesource.gpg] https://deb.nodesource.com/node_19.x focal main
  Active apt repos in: /etc/apt/sources.list.d/official-package-repositories.list 
  1: deb http://packages.linuxmint.com uma main upstream import backport #id:linuxmint_main
  2: deb http://archive.ubuntu.com/ubuntu focal main restricted universe multiverse
  3: deb http://archive.ubuntu.com/ubuntu focal-updates main restricted universe multiverse
  4: deb http://archive.ubuntu.com/ubuntu focal-backports main restricted universe multiverse
  5: deb http://security.ubuntu.com/ubuntu/ focal-security main restricted universe multiverse
  6: deb http://archive.canonical.com/ubuntu/ focal partner
  Active apt repos in: /etc/apt/sources.list.d/rocm.list 
  1: deb [arch=amd64] https://repo.radeon.com/rocm/apt/5.4.5 focal main
  Active apt repos in: /etc/apt/sources.list.d/vscode.list 
  1: deb [arch=amd64,arm64,armhf] http://packages.microsoft.com/repos/code stable main
Info:
  Processes: 362 Uptime: 3m Memory: 7.17 GiB used: 1.70 GiB (23.7%) 
  Init: systemd v: 245 runlevel: 5 Compilers: gcc: 9.4.0 alt: 9 Shell: bash 
  v: 5.0.17 running in: gnome-terminal inxi: 3.0.38
  

答案1

您的 GPU 似乎是AMD的Ryzen 5000系列CPU集成移动APU,代号卢西安

根据linux-hardware.org的LKDDdb,从内核版本开始支持5.10.

https://linux-hardware.org/?id=pci:1002-164c-1028-0a8c(尽管这是指集成到戴尔系统的类似APU,而您的系统似乎是惠普)

不幸的是,您当前的内核版本似乎太旧,无法正确支持它,并且您的显示器efifb目前正在未加速的帧缓冲区显示支持上运行。这就是为什么inxi将图形驱动程序列为 的原因N/Axrandr仅检测到一个没有伽玛信息的输出的事实default也支持相同的结论。

5.4.x 系列的第一个内核是2019 年 11 月 24 日发布,并且您的 CPU + APU 于 2021 年 1 月 12 日推出,因此您的硬件还不存在在该内核发布时 - 始终是 Linux 驱动程序支持方面出现问题的迹象。

5.10.x 内核系列最初于 2020 年 12 月发布,此时仍是 CPU 系列正式推出之前,但当时 AMD 可能已经与内核开发人员合作,提前准备对其即将推出的芯片的支持(如 Linux-友好的硬件制造商经常这样做)。

相关内容