How can I make presets of resolution

Asked by komputes on 2010-06-24

Currently the fn-f4 (monitor toggle) sets the X desktop to a large size and then moving the cursor to far corners moves the desktop around. I would like to simply have my internal LCD and external CRT monitors to go into clone mode. A resolution that both the monitor and the computer can agree upon.

Mode 1 - LCD at 1280x800 [DEFAULT]
Mode 2 - LCD at 1024x768, VGA at 1024x768 [CLONED MODE]

Going into nvidia-settings, the panning is by default 1280x800 when I would like both monitors and the X desktop to be 1024x768 in Mode 2.

The nvidia-settings Basic/Advanced button allows you to change the panning to 1024x768, which is a workaround, but I wouldn't expect my mother to know how to do this. Assistance is requested in understanding how I can go about making two preset modes and cycling though them, either as a script or by re-scrpting the toggle monitor key (whichever is possible). I have tried Xrandr, but I don't think it works properly with the nVidia binary driver.

$ xrandr
Screen 0: minimum 320 x 240, current 1280 x 800, maximum 1280 x 800
default connected 1280x800+0+0 0mm x 0mm
   1280x800 50.0* 51.0
   1024x768 51.0
   960x540 52.0
   840x525 53.0
   800x600 54.0
   800x512 55.0
   720x450 56.0
   680x384 57.0 58.0
   640x512 59.0
   640x480 60.0 61.0
   576x432 62.0
   512x384 63.0
   400x300 64.0
   320x240 65.0
$ xrandr --output default --mode 1024x768
xrandr: Configure crtc 0 failed

Question information

English Edit question
Ubuntu nvidia-graphics-drivers Edit question
No assignee Edit question
Last query:
Last reply:

If you run:

sudo nvidia-xconfig; gksudo nvidia-settings

Setup your display as you wish then click "save to X config file"

May help. This will put the seting in xorg.conf. If you get issues simply rename xorg.conf and reboot, should be fine.

Martin Wildam (mwildam) said : #2

Setting manual options for xrandr in your gdm startup script may help also - see e.g.:

Can you help with this problem?

Provide an answer of your own, or ask komputes for more information if necessary.

To post a message you must log in.