Change Ubuntu 9.10 Resolution

By default Ubuntu 9.10 supports 1024×768 resolution, which is not enough for me. I needed to increase it to 1240×1024. To achive my desired resolution I run through few commands. Its easy, take a look.
Here I am trying to get 1240×1024 resolution, if you are trying to achive any other change it with 1240×1024

Use xrandr to find current mode used & output name.
e.g here VGA1 is used, it is easy to use current output name.

xrandr
Screen 0: minimum 320 x 200, current 1024 x 768, maximum 8192 x 8192
VGA1 connected 1024x768+0+0 (normal left inverted right x axis y axis) 310mm x 230mm
   1024x768       85.0*+   75.1
   800x600        75.0
   640x480        75.0     60.0
   720x400        70.1

Run following command to find modeline details for resolution 1240×1024. Modeline is required for xrandr.

cvt 1240 1024
# 1240x1024 59.93 Hz (CVT) hsync: 63.71 kHz; pclk: 105.50 MHz
Modeline "1240x1024_60.00"  105.50  1240 1320 1448 1656  1024 1027 1037 1063 -hsync +vsync

Use modeline config with xrandr to add resolution mode.

xrandr --newmode "1240x1024_60.00"  105.50  1240 1320 1448 1656  1024 1027 1037 1063 -hsync +vsync

e.g output of command xrandr with new resolution

 xrandr
Screen 0: minimum 320 x 200, current 1024 x 768, maximum 8192 x 8192
VGA1 connected 1024x768+0+0 (normal left inverted right x axis y axis) 310mm x 230mm
   1024x768       85.0*+   75.1
   800x600        75.0
   640x480        75.0     60.0
   720x400        70.1
  1240x1024_60.00 (0x102)  105.5MHz
        h: width  1240 start 1320 end 1448 total 1656 skew    0 clock   63.7KHz
        v: height 1024 start 1027 end 1037 total 1063           clock   59

Use following command to add new mode

xrandr --addmode VGA1 1240x1024_60.00

Use following to change output imidiately Or use System–> Preferenses –> Display

xrandr --output VGA1 --mode 1240x1024_60.00

Since above command is not permanent sollution to add new resolution, you need to edit /etc/gdm/PreSession/Default
Enter followings at the end of file /etc/gdm/PreSession/Default

xrandr --newmode "1240x1024_60.00"  105.50  1240 1320 1448 1656  1024 1027 1037 1063 -hsync +vsync
xrandr --addmode VGA1 1240x1024_60.00

After reboot this will enable one more resolution mode in System–> Preferenses –> Display
all you need to do is to select desired mode once.

if you wish to remove any mode

xrandr --rmmode 1240x1024_60.00

Refer

if you find any missing point in here, please let us know in comment section or tweet us at @linuxreaders. To get more articles like this, subscribe to our RSS feeds / Mails.
Read 248 articles by

