AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / ubuntu / 问题

问题[amd-ryzen](ubuntu)

Martin Hope
MTG
Asked: 2020-11-15 09:14:08 +0800 CST

htop 和 sytem-monitor 显示 0 cpu ubuntu 20.04 ryzen 3950x

  • 0

我新建了一台新 PC,并使用 Ubuntu 20.04 进行双启动。我在使用 ryzen 3950x 时遇到问题,htop 和系统监视器无法识别 cpu(而不是 32 显示 1 个线程)。我必须用 acpi=off 启动它,因为 ubuntu 不会启动。是兼容性的问题吗?我的 BIOS 在构建 pc 时已更新(3 周前,B550 AORUS ELITE AX V2(修订版 1.0))你能帮我解决 htop/系统监视器中错误的线程数吗

我很困惑

(base) B550-AORUS-ELITE-AX-V2:~$ cat /proc/cpuinfo
processor   : 0
vendor_id   : AuthenticAMD
cpu family  : 23
model       : 113
model name  : AMD Ryzen 9 3950X 16-Core Processor
stepping    : 0
microcode   : 0x8701021
cpu MHz     : 3606.771
cache size  : 512 KB
physical id : 0
siblings    : 1
core id     : 0
cpu cores   : 1
apicid      : 0
initial apicid  : 0
fpu     : yes
fpu_exception   : yes
cpuid level : 16
wp      : yes
flags       : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm constant_tsc rep_good nopl nonstop_tsc cpuid extd_apicid aperfmperf pni pclmulqdq monitor ssse3 fma cx16 sse4_1 sse4_2 movbe popcnt aes xsave avx f16c rdrand lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs skinit wdt tce topoext perfctr_core perfctr_nb bpext perfctr_llc mwaitx cpb cat_l3 cdp_l3 hw_pstate sme ssbd mba sev ibpb stibp vmmcall fsgsbase bmi1 avx2 smep bmi2 cqm rdt_a rdseed adx smap clflushopt clwb sha_ni xsaveopt xsavec xgetbv1 xsaves cqm_llc cqm_occup_llc cqm_mbm_total cqm_mbm_local clzero irperf xsaveerptr wbnoinvd arat npt lbrv svm_lock nrip_save tsc_scale vmcb_clean flushbyasid decodeassists pausefilter pfthreshold avic v_vmsave_vmload vgif umip rdpid overflow_recov succor smca
bugs        : sysret_ss_attrs spectre_v1 spectre_v2 spec_store_bypass
bogomips    : 6986.68
TLB size    : 3072 4K pages
clflush size    : 64
cache_alignment : 64
address sizes   : 43 bits physical, 48 bits virtual
power management: ts ttp tm hwpstate cpb eff_freq_ro [13] [14]

(base) B550-AORUS-ELITE-AX-V2:~$ sudo dmidecode -t 4 | egrep -i 'core (count|enabled)|thread count|Version'
    Version: AMD Ryzen 9 3950X 16-Core Processor            
    Core Count: 16
    Core Enabled: 16
    Thread Count: 32

(base) B550-AORUS-ELITE-AX-V2:~$ sudo dmidecode -s bios-version
[sudo] password: 
F10
(base) B550-AORUS-ELITE-AX-V2:~$ free -h
              total        used        free      shared  buff/cache   available
