My notebook has an HDMI connection to external monitor. I want have xrandr to pass parameters so that the image is displayed on both internal and external monitors, and when the external monitor is disconnected, the image continues to be displayed on the internal.
Currently I turn it off it manually:
xrandr --output LVDS1 --off --output HDMI1 --auto
And turn on:
xrandr --output LVDS1 --auto --output HDMI1 --auto
So I want to put xrandr command with correct parameters in $HOME/.xinitrc, so that video would go out on both monitors.
man xrandr, read up on--same-as.--same-asgo along with--outputoption? Can you give example?--outputoption. Soxrandr --output HDMI1 --same-as LVDS1to makeHDMI1show the same asLVDS1.