I had a HP laptop whose display died. I had available a Dell Inspiron 5575 with an AMD Ryzen 5 2500 CPU & integrated Radeon Raven Ridge Vega 8 GPU. I swapped out the hard drives & installed an 8GB memory DIMM from the HP (yes, it's compatible with the Dell) in the empty memory slot. I made sure the Dell could boot from the EFI GRUB entry. The laptop booted up, got a "DELL" splash & then the GRUB menu & I chose "UBUNTU" (kernel 5.4.0.88; since updated to 5.4.0.89). Got the "DELL" splash again for a short time, then a black screen. I re-booted to the recovery version. Everything booted OK. But as I since discovered, the AMD graphics module does not load. Googling seems to indicate many people have had some sort of problem with this set-up. I have tried "nomodeset" in the GRUB config; but of course that doesn't solve the problem. Adding "amdgpu.dc=0 or 1" does not help. Several other options tried do not make a difference. I installed the 20.04-HWE kernels ( 5.11.0.37; updated to 5.11.0.42), but that does not solve anything. Enclosed below is some relevent (I hope) info:
Code:
$ uname -sr
Linux 5.11.0-37-generic
----------------------------------
# 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`
#Original setting below
#GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
#GRUB_CMDLINE_LINUX_DEFAULT="quiet splash nomodeset"
#Following line original existing before use of Dell
#GRUB_CMDLINE_LINUX_DEFAULT="quiet splash video=uvesafb:mode_option=1920x1080-24,mtrr=3,scroll=ywrap"
# added idle=nomwait, iommu=soft; removed nomodeset; tried video=efifb(:off) did not work
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash idle=nomwait iommu=soft video=uvesafb:mode_option=1920x1080-24, mtrr=3,scroll=ywrap"
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'
#Uncommented/changed following line 10/20/2021
GRUB_GFXMODE=1280x720-32
# 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"
----------------------------------------------------
$ sudo lshw -c video
*-display UNCLAIMED
description: VGA compatible controller
product: Raven Ridge [Radeon Vega Series / Radeon Vega Mobile Series]
vendor: Advanced Micro Devices, Inc. [AMD/ATI]
physical id: 0
bus info: pci@0000:03:00.0
version: c4
width: 64 bits
clock: 33MHz
capabilities: pm pciexpress msi msix vga_controller bus_master cap_list
configuration: latency=0
resources: memory:d0000000-dfffffff memory:e0000000-e01fffff ioport:1000(size=256) memory:e0700000-e077ffff memory:c0000-dffff
---------------------------------------------------------
$ inxi -G
Graphics:
Device-1: AMD Raven Ridge [Radeon Vega Series / Radeon Vega Mobile Series]
driver: N/A
Display: x11 server: X.Org 1.20.11 driver: ati,fbdev
unloaded: amdgpu,modesetting,radeon,vesa resolution: 1920x1080~77Hz
OpenGL: renderer: llvmpipe (LLVM 12.0.0 256 bits) v: 4.5 Mesa 21.0.3
-----------------------------------------------------------------------------------------
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 20.04.3 LTS
Release: 20.04
Codename: focal
$ journalctl -b | egrep -i 'radeon|amdgpu' | egrep -i 'error|fail|kernel'
Oct 16 17:18:21 Pern kernel: smpboot: CPU0: AMD Ryzen 5 2500U with Radeon Vega Mobile Gfx (family: 0x17, model: 0x11, stepping: 0x0)
Oct 16 17:18:34 Pern kernel: [drm:amdgpu_init [amdgpu]] *ERROR* VGACON disables amdgpu kernel modesetting.
Oct 16 17:20:00 Pern /usr/lib/gdm3/gdm-x-session[4546]: All GPUs supported by the amdgpu kernel driver
Oct 16 17:20:00 Pern /usr/lib/gdm3/gdm-x-session[4546]: All GPUs supported by the amdgpu kernel driver
Oct 16 17:20:43 Pern /usr/lib/gdm3/gdm-x-session[10105]: All GPUs supported by the amdgpu kernel driver
Oct 16 17:20:43 Pern /usr/lib/gdm3/gdm-x-session[10105]: All GPUs supported by the amdgpu kernel driver
created /etc/mkinitcpio.conf & added MODULES=amdgpu to it; did not seem to help
Randomly I can boot with the amdgpu modules active. I get either the DELL logo with the spinning Ubuntu logo below it or the purple screen with the blinking dots. In addition the computer will freeze if left unused for some period of time & sometimes a hard reboot is required (sometimes CTL-ALT-BACKSPACE works). I have turned off all screen blanking, drive spin-down & suspension options.
Hoping someone out there can help me to get this to boot normally.
TIA.
Bookmarks