Mem:           62Gi       1,9Gi        59Gi       131Mi       1,8Gi        60Gi
Swap:          15Gi          0B        15Gi
(base) B550-AORUS-ELITE-AX-V2:~$ sudo lshw -C memory
  *-firmware                
       description: BIOS
       vendor: American Megatrends Inc.
       physical id: 0
       version: F10
       date: 09/18/2020
       size: 64KiB
       capacity: 32MiB
       capabilities: pci upgrade shadowing cdboot bootselect socketedrom edd int13floppy1200 int13floppy720 int13floppy2880 int5printscreen int14serial int17printer acpi usb biosbootspecification uefi
  *-memory
       description: System Memory
       physical id: 9
       slot: System board or motherboard
       size: 64GiB
     *-bank:0
          description: DIMM DDR4 Synchronous Unbuffered (Unregistered) 2133 MHz (0,5 ns)
          product: F4-3200C16-16GIS
          vendor: Unknown
          physical id: 0
          serial: 00000000
          slot: DIMM 0
          size: 16GiB
          width: 64 bits
          clock: 2133MHz (0.5ns)
     *-bank:1
          description: DIMM DDR4 Synchronous Unbuffered (Unregistered) 2133 MHz (0,5 ns)
          product: F4-3200C16-16GIS
          vendor: Unknown
          physical id: 1
          serial: 00000000
          slot: DIMM 1
          size: 16GiB
          width: 64 bits
          clock: 2133MHz (0.5ns)
     *-bank:2
          description: DIMM DDR4 Synchronous Unbuffered (Unregistered) 2133 MHz (0,5 ns)
          product: F4-3200C16-16GIS
          vendor: Unknown
          physical id: 2
          serial: 00000000
          slot: DIMM 0
          size: 16GiB
          width: 64 bits
          clock: 2133MHz (0.5ns)
     *-bank:3
          description: DIMM DDR4 Synchronous Unbuffered (Unregistered) 2133 MHz (0,5 ns)
          product: F4-3200C16-16GIS
          vendor: Unknown
          physical id: 3
          serial: 00000000
          slot: DIMM 1
          size: 16GiB
          width: 64 bits
          clock: 2133MHz (0.5ns)
  *-cache:0
       description: L1 cache
       physical id: c
       slot: L1 - Cache
       size: 1MiB
       capacity: 1MiB
       clock: 1GHz (1.0ns)
       capabilities: pipeline-burst internal write-back unified
       configuration: level=1
  *-cache:1
       description: L2 cache
       physical id: d
       slot: L2 - Cache
       size: 8MiB
       capacity: 8MiB
       clock: 1GHz (1.0ns)
       capabilities: pipeline-burst internal write-back unified
       configuration: level=2
  *-cache:2
       description: L3 cache
       physical id: e
       slot: L3 - Cache
       size: 64MiB
       capacity: 64MiB
       clock: 1GHz (1.0ns)
       capabilities: pipeline-burst internal write-back unified
       configuration: level=3
(base) B550-AORUS-ELITE-AX-V2:~$ 
cpu htop 20.04 amd-ryzen
  • 1 个回答
  • 379 Views
Martin Hope
antonius hendra
Asked: 2020-10-23 05:00:55 +0800 CST

我应该坚持使用 Ubuntu 20.04 LTS 并将内核升级到 5.8 还是为 Ryzen 4000 系列安装 Ubuntu 20.10?

  • 1

我有一个带有 ryzen 4300U CPU 的联想 Ideapad。我读过带有内核 5.4 LTS 的 Ubuntu 20.04.1 LTS 由于 renoir 集成 GPU 与 AMD ryzen 4000 系列不兼容。

使用升级内核或 AMD 专有驱动程序的 Ubuntu 20.04.1,还是使用支持 ryzen 4000 系列的内核 5.8 的 Ubuntu 20.10 更好?

20.04 amd-ryzen
  • 3 个回答
  • 4292 Views
Martin Hope
Martin Rubey
Asked: 2020-09-07 01:32:18 +0800 CST

Thinkpad T495s Ryzen,kubuntu 20.04:显示仅在恢复模式下工作

  • 0

我刚刚在新的 thinkpad 495s 上重新安装了 kubuntu 20.04。

(图形)登录屏幕看起来很正常,只是缺少鼠标指针。但是,登录后,我的屏幕大多是黑色/灰色。启动控制台时(使用ctrl-alt-t),我可以从灰色中猜测它在那里,以便我可以输入sudo shutdown now.

但是,如果我用recovery模式开机,电脑几乎可以用了,只是我无法控制屏幕的背光:按fn-F5一下会弹出背光控制窗口,显示应该减少背光,但实际上没有任何反应。

编辑:显然,如果我在插入电源的情况下启动,显示器和背光都可以工作。

我不知道这两个问题是否相互关联。

martin@toolbox:~$ uname -r
5.4.0-45-generic

