Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 30 Nov 2019 22:07:27 +0100
From:      Polytropon <freebsd@edvax.de>
To:        "Vlad D. Markov" <dvoich@aim.com>
Cc:        FreeBSD Questions <freebsd-questions@freebsd.org>
Subject:   Re: How to force X to use a specific GPU / output
Message-ID:  <20191130220727.e35b0459.freebsd@edvax.de>
In-Reply-To: <20191130153824.3221ff6da9449dc34727e7c7@aim.com>
References:  <20191130210239.ff69c8a2.freebsd@edvax.de> <20191130153824.3221ff6da9449dc34727e7c7@aim.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, 30 Nov 2019 15:38:24 -0500, Vlad D. Markov wrote:
> I use a little script to select which monitor to use.
> Is that what you are looking for?
> 
> #set -x
> 
> intern=LVDS1
> extern=VGA1
> 
> if xrandr | grep -q "$extern connected"; then
>     xrandr --output "$intern" --off --output "$extern" --auto
> #       echo "turning on external"
> else
>     xrandr --output "$extern" --off --output "$intern" --auto
> #       echo "turning on internal"
> fi

Thanks for this pointer - yes, xrandr is a very convenient tool
for switching the outputs. I tried this with LVDS, HDMI-0 and VGA-0,
back and forth, in various combinations, but whenever the laptop's
own display comes back on, the green pixels are there, while the
image on all other outputs - as expected - is absolutely normal.
I can even switch to "unsuitable" modes like 640x480, but the
problem just gets magnified. ;-)



-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20191130220727.e35b0459.freebsd>