You are not logged in.

#1 2013-01-31 01:55:53

Registered: 2012-09-15
Posts: 101

Unable to switch back to laptop screen with xrandr from VGA


I'm using i3 window manager and have an external display plugged in sometimes. I use the following short script to turn off the laptop display and turn on the vga monitor

xrandr --output VGA1 --auto
xrandr --output LVDS1 --off
xrandr --output VGA1 --auto
feh --bg-fill /home/james/wallpaper.jpg

However I cant get back to the laptop screen turning the VGA off doing it the other way round.

xrandr --output LVDS1 --auto
sleep 2
xrandr --output VGA1 --off
sleep 2
xrandr --output LVDS1 --auto
sleep 2
feh --bg-fill /home/james/wallpaper.jpg
pkill synergyc

I've tried using --mode 1366x768 but that doesnt work. The only thing I can do is close the laptop lid and then resume from suspend and the screen comes back on.

Anyone know what I can do to get my laptop screen back on?



#2 2013-01-31 14:12:04

Registered: 2010-04-03
Posts: 2,963

Re: Unable to switch back to laptop screen with xrandr from VGA

Try the whole thing together
xrandr --output LVDS1 --auto --output VGA1 --auto --right-of/left-of/above/below LVDS1.
If you have it plugged in, it runs both, if you unplug it only brings the one back on.

Last edited by nomorewindows (2013-01-31 14:12:51)

I may have to CONSOLE you about your usage of ridiculously easy graphical interfaces...
Look ma, no mouse.


Board footer

Powered by FluxBB