Aqui estão duas ferramentas de linha de comando que definirão o espelhamento e a resolução da tela conforme necessário.
Espelho
usage: mirror [option] Passing more than one option produces undefined behavior.
-h Print this usage and exit.
-t Toggle mirroring (default behavior)
-on Turn Mirroring On
-off Turn Mirroring Off
-q Query the Mirroring state and print "on" or "off" to stdout
SetGetRes
Usage: ./getsetres [-l | 1..9 ] [ hor_res vert_res]
-l list resolution, depth and refresh rate of all displays
1..9 display # (default: main display)
hor_res horizontal resolution
vert_res vertical resolution