martin@toolbox:~$ lspci
00:00.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Root Complex
00:00.2 IOMMU: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 IOMMU
00:01.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-1fh) PCIe Dummy Host Bridge
00:01.2 PCI bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 PCIe GPP Bridge [6:0]
00:01.3 PCI bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 PCIe GPP Bridge [6:0]
00:01.4 PCI bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 PCIe GPP Bridge [6:0]
00:01.7 PCI bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 PCIe GPP Bridge [6:0]
00:08.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-1fh) PCIe Dummy Host Bridge
00:08.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Internal PCIe GPP Bridge 0 to Bus A
00:14.0 SMBus: Advanced Micro Devices, Inc. [AMD] FCH SMBus Controller (rev 61)
00:14.3 ISA bridge: Advanced Micro Devices, Inc. [AMD] FCH LPC Bridge (rev 51)
00:18.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Device 24: Function 0
00:18.1 Host bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Device 24: Function 1
00:18.2 Host bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Device 24: Function 2
00:18.3 Host bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Device 24: Function 3
00:18.4 Host bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Device 24: Function 4
00:18.5 Host bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Device 24: Function 5
00:18.6 Host bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Device 24: Function 6
00:18.7 Host bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Device 24: Function 7
01:00.0 Network controller: Intel Corporation Wireless-AC 9260 (rev 29)
02:00.0 Non-Volatile memory controller: Samsung Electronics Co Ltd NVMe SSD Controller SM981/PM981/PM983
03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 0e)
03:00.1 Serial controller: Realtek Semiconductor Co., Ltd. Device 816a (rev 0e)
03:00.2 Serial controller: Realtek Semiconductor Co., Ltd. Device 816b (rev 0e)
03:00.3 IPMI Interface: Realtek Semiconductor Co., Ltd. Device 816c (rev 0e)
03:00.4 USB controller: Realtek Semiconductor Co., Ltd. Device 816d (rev 0e)
04:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTS522A PCI Express Card Reader (rev 01)
05:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Picasso (rev d2)
05:00.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Raven/Raven2/Fenghuang HDMI/DP Audio Controller
05:00.2 Encryption controller: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 10h-1fh) Platform Security Processor
05:00.3 USB controller: Advanced Micro Devices, Inc. [AMD] Raven USB 3.1
05:00.4 USB controller: Advanced Micro Devices, Inc. [AMD] Raven USB 3.1
05:00.5 Multimedia controller: Advanced Micro Devices, Inc. [AMD] Raven/Raven2/FireFlight/Renoir Audio Processor
05:00.6 Audio device: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 10h-1fh) HD Audio Controller
thinkpad display 20.04 amd-ryzen
  • 1 个回答
  • 104 Views
Martin Hope
Pilot6
Asked: 2020-08-10 03:17:47 +0800 CST

休眠不会关闭笔记本电脑的电源

  • 0

我在 Ryzen 3 CPU 上将 Xubuntu 20.04 安装到华硕 X412DA 笔记本电脑上。

我已经正确设置了休眠模式,它确实可以工作,但它并没有关闭笔记本电脑的电源。

如果我从 CLI 或菜单开始休眠,屏幕会熄灭,但笔记本电脑会保持供电。

如果我按住电源按钮并强制关闭电源,一切都很好。当我再次打开它时,它会从休眠中恢复。

如何调试和解决此问题?

hibernate amd-ryzen
  • 1 个回答
  • 484 Views
Martin Hope
Joe S.
Asked: 2020-08-06 23:03:21 +0800 CST

Ubuntu 没有正确使用 AMD 或 Nvidia 驱动程序

  • 1

我最近购买了华硕 Zenbook 14 Q407IQ。它使用带有 Vega 6 图形的 Ryzen 5 4500U 处理器和 Nvidia MX350 专用 gpu。我已经尝试在笔记本电脑上安装 Ubuntu 20.04,它最初似乎工作正常,但运行起来非常热,并且在尝试显示动画时非常滞后,而且风扇总是非常响亮。

我最终发现它似乎没有正确配置为使用任一 GPU。它预装了专有的 Nvidia 440 驱动程序,所以我尝试将它更新到最新的 450 驱动程序,但它没有做任何事情。我还尝试访问 Nvidia X 服务器设置,但它只是显示为空白并带有退出按钮。然后我尝试使用xrandr --listproviders查看附加的图形驱动程序,但它只显示提供程序编号:0。对于其他人来说似乎也没有太多这种情况发生,但这可能只是因为 Zen 2 APU 是新的并且没有似乎经常与Nvidia GPU配对。我发现的唯一类似实例来自这篇文章来自 ArsTechnica 的也使用 AMD apu 和 Nvidia 设置并在 GPU 测试下,他们遇到了与我所拥有的问题非常相似的问题,并尝试了一些不同的解决方案,但最终放弃了尝试使其工作。我还看到一些人提到禁用其中一个 GPU 应该可以工作,但我的华硕笔记本电脑没有给我这个选项。在对可切换的 Nvidia/AMD apu 图形有更好的支持之前,是否暂时无法在我当前的设置中使用 Ubuntu?任何帮助将不胜感激。

drivers nvidia graphics 20.04 amd-ryzen
  • 3 个回答
  • 961 Views
