Ich hab mir grade die Mühe gemacht, das Ganze nochmal kurz zusammenzufassen.
How to add your screen's resolution on ubuntu 12.10?
1. Choose your resolution. In my case it's 1920x1080 since I have a FullHD TFT and wanna use it's native resolution.
2. Type
cvt 1920 1080 60
in your shell. This command dumps the settings for your resolution. 60 is the repeat rate, which is default 60.
3. It results in something like:
#1920x1080 59.96Hz (CVT 2.07M9) hsync: 67.16kHz; pclk: 173.00MHz
Modeline __"1920x1080_60.00" 173.00 1920 2048 2248 2576 1080 1083 1088 1120 -hsync +vsync__
4. Fetch everything after Modeline (you can copy it with ctrl+shift+c).
5. Type
xrandr
and press enter. This will show you your already upset resolutions and tell you your graphic adapter's name.
In my case it is:
gebieter@GebieterVM:~$ xrandr
Screen 0: minimum 64 x 64, current 1920 x 1080, maximum 32000 x 32000
VBOX0 connected 1920x1080+0+0 0mm x 0mm
1024x768 60.0 + 60.0
1600x1200 60.0
1440x1050 60.0
1280x960 60.0
800x600 60.0
640x480 60.0
1920x1080_60.00 60.0*
gebieter@GebieterVM:~$
Notice "VBOX". Since I'm using an Lubuntu 12.10 on a VirtualBox this is my graphics adapter instead of DVI0, VGA0 or something like that. Remember you computer's graphicadapter....you'll need it!
6.
xrandr --newmode "1920x1080_60.00" 173.00 1920 2048 2248 2576 1080 1083 1088 1120 -hsync +vsync
adds the new mode to my resolution-list. (Remember...that's what was next after Modeline on step 3...)
7. Here we go.
xrandr --verbose --addmode VBOX0 "1920x1080_60.00"
will do the rest. (Remember to replace VBOX0 by your adapter - see step 5)
Now you can choose your resolution from (L/K)Ubuntu's monitor settings.
But...er... after your next reboot everything's gone?
No worries, here's the solution:
8. Still in your shell type:
gksudo gedit /etc/X11/Xsession.d/45custom_xrandr-settings
Add all commands above to this file:
xrandr --newmode "1920x1080_60.00" 173.00 1920 2048 2248 2576 1080 1083 1088 1120 -hsync +vsync
xrandr --verbose --addmode VBOX0 "1920x1080_60.00"
xrandr --output VBOX0 --mode "1920x1080_60.00"
And save file.
9. Go to that folder by typing
cd /etc/X11/Xsession.d/
and add execution-rights to that file:
sudo chmod +x 45custom_xrandr-settings
Use "ls -all" to show up all your files in that folder with permissions to check your file is really executable.
10. Restart your computer! (Still in shell? use "sudo reboot").
Enjoy your new resolution after each startup ☺