Index | Thread | Search

From:
yaydn@protonmail.com
Subject:
Re: Testing: wayland monitor hotplug
To:
Volker Schlecht <openbsd-ports@schlecht.dev>
Cc:
"ports@openbsd.org" <ports@openbsd.org>
Date:
Thu, 07 Aug 2025 22:59:04 +0000

Download raw body.

Thread
På tirsdag 5. august 2025 kl. 19:33, Volker Schlecht
<openbsd-ports@schlecht.dev> skrev:

> During l2k25 I tried to get output hotplug to work with wlroots based wayland
> compositors. The attached diff seems to work rather well for matthieu@ and myself
> but could probably use some wider testing from whoever is interested :-)
>
> For those who haven't used wayland on OpenBSD before:
>
> $ doas pkg_add sway
>
> * apply the attached diff to wayland/wlroots, rebuild and install
> * kill all running X sessions, make sure to stop xenodm if it's running
>
> $ startsway.sh
>
> * Plug, unplug and replug any external monitors you have around, and see if
> sway detects and uses them.


Tested on current/amd64.

Did:
cd /usr/ports/wayland/wlroots/ && patch -l -p0 -E < /tmp/wlroots-hotplug.diff
cd /usr/ports/wayland/wlroots/ && make clean=all clean update && make clean


Applied and built well.

Used a hdmi and vga to hotplug from the same monitor on a Sandybridge
laptop. Both were usable at the same time.

On a Ivybridge laptop with only hdmi, it also was able to hotplug.

I also borrowed an old lenovo pentum laptop and was able to use vga or
hdmi or both.

I am looking to borrow a desktop or laptop with displayport to test.
I'll email results if I get my hands on one.

Secondary mice and keyboards needed a

doas chown youruser:your /dev/wsmouse1
doas chown youruser:your /dev/wskbd1

respectively before starting a startsway.sh, disconnecting and
reconnecting these did not work until logging out and back in again.

I have these chown commands in my /etc/rc.local to have this applied
every boot.

This is expected behavior for now I think though, on mice and keyboards.

This is quite an improvement, many thanks to matthieu@, volker@, and
anyone else who worked on this behind the scenes!