profile
viewpoint

Ask questionssway crashes after connecting dock (displaylink driver)

Reproducer

$ sway -d 2>~/sway.log
$ systemctl start displaylink
connect displalink dock
sway crash

HDMI is connected do displaylink dock dock: i-tec USB 3.0 Dual Docking Station device

Version

sway version 1.0 os: archlinux

Log

sway.log

Stack trace

(gdb) bt full
#0  0x00007fcd9e0f267b in  () at /usr/lib/dri/kms_swrast_dri.so
#1  0x00007fcd9e0f2d14 in  () at /usr/lib/dri/kms_swrast_dri.so
#2  0x00007fcd9e107a51 in  () at /usr/lib/dri/kms_swrast_dri.so
#3  0x00007fcd9e1075bb in  () at /usr/lib/dri/kms_swrast_dri.so
#4  0x00007fcd9e107c7d in  () at /usr/lib/dri/kms_swrast_dri.so
#5  0x00007fcd9e107a88 in  () at /usr/lib/dri/kms_swrast_dri.so
#6  0x00007fcda208e57f in start_thread () at /usr/lib/libpthread.so.0
#7  0x00007fcda28a20e3 in clone () at /usr/lib/libc.so.6

From log it looks like the wlroots handles everything right because it founds the display even the resolutions are correct but there is something with IPC so that's why I am submitting the issue here.

swaywm/sway

Answer questions ascent12

GPU hotplug (which includes displaylink) isn't really something that is expected to work at the moment. Displaylink-like devices are especially weird, and probably requires some extra kind of support.

I'm aware of some work that Pekka Paalanen was doing for Displaylink support for Gnome a little while ago. I'm going to wait and see what the results are from that, and apply it to wlroots.

useful!
source:https://uonfu.com/
Github User Rank List