Xrandr

To get monitor names and available resolutions run

xrandr

To set output modes, run e.g.:

xrandr --output LVDS1 --mode 1920x1080 --pos 0x0 --output VGA1 --mode 1024x768
xrandr --output eDP1 --auto --output HDMI1 --auto --left-of eDP1
xrandr --output eDP1 --auto --output HDMI1 --off

To set resolutions, the following also works:

xrandr -s 1920x1080