You are not logged in.

#1 2020-09-19 18:43:39

TheChuckster
Member
Registered: 2013-07-19
Posts: 24

ARGH no Xorg on NVIDIA laptop screen when USB-C HDMI dock is unplugged

I started using a USB-C HDMI dock, and it worked great right away, but now it appears that my laptop is somehow STUCK in USB-C HDMI dock mode, where if the dock is unplugged, I can no longer run Xorg on my normal laptop display. The Xorg starts and it is running, but it is not visible on my laptop screen. If I had to guess, it's likely on some phantom screen on my attached USB-C dock.

How can I fix things to a sane state where if I unplug my dock and start Xorg OR have my dock unplugged ALL ALONG and start Xorg from a fresh boot, I see Xorg on my laptop screen again like normal?

Last edited by TheChuckster (2020-09-19 18:44:06)

Offline

#2 2020-09-20 09:46:34

solskog
Member
Registered: 2020-09-05
Posts: 462

Re: ARGH no Xorg on NVIDIA laptop screen when USB-C HDMI dock is unplugged

You may use xrandr to manually change ouput to an internal screen output LVDS-1 before undocking.

$ xrandr
LVDS-1
DVI-D-0
HDMI-0
...
$ xrandr --output LVDS-1 --primary
$ xrandr --output HDMI-1 --off

Last edited by solskog (2020-09-21 08:50:10)

Offline

#3 2020-09-20 14:26:52

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,678

Re: ARGH no Xorg on NVIDIA laptop screen when USB-C HDMI dock is unplugged

If this does not affect the console, you either wrote or had nvidia-settings write an xorg config that selects a specific output or some overzealous randr daemon of your DE wrote a randr config and applies them w/ the session.
* Is the console affected?
* How do you start X11?
* What kind of session do you run?
* In doubt post at least your Xorg log, but if you have an /etc/X11/xorg.conf, that's likely the cause. Just move it away.

Offline

Board footer

Powered by FluxBB