[ 299.652] (II) modeset(0): Printing probed modes for output VGA-1
[ 299.652] (II) modeset(0): Modeline "1440x900"x59.9 106.50 1440 1520 1672 1904 900 903 909 934 -hsync +vsync (55.9 kHz eP)
but that also hints at what might cause the cases when it is not working. Analog VGA connections can be temperamental so I would recommend unplugging and replugging the VGA cable firmly. If that does not work then try a new VGA cable.
If the problem is still not solved then next time you get stuck in 1024x768 please run:
The attached logs show when it was working:
[ 299.652] (II) modeset(0): Printing probed modes for output VGA-1
[ 299.652] (II) modeset(0): Modeline "1440x900"x59.9 106.50 1440 1520 1672 1904 900 903 909 934 -hsync +vsync (55.9 kHz eP)
but that also hints at what might cause the cases when it is not working. Analog VGA connections can be temperamental so I would recommend unplugging and replugging the VGA cable firmly. If that does not work then try a new VGA cable.
If the problem is still not solved then next time you get stuck in 1024x768 please run:
xrandr > xrandr.txt
journalctl -b0 > journal.txt
and attach the resulting text files here.