Martin Hope
Nicolas Cordova
Asked: 2020-08-03 11:45:36 +0800 CST

如何找出 Ubuntu 20.04 冻结的原因?

  • 6

两周前,我在我的 Amd Ryzen 5 1600 / Nvidia Gtx 1070 上安装了 Ubuntu 20.04,但 Ubuntu 不时完全冻结。

键盘和屏幕完全停止工作,鼠标有时能够继续移动。我试过使用神奇的 SysRq 键,但没有用。也尝试过alt+F1但也没有得到系统的任何响应。基本上我只需要按下电源按钮即可重新启动。

我怀疑Nvidia,但我不知道如何验证。

nvidia-smi显示驱动程序版本 440.100。

发现这些日志/var/log/Xorg.1.log.old显示我的计算机崩溃的时间。

[  1223.234] (EE) client bug: timer event2 debounce: scheduled expiry is in the past (-22ms), your system is too slow  
[  1223.234] (EE) client bug: timer event2 debounce short: scheduled expiry is in the past (-35ms), your system is too slow  
[  1488.529] (EE) client bug: timer event2 debounce: scheduled expiry is in the past (-0ms), your system is too slow  
[  1488.529] (EE) client bug: timer event2 debounce short: scheduled expiry is in the past (-13ms), your system is too slow  
[  5125.223] (EE) client bug: timer event2 debounce: scheduled expiry is in the past (-14ms), your system is too slow  
[  5125.223] (EE) client bug: timer event2 debounce short: scheduled expiry is in the past (-27ms), your system is too slow  
[  6038.321] (EE) client bug: timer event2 debounce short: scheduled expiry is in the past (-9ms), your system is too slow  
[  6206.894] (EE) client bug: timer event2 debounce: scheduled expiry is in the past (-3ms), your system is too slow  
[  6206.894] (EE) client bug: timer event2 debounce short: scheduled expiry is in the past (-16ms), your system is too slow  
[  6409.650] (EE) client bug: timer event2 debounce: scheduled expiry is in the past (-9ms), your system is too slow  
[  6409.650] (EE) client bug: timer event2 debounce short: scheduled expiry is in the past (-22ms), your system is too slow  
[ 10930.426] (EE) client bug: timer event2 debounce: scheduled expiry is in the past (-7ms), your system is too slow  
[ 10930.426] (EE) client bug: timer event2 debounce short: scheduled expiry is in the past (-20ms), your system is too slow  

free -h结果:

              total        used        free      shared  buff/cache   available
Mem:           15Gi       2.5Gi        11Gi       393Mi       1.9Gi        12Gi
Swap:         2.0Gi          0B       2.0Gi

sysctl vm.swappiness结果:

vm.swappiness = 60

sudo lshw -C memory结果:

  *-firmware                
       description: BIOS
       vendor: American Megatrends Inc.
       physical id: 0
       version: 1.L0
       date: 12/28/2018
       size: 64KiB
       capacity: 16MiB
       capabilities: pci upgrade shadowing cdboot bootselect socketedrom edd int13floppy1200 int13floppy720 int13floppy2880 int5printscreen int9keyboard int14serial int17printer acpi usb biosbootspecification uefi
  *-memory
       description: System Memory
       physical id: f
       slot: System board or motherboard
       size: 16GiB
     *-bank:0
          description: 2933 MHz (0.3 ns) [empty]
          product: Unknown
          vendor: Unknown
          physical id: 0
          serial: Unknown
          slot: DIMM 0
          clock: 2933MHz (0.3ns)
     *-bank:1
          description: DIMM DDR4 Synchronous Unbuffered (Unregistered) 2933 MHz (0.3 ns)
          product: CMK16GX4M2B3200C16
          vendor: Unknown
          physical id: 1
          serial: 00000000
          slot: DIMM 1
          size: 8GiB
          width: 64 bits
          clock: 2933MHz (0.3ns)
     *-bank:2
          description: 2933 MHz (0.3 ns) [empty]
          product: Unknown
          vendor: Unknown
          physical id: 2
          serial: Unknown
          slot: DIMM 0
          clock: 2933MHz (0.3ns)
     *-bank:3
          description: DIMM DDR4 Synchronous Unbuffered (Unregistered) 2933 MHz (0.3 ns)
          product: CMK16GX4M2B3200C16
          vendor: Unknown
          physical id: 3
          serial: 00000000
          slot: DIMM 1
          size: 8GiB
          width: 64 bits
          clock: 2933MHz (0.3ns)
  *-cache:0
       description: L1 cache
       physical id: 11
       slot: L1 - Cache
       size: 576KiB
       capacity: 576KiB
       clock: 1GHz (1.0ns)
       capabilities: pipeline-burst internal write-back unified
       configuration: level=1
  *-cache:1
       description: L2 cache
       physical id: 12
       slot: L2 - Cache
       size: 3MiB
       capacity: 3MiB
       clock: 1GHz (1.0ns)
       capabilities: pipeline-burst internal write-back unified
       configuration: level=2
  *-cache:2
       description: L3 cache
       physical id: 13
       slot: L3 - Cache
       size: 16MiB
       capacity: 16MiB
       clock: 1GHz (1.0ns)
       capabilities: pipeline-burst internal write-back unified
       configuration: level=3

