Screen resolution stuck at 1024x768

I solved the problem by running:

xrandr --addmode VGA1 1366x768

I also added new modes to the change resolution drop down by using,

xrandr --newmode "mode line"

Where mode line replaces the supported resolutions. You can find the supported resolutions by running:

xrandr

Currently, it's working all right.


I had this problem, and I seem to have fixed it with the following.

I found this thread from the ubuntuforums.org useful.

1) If you need 1280x1024 (what I needed):

xrandr --newmode "1280x1024_60_new" 138.54 1280 1368 1504 1728 1024 1025 1028 1069 -HSync +Vsync

xrandr --addmode VGA-0 1280x1024_60_new

2) If you need 1440x900 (that's what the guy used, should work)

xrandr --newmode "1440x900_60.00"  106.47  1440 1520 1672 1904  900 901 904 932  -HSync +Vsync

xrandr --addmode HDMI1 1440x900_60.00

The only problem with this is that the resolution disappears after a restart and a message says could not apply the stored configuration for monitors. You can write a startup script though.


To run at startup add the xrandr commands in /etc/gdm/Init/Default just before "initctl ..." https://wiki.ubuntu.com/X/Config/Resolution

For my Dell 2711 I ran these two lines:

xrandr --newmode "1920x1200_60.00" 193.25 1920 2056 2256 2592 1200 1203 1209 1245 -hsync +vsync
xrandr --addmode HDMI1 "1920x1200_60.00"

(Not sure why it thinks I'm connected to HDMI, when it is actually connected to Display Port via DVI converter, perhaps that's why it's confused about the resolution options.)