55 Comments

  1. enea says:

    thank you man!!! it works in the virtualbox as well ! YEPP I was having problem event with the guest addidtions installed. and now boom ! fuc%yeah

  2. bento says:

    superb working.thanks

  3. Maxi says:

    It works for me! Thanks man.

  4. Jake says:

    PLEASE HELP! All this works until I have to edit the /etc/gdm/PreSession/Default file because that file does not exist on my system. I am running 10.04 and this was posted as a solution to my problem. It totally works but upon reboot I lose the setting and I can’t save it. I need 1280×1024 to work. Any ideas?

    • Dhaval Thakar says:

      If you are using ubuntu 10.04 there should be /etc/gdm/PreSession/Default. its there in default installation. otherwise you can try running it from systems–> preferences –> startup applications. create new startup application with xrandr Or create bash file and link it here. hope this helps.

  5. Andrej says:

    Got same problem with max resolution 800×600. If i try set higher resolution manually i got “Configure crtc 0 failed” or “The selected configuration for display could not be applied could set the configuration for CRTC 288″ Before resolution was ok, but at some point got broken. Most likely this happened after i ran live-cd on this computer(didn’t change anything on host system), and maybe pressed “Auto” button on my monitor… Have Ubuntu 9.10, monitor SyncMaster 215tw(up to 1680×1050); video-card integrated Nvidia GeForce6 (ddcprobe shows MCP61-80 max 1280x1024x16m) Didn’t figured out the solution yet, hope someone else can.

  6. balaji says:

    am getting crtc 98 error… anyone pls help me..now my resolution is 800×600.. i need atleast 1024×768.. i used 1024×768 while using xp.. reply me at starbala2008@gmail.com

  7. Ron says:

    Many many many thanks for this.

  8. Manoj Mathew K says:

    Thanks a lot dhaval it works

  9. Roberto says:

    I tried this once and it worked perfectly except I didn’t edit the Default file the way I should’ve so I had to restart. When I tried to go through it a second time, I got a BadName error and I’ve tried a few times to reenter it properly but it didn’t fix it. Here’s the error code if it helps: roberto@roberto-laptop:~$ xrandr –newmode “1024x768_60.00″ 63.50 1024 1072 1176 1328 768 771 775 798 -hsync +vsync X Error of failed request: BadName (named color or font does not exist) Major opcode of failed request: 149 (RANDR) Minor opcode of failed request: 16 (RRCreateMode) Serial number of failed request: 31 Current serial number in output stream: 31 Sorry if the solution is extremely simple, I installed Ubuntu for the first time today.

    • Dhaval Thakar says:

      this err is due to new resolution is already there in xrandr. now all you need to do is to edit default file and append xrandr –output……. this should fix. and, welcome to linux / ubuntu family.

  10. Wild! says:

    Me again… Actually I just found a simpler solution when looking at an old xorg.conf file, add to the Section “Device” this line: Option “UseEdidFreqs” “True” Hope this works for everyone else.

  11. Wild! says:

    Fix to the crtc error: I just had this happen to me on an older computer after installing the .71 nvidia driver for a TNT RIVA card in Debian Lenny. Prior to that (and the creation of the xorg.conf file in the process, I’ve never had a problem with resolution on this computer. Anyway, go to /var/log/Xorg.0.log and see if you see this: “1024×768″ (hsync out of range) and: (WW) NVIDIA(0): Failure reading EDID parameters for display device CRT-0 (II) NVIDIA(0): Monitor0: Using hsync range of 31.50-48.00 kHz and cvt 1024 768 reports this: # 1024×768 59.92 Hz (CVT 0.79M3) hsync: 47.82 kHz; pclk: 63.50 MHz then add: HorizSync 31.50-48.00 (or of course whatever makes sense given what your log says) add under the Section “Monitor” part of your xorg.conf. Hope this helps.

  12. helpdeskdan says:

    Perhaps the resolution is not supported. You can check. sudo apt-get install xresprobe sudo ddcprobe

  13. Dhaval Thakar says:

    Hi All, This is for those who are unable to get desired resolution / are getting error to configure higher resolution with the help of this post. I have tried to increase resolution on very few hardware, so far have not faced any error, this is one of the prime reason why I am unable to reply many comments. I have no answer for the CRTC error. I insist readers to share fix if anyone is able to solve this error.

  14. Casper says:

    This is the ONLY post that I could find that works for Xubuntu 9.10. Thanks a million for this GEM among millions of pages of useless advice.

  15. Tapan says:

    I tried this again It has some problem with Output VGA1. Here is the run ………. tapan@tapan-desktop:~$ xrandr Screen 0: minimum 640 x 480, current 800 x 600, maximum 800 x 600 default connected 800×600+0+0 0mm x 0mm 800×600 61.0* 640×480 60.0 tapan@tapan-desktop:~$ cvt 1240 1024 # 1240×1024 59.93 Hz (CVT) hsync: 63.71 kHz; pclk: 105.50 MHz Modeline “1240x1024_60.00″ 105.50 1240 1320 1448 1656 1024 1027 1037 1063 -hsync +vsync tapan@tapan-desktop:~$ xrandr –newmode “1240x1024_60.00″ 105.50 1240 1320 1448 1656 1024 1027 1037 1063 -hsync +vsync tapan@tapan-desktop:~$ xrandr Screen 0: minimum 640 x 480, current 800 x 600, maximum 800 x 600 default connected 800×600+0+0 0mm x 0mm 800×600 61.0* 640×480 60.0 1240x1024_60.00 (0x114) 105.5MHz h: width 1240 start 1320 end 1448 total 1656 skew 0 clock 63.7KHz v: height 1024 start 1027 end 1037 total 1063 clock 59.9Hz tapan@tapan-desktop:~$ xrandr –addmode VGA1 1240x1024_60.00 xrandr: cannot find output “VGA1″

  16. Tapan says:

    Hi, Yes, by default Ubuntu 9.10 supports 1024×768 resolution, but this is not happening in my desktop system, the max resolution here is 600*800. I don’t know the command line installation. but all command provided on the web have been tried atleast once. I have downloaded the 9.10 then copied image in CD then installed this version. is it possible to report this problem some how as bug or something. Please anyone help……. Thanks

  17. Mark says:

    I have a similar problem to the last couple of posts. mark@mark-desktop:~$ xrandr –output default –mode 1680x1050_60.00 xrandr: Configure crtc 0 failed Biggest difference I think is that I am using a LCD WXD224 Widescreen Monitor. The monitor works perfect on a different machine running Ubuntu 9.10 but this machine is running the U8668Grand Mother Board with integrated S3 ProSavage8 on board video. I am starting to think the video card is not capable of 1680 x 1050 however it is currently running at 1400 x 1050 so I am not sure if it is the video card or just something not being recognized on this machine. Any help would be greatly appreciated!

  18. Taso5 says:

    i got a similar problem with Lazaro when i reboot and and go to system/preference/display select the 1680 * 1050 it says that the selected configuration for display could not be applied could not set the configuration for crtc 288

  19. Larry says:

    Excellent. I actually reinstalled 9.04 jus to get my resolution back, and, thinking I did something wrong in upgrading to 9.10, I ‘carefully’ upgraded again. Same stinking result, only low resolution options available. Your xrandr instructions fixed it, permanently. Now, I can use my reading glasses again to see the screen.

  20. Genko says:

    I made the xrandr stuff and then I finally have resolutions larger than 800×600 (that’s what i had by the default). But when I try to change the resolution (in display window) it gives me “could not set configuration for CRTC 288″ (I have CRT monitor).

  21. Lazaro says:

    I did everything you said, and i didn’t have problems at all, but when i’m tryong to excute the command xrand –output default –mode 1024x768_60.00 it says xrandr: screen cannot be larger than 800×600 (desired size 1024×768) Any sugestions? Thanks in advance! Lázaro

  22. Emmanuel says:

    @Dhaval Thakar thanks for this. everything worked, was able to save the Default file. but still goes back to old resolution after reboot. any ideas?

    • Dhaval Thakar says:

      once you enter configuration in /etc/gdm/PreSession/Default you need to reboot. after reboot select desired resolution from System–> Preferenses –> Display

  23. James says:

    It worked perfectly , thank you so much.

  24. Dhaval Thakar says:

    @James Seems OK. Try Reboot.

  25. James says:

    Hey again, yeah you were right about having to use the sudo, and I edited it and saved it , but the new resolution isn’t on the settings. Have I done something wrong ? Here is my ‘default’ : #!/bin/sh # # Note that any setup should come before the sessreg command as # that must be ‘exec’ed for the pid to be correct (sessreg uses the parent # pid) # # Note that output goes into the .xsession-errors file for easy debugging # PATH=”/usr/bin:$PATH:/bin:/usr/bin” if [ -x '/usr/bin/xsplash' ]; then /usr/bin/xsplash –daemon fi initctl -q emit desktop-session-start DISPLAY_MANAGER=gdm xrandr –newmode “1440x900_60.00″ 106.50 1440 1528 1672 1904 900 903 909 934 -hsync +vsync xrandr –addmode VGA1 1440x900_60.00 If you could help, that’d be great. Thanks

  26. Josh says:

    Thank you for this guide, worked perfectly.

  27. James says:

    Hey, thanks for a great guide , everything worked perfectly except the saving part, the Presession/default is read only and I cannot save it after I edit it. Any ideas ? Thank you

  28. Akram says:

    @Dhaval Thakar Hello, I can’t find PreSession folder! Any ideas? Thanks

  29. Andy says:

    Hei hei. Thanks very much — that did the trick. A lot of people are still messing with the xorg. :(

  30. kitsonas says:

    You saved me! I was looking all over the internet for an answer! Thanks man!

  31. frabrne says:

    @Paul maybe is your vga card not VGA1 then something other , i have also VGA-0 , this happens when you have onboard vga, also can be LVDS1 then you must type xrandr –addmode LVDS1 (or VGA-0) 1368×768_60.00 . type xrandr then you can see how is your card recognized.

  32. frabrne says:

    @Paul maybe is your vga card not VGA1 then something other , i have also VGA-0 , this happens when you have onboard vga. type xrandr then you can see how is your card recognized

  33. brain says:

    Great! it is work. but it’s not save. after restart old resolution active back. how to save resolution configure. sorry for my english. i hope you’re understanding

  34. DJordjeB says:

    Thank you so much!!!!

  35. Paul says:

    I’ve followed it all but can’t seem to find my monitors name I believe it’s referencing: paul@3d:~$ xrandr –addmode VGA1 1368x768_60.00 xrandr: cannot find output “VGA1″

  36. Hakan Nilsson says:

    Great! I had nothing better than 800×600 in Karmic. Now I have 1920×1080. Thank you ever so much!

  37. frabrne says:

    thanks million times, did you have some magic like this to move screen horizontally ? because i don’t see my left side , and i wan’t change this in monitor setup because i use one monitor for two desktop computers.

  38. jip99 says:

    Dhaval Thakar : Once your run xrandr –newmode…… are you able to view same resolution using xrandr?

    moehfi : I can’t get this way work for me. My screen res. was 1280×800 and i want to change it to 1440×900 This is my step: # xrandr Output : Screen 0: minimum 320 x 200, current 1280 x 800, maximum 8192 x 8192 VGA1 disconnected (normal left inverted right x axis y axis) LVDS1 connected 1280×800+0+0 (normal left inverted right x axis y axis) 304mm x 190mm 1280×800 60.0*+ 1024×768 60.0 800×600 60.3 640×480 59.9 TV1 disconnected (normal left inverted right x axis y axis) # cvt 1440 900 Output: # 1440×900 59.89 Hz (CVT 1.30MA) hsync: 55.93 kHz; pclk: 106.50 MHz Modeline “1440×900_60.00″ 106.50 1440 1528 1672 1904 900 903 909 934 -hsync +vsync # xrandr –newmode “1440×900_60.00″ 106.50 1440 1528 1672 1904 900 903 909 934 -hsync +vsync # xrandr –addmode LVDS1 1440×900_60.00 Output : X Error of failed request: BadMatch (invalid parameter attributes) Major opcode of failed request: 149 (RANDR) Minor opcode of failed request: 18 (RRAddOutputMode) Serial number of failed request: 25 Current serial number in output stream: 26

    I have essentially the same problem. I am trying to set a 1024×768 resolution on my netbook, which has a native maximum resolution of 1024×576. Following the steps through –newmode, seems to work fine, but when I give the xrandr –addmode command I get the same error, as follows: jip@jip-laptop:~$ xrandr Screen 0: minimum 320 x 200, current 1024 x 576, maximum 4096 x 4096 VGA1 disconnected (normal left inverted right x axis y axis) LVDS1 connected 1024×576+0+0 (normal left inverted right x axis y axis) 223mm x 125mm 1024×576 60.0*+ 640×480 85.0 72.8 75.0 59.9 720×400 85.0 640×400 85.1 640×350 85.1 1024x768_60.00 (0x11e) 63.5MHz h: width 1024 start 1072 end 1176 total 1328 skew 0 clock 47.8KHz v: height 768 start 771 end 775 total 798 clock 59.9Hz jip@jip-laptop:~$ xrandr –addmode LVDS1 1024x768_60.00 X Error of failed request: BadMatch (invalid parameter attributes) Major opcode of failed request: 149 (RANDR) Minor opcode of failed request: 18 (RRAddOutputMode) Serial number of failed request: 23 Current serial number in output stream: 24 Any suggestions would be appreciated.

  39. DAS says:

    If there is no VGA what I’ve to do ? I just have only Screen 0 I’ve been tried, xrandr –addmode “Screen 0″ 1024x768_60.00 But it doesn’t work.. Can you help me ?

  40. moehfi says:

    Once i run xrandr -newmode… Nothing happen. My display still on 1280×800 res.

  41. moehfi says:

    I can’t get this way work for me. My screen res. was 1280×800 and i want to change it to 1440×900 This is my step: # xrandr Output : Screen 0: minimum 320 x 200, current 1280 x 800, maximum 8192 x 8192 VGA1 disconnected (normal left inverted right x axis y axis) LVDS1 connected 1280×800+0+0 (normal left inverted right x axis y axis) 304mm x 190mm 1280×800 60.0*+ 1024×768 60.0 800×600 60.3 640×480 59.9 TV1 disconnected (normal left inverted right x axis y axis) # cvt 1440 900 Output: # 1440×900 59.89 Hz (CVT 1.30MA) hsync: 55.93 kHz; pclk: 106.50 MHz Modeline “1440x900_60.00″ 106.50 1440 1528 1672 1904 900 903 909 934 -hsync +vsync # xrandr –newmode “1440x900_60.00″ 106.50 1440 1528 1672 1904 900 903 909 934 -hsync +vsync # xrandr –addmode LVDS1 1440x900_60.00 Output : X Error of failed request: BadMatch (invalid parameter attributes) Major opcode of failed request: 149 (RANDR) Minor opcode of failed request: 18 (RRAddOutputMode) Serial number of failed request: 25 Current serial number in output stream: 26

  42. dncgroup says:

    thank you! before this my screen resolution only can go 800×600, but now… my screen can go to 1024×768… thank you again…

  43. Marc says:

    I receive the following message after xrandr –output default –mode 1080x768_60.00 :xrandr: screen cannot be larger than 800×600 (desired size 1080×768)I try to connect an LCD television screen, which worked well with windows ;-(Any idea where it goes wrong ?Thanx

  44. altered.ego says:

    Thank you! Thank you! Thank you! Finally I don’t have to set the right screen resolution every time I log in!BTW, did I say thank you already? =)

  45. Ace says:

    Can’t quite get this to work, can you help further on this?

  46. dhaval thakar says:

    Sure. Make sure you got proper output name using xrandr , here I have mentioned VGA1 Use cvt to generate desired resolution’s modline. If you have done this, still not working mention all the steps you have used with the output. you can also mail me on dpthakar@gmail.com

  • HP Pavillion dv1000 Refurbishment Log « Summer and winter and springtime and harvest says:

    [...] the instructions here to change the resolution using the xrandr utility. And thus the first course of business is easily [...]

  • Adding new screen resolutions « Summer and winter and springtime and harvest says:

    [...] the instructions here to change the resolution using the xrandr utility. And thus the first course of business is [...]

  • 11 Best Articles for you -LinuxReaders. | LinuxReaders says:

    [...] Change Ubuntu 9.10 Resolution By default Ubuntu 9.10 supports 1024×768 resolution, which is not enough for me. I needed to [...]

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Trending Posts