Gentoo Archives: gentoo-user

From: ny6p01 <ny6p01@×××××.com>
To: gentoo-user <gentoo-user@l.g.o>
Subject: Re: [gentoo-user] Strange behaviour disconnecting and reconnecting USB-C screen
Date: Wed, 12 Jan 2022 00:14:55
In Reply to: [gentoo-user] Strange behaviour disconnecting and reconnecting USB-C screen by Andreas Fink
1 What I would do is create a bash script and link to a keyboard shortcut to
2 execute as needed. One of the advantages of xrandr is the ease of scripting.
5 Lee 😎
7 On Jan 11, 2022 at 1:25 AM, Andreas Fink <finkandreas@×××.de> wrote:
9 Hello,
10 I've got a new laptop and see a strange behaviour when disconnecting
11 and reconnecting my USB-C screen.
12 Here are the steps that I am doing. I have a dual screen setup with
13 xrandr, with my notebook screen being the primary screen and a second
14 large external screen connected via USB-C to my notebook directly.
15 Now I disconnect the USB-C cable and do not do anything software wise,
16 i.e. my X-Server is still pretending to run on two screens, I can move
17 the screen outside of my notebook screen (into the area where the
18 external screen).
19 Now I reconnect the USB-C cable but the screens stays blank (the the
20 screen it says "No USB Type-C connection from your computer"). The only
21 way to get a signal again is to first use xrandr to only use my
22 notebook screen, and at the exact time udev gets a DRM event, and
23 suddently my external monitor appears within xrandr as connected (I did
24 not touch the cable, I only ran an xrandr command to use only the
25 notebook screen). Right after the DRM event I can run the xrandr
26 command to use both screens, but it is annoying to degrade first to one
27 screen, because all windows are moved around and I do not end up with
28 the same window setup as before.
30 Using the same screen with the same experiment as described above but
31 with a different notebook the screen is able to pick up the signal
32 again, so it's not purely a problem with the external screen.
33 Any idea what is going on and how I can workaround it? I just want to
34 disconnect the cable and reconnect it without the need to switch any
35 xrandr setup.
37 Thanks for your ideas and help
38 Andreas