Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am using following command to change my screen resolution:

xrandr --newmode "1368x768_60.00"   85.25  1368 1440 1576 1784  768 771 781 798 -hsync +vsync
xrandr --addmode VGA1 1368x768_60.00
xrandr --output VGA1 --mode 1368x768_60.00

Now, which file do I need to edit so it will modify my screen resolution when I start up my Ubuntu PC?

NOTE: editing .xprofile isn't ideal since it's only per-user, not system-wide, and GDM/KDM doesn't existed on a vanilla 11.10 install, nor does xorg.conf

share|improve this question
up vote 1 down vote accepted

The :

There are several ways to make xrandr customizations permanent from session to session: a) .xprofile, b) kdm/gdm, c) xorg.conf.

share|improve this answer

You can use a GUI frontend to Xrandr, for example ARandR.

ARandR is designed to provide a simple visual front end for XRandR. Relative monitor positions are shown graphically and can be changed in a drag-and-drop way.

enter image description here

To install it in Ubuntu:

sudo apt-get install arandr

Now your configuration will be stored and loaded within the startup

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.