DESCRIPTION Upgraded from 6.6.5 to 6.7.x. Black screen on login. STEPS TO REPRODUCE 1. Update from 6.6.5 to 6.7.x 2. Log in via SDDM OBSERVED RESULT Black screen on login. Plasma 6.7.x upgrade causes KWin Wayland DRM device initialization failure on AMD GPUs. Fresh ISO works. From the command (AMD laptop): journalctl | grep drm Jul 16 13:36:47 my-laptop kernel: ACPI: bus type drm_connector registered Jul 16 13:36:47 my-laptop kernel: simple-framebuffer simple-framebuffer.0: [drm] Registered 1 planes with drm panic Jul 16 13:36:47 my-laptop kernel: [drm] Initialized simpledrm 1.0.0 for simple-framebuffer.0 on minor 0 Jul 16 13:36:47 my-laptop kernel: simple-framebuffer simple-framebuffer.0: [drm] fb0: simpledrmdrmfb frame buffer device Jul 16 13:36:47 my-laptop systemd[1]: Starting modprobe@drm.service - Load Kernel Module drm... Jul 16 13:36:48 my-laptop systemd[1]: modprobe@drm.service: Deactivated successfully. Jul 16 13:36:48 my-laptop systemd[1]: Finished modprobe@drm.service - Load Kernel Module drm. Jul 16 13:37:13 my-laptop kernel: amdgpu 0000:00:01.0: [drm] ATOM BIOS: 113-C91400-005 Jul 16 13:37:13 my-laptop kernel: amdgpu 0000:00:01.0: [drm] UVD is enabled in physical mode Jul 16 13:37:13 my-laptop kernel: amdgpu 0000:00:01.0: [drm] VCE enabled in VM mode Jul 16 13:37:13 my-laptop kernel: amdgpu 0000:00:01.0: [drm] Detected VRAM RAM=512M, BAR=512M Jul 16 13:37:13 my-laptop kernel: amdgpu 0000:00:01.0: [drm] RAM width 64bits UNKNOWN Jul 16 13:37:13 my-laptop kernel: amdgpu 0000:00:01.0: [drm] GART: num cpu pages 262144, num gpu pages 262144 Jul 16 13:37:13 my-laptop kernel: amdgpu 0000:00:01.0: [drm] PCIE GART of 1024M enabled (table at 0x000000F400600000). Jul 16 13:37:13 my-laptop kernel: amdgpu 0000:00:01.0: [drm] Found UVD firmware Version: 1.43 Family ID: 15 Jul 16 13:37:13 my-laptop kernel: amdgpu 0000:00:01.0: [drm] UVD ENC is disabled Jul 16 13:37:13 my-laptop kernel: [drm] DM_PPLIB: values for Engine clock Jul 16 13:37:13 my-laptop kernel: [drm] DM_PPLIB: 200000 Jul 16 13:37:13 my-laptop kernel: [drm] DM_PPLIB: 300000 Jul 16 13:37:13 my-laptop kernel: [drm] DM_PPLIB: 400000 Jul 16 13:37:13 my-laptop kernel: [drm] DM_PPLIB: 496560 Jul 16 13:37:13 my-laptop kernel: [drm] DM_PPLIB: 600000 Jul 16 13:37:13 my-laptop kernel: [drm] DM_PPLIB: 685720 Jul 16 13:37:13 my-laptop kernel: [drm] DM_PPLIB: 757900 Jul 16 13:37:13 my-laptop kernel: [drm] DM_PPLIB: 800000 Jul 16 13:37:13 my-laptop kernel: [drm] DM_PPLIB: Validation clocks: Jul 16 13:37:13 my-laptop kernel: [drm] DM_PPLIB: engine_max_clock: 80000 Jul 16 13:37:13 my-laptop kernel: [drm] DM_PPLIB: memory_max_clock: 93300 Jul 16 13:37:13 my-laptop kernel: [drm] DM_PPLIB: level : 8 Jul 16 13:37:13 my-laptop kernel: [drm] DM_PPLIB: values for Display clock Jul 16 13:37:13 my-laptop kernel: [drm] DM_PPLIB: 300000 Jul 16 13:37:13 my-laptop kernel: [drm] DM_PPLIB: 400000 Jul 16 13:37:13 my-laptop kernel: [drm] DM_PPLIB: 496560 Jul 16 13:37:13 my-laptop kernel: [drm] DM_PPLIB: 626090 Jul 16 13:37:13 my-laptop kernel: [drm] DM_PPLIB: 685720 Jul 16 13:37:13 my-laptop kernel: [drm] DM_PPLIB: 757900 Jul 16 13:37:13 my-laptop kernel: [drm] DM_PPLIB: 800000 Jul 16 13:37:13 my-laptop kernel: [drm] DM_PPLIB: 847060 Jul 16 13:37:13 my-laptop kernel: [drm] DM_PPLIB: Validation clocks: Jul 16 13:37:13 my-laptop kernel: [drm] DM_PPLIB: engine_max_clock: 80000 Jul 16 13:37:13 my-laptop kernel: [drm] DM_PPLIB: memory_max_clock: 93300 Jul 16 13:37:13 my-laptop kernel: [drm] DM_PPLIB: level : 8 Jul 16 13:37:13 my-laptop kernel: [drm] DM_PPLIB: values for Memory clock Jul 16 13:37:13 my-laptop kernel: [drm] DM_PPLIB: 667000 Jul 16 13:37:13 my-laptop kernel: [drm] DM_PPLIB: 933000 Jul 16 13:37:13 my-laptop kernel: [drm] DM_PPLIB: Validation clocks: Jul 16 13:37:13 my-laptop kernel: [drm] DM_PPLIB: engine_max_clock: 80000 Jul 16 13:37:13 my-laptop kernel: [drm] DM_PPLIB: memory_max_clock: 93300 Jul 16 13:37:13 my-laptop kernel: [drm] DM_PPLIB: level : 8 Jul 16 13:37:13 my-laptop kernel: amdgpu 0000:00:01.0: [drm] Display Core v3.2.369 initialized on DCE 11.0 Jul 16 13:37:13 my-laptop kernel: amdgpu 0000:00:01.0: [drm] UVD initialized successfully. Jul 16 13:37:14 my-laptop kernel: amdgpu 0000:00:01.0: [drm] VCE initialized successfully. Jul 16 13:37:14 my-laptop kernel: amdgpu 0000:00:01.0: [drm] Using custom brightness curve Jul 16 13:37:14 my-laptop kernel: amdgpu 0000:00:01.0: [drm] Registered 2 planes with drm panic Jul 16 13:37:14 my-laptop kernel: [drm] Initialized amdgpu 3.64.0 for 0000:00:01.0 on minor 1 Jul 16 13:37:14 my-laptop kernel: fbcon: amdgpudrmfb (fb0) is primary device Jul 16 13:37:14 my-laptop kernel: amdgpu 0000:00:01.0: [drm] fb0: amdgpudrmfb frame buffer device Jul 16 13:38:00 my-laptop kwin_wayland[1828]: No backend specified, automatically choosing drm Jul 16 13:38:00 my-laptop kwin_wayland[1828]: Failed to open drm device /dev/dri/card1 Jul 16 13:38:01 my-laptop kwin_wayland[1898]: Failed to open drm node /dev/dri/renderD128: Permission denied Jul 16 13:38:01 my-laptop kwin_wayland[1898]: No backend specified, automatically choosing drm From desktop: Jul 11 17:32:16 desktop-PC kwin_wayland[2188]: Failed to open /dev/dri/card1 device (Device or resource busy) Jul 11 17:32:16 desktop-PC kwin_wayland[2188]: Failed to open /dev/dri/card1 device (Device or resource busy) Jul 11 17:32:16 desktop-PC kwin_wayland[2188]: Failed to open /dev/dri/card1 device (Device or resource busy) Jul 11 17:32:16 desktop-PC kwin_wayland[2188]: Failed to open /dev/dri/card1 device (Device or resource busy) Jul 11 17:32:16 desktop-PC kwin_wayland[2188]: Failed to open drm device /dev/dri/card1 Jul 11 17:32:16 desktop-PC kwin_wayland[2188]: No suitable DRM devices have been found Jul 11 17:32:16 desktop-PC kwin_wayland[2250]: Device AMD Radeon RX 580 Series (RADV POLARIS10) misses required Vulkan extensions Jul 11 17:32:16 desktop-PC kwin_wayland[2250]: VK_EXT_image_drm_format_modifier Jul 11 17:32:16 desktop-PC kwin_wayland[2250]: Device AMD Radeon RX 580 Series misses required Vulkan extensions Jul 11 17:32:16 desktop-PC kwin_wayland[2250]: VK_EXT_physical_device_drm Jul 11 17:32:16 desktop-PC kwin_wayland[2250]: VK_EXT_image_drm_format_modifier -- EXPECTED RESULT Wayland session should load on machines with AMD graphics. SOFTWARE/OS VERSIONS Desktop (Currently working version of Plasma): Operating System: KDE neon User Edition KDE Plasma Version: 6.6.5 KDE Frameworks Version: 6.26.0 Qt Version: 6.11.1 Kernel Version: 6.17.0-35-generic (64-bit) Graphics Platform: Wayland Processors: 12 × AMD Ryzen 5 5600G with Radeon Graphics Memory: 32 GiB of RAM (31.1 GiB usable) Graphics Processor: AMD Radeon RX 580 Series AMD Laptop (currently working version of Plasma): Operating System: KDE neon User Edition KDE Plasma Version: 6.6.5 KDE Frameworks Version: 6.26.0 Qt Version: 6.11.1 Kernel Version: 6.17.0-35-generic (64-bit) Graphics Platform: Wayland Processors: 2 × AMD A9-9400 RADEON R5, 5 COMPUTE CORES 2C+3G Memory: 8 GiB of RAM (6.9 GiB usable) Graphics Processor: AMD Radeon R5 Graphics Manufacturer: LENOVO Product Name: 80TR System Version: Lenovo ideapad 110-15AST Intel Laptop (running clone of my Desktop's OS; which loads wayland session as expected): Operating System: KDE neon User Edition KDE Plasma Version: 6.7.3 KDE Frameworks Version: 6.28.0 Qt Version: 6.11.1 Kernel Version: 7.0.0-28-generic (64-bit) Graphics Platform: Wayland Processors: 8 × Intel® Core™ i5-8250U CPU @ 1.60GHz Memory: 4 GiB of RAM (3.7 GiB usable) Graphics Processor: Mesa Intel® UHD Graphics 620 Manufacturer: Acer Product Name: Aspire A515-51 System Version: V2.02 ADDITIONAL INFORMATION Plasma 6.6.5 Wayland works on AMD hardware. Upgrading the same installation to Plasma 6.7.x causes KWin to fail DRM initialization on AMD GPUs. The same upgraded installation works on Intel graphics. KDE neon live ISO with Plasma 6.7.x works on AMD hardware.
Thanks for the report. On the black screen, is there a mouse cursor, a flashing cursor or nothing? We'll also need some logs from your system to assist in our investigation. While the system is at the black screen, switch to a TTY and run these commands: > journalctl --user-unit plasma-kwin_wayland --boot 0 > ~/logs.txt > sudo dmesg > ~/dmesg.txt Then attach ~/logs.txt and ~/dmesg.txt to this report. Thanks.
Created attachment 194388 [details] Log.txt
Created attachment 194389 [details] dmesg.txt
(In reply to TraceyC from comment #1) > Thanks for the report. On the black screen, is there a mouse cursor, a > flashing cursor or nothing? > > We'll also need some logs from your system to assist in our investigation. > While the system is at the black screen, switch to a TTY and run these > commands: > > journalctl --user-unit plasma-kwin_wayland --boot 0 > ~/logs.txt > > sudo dmesg > ~/dmesg.txt > > Then attach ~/logs.txt and ~/dmesg.txt to this report. Thanks. Added the logs above from the AMD laptop. I'm not into backing up and restoring my desktop PC right now. I've done it too many times trying to figure this out, and I absolutely hate having system downtime. So, I plugged in the cloned SSD of my main rig into the AMD laptop. So, hopefully those logs suffice.
(In reply to TraceyC from comment #1) > Thanks for the report. On the black screen, is there a mouse cursor, a > flashing cursor or nothing? > > We'll also need some logs from your system to assist in our investigation. > While the system is at the black screen, switch to a TTY and run these > commands: > > journalctl --user-unit plasma-kwin_wayland --boot 0 > ~/logs.txt > > sudo dmesg > ~/dmesg.txt > > Then attach ~/logs.txt and ~/dmesg.txt to this report. Thanks. Oh, and there is no cursor. Just a black screen when after logging in from SDDM.
One final thing. The cloned copy of my current install works perfectly on the Intel laptop. So, I'd target AMD hardware.
Thanks for the extra details. The kwin maintainers will need to take it from here.
> Failed to open drm node /dev/dri/renderD128: Permission denied That one should never ever ever happen, but it's outside of KWin's control. > Could not determine the active graphical session Same with this. > kwin_wayland[2188]: Failed to open /dev/dri/card1 device (Device or resource busy) This looks more familiar, and it's a problem in plasma login manager - it starts KWin too early on your PC. KWin 6.8 should handle it either way, but this needs to be fixed in PLM.
(In reply to Zamundaaa from comment #8) > > Failed to open drm node /dev/dri/renderD128: Permission denied > That one should never ever ever happen, but it's outside of KWin's control. > > > Could not determine the active graphical session > Same with this. > > > kwin_wayland[2188]: Failed to open /dev/dri/card1 device (Device or resource busy) > This looks more familiar, and it's a problem in plasma login manager - it > starts KWin too early on your PC. KWin 6.8 should handle it either way, but > this needs to be fixed in PLM. I have no clue on any of this. It's all well over my head. All I know is that 6.6.5 works fine. Whereas any variant of 6.7.x doesn't in my case on any system with AMD graphics with the current installs I have.
Also, I just tried updating again with the current install I have. I updated to 6.7.4 on the Intel laptop. It works as usual on the system with Intel graphics. But I then plugged the SSD into the AMD laptop. Same issue persists.
Well, I did another test. I cloned the drive of a laptop (which uses AMD) running a current install of KDE Neon 6.6.5. I restored it onto another SSD, then upgraded it to 6.7.4 on the Intel laptop. I plugged it into my main system. And the wayland session loaded properly. So, I've isolated it to something that is happening with my current install that's causing this DRM issue. But I don't know what is causing it. Every time I've upgraded to a newer version of Plasma, I never had this issue.
*** Bug 523578 has been marked as a duplicate of this bug. ***
There's some additional analysis in the duplicate
Created attachment 196163 [details] dmesg output for 6.7.5
Created attachment 196164 [details] logs for Plasma 6.7.5
Added new logs after updating to Plasma 6.7.5. The issue still persists on my desktop's current KDE neon installation. For testing, I cloned my current desktop installation to another drive and updated it from Plasma 6.6.5 to 6.7.5. That updated installation boots into Wayland successfully when used on my Intel laptop, but Wayland fails when the same installation is used on AMD hardware. I also tested the reverse: I took a different KDE neon installation (the one originally used on my AMD laptop), updated it to Plasma 6.7.5, and tested that installation on my main rig. Wayland loads properly there. So the issue appears to depend on an interaction between my current KDE neon installation and AMD graphics. It is not simply that Plasma 6.7.5 fails on AMD hardware, since another KDE neon installation running Plasma 6.7.5 works on the same AMD hardware.
I tried Plasma 6.8.0. Still having this same issue. I think I may have to just reinstall my system. But I really don't want to...
Moving over to Opensuse Leap. I can't keep up with all the updates and bleeding edge problems that arise. Looking for less maintenance and a slower moving distro. Perfect reason to ditch anything Ubuntu based, I suppose.