From nobody Tue Mar 15 13:41:22 2022 X-Original-To: freebsd-x11@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id BE8261A2BFE1 for ; Tue, 15 Mar 2022 13:41:30 +0000 (UTC) (envelope-from mpp302@gmail.com) Received: from mail-ej1-f47.google.com (mail-ej1-f47.google.com [209.85.218.47]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4KHvhB0DF9z3rSg for ; Tue, 15 Mar 2022 13:41:30 +0000 (UTC) (envelope-from mpp302@gmail.com) Received: by mail-ej1-f47.google.com with SMTP id qt6so41355057ejb.11 for ; Tue, 15 Mar 2022 06:41:29 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:references:from:in-reply-to :content-transfer-encoding; bh=xRt3NCn7/A+kZwHzcVTD5OZmoEtNhCg39DJatXd7gdg=; b=FVBeHtqgtIpsK/4wp8jK3EwjHJFOH9Xlb9one2om4bDlEFRxozhSGlsN+dzlD28y/X oTskaK++OKBTML/pkI27g+7X9MZiRJyaRPjepy+0Adj0TJd5UY8DGzaXvoZ2aWeqf2Ff /OspRAkxicp5FKS5KWDQ9wEYkgL7igxUWBgQnDjEGw2v8R9DNEnsclcXVqXtQ5zQ2vm0 5VtAFOexcABVfCSYgaTBFPplFZA75l+F6K3xF2eNl2bGIXgmhmx+0Aq/0er33G/spSNR ryxYfCyCz+A/ce3slv2UFk98crp4uIoDwkzDHfLwuqhQJg7aHZoJocs3oTPVnV7k7d0C FVpQ== X-Gm-Message-State: AOAM5313G8xZ6RehVOtuFGNQ9Mupxhx4ECoh57dCd62lV5Z75gtYYMz6 YUTQw+5rYIJKmO6TnpNzNfAxtTqHijs= X-Google-Smtp-Source: ABdhPJyR1mTxLcYUaU5NiDxyOekarGf6RGnXTQPdbKnbv9JOoOCLSB9iYw3m6MeZpB7kdwUtszHXhg== X-Received: by 2002:a17:907:7209:b0:6da:9781:ae5d with SMTP id dr9-20020a170907720900b006da9781ae5dmr22177229ejc.73.1647351682308; Tue, 15 Mar 2022 06:41:22 -0700 (PDT) Received: from ?IPV6:2a02:8109:9880:1d70:5e5f:67ff:fef4:ffd8? ([2a02:8109:9880:1d70:5e5f:67ff:fef4:ffd8]) by smtp.gmail.com with ESMTPSA id d8-20020a170906640800b006d5853081b7sm8117518ejm.70.2022.03.15.06.41.21 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 15 Mar 2022 06:41:21 -0700 (PDT) Message-ID: Date: Tue, 15 Mar 2022 14:41:22 +0100 List-Id: X11 List-Archive: https://lists.freebsd.org/archives/freebsd-x11 List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-x11@freebsd.org X-BeenThere: freebsd-x11@freebsd.org MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:91.0) Gecko/20100101 Thunderbird/91.6.1 Subject: Re: Dynamic multimonitor setup question Content-Language: en-US To: Milan Obuch , freebsd-x11@freebsd.org References: <20220228093951.30914524@zeta.dino.sk> <20220314101646.0042335c@zeta.dino.sk> <665f28bc-42b5-f862-3211-01b90b070fd4@FreeBSD.org> <20220315120121.45db2c3c@zeta.dino.sk> <20220315140922.3f88c78c@zeta.dino.sk> From: Mateusz Piotrowski <0mp@FreeBSD.org> In-Reply-To: <20220315140922.3f88c78c@zeta.dino.sk> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4KHvhB0DF9z3rSg X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of mpp302@gmail.com designates 209.85.218.47 as permitted sender) smtp.mailfrom=mpp302@gmail.com X-Spamd-Result: default: False [-2.97 / 15.00]; RCVD_TLS_ALL(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:209.85.128.0/17]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-x11@freebsd.org]; ARC_NA(0.00)[]; DMARC_NA(0.00)[FreeBSD.org]; RCVD_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_SOME(0.00)[]; NEURAL_HAM_SHORT(-0.97)[-0.968]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[209.85.218.47:from]; NEURAL_HAM_MEDIUM(-1.00)[-0.999]; MLMMJ_DEST(0.00)[freebsd-x11]; FORGED_SENDER(0.30)[0mp@FreeBSD.org,mpp302@gmail.com]; RWL_MAILSPIKE_POSSIBLE(0.00)[209.85.218.47:from]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:15169, ipnet:209.85.128.0/17, country:US]; FROM_NEQ_ENVFROM(0.00)[0mp@FreeBSD.org,mpp302@gmail.com]; FREEMAIL_ENVFROM(0.00)[gmail.com] X-ThisMailContainsUnwantedMimeParts: N 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