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.00Use 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
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
superb working.thanks
It works for me!
Thanks man.
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?
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.
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.
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
Many many many thanks for this.
Thanks a lot dhaval
it works
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.
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.
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.
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.
Perhaps the resolution is not supported. You can check.
sudo apt-get install xresprobe
sudo ddcprobe
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.
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.
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 (0×114) 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″
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
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!
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
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.
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).
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
@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?
once you enter configuration in /etc/gdm/PreSession/Default
you need to reboot. after reboot select desired resolution from System–> Preferenses –> Display
It worked perfectly , thank you so much.
@James
Seems OK. Try Reboot.
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
Thank you for this guide, worked perfectly.
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
you need to use sudo or login as root
@Dhaval Thakar
Hello,
I can’t find PreSession folder!
Any ideas?
Thanks
Hei hei.
Thanks very much — that did the trick.
A lot of people are still messing with the xorg.
You saved me! I was looking all over the internet for an answer! Thanks man!
@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.
@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
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
You need to edit /etc/gdm/PreSession/Default
its there on post bottom.
Thank you so much!!!!
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″
Great! I had nothing better than 800×600 in Karmic. Now I have 1920×1080. Thank you ever so much!
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.
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.
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 ?
Once i run xrandr -newmode…
Nothing happen.
My display still on 1280×800 res.
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
Once your run xrandr –newmode……
are you able to view same resolution using xrandr?
thank you! before this my screen resolution only can go 800×600, but now… my screen can go to 1024×768…
thank you again…
I receive the following message after xrandr –output default –mode 1080x768_60.00
randr: 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
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? =)
Can’t quite get this to work, can you help further on this?
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