[xubuntu-users] Screen Resolution

John Alfred Nathanael Chee cheecheeo at gmail.com
Sun Dec 6 03:12:47 UTC 2009

On Sat, Dec 5, 2009 at 04:18, T H Stearns <thomasstearns at comcast.net> wrote:
> Again many thanks for your successful solution to the  resolution-change
> problem.
> 1. How do I alter the command string to get 1024 X 768
> 2. How do I make the change permanent? It disappears with reboot.

To get 1024x768 resolution you'll want to run the command 'cvt 1024
768'. It should output 2 lines, one starting with '#' and another
starting with 'Modeline'. Then copy everything after the closing "
mark on the line the starting with 'Modeline' and put that after the
closing " mark on the 'xrandr --newmode' command discussed a couple
emails ago. You'll also want to change every occurrence of 1280 to
1024 and 1024 to 768 in the 3 xrandr lines. NOTE: This page explains a
lot of what we've been doing:

As far as making the change permanent the following should make the
change permanent [1]:
'sudo mousepad /etc/gdm/Init/Default'

Then search for the line: initctl -q emit login-session-start

Right _before_ that line, add the three xrandr lines:

xrandr --newmode "1280x1024" 109.00  1280 1368 1496 1712  1024 1027 \
1034 1063 -hsync +vsync
xrandr --addmode VGA1 1280x1024
xrandr --output VGA1 --mode 1280x1024

Then save and quit. You'll have to at least logout, and possibly
restart to have the changes take effect.

[1] https://wiki.ubuntu.com/X/Config/Resolution#Setting%20xrandr%20commands%20in%20kdm/gdm%20startup%20scripts

Love in Jesus Christ, John Alfred Nathanael Chee

More information about the xubuntu-users mailing list