I just installed a GPU, and attempted to install a DE, but I can't seem to get anything to actually render to that GPU. I've confirmed both the GPU and monitor work on other installs. I believe I'm just missing a key step in moving from a minimal install to a working Desktop Environment.
The Issue
Whenever I boot, the monitor plugged into my discrete GPU stays in its power-save state. Once the kernel loads, the monitor exits its power-save state, turns its backlight on, but the screen remains completely blank (no text cursor, no mouse cursor, and certainly no greeter/login-screen or DE). I am, however, able to SSH into the machine just fine.
The Question
How do I get KDE up and running on this machine with this AMD Radeon X300 SE GPU?
What I've Done
- Started with a Minimal Install from the netinst .ISO
- Ensured /etc/apt/sources.list contains the correct repositories (i.e., main, contrib, and non-free-firmware):
deb http://deb.debian.org/debian bookworm main contrib non-free-firmware deb-src http://deb.debian.org/debian bookworm main contrib non-free-firmware
- Installed AMD-related firmware, drivers, packages, etc.:
apt-get install firmware-amd-graphics amd64-microcode xserver-xorg-video-radeon
- Installed KDE:
apt-get install plasma-desktop plasma-nm
In the spirit of trying to simplify the debug process, here's a few relevant outputs:
The card is correctly showing up on the PCIe bus (see "e1:00" in output below)
Code: Select all
root@workstation:~# lspci
[...]
e1:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] RV370 [Radeon X300]
e1:00.1 Display controller: Advanced Micro Devices, Inc. [AMD/ATI] RV370 [Radeon X300 SE]
e2:00.0 PCI bridge: ASPEED Technology, Inc. AST1150 PCI-to-PCI Bridge (rev 06)
e3:00.0 VGA compatible controller: ASPEED Technology, Inc. ASPEED Graphics Family (rev 52)
e4:00.0 Non-Essential Instrumentation [1300]: Advanced Micro Devices, Inc. [AMD] Device 14ac (rev 01)
e4:00.4 USB controller: Advanced Micro Devices, Inc. [AMD] Device 14c9 (rev da)
[...]
The kernel is also correctly detecting the monitor plugged into the card (see "Monitor-3" in output below).
Code: Select all
root@workstation:~# inxi -GSaz --vs
inxi 3.3.26-00 (2023-03-28)
System:
Kernel: 6.1.0-18-amd64 arch: x86_64 bits: 64 compiler: gcc v: 12.2.0
parameters: BOOT_IMAGE=/BOOT/debian@/vmlinuz-6.1.0-18-amd64 root=ZFS=/ROOT/debian ro
root=ZFS=workstation-rpool/ROOT/debian quiet
Console: pty pts/0 Distro: Debian GNU/Linux 12 (bookworm)
Graphics:
Device-1: AMD RV370 [Radeon X300] driver: radeon v: kernel alternate: radeonfb,amdgpu
arch: Rage-9 code: Radeon IGP process: TSMC 110nm built: 2003-08 pcie: gen: 1 speed: 2.5 GT/s
lanes: 16 ports: active: VGA-2 empty: DVI-I-1 bus-ID: e1:00.0 chip-ID: 1002:5b60
class-ID: 0300
Device-2: ASPEED Graphics Family driver: ast v: kernel ports: active: DP-1,VGA-1 empty: none
bus-ID: e3:00.0 chip-ID: 1a03:2000 class-ID: 0300
Display: server: X.org v: 1.21.1.7 with: Xwayland v: 22.1.9 driver: gpu: ast,radeon
note: X driver n/a tty: 318x98
Monitor-1: DP-1 size-res: N/A in console modes: max: 640x480 min: 800x600
Monitor-2: VGA-1 size-res: N/A in console modes: max: 1024x768 min: 640x480
Monitor-3: VGA-2 model: Dell 2007FP serial: <filter> built: 2007 res: 1600x1200 dpi: 99
gamma: 1.2 size: 367x275mm (14.45x10.83") diag: 514mm (20.2") ratio: 4:3, 5:4 modes:
max: 1600x1200 min: 720x400
API: OpenGL Message: GL data unavailable in console for root.
Code: Select all
root@workstation:~# lshw -C display
*-display:0
description: VGA compatible controller
product: RV370 [Radeon X300]
vendor: Advanced Micro Devices, Inc. [AMD/ATI]
physical id: 0
bus info: pci@0000:e1:00.0
logical name: /dev/fb1
version: 00
width: 32 bits
clock: 33MHz
capabilities: pm pciexpress msi vga_controller bus_master cap_list rom fb
configuration: depth=32 driver=radeon latency=0 resolution=1600,1200
resources: irq:272 memory:c0000000-cfffffff ioport:f000(size=256) memory:d8330000-d833ffff memory:d8300000-d831ffff
*-display:1 UNCLAIMED
description: Display controller
product: RV370 [Radeon X300 SE]
vendor: Advanced Micro Devices, Inc. [AMD/ATI]
physical id: 0.1
bus info: pci@0000:e1:00.1
version: 00
width: 32 bits
clock: 33MHz
capabilities: pm pciexpress cap_list
configuration: latency=0
resources: memory:d8320000-d832ffff
*-display
description: VGA compatible controller
product: ASPEED Graphics Family
vendor: ASPEED Technology, Inc.
physical id: 0
bus info: pci@0000:e3:00.0
logical name: /dev/fb0
version: 52
width: 32 bits
clock: 33MHz
capabilities: pm msi vga_controller cap_list fb
configuration: depth=32 driver=ast latency=0 resolution=1024,768
resources: irq:24 memory:d4000000-d7ffffff memory:d8000000-d803ffff ioport:e000(size=128)
Code: Select all
root@workstation:~# dmesg | grep "drm"
[ 13.155799] systemd[1]: Starting modprobe@drm.service - Load Kernel Module drm...
[ 13.255966] ACPI: bus type drm_connector registered
[ 13.257382] systemd[1]: modprobe@drm.service: Deactivated successfully.
[ 13.257772] systemd[1]: Finished modprobe@drm.service - Load Kernel Module drm.
[ 14.215102] ast 0000:e3:00.0: [drm] P2A bridge disabled, using default configuration
[ 14.215109] ast 0000:e3:00.0: [drm] AST 2600 detected
[ 14.215119] ast 0000:e3:00.0: [drm] Using analog VGA
[ 14.215124] ast 0000:e3:00.0: [drm] dram MCLK=396 Mhz type=1 bus_width=16
[ 14.216038] [drm] Initialized ast 0.1.0 20120228 for 0000:e3:00.0 on minor 0
[ 14.287738] fbcon: astdrmfb (fb0) is primary device
[ 14.313540] ast 0000:e3:00.0: [drm] fb0: astdrmfb frame buffer device
[ 14.616300] [drm] radeon kernel modesetting enabled.
[ 14.616759] [drm] initializing kernel modesetting (RV380 0x1002:0x5B60 0x1002:0x3000 0x00).
[ 14.682912] [drm] GPU not posted. posting now...
[ 14.796694] [drm] Generation 2 PCI interface, using max accessible memory
[ 14.796750] [drm] Detected VRAM RAM=256M, BAR=256M
[ 14.796753] [drm] RAM width 128bits DDR
[ 14.796766] [drm] radeon: 256M of VRAM memory ready
[ 14.796769] [drm] radeon: 512M of GTT memory ready.
[ 14.796797] [drm] GART: num cpu pages 131072, num gpu pages 131072
[ 14.797938] [drm] radeon: 1 quad pipes, 1 Z pipes initialized
[ 14.802047] [drm] PCIE GART of 512M enabled (table at 0x00000000C0040000).
[ 14.802477] [drm] radeon: irq initialized.
[ 14.802499] [drm] Loading R300 Microcode
[ 14.804870] [drm] radeon: ring at 0x00000000A0001000
[ 14.804893] [drm] ring test succeeded in 1 usecs
[ 14.805162] [drm] ib test succeeded in 0 usecs
[ 14.805645] [drm] Radeon Display Connectors
[ 14.805648] [drm] Connector 0:
[ 14.805649] [drm] VGA-2
[ 14.805651] [drm] DDC: 0x60 0x60 0x60 0x60 0x60 0x60 0x60 0x60
[ 14.805656] [drm] Encoders:
[ 14.805657] [drm] CRT1: INTERNAL_DAC1
[ 14.805660] [drm] Connector 1:
[ 14.805662] [drm] DVI-I-1
[ 14.805663] [drm] HPD1
[ 14.805665] [drm] DDC: 0x64 0x64 0x64 0x64 0x64 0x64 0x64 0x64
[ 14.805670] [drm] Encoders:
[ 14.805671] [drm] CRT2: INTERNAL_DAC2
[ 14.805674] [drm] DFP1: INTERNAL_TMDS1
[ 14.819974] radeon 0000:e1:00.0: [drm] Cannot find any crtc or sizes
[ 14.820162] [drm] Initialized radeon 2.50.0 20080528 for 0000:e1:00.0 on minor 1
[ 15.848487] radeon 0000:e1:00.0: [drm] Cannot find any crtc or sizes
[ 17.149767] [drm] amdgpu kernel modesetting enabled.