grep -i swap /etc/fstab结果:

/swapfile                                 none            swap    sw              0       0

sudo dmidecode -s bios-version结果:

1.L0

添加软件和更新屏幕截图

软件和更新

8月6日更新:

崩溃文件,终端中列出的 gnome shell 扩展

nvidia 20.04 amd-ryzen
  • 2 个回答
  • 5847 Views
Martin Hope
EmmanuelMess
Asked: 2020-07-08 15:51:02 +0800 CST

硬件升级后的渲染问题

  • 2

我将 PC 从 i3 6100 升级到 Ryzen3 3200g。只有在 Ubuntu 上,这些问题才会发生,而不是在 Windows 10 中。在 Firefox、Chromium、wine windows、Clion 和其他程序上。

截屏

截屏

截屏

这些问题也出现在屏幕截图中:

截屏

xorg drivers wayland amd-ryzen
  • 1 个回答
  • 84 Views
Martin Hope
Der Alex
Asked: 2020-06-12 00:44:03 +0800 CST

Ubuntu 20.04 联想 IdeaPad 5 Ryzen 4800u 显示亮度不工作

  • 6

我无法改变显示亮度来工作。我有一台配备 AMD Ryzen 4800u CPU 和集成 Vega 显卡的联想 IdeaPad 5。

我尝试了以下解决方案:Grub 属性 acpi_backlight、xbacklight、直接在 /sys/class/backlight/...、xgamma、xrandr、gdbus 和 setpci 中更改背光。

我按照这些答案的说明进行操作,但没有一个有效:

  • 如何设置默认显示亮度?
  • 如何降低 Acer 5830TG 的显示亮度?
  • 显示亮度无法调节 18.04
  • 如何从命令行(或通过脚本)更改 LCD 亮度?脚本

我可以看到,例如 xrandr 或 xgamma 或背光的值已设置,但它们对笔记本电脑的显示没有影响。

我猜它与AMD驱动程序有关,但我不知道......

现在我不知道进一步搜索的方向。也许它是一个驱动程序或内核的东西。

那么,有人可以帮忙吗?:)

lenovo display brightness 20.04 amd-ryzen
  • 6 个回答
  • 12059 Views
Martin Hope
gamblor
Asked: 2020-05-28 17:47:42 +0800 CST

在配备 AMD Ryzen 7 4800H 和 Nvidia RTX 2060 的笔记本电脑上,无法让内部和外部显示器与 20.04 同时工作

  • 11

精简版

在 Ubuntu 20.04 上,内部和外部显示器无法同时工作。只能在内部使用默认驱动程序,或者只能在外部使用手动安装的 NVIDIA 驱动程序。帮助!

我的系统是华硕 TUF A15 游戏笔记本电脑 (FA506)。它具有带集成显卡的 AMD® Ryzen™ 7 4800H 处理器和 NVIDIA RTX 2060。

  • 全新 Ubuntu 20.04 安装
  • 需要nouveau.modeset=0在 grub 条目中设置以使图形工作
  • 未检测到外部显示器
  • Ubuntu 20.04 在 Additional Drivers 对话框中不显示任何内容
  • 安装nvidia-driver-440和运行nvidia-xconfig使 nvidia 卡工作,但仅检测到外部显示器(usbc 端口上的 displayport),内部显示器不工作
  • 只能通过删除/etc/X11/xorg.conf并重新启动来切换回内部显示器,但随后会丢失外部显示器和未使用的 NVIDIA 驱动程序
  • nvidia-xconfig可以通过再次运行并重新启动切换回 NVIDIA

长版

在全新的 Ubuntu 20.04 安装(启用安装专有软件)后,笔记本电脑启动到带有文本的背景屏幕

[    7.779369] ucsi_acpi USBC000:00: PPM init failed (-110)

