A monitor, resolution 1280x1024, connected with DVI-I.
A television (projector), resolution 1280x720, connected with HDMI.
Here's what I need:
The displays need to be mirrored such that both displays show the same thing at all times. Any distortion due to scaling or cropping should be on the monitor.
The above configuration needs to persist across reboots.
The above configuration needs to persist regardless of whether the projector is on or off.
Currently I have a script which runs using "Startup Applications"
This works, but if the projector turns off (which is must when not in use) the settings are reset and running the script again manually does not give the same result as before.
Code: Select all
xrandr --output DVI-I-1 --same-as HDMI-0 xrandr --output DVI-I-1 --auto --scale-from 1280x720 --output HDMI-0
The box it's replacing is able to display properly regardless of what state the projector is in, running ubuntu 16.04. I know it should be possible to do this, but as I am not the person who set up the first box I'm very stuck.
Any help is appreciated.