You are not logged in.

#1 2012-11-14 07:43:04

Registered: 2012-09-26
Posts: 21

X crashes on login with laptop monitor, VGA, and HDMI plugged it.

So when I have my laptop hooked up to HDMI and VGA, intending to use just thoses, on log in Arch tries to use all three and that makes X crash (or maybe something even more low-level? Seems a hard reset is the only way out of the error). I have a script I run after log in that turns off the laptop display, and then turns on HDMI and VGA displays. Is there anyway to get it to check if VGA and HDMI are plugged in on log in? And if so, turn off the laptop monitor? I'm unsure where to start looking for a solution to this.

vgadisplay=`xrandr --properties | grep "VGA1 connected"`
hdmidisplay=`xrandr --properties | grep "HDMI1 connected"`
if ( [ -n "$vgadisplay" ] ) && ( [ -n "$hdmidisplay" ] ); then
     $(xrandr --output LVDS1 --off --output VGA1 --auto --output HDMI1 --auto --right-of VGA1)
     $(xrandr --output VGA1 --off --output HDMI1 --off --output LVDS1 --auto)
     echo Both are not connected


Board footer

Powered by FluxBB