我可以通过切换到具有ctrl + alt + F2. 在我登录后,屏幕被垃圾邮件发送了超过一分钟,并显示以下消息:

[   80.199703] nouveau 0000:01:00.0 fifo: SCHED_ERROR 08 []

其次是

[   80.206302] nouveau 0000:01:00.0 DRM: failed to idle channel 0 [DRM]

在此之后,我可以访问终端。根据互联网建议,我可以通过更改以下行来修改 linux grub 条目/etc/default/grub:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"

至

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash nouveau.modeset=0"

并运行

sudo update-grub

重新启动后,我得到 gdm 登录屏幕并可以登录到图形会话,但如果我连接外部,则不会检测到它。xrandr通过 DisplayPort-USBC 和 HDMI 连接或不连接外部显示器的输出是

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*

Nvidia 驱动程序尚未安装,因此我首先使用 和 更新系统sudo apt update并sudo apt dist-upgrade重新启动。我检查了软件和更新的附加驱动程序选项卡,但它显示“没有可用的附加驱动程序”。跑步ubuntu-drivers devices什么都没有。

下一个最佳建议是通过 apt 安装 nvidia 驱动程序

sudo apt install nvidia-driver-440 

重新启动后,监视器情况没有改变,仍然只有内部监视器。xrandr输出相同,但现在安装了 Nvidia 驱动程序。nvidia-smi显示:

Thu May 28 09:42:22 2020       
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 440.64       Driver Version: 440.64       CUDA Version: 10.2     |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|===============================+======================+======================|
|   0  GeForce RTX 2060    Off  | 00000000:01:00.0 Off |                  N/A |
| N/A   46C    P0     9W /  N/A |      0MiB /  5934MiB |      0%      Default |
+-------------------------------+----------------------+----------------------+

+-----------------------------------------------------------------------------+
| Processes:                                                       GPU Memory |
|  GPU       PID   Type   Process name                             Usage      |
|=============================================================================|
|  No running processes found                                                 |
+-----------------------------------------------------------------------------+

nvidia-settings显示一个小的空窗口。启动来自终端打印:

ERROR: Unable to load info from any available system


(nvidia-settings:2986): GLib-GObject-CRITICAL **: 09:45:58.786: g_object_unref: assertion 'G_IS_OBJECT (object)' failed
** Message: 09:45:58.789: PRIME: No offloading required. Abort
** Message: 09:45:58.789: PRIME: is it supported? no

现在我运行sudo nvidia-xconfig生成/etc/X11/xorg.conf. 重新启动后,外部监视器正在工作,我在外部(显示端口)监视器上看到了正常的 gdm 登录屏幕,并且可以登录到图形会话。遗憾的是,内部显示器不再被检测到,只显示华硕标志。nvidia-settings对话框现在具有我期望的所有选项(从终端启动会提供与以前相同的输出)

根据kanehekili输出的要求,xrandr -q现在是:

Screen 0: minimum 8 x 8, current 2560 x 1440, maximum 32767 x 32767
DP-0 connected primary 2560x1440+0+0 (normal left inverted right x axis y axis) 597mm x 336mm
   2560x1440     60.00*+ 144.00   120.00    84.98  
   1920x1080     60.00    59.94    50.00  
   1680x1050     59.95  
   1440x900      59.89  
   1440x576      50.00  
   1440x480      59.94  
   1280x1024     75.02    60.02  
   1280x960      60.00  
   1280x720      60.00    59.94    50.00  
   1152x864      75.00  
   1024x768      75.03    70.07    60.00  
   800x600       75.00    72.19    60.32    56.25  
   720x576       50.00  
   720x480       59.94  
   640x480       75.00    72.81    59.94    59.93  
DP-1 disconnected (normal left inverted right x axis y axis)

的完整输出lspci -vv在这里。但图形设备的条目如下:

01:00.0 VGA compatible controller: NVIDIA Corporation TU106 [GeForce RTX 2060] (rev a1) (prog-if 00 [VGA controller])
    Subsystem: ASUSTeK Computer Inc. Device 1e21
    Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
    Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
    Latency: 0
    Interrupt: pin A routed to IRQ 94
    Region 0: Memory at fb000000 (32-bit, non-prefetchable) [size=16M]
    Region 1: Memory at b0000000 (64-bit, prefetchable) [size=256M]
    Region 3: Memory at c0000000 (64-bit, prefetchable) [size=32M]
    Region 5: I/O ports at f000 [size=128]
    Expansion ROM at fc000000 [virtual] [disabled] [size=512K]
    Capabilities: <access denied>
    Kernel driver in use: nvidia
    Kernel modules: nvidiafb, nouveau, nvidia_drm, nvidia

06:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Renoir (rev c6) (prog-if 00 [VGA controller])
    Subsystem: ASUSTeK Computer Inc. Renoir
    Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
    Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
    Latency: 0, Cache Line Size: 64 bytes
    Interrupt: pin A routed to IRQ 255
    Region 0: Memory at d0000000 (64-bit, prefetchable) [size=256M]
    Region 2: Memory at e0000000 (64-bit, prefetchable) [size=2M]
    Region 4: I/O ports at c000 [disabled] [size=256]
    Region 5: Memory at fc500000 (32-bit, non-prefetchable) [size=512K]
    Capabilities: <access denied>
    Kernel modules: amdgpu

请帮我解决这个问题

从我的互联网搜索来看,我并不是唯一一个与这种 AMD/NVIDIA 混合图形配置作斗争的人。圣杯将是两个显卡的无缝集成,以尽可能节省电池,并在需要时使用独立显卡,但我很乐意在两台显示器都工作的情况下满足永久耗电的英伟达!

根据我的研究,问题的核心是 nvidia 卡硬连线到显示端口,集成显卡连接到内部显示器。理想情况下,nvidia 可以渲染到可以复制到集成显卡的缓冲区,但我不知道具体细节,也不知道如何配置它。


注意:一些互联网建议建议在安装 nvidia 驱动程序之前添加 nvidia ppa:

sudo add-apt-repository ppa:graphics-drivers/ppa
sudo apt-get update

我过去曾尝试过,但没有区别,该 ppa 和 ubuntu 存储库中的 nvidia-driver-440 包是相同的版本440.82+really.440.64-0ubuntu6,并且“附加驱动程序”选项卡没有变化。

另请注意:我已禁用安全启动


编辑:这篇文章Ubuntu 20.04 无法识别第二台显示器

建议安装nvidia-driver-435,但在我的情况下,这并不能解决问题。


我对自己的问题有部分答案,但仍然需要帮助。

在阅读了这篇 reddit 帖子后,我开始怀疑 Ubuntu 20.04 中的内核版本 5.4 对最新的 AMD APU 没有很好的支持。为了测试这一点,我使用此处的说明安装了最新的内核 5.6.15 。安装了较新的内核后,我现在可以在集成显卡上运行时将 HDMI 端口用于外接显示器。那就是删除 xorg.confsudo rm /etc/X11/xorg.conf并重新启动。但是当使用 nvidia 卡时,我仍然只能使用 displayport(在 usbc 上)。我仍然希望能够在内部显示器上使用 NVIDIA。

multiple-monitors nvidia asus hybrid-graphics amd-ryzen
  • 3 个回答
  • 21387 Views
Martin Hope
norym
Asked: 2020-05-26 05:03:36 +0800 CST

Ubuntu18.04:关机/重启时黑屏

  • 0

我的带有 Ubuntu18.04 的 Thinkpad E495 在关机/重启时停止/冻结在黑屏中。尽管如此,即使我需要通过电源按钮硬关机,它也能正常启动。在 grub 中禁用quiet splash,但在关闭时它不显示任何日志。我尝试用sudo reboot -dor重启,sudo reboot -f但它仍然以黑屏结束。

系统规格:AMD Ryzen 5 3500U 集成 AMD Radeon vega Graphics

...@ThinkPad-E495:~$ uname --kernel-release
5.3.0-53-generic
...@ThinkPad-E495:~$ sudo lshw -short
H/W path            Device   Class          Description
=======================================================
                             system         20NECTO1WW (LENOVO_MT_20NE_BU_Think_FM_ThinkPad E495)
/0                           bus            20NECTO1WW
/0/1                         memory         16GiB System Memory
/0/1/0                       memory         8GiB SODIMM DDR4 Synchronous Unbuffered (Unregistered) 2400 MHz (0,4 ns)
/0/1/1                       memory         8GiB SODIMM DDR4 Synchronous Unbuffered (Unregistered) 2400 MHz (0,4 ns)
/0/3                         memory         384KiB L1 cache
/0/4                         memory         2MiB L2 cache
/0/5                         memory         4MiB L3 cache
/0/6                         processor      AMD Ryzen 5 3500U with Radeon Vega Mobile Gfx
/0/e                         memory         128KiB BIOS
/0/100                       bridge         Advanced Micro Devices, Inc. [AMD]
/0/100/0.2                   generic        Advanced Micro Devices, Inc. [AMD]
/0/100/1.1                   bridge         Advanced Micro Devices, Inc. [AMD]
/0/100/1.1/0                 storage        NVMe SSD Controller SM981/PM981
/0/100/1.2                   bridge         Advanced Micro Devices, Inc. [AMD]
/0/100/1.2/0        enp2s0   network        RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
/0/100/1.3                   bridge         Advanced Micro Devices, Inc. [AMD]
/0/100/1.3/0                 generic        RTS522A PCI Express Card Reader
/0/100/1.6                   bridge         Advanced Micro Devices, Inc. [AMD]
/0/100/1.6/0        wlp4s0   network        RTL8822BE 802.11a/b/g/n/ac WiFi adapter
/0/100/8.1                   bridge         Advanced Micro Devices, Inc. [AMD]
/0/100/8.1/0                 display        Picasso
/0/100/8.1/0.1               multimedia     Advanced Micro Devices, Inc. [AMD/ATI]
/0/100/8.1/0.2               generic        Advanced Micro Devices, Inc. [AMD]
/0/100/8.1/0.3               bus            Advanced Micro Devices, Inc. [AMD]
/0/100/8.1/0.3/0    usb1     bus            xHCI Host Controller
/0/100/8.1/0.3/1    usb2     bus            xHCI Host Controller
/0/100/8.1/0.4               bus            Advanced Micro Devices, Inc. [AMD]
/0/100/8.1/0.4/0    usb3     bus            xHCI Host Controller
/0/100/8.1/0.4/0/1           communication  Bluetooth Radio
/0/100/8.1/0.4/0/2           multimedia     Integrated Camera
/0/100/8.1/0.4/1    usb4     bus            xHCI Host Controller
/0/100/8.1/0.5               multimedia     Advanced Micro Devices, Inc. [AMD]
/0/100/8.1/0.6               multimedia     Advanced Micro Devices, Inc. [AMD]
/0/100/14                    bus            FCH SMBus Controller
/0/100/14.3                  bridge         FCH LPC Bridge
/0/101                       bridge         Family 17h (Models 00h-0fh) PCIe Dummy Host Bridge
/0/102                       bridge         Family 17h (Models 00h-0fh) PCIe Dummy Host Bridge
/0/103                       bridge         Advanced Micro Devices, Inc. [AMD]
/0/104                       bridge         Advanced Micro Devices, Inc. [AMD]
/0/105                       bridge         Advanced Micro Devices, Inc. [AMD]
/0/106                       bridge         Advanced Micro Devices, Inc. [AMD]
/0/107                       bridge         Advanced Micro Devices, Inc. [AMD]
/0/108                       bridge         Advanced Micro Devices, Inc. [AMD]
/0/109                       bridge         Advanced Micro Devices, Inc. [AMD]
/0/10a                       bridge         Advanced Micro Devices, Inc. [AMD]
/1                           power          01AV446
/2                  docker0  network        Ethernet interface

我很高兴为您提供任何日志,只需指出正确的方向即可。现在,我不知道要查找哪些日志或哪些关键字。

shutdown reboot amd-graphics 18.04 amd-ryzen
  • 1 个回答
  • 281 Views

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    如何运行 .sh 脚本?

    • 16 个回答
  • Marko Smith

    如何安装 .tar.gz(或 .tar.bz2)文件?

    • 14 个回答
  • Marko Smith

    如何列出所有已安装的软件包

    • 24 个回答
  • Marko Smith

    无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗?

    • 25 个回答
  • Martin Hope
    Flimm 如何在没有 sudo 的情况下使用 docker? 2014-06-07 00:17:43 +0800 CST
  • Martin Hope
    Ivan 如何列出所有已安装的软件包 2010-12-17 18:08:49 +0800 CST
  • Martin Hope
    La Ode Adam Saputra 无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗? 2010-11-30 18:12:48 +0800 CST
  • Martin Hope
    David Barry 如何从命令行确定目录(文件夹)的总大小? 2010-08-06 10:20:23 +0800 CST
  • Martin Hope
    jfoucher “以下软件包已被保留:”为什么以及如何解决? 2010-08-01 13:59:22 +0800 CST
  • Martin Hope
    David Ashford 如何删除 PPA? 2010-07-30 01:09:42 +0800 CST

热门标签

10.10 10.04 gnome networking server command-line package-management software-recommendation sound xorg

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve