Re: Help request: strange issue with xfce xfwm4 on AMD hardware, running head

From: Guido Falsi <mad_at_madpilot.net>
Date: Sat, 27 May 2023 18:01:37 UTC
On 27/05/23 10:44, Guido Falsi wrote:
> Forgot to CC this list, here is a link to the message:
> 
> https://lists.freebsd.org/archives/freebsd-x11/2023-May/003306.html
> 
> Short story is, XFCE xfwm4 started crashing on login on my laptop for no 
> apparent reason, working fine elsewhere, and I have no clue what broke it.
> 
> Could be a local machine issue, but could also something bigger that 
> will trickle down to more users. Looks related to the graphics hardware.
> 
> Here is also a direct link to the upstream bug I filed:
> 
> https://gitlab.xfce.org/xfce/xfwm4/-/issues/722
> 
> If anyone has suggestions they are appreciated!
> 

I just tested, as suggested by a friend, disabling DRI3 and now 
everything works; while it is not a fix is a good workaround. I report 
here for the record.

Now I need to understand what happened that causes it to break, if it's 
something in our kernel or the drm kmod, or indeed something wrong in 
xfwm4, I honestly have no clue right now.

Disabling DRI 3 is easily accomplished by creating a file in 
/usr/local/etc/X11/xorg.conf.d with content:

Section "OutputClass"
     Identifier "AMD"
     MatchDriver "amdgpu"
     Driver "amdgpu"
     Option "DRI" "2"
EndSection

-- 
Guido Falsi <mad@madpilot.net>