You are not logged in.

#1 2020-05-09 23:39:53

droidus
Member
Registered: 2020-04-28
Posts: 44

External monitor disconnects

I noticed that my external monitor will disconnect.  Running xrandr -q returns "Can't open display".  I noticed it will disconnect after resuming from unlocking my device.

Offline

#2 2020-05-20 22:14:40

droidus
Member
Registered: 2020-04-28
Posts: 44

Re: External monitor disconnects

OK, so this has happened again. 
I unlocked my device, and the only working monitor is the one on my laptop.  Both screens usually are restored upon logging in from the lock screen. 
I run a xrandr -q, and both monitors show up.  I try running this command:  xrandr --output HDMI1 --left-of eDP1  Yet nothing happens.
I have to unplug my HDMI cable, then plug it in, then my external monitor connection is re-established.

Offline

#3 2020-05-20 22:28:32

seth
Member
Registered: 2012-09-03
Posts: 50,927

Re: External monitor disconnects

What was the output of "xrand -q" and does "xrandr --output HDMI1 --auto --left-of eDP1" work?

Offline

#4 2020-05-21 16:10:17

droidus
Member
Registered: 2020-04-28
Posts: 44

Re: External monitor disconnects

I will have to try that next time.
It worked, thanks!  How does the "auto" flag make it work, whereas the command I ran previously did not work?

Last edited by droidus (2020-05-23 12:15:16)

Offline

#5 2020-06-17 21:59:52

droidus
Member
Registered: 2020-04-28
Posts: 44

Re: External monitor disconnects

This is continuing to happen.  After locking, and leaving for some time, then coming back, and logging in, I am left only with my laptop monitor.  I turn off my external monitor, then turn it back on again, and I am back at dual screens.

Offline

#6 2020-06-18 06:48:35

seth
Member
Registered: 2012-09-03
Posts: 50,927

Re: External monitor disconnects

"xrandr --output HDMI1 --left-of eDP1" only repositions the output, it doesn't activate it.

seth wrote:

What was the output of "xrand -q"

What likely happens is that the monitor deactivates from the DPMS and by this disconnects, some randr daemon (do you use autorandr, what DE do you use?) will alter the layout but ignores/misses the outputs wakeup/reconnect.

You need to provide more information on the context, though.

Offline

#7 2020-06-18 18:53:23

droidus
Member
Registered: 2020-04-28
Posts: 44

Re: External monitor disconnects

What does DPMS stand for?  I did a search on running processes, and didn't come across anything with *randr*.  By DE, you mean Desktop Environment?  I am running LXDE. 
I will post the output of that command when it happens again.

Offline

#8 2020-06-18 19:06:23

seth
Member
Registered: 2012-09-03
Posts: 50,927

Re: External monitor disconnects

https://en.wikipedia.org/wiki/VESA_Disp … _Signaling

Do you use openbox as WM in LXDE?

Since I copied around typos, make it "xrandr -q" ;-)

Offline

#9 2020-06-18 19:37:32

droidus
Member
Registered: 2020-04-28
Posts: 44

Re: External monitor disconnects

Yes, it looks like openbox is currently running.
Output:

Screen 0: minimum 8 x 8, current 1920 x 1080, maximum 32767 x 32767
eDP1 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 350mm x 190mm
   1920x1080     59.93*+  59.93  
   1680x1050     59.88  
   1400x1050     59.98  
   1600x900      60.00    59.95    59.82  
   1280x1024     60.02  
   1400x900      59.96    59.88  
   1280x960      60.00  
   1368x768      60.00    59.88    59.85  
   1280x800      59.81    59.91  
   1280x720      59.86    60.00    59.74  
   1024x768      60.00  
   1024x576      60.00    59.90    59.82  
   960x540       60.00    59.63    59.82  
   800x600       60.32    56.25  
   864x486       60.00    59.92    59.57  
   640x480       59.94  
   720x405       59.51    60.00    58.99  
   640x360       59.84    59.32    60.00  
DP1 disconnected (normal left inverted right x axis y axis)
DP2 disconnected (normal left inverted right x axis y axis)
HDMI1 connected (normal left inverted right x axis y axis)
   1920x1080     60.00 +  50.00    59.94  
   1920x1080i    60.00    50.00    59.94  
   1600x1200     60.00  
   1280x1024     75.02    60.02  
   1152x864      75.00  
   1280x720      60.00    50.00    59.94  
   1024x768      75.03    60.00  
   800x600       75.00    60.32  
   720x576       50.00  
   720x576i      50.00  
   720x480       60.00    59.94  
   720x480i      60.00    59.94  
   640x480       75.00    60.00    59.94  
   720x400       70.08  
HDMI2 disconnected (normal left inverted right x axis y axis)
VIRTUAL1 disconnected (normal left inverted right x axis y axis)

Last edited by droidus (2020-06-18 23:38:33)

Offline

#10 2020-06-19 06:05:37

seth
Member
Registered: 2012-09-03
Posts: 50,927

Re: External monitor disconnects

HDMI1 connected (normal left inverted right x axis y axis)
   1920x1080     60.00 +  50.00    59.94  

Yeah, it simply got deactivated.

   1920x1080i    60.00    50.00    59.94  

I assume this is a TV?

How do you configure the outputs itfp? Some LXDE setting leading to an lxrandr call on login?

Try adding /etc/X11/xorg.conf.d/11-monitor.conf

Section "Monitor"
	Identifier "eDP1"
	Option	"Enable"	"True"
	Option	"Primary"	"True"
EndSection

Section "Monitor"
	Identifier "HDMI1"
	Option	"Primary"	"False"
	Option	"Enable"	"True"
        Option "LeftOf"  "eDP1"
EndSection

Offline

#11 2020-06-19 23:09:19

droidus
Member
Registered: 2020-04-28
Posts: 44

Re: External monitor disconnects

It is not a tv.  It is a dell monitor.
What does itfp stand for?

Offline

#12 2020-06-20 06:06:54

seth
Member
Registered: 2012-09-03
Posts: 50,927

Re: External monitor disconnects

https://www.urbandictionary.com/define.php?term=itfp

Did you approach the config file driven setup?

Offline

#13 2020-06-20 11:31:38

droidus
Member
Registered: 2020-04-28
Posts: 44

Re: External monitor disconnects

I added that text to a new file, if that is what you are asking.  It doesn't seem to have fixed it.

Last edited by droidus (2020-06-20 11:38:23)

Offline

#14 2020-06-20 12:33:34

seth
Member
Registered: 2012-09-03
Posts: 50,927

Re: External monitor disconnects

The  file has to be in /etc/X11/xorg.conf.d/ and you need to restart the X11 server after adding it.
If this is what you did, please post an xorg log after losing the output.

I would also suggest to get interference by the uerspace (LXDE) out of the way and start eg. a simple openbox session (no desktop environment), and try to trigger the issue.
Do you use lightdm as DM? Do you ahve both outputs active there?

Offline

Board footer

Powered by FluxBB