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

Problem: Boot and LoginScreen resolution are O.K. - 1366x768, but after login the resolution drop down to 1024x768. In the options I can select the 1366x768 resolution again, but looks like it doesn't save it, because in the next reboot it drop back again to 1024x768.

I have a Intel Integrated Video Card, on Dell Inspiron 1545 running Ubuntu 11.10, 4GB RAM & 320 HD.

share|improve this question
WORKAROUND: I used this comand xrandr --output LVDS1 --mode 1366x768 and linked it to this keyboard shortcut: Crtl+Alt+z, and I run it after login, and that is. – Lvkz Nov 30 '11 at 18:24

Instead of running this command at log in or through your short cut you may want to take a look at you monitors.xml file.

  1. Open up a terminal (ctrl+alt+t)
  2. Go to your config folder (cd ~/.config)
  3. Open up your file for editing (gedit monitors.xml)
  4. Your resolution will be listed here as <width> and <height>
  5. Change them to <width>1366</width> and `768

You can find a more detailed description here... Ubuntu 11.10 dual monitor set up instructions

share|improve this answer

You can use update-rc.d for start-only or stop-only scripts

Start my script on startup :

# update-rc.d -f my_script start 99 2 3 4 5 .


- start is the argument given to the script (start, stop).
- 99 is the start order of the script (1 = first one, 99= last one)
- 2 3 4 5 are the runlevels to start

Dont forget the dot at the end More info in /etc/rcS.d/README

Start my_script on shutdown and reboot :

# update-rc.d -f my_script start 90 0 6 .

Stop my_script on halt and reboot :

# update-rc.d -f my_script reboot 90 0 6 .

Note: your script will be xrandr --output LVDS1 --mode 1366x768

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.