Re: Dynamic multimonitor setup question

From: Mateusz Piotrowski <0mp_at_FreeBSD.org>
Date: Tue, 15 Mar 2022 13:41:22 UTC
On 15/03/2022 14:09, Milan Obuch wrote:
> On Tue, 15 Mar 2022 12:46:45 +0100
> Mateusz Piotrowski <0mp@FreeBSD.org> wrote:
>> On 15/03/2022 12:01, Milan Obuch wrote:
> [ snip ]
>
>>> The main problem, however, still remains - action is done not when
>>> cable is being plugged/unplugged, but xrandr or arandr must be
>>> called manually, then intended action occurs.
>> Unfortunately, I don't have a solution at hand for this use case.
>>> What hardware do you have?
>> I'm also using i915kms.ko, but I don't think it is a kernel module
>> issue. To me what you are describing sounds like something that could
>> be configured with a mix of xorg.conf and devd(8) (although even
>> devd(8) could be an overkill here).
>>
> Any idea? I did a verbose boot, and nothing is output to console on
> external monitor cable plugging in/out. I think there is no event
> generated. It looks I am forced to use manual reconfiguration... not
> that nice :(

I'd say that you are looking for something like this project:

https://github.com/phillipberndt/autorandr

Apparently, a Wayland counterpart is already in ports:

https://www.freshports.org/x11/kanshi/


Best,

Mateusz Piotrowski