Weird AMD wayland issue

I am having a wierd problem with wayland on my AMD laptop. When I try to start plasma in wayland I get a glitchy output to my display and it keeps reseting the screen like when the terminal switches between user swaps. Here is a video:

Let me know what info you need. It’s an old AMD apu laptop with Radeon R4 graphics.

What does this show

inxi -Gca

@jputnam

Yes… that looks a little glitchy! :grin:

that almost looks like either there was a bad update, or your gpu is starting to die. That is a hell of a glitch i will agree.

@jputnam
Can you post the gpu hardware output?

inxi -Ga

inxi -Gca  ~
Graphics:
Device-1: AMD Mullins [Radeon R4/R5 Graphics] vendor: Hewlett-Packard
driver: radeon v: kernel alternate: amdgpu arch: GCN-2 code: Sea Islands
process: GF/TSMC 16-28nm built: 2013-17 ports: active: eDP-1
empty: HDMI-A-1 bus-ID: 00:01.0 chip-ID: 1002:9851 class-ID: 0300
Device-2: Realtek HP Truevision HD integrated webcam driver: uvcvideo
type: USB rev: 2.0 speed: 480 Mb/s lanes: 1 mode: 2.0 bus-ID: 2-1.2:3
chip-ID: 0bda:5776 class-ID: 0e02 serial: 200901010001
Display: x11 server: X.Org v: 21.1.13 with: Xwayland v: 24.1.1
compositor: kwin_x11 driver: X: loaded: radeon unloaded: modesetting
alternate: fbdev,vesa dri: radeonsi gpu: radeon display-ID: :1 screens: 1
Screen-1: 0 s-res: 1366x768 s-dpi: 96 s-size: 361x203mm (14.21x7.99")
s-diag: 414mm (16.31")
Monitor-1: eDP-1 mapped: eDP model: LG Display 0x039f built: 2012
res: 1366x768 hz: 60 dpi: 101 gamma: 1.2 size: 345x194mm (13.58x7.64")
diag: 396mm (15.6") ratio: 16:9 modes: max: 1366x768 min: 640x480
API: EGL v: 1.5 hw: drv: amd radeonsi platforms: device: 0 drv: radeonsi
device: 1 drv: swrast gbm: drv: kms_swrast surfaceless: drv: radeonsi x11:
drv: radeonsi inactive: wayland
API: OpenGL v: 4.5 vendor: amd mesa v: 24.1.3-arch1.1 glx-v: 1.4
direct-render: yes renderer: KABINI (radeonsi LLVM 18.1.8 DRM 2.50
6.9.9-arch1-1) device-ID: 1002:9851 memory: 1000 MiB unified: no
API: Vulkan Message: No Vulkan data available.

I don’t think the gpu is dying because everything is working on a X11 session. The only thing I can think of is a new package in plasma 6 for wayland. Before I did a fresh install on my laptop I was running 5 and had to install the plasma wayland package separately and it worked fine. This one was setup out of the box from the “Endeavour” image.

The gpu is a sea islands. I see you are running on X11 currently. You don’t have vulkan drivers installed.

You need to set Sea Islands (CIK): radeon.cik_support=0 amdgpu.cik_support=1 as per the wiki.
Then i think it will work on Wayland. Another user had the same issue.

https://wiki.archlinux.org/title/AMDGPU#Specify_the_correct_module_order

Edit: I think you need to do it both for amdgpu and radeon in the conf file.

Edit: You can also install vulkan-radeon if you want vulkan drivers.

Everything you need to do for amdgpu is on this page including hardware acceleration set up and configuration if needed and also vulkan as well as configuration for sea islands gpu.

https://wiki.archlinux.org/title/AMDGPU#

Edit: If you need any help just ask. I’ll do my best to walk you through it if needed.

1 Like

@jputnam
First thing to try is setting the correct driver.

https://wiki.archlinux.org/title/AMDGPU#Set_kernel_module_parameters

My system is using dracut, not mkinitcpio. What do I have to change for that?

Nm. Just installed the vulkan drivers and it works. Glitchy, but works.

I don’t think you need to do anything for dracut. I’m not an expert on that but on my system i do nothing.

So does it now log in using Wayland?

Yes it does. Guess it just needed the vulkan drivers. It doesn’t seem to be using the vulkan driver though. It shows at the bottom vulkan is active but still shows amdgpu as the driver. Or am I reading it wrong:

Graphics:
  Device-1: AMD Mullins [Radeon R4/R5 Graphics] vendor: Hewlett-Packard
    driver: amdgpu v: kernel alternate: radeon arch: GCN-2 code: Sea Islands
    process: GF/TSMC 16-28nm built: 2013-17 ports: active: eDP-1
    empty: HDMI-A-1 bus-ID: 00:01.0 chip-ID: 1002:9851 class-ID: 0300
  Device-2: Realtek HP Truevision HD integrated webcam driver: uvcvideo
    type: USB rev: 2.0 speed: 480 Mb/s lanes: 1 mode: 2.0 bus-ID: 2-1.2:3
    chip-ID: 0bda:5776 class-ID: 0e02 serial: 200901010001
  Display: wayland server: X.org v: 1.21.1.13 with: Xwayland v: 24.1.1
    compositor: kwin_wayland driver: X: loaded: amdgpu unloaded: modesetting
    alternate: fbdev,vesa dri: radeonsi gpu: amdgpu display-ID: 0
  Monitor-1: eDP-1 res: 1366x768 size: N/A modes: N/A
  API: EGL v: 1.5 hw: drv: amd radeonsi platforms: device: 0 drv: radeonsi
    device: 1 drv: swrast surfaceless: drv: radeonsi wayland: drv: radeonsi x11:
    drv: radeonsi inactive: gbm
  API: OpenGL v: 4.6 compat-v: 4.5 vendor: amd mesa v: 24.1.3-arch1.1
    glx-v: 1.4 direct-render: yes renderer: AMD Radeon R5 Graphics (radeonsi
    kabini LLVM 18.1.8 DRM 3.57 6.9.9-arch1-1) device-ID: 1002:9851
    memory: 1000 MiB unified: no display-ID: :1.0
  API: Vulkan v: 1.3.279 layers: 3 device: 0 type: integrated-gpu name: AMD
    Radeon R5 Graphics (RADV KABINI) driver: mesa radv v: 24.1.4-arch1.2
    device-ID: 1002:9851 surfaces: xcb,xlib,wayland

Yes … Try this. You need vulkan-tools installed but they might be installed already.

vulkaninfo

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.