* [gentoo-user] Strange behaviour disconnecting and reconnecting USB-C screen
@ 2022-01-11 9:25 Andreas Fink
2022-01-11 9:57 ` Benjamin Blanz
2022-01-12 0:14 ` ny6p01
0 siblings, 2 replies; 5+ messages in thread
From: Andreas Fink @ 2022-01-11 9:25 UTC (permalink / raw
To: gentoo-user
Hello,
I've got a new laptop and see a strange behaviour when disconnecting
and reconnecting my USB-C screen.
Here are the steps that I am doing. I have a dual screen setup with
xrandr, with my notebook screen being the primary screen and a second
large external screen connected via USB-C to my notebook directly.
Now I disconnect the USB-C cable and do not do anything software wise,
i.e. my X-Server is still pretending to run on two screens, I can move
the screen outside of my notebook screen (into the area where the
external screen).
Now I reconnect the USB-C cable but the screens stays blank (the the
screen it says "No USB Type-C connection from your computer"). The only
way to get a signal again is to first use xrandr to only use my
notebook screen, and at the exact time udev gets a DRM event, and
suddently my external monitor appears within xrandr as connected (I did
not touch the cable, I only ran an xrandr command to use only the
notebook screen). Right after the DRM event I can run the xrandr
command to use both screens, but it is annoying to degrade first to one
screen, because all windows are moved around and I do not end up with
the same window setup as before.
Using the same screen with the same experiment as described above but
with a different notebook the screen is able to pick up the signal
again, so it's not purely a problem with the external screen.
Any idea what is going on and how I can workaround it? I just want to
disconnect the cable and reconnect it without the need to switch any
xrandr setup.
Thanks for your ideas and help
Andreas
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [gentoo-user] Strange behaviour disconnecting and reconnecting USB-C screen
2022-01-11 9:25 [gentoo-user] Strange behaviour disconnecting and reconnecting USB-C screen Andreas Fink
@ 2022-01-11 9:57 ` Benjamin Blanz
2022-01-11 11:13 ` Andreas Fink
2022-01-12 0:14 ` ny6p01
1 sibling, 1 reply; 5+ messages in thread
From: Benjamin Blanz @ 2022-01-11 9:57 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1.1.1: Type: text/plain, Size: 1935 bytes --]
Hi,
I have the same issue using a usb-c dockingstation.
I have found it is enough to change the resolution of the connected screens to get them back.
Still annoying, but at least the windows are not redistributed.On 11.01.22 10:25, Andreas Fink wrote:
> Hello,
> I've got a new laptop and see a strange behaviour when disconnecting
> and reconnecting my USB-C screen.
> Here are the steps that I am doing. I have a dual screen setup with
> xrandr, with my notebook screen being the primary screen and a second
> large external screen connected via USB-C to my notebook directly.
> Now I disconnect the USB-C cable and do not do anything software wise,
> i.e. my X-Server is still pretending to run on two screens, I can move
> the screen outside of my notebook screen (into the area where the
> external screen).
> Now I reconnect the USB-C cable but the screens stays blank (the the
> screen it says "No USB Type-C connection from your computer"). The only
> way to get a signal again is to first use xrandr to only use my
> notebook screen, and at the exact time udev gets a DRM event, and
> suddently my external monitor appears within xrandr as connected (I did
> not touch the cable, I only ran an xrandr command to use only the
> notebook screen). Right after the DRM event I can run the xrandr
> command to use both screens, but it is annoying to degrade first to one
> screen, because all windows are moved around and I do not end up with
> the same window setup as before.
>
> Using the same screen with the same experiment as described above but
> with a different notebook the screen is able to pick up the signal
> again, so it's not purely a problem with the external screen.
> Any idea what is going on and how I can workaround it? I just want to
> disconnect the cable and reconnect it without the need to switch any
> xrandr setup.
>
> Thanks for your ideas and help
> Andreas
>
[-- Attachment #1.1.2: OpenPGP public key --]
[-- Type: application/pgp-keys, Size: 6459 bytes --]
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 840 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [gentoo-user] Strange behaviour disconnecting and reconnecting USB-C screen
2022-01-11 9:57 ` Benjamin Blanz
@ 2022-01-11 11:13 ` Andreas Fink
2022-01-11 12:55 ` Benjamin Blanz
0 siblings, 1 reply; 5+ messages in thread
From: Andreas Fink @ 2022-01-11 11:13 UTC (permalink / raw
To: gentoo-user
On Tue, 11 Jan 2022 10:57:28 +0100
Benjamin Blanz <benjamin.blanz@gmx.de> wrote:
> Hi,
> I have the same issue using a usb-c dockingstation.
> I have found it is enough to change the resolution of the connected screens to get them back.
> Still annoying, but at least the windows are not redistributed.On 11.01.22 10:25, Andreas Fink wrote:
>
That did not work for me because xrandr complains that any resolution
is an unknown mode.
Which command do you use to change the resolution of the connected
screen?
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [gentoo-user] Strange behaviour disconnecting and reconnecting USB-C screen
2022-01-11 11:13 ` Andreas Fink
@ 2022-01-11 12:55 ` Benjamin Blanz
0 siblings, 0 replies; 5+ messages in thread
From: Benjamin Blanz @ 2022-01-11 12:55 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1.1.1: Type: text/plain, Size: 1509 bytes --]
My normal layout
#!/bin/sh
xrandr --output eDP-1 --mode 1920x1080 --pos 3640x249 --rotate normal --output DP-1 --off --output HDMI-1 --off --output DP-2 --off --output HDMI-2 --off --output DP-1-1 --mode 1920x1080 --pos 0x0 --rotate left --output DP-1-2 --off --output DP-1-2-8 --primary --mode 2560x1600 --pos 1080x46 --rotate normal --output DP-1-2-1 --off --output DP-1-3 --off
The layout I switch to to wake the screens up, before then switchign back to the normal layout
#!/bin/sh
xrandr --output eDP-1 --mode 1920x1080 --pos 3640x498 --rotate normal --output DP-1 --off --output HDMI-1 --off --output DP-2 --off --output HDMI-2 --off --output DP-1-1 --mode 1600x1200 --pos 0x0 --rotate left --output DP-1-2-8 --primary --mode 1920x1600 --pos 1080x46 --rotate normal --output DP-1-2-1 --off --output DP-1-2 --off --output DP-1-3 --off
I used arandr to generate the commands and have the assigned to hotkeys
On 11.01.22 12:13, Andreas Fink wrote:
> On Tue, 11 Jan 2022 10:57:28 +0100
> Benjamin Blanz <benjamin.blanz@gmx.de> wrote:
>
>> Hi,
>> I have the same issue using a usb-c dockingstation.
>> I have found it is enough to change the resolution of the connected screens to get them back.
>> Still annoying, but at least the windows are not redistributed.On 11.01.22 10:25, Andreas Fink wrote:
>>
> That did not work for me because xrandr complains that any resolution
> is an unknown mode.
> Which command do you use to change the resolution of the connected
> screen?
>
[-- Attachment #1.1.2: OpenPGP public key --]
[-- Type: application/pgp-keys, Size: 6459 bytes --]
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 840 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [gentoo-user] Strange behaviour disconnecting and reconnecting USB-C screen
2022-01-11 9:25 [gentoo-user] Strange behaviour disconnecting and reconnecting USB-C screen Andreas Fink
2022-01-11 9:57 ` Benjamin Blanz
@ 2022-01-12 0:14 ` ny6p01
1 sibling, 0 replies; 5+ messages in thread
From: ny6p01 @ 2022-01-12 0:14 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 1855 bytes --]
What I would do is create a bash script and link to a keyboard shortcut to
execute as needed. One of the advantages of xrandr is the ease of scripting.
Lee 😎
On Jan 11, 2022 at 1:25 AM, Andreas Fink <finkandreas@web.de> wrote:
Hello,
I've got a new laptop and see a strange behaviour when disconnecting
and reconnecting my USB-C screen.
Here are the steps that I am doing. I have a dual screen setup with
xrandr, with my notebook screen being the primary screen and a second
large external screen connected via USB-C to my notebook directly.
Now I disconnect the USB-C cable and do not do anything software wise,
i.e. my X-Server is still pretending to run on two screens, I can move
the screen outside of my notebook screen (into the area where the
external screen).
Now I reconnect the USB-C cable but the screens stays blank (the the
screen it says "No USB Type-C connection from your computer"). The only
way to get a signal again is to first use xrandr to only use my
notebook screen, and at the exact time udev gets a DRM event, and
suddently my external monitor appears within xrandr as connected (I did
not touch the cable, I only ran an xrandr command to use only the
notebook screen). Right after the DRM event I can run the xrandr
command to use both screens, but it is annoying to degrade first to one
screen, because all windows are moved around and I do not end up with
the same window setup as before.
Using the same screen with the same experiment as described above but
with a different notebook the screen is able to pick up the signal
again, so it's not purely a problem with the external screen.
Any idea what is going on and how I can workaround it? I just want to
disconnect the cable and reconnect it without the need to switch any
xrandr setup.
Thanks for your ideas and help
Andreas
[-- Attachment #2: Type: text/html, Size: 2376 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2022-01-12 0:14 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-01-11 9:25 [gentoo-user] Strange behaviour disconnecting and reconnecting USB-C screen Andreas Fink
2022-01-11 9:57 ` Benjamin Blanz
2022-01-11 11:13 ` Andreas Fink
2022-01-11 12:55 ` Benjamin Blanz
2022-01-12 0:14 ` ny6p01
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox