You are not logged in.
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
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
What was the output of "xrand -q" and does "xrandr --output HDMI1 --auto --left-of eDP1" work?
Offline
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
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
"xrandr --output HDMI1 --left-of eDP1" only repositions the output, it doesn't activate it.
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
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
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
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
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
It is not a tv. It is a dell monitor.
What does itfp stand for?
Offline
https://www.urbandictionary.com/define.php?term=itfp
Did you approach the config file driven setup?
Offline
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
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