ubuntu-asahi icon indicating copy to clipboard operation
ubuntu-asahi copied to clipboard

Random freeze on monitor connected by DisplayLink with Mesa 24.2.0

Open VladimirKadlec opened this issue 1 year ago • 0 comments

Hi, I have problem with external monitor connected through external docking station using DisplayLink and evdi driver, using KDE on Wayland.

With kernel 6.10.0.1001.1 and mesa packages 24.2.0~pre20240725-1asahi1.24.04 I'm experiencing after 1-2 hours of working a "freeze", the content of the external monitor stops updating. This appear in the syslog in that moment: kwin_wayland_wrapper[2646]: kwin_wayland_drm: failed to import AR24 gbm_bo for multi-gpu usage: Function not implemented

In this situation I'm able to turn the monitor off (disable the monitor) from KDE's display settings but then I can't it turn back on (the monitor is not detected any more). The only solution is to logout to SDDM (SDDM runs under X) or reboot.

I tried different evdi drivers (1.14.2, 1.14.5, 1.14.6). After a lot of googling and experimentig a found out that it's a mesa issue.

I downgraded all mesa packages to 24.1.0~pre20240228-1asahi2.24.04 (I had to add tobhe/asahi/ubuntu from launchpad to apt sources) and kernel to 6.8.0-1011 (because with the older mesa and newest kernel I don't get accelerated desktop, UABI mismatch).

Summary:

  • mesa 24.1.0~pre20240228-1asahi2.24.04, kernel 6.8.0-1011, no issues
  • mesa 24.1.0~pre20240228-1asahi2.24.04, kernel 6.10.0.1001.1, no issues, but no acceleration
  • mesa 24.2.0~pre20240725-1asahi1.24.04, kernel 6.10.0.1001.1, issue appears
  • mesa 24.2.0~pre20240725-1asahi1.24.04, kernel 6.8.0-1011, issue appears + no acceleration

It's probably mesa problem, I could do a git bisect, is there a documentation how to build custom git version of mesa packages? (or other way to not polute the whole system with wrong libraries) The slight problem with git bisect is that in my case one experiment takes hour(s) to make the issue appear :-(

System specs, MacBook Air M2:

  Host: asahiair Kernel: 6.8.0-1011-asahi-arm arch: aarch64 bits: 64
  Desktop: KDE Plasma v: 5.27.11 Distro: Kubuntu 24.04.1 LTS (Noble Numbat)
CPU:
  Info: quad core Model N/A [MT MCP] speed (MHz): avg: 1860
    min/max: 600:660/2424:3504
Graphics:
  Device-1: agx-t8112 driver: asahi v: kernel
  Device-2: display-subsystem driver: apple_drm v: N/A
  Device-3: h7-display-pipe driver: N/A
  Display: wayland server: X.Org v: 23.2.6 with: Xwayland v: 23.2.6
    compositor: kwin_wayland driver: X: loaded: modesetting unloaded: fbdev
    dri: asahi gpu: apple-drm,evdi resolution: 1: 1920x1080 60Hz
    2: 1707x1067 60Hz
  API: OpenGL v: 4.6 compat-v: 4.5 vendor: mesa
    v: 24.1.0~pre20240228-1asahi2.24.04 renderer: Apple M2 (G14G B0)

VladimirKadlec avatar Sep 20 '24 08:09 VladimirKadlec