Thank you for having this question because it allows me to be able to solve problem in command line now, because it already happens to do that with my Dell XPS 13
you can identify the resolutions of your screens with xrandr
with the flag q
$ xrandr -q
Exemple with one monitor
Screen 0: minimum 320 x 200, current 1920 x 1080, maximum 8192 x 8192
HDMI-1 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 521mm x 293mm
1920x1080 60.00*+ 50.00 59.94
1920x1080i 60.00 50.00 59.94
1680x1050 59.88
1280x1024 75.02 60.02
1440x900 74.98 59.90
1280x960 60.00
1152x864 75.00
1280x720 60.00 50.00 59.94
1024x768 75.03 70.07 60.00
832x624 74.55
800x600 72.19 75.00 60.32 56.25
720x576 50.00
720x480 60.00 59.94
640x480 75.00 72.81 66.67 60.00 59.94
720x400 70.08
HDMI-2 disconnected (normal left inverted right x axis y axis)
DP-1 disconnected (normal left inverted right x axis y axis)
HDMI-3 disconnected (normal left inverted right x axis y axis)
My screen is HDMI-1, if you want set my monitor resolution to 1680x1050 I need do that
$ xrandr --output HDMI-1 --mode 1680x1050
The change will take effect immediately, the screens will become black for a moment.
You can use Tabulation after --output
for autocomplete the name of the video output on which you want to do your action
Hope this will help you