Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Main Support Categories > General Help
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

General Help
All your general support questions for Ubuntu, Kubuntu, Edubuntu and Xubuntu.

 
Thread Tools Display Modes
Old May 21st, 2009   #1
haris.bogdanovic
First Cup of Ubuntu
 
Join Date: May 2009
Beans: 5
xrandr custom resolution

Hi.

I would like to have a 960x600@60 resolution on my Ubuntu 9.04, Fujistu-Siemens Esprimo v5535 with sis mirage 3 video card.
Is that possible on my video card and how to add custom resolutions in general (with xrandr or some other way) ?
Where have all configuration lines from xorg.conf gone in 9.04 ?
I could set resolutions in xorg.conf but I think that's not the way in 9.04.
How would <modeline> parameter have to look for 960x600@60 ?

Thanks
Haris
haris.bogdanovic is offline   Reply With Quote
Old May 21st, 2009   #2
CatKiller
Ubuntu addict and loving it
 
CatKiller's Avatar
 
Join Date: Jan 2006
Location: Sunny Southend-on-Sea
Beans: 4,346
Ubuntu 9.04 Jaunty Jackalope
Re: xrandr custom resolution

Isn't 1280×800 the native resolution for that screen? It's likely to look bad at a non-native resolution.

Quote:
Originally Posted by haris.bogdanovic View Post
How would <modeline> parameter have to look for 960x600@60 ?
Modeline "960x600@60" 45.28 960 992 1160 1192 600 612 618 631

according to this page.
__________________
Quote:
None but ourselves can free our minds
CatKiller is offline   Reply With Quote
Old May 21st, 2009   #3
blackened
Fresh Brewed Ubuntu
 
blackened's Avatar
 
Join Date: Jul 2006
Location: Oklahoma, US
Beans: 1,333
Ubuntu 9.10 Karmic Koala
Re: xrandr custom resolution

Quote:
Originally Posted by CatKiller View Post
Isn't 1280×800 the native resolution for that screen? It's likely to look bad at a non-native resolution...
That resolution is of the same aspect ratio, so it shouldn't look too bad.

First you'll need to generate a modeline for that resolution:

Code:
gtf 960 600 60
which should output something like

Code:
  # 960x600 @ 60.00 Hz (GTF) hsync: 37.32 kHz; pclk: 45.98 MHz
  Modeline "960x600_60.00"  45.98  960 1000 1096 1232  600 601 604 622  -HSync +Vsync
then create a new resolution mode that uses that modeline (the part in bold, yours might be different so make sure you run the gtf command first):

Code:
xrandr --newmode "960x600_60.00"  45.98  960 1000 1096 1232  600 601 604 622  -HSync +Vsync
now attach the new mode to the appropriate interface:

Code:
xrandr --addmode LVDS 960x600_60.00
then switch to it using

Code:
xrandr --output LVDS --mode 960x600_60.00

You can script all your resolution changes depending on the active interface, but that's a little beyond the scope of the question. Here is a page with some info on persistence in xrandr changes: https://wiki.ubuntu.com/X/Config/Resolution.

Good luck
__________________
Sony VGN-NR385E C2D@1.83Ghz,200Gb HD,2Gb RAM-Karmic
Asus eeePC 900 Celeron@900Mhz,16Gb SSD,2Gb RAM-Karmic UNR/nlited XP
Compaq Deskpro P3@966Mhz,80Gb&320Gb HD,512Mb RAM-Intrepid Server
blackened is offline   Reply With Quote
Old May 21st, 2009   #4
haris.bogdanovic
First Cup of Ubuntu
 
Join Date: May 2009
Beans: 5
Re: xrandr custom resolution

I got this output:

xrandr: Configure crtc 0 failed

I can only set 640x480 and 800x600 which where available after Ubuntu install.
In Windows XP I can set 640x480, 800x600, 1024x768 and 1280x800 with original driver and with default Microsoft driver 1280x768 added to original resolutrions.
I tried get-edid but nothing came up.
I also tried to add my 800x600 resolution from gtf result but Ubuntu switched to default 800x600 which it set after install.
For any custom resolution I get the same message.

This is what I get with xrandr --verbose:

800x600 (0x102) 29.3MHz *current
h: width 800 start 0 end 0 total 800 skew 0 clock 36.6KHz
v: height 600 start 0 end 0 total 600 clock 61.0Hz
640x480 (0x103) 18.4MHz
h: width 640 start 0 end 0 total 640 skew 0 clock 28.8KHz
v: height 480 start 0 end 0 total 480 clock 60.0Hz

960x600 (0x11d) 46.0MHz -HSync +VSync
h: width 960 start 1000 end 1096 total 1232 skew 0 clock 37.3KHz
v: height 600 start 601 end 604 total 622 clock 60.0Hz

First two resolutions were created by Ubuntu, and third by me.
Can I get zeros at start and end columns because I noticed that every resolution I create has some number for start and end and they do not work. Those two which have zeros for start and end work.

I don't have LVDS output, only "default" output.

Last edited by haris.bogdanovic; May 21st, 2009 at 04:25 PM..
haris.bogdanovic is offline   Reply With Quote
Old May 21st, 2009   #5
CatKiller
Ubuntu addict and loving it
 
CatKiller's Avatar
 
Join Date: Jan 2006
Location: Sunny Southend-on-Sea
Beans: 4,346
Ubuntu 9.04 Jaunty Jackalope
Re: xrandr custom resolution

Quote:
Originally Posted by blackened View Post
That resolution is of the same aspect ratio, so it shouldn't look too bad.
It's not really a question of aspect ratio with an LCD. The pixel size is fixed in an LCD screen, so if you run a non-native resolution the pixels in your image don't line up with the pixels in the screen, and everything ends up looking blurry and rubbish. It's true that if the aspect ration was wrong too it would look even worse, but it's bad enough just running non-native.

To the OP:

Normally, resolution problems are caused by one of the monitor, the graphics card, or the graphics driver not passing the EDID information to X that lets it automatically set the correct refresh rate, and so it defaults to really low values that won't damage any monitors. You can manually set the values for your monitor by putting the VertRefresh and HorizSync ranges in your xorg.conf. You should be able to get these numbers from the manual or specifications for your monitor. These values go in the "Monitor" Section of xorg.conf.

You can edit xorg.conf with
Code:
sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf.backup
gksudo gedit /etc/X11/xorg.conf
Code:
Section "Monitor"
        Identifier      "Configured Monitor"
        HorizSync       aa-bb
        VertRefresh     cc-dd
EndSection
You'll need to replace aa-dd with the values for your monitor.
__________________
Quote:
None but ourselves can free our minds
CatKiller is offline   Reply With Quote
Old May 22nd, 2009   #6
blackened
Fresh Brewed Ubuntu
 
blackened's Avatar
 
Join Date: Jul 2006
Location: Oklahoma, US
Beans: 1,333
Ubuntu 9.10 Karmic Koala
Re: xrandr custom resolution

Quote:
Originally Posted by CatKiller View Post
It's not really a question of aspect ratio with an LCD. The pixel size is fixed in an LCD screen, so if you run a non-native resolution the pixels in your image don't line up with the pixels in the screen, and everything ends up looking blurry and rubbish...
Guess I never really thought of it that way, but it makes sense. Thanks for the info.

I'll bet that would wreak sheer hell on subpixel font rendering as well.
__________________
Sony VGN-NR385E C2D@1.83Ghz,200Gb HD,2Gb RAM-Karmic
Asus eeePC 900 Celeron@900Mhz,16Gb SSD,2Gb RAM-Karmic UNR/nlited XP
Compaq Deskpro P3@966Mhz,80Gb&320Gb HD,512Mb RAM-Intrepid Server
blackened is offline   Reply With Quote
Old May 22nd, 2009   #7
haris.bogdanovic
First Cup of Ubuntu
 
Join Date: May 2009
Beans: 5
Re: xrandr custom resolution

The only reason I would like to have 960x600 reslution is because I hjave a 16:10 screen and the only resolution that's available is 1280x800, that is to small for me.
I can increase dpi but web pages don't look as they should and I'd like to make web content.
Any 16:10 resolution around 960x600 would be fine.
I guess I will have to learn to calculate modeline by hand because obviously calculators on some web pages don't give me correct results, as well as gtf in command line.

And changing xorg.conf is, I guess, not the way in 9.04 because it is practically empty on install.
By the way, where are all configuration options gone from xorg.conf in 9.04 ?

Last edited by haris.bogdanovic; May 22nd, 2009 at 07:39 AM..
haris.bogdanovic is offline   Reply With Quote
Old May 22nd, 2009   #8
CatKiller
Ubuntu addict and loving it
 
CatKiller's Avatar
 
Join Date: Jan 2006
Location: Sunny Southend-on-Sea
Beans: 4,346
Ubuntu 9.04 Jaunty Jackalope
Re: xrandr custom resolution

Quote:
Originally Posted by haris.bogdanovic View Post
I can increase dpi but already broken web pages don't look as they should
T;FTFY

Good web designers know that their users will be viewing the site at any number of resolutions and make their sites scale accordingly. People don't all use 640×480 any more.

If the writing's small for you, increase the font size. It's easy enough to do it for the whole system. You'll have a much better experience than running your monitor in blurry mode.
__________________
Quote:
None but ourselves can free our minds
CatKiller is offline   Reply With Quote
Old May 22nd, 2009   #9
haris.bogdanovic
First Cup of Ubuntu
 
Join Date: May 2009
Beans: 5
Re: xrandr custom resolution

Nobody said that 960x600 or any other smaller 16:10 resolution is blurry.
I didn't succeed to display any of these resolutionso I don't know how they look.
I was calculatinfg how many pixels could my monitor display:
Lowest common deominator of 640, 800 and 1280 is 6400 and 6400/960 is not a whole number so I guess 960x600 would be blurry but there are other smaller 16:10 resolutions and I didn'T even get 800x600 to work (with modeline that calculator on web or gtf created) so as I said I will have to learn to calculate modeline by hand to get even 800x600 to work.
I know that users see web pages at many resolutions but they all use 96 dpi, standard font size and resolution which has the same aspect ratio as monitor.

Last edited by haris.bogdanovic; May 22nd, 2009 at 05:26 PM..
haris.bogdanovic is offline   Reply With Quote
Old May 22nd, 2009   #10
CatKiller
Ubuntu addict and loving it
 
CatKiller's Avatar
 
Join Date: Jan 2006
Location: Sunny Southend-on-Sea
Beans: 4,346
Ubuntu 9.04 Jaunty Jackalope
Re: xrandr custom resolution

Quote:
Originally Posted by haris.bogdanovic View Post
Nobody said that 960x600 or any other smaller 16:10 resolution is blurry.
I did. A non-native resolution on an LCD monitor will be blurry. Actually, I tell a lie; 640×400 & 320×200 would probably be fine. Maybe it wouldn't be a problem for you, but it would definitely drive me nuts.

Quote:
I know that users see web pages at many resolutions but they all use 96 dpi, standard font size and resolution which has the same aspect ratio as monitor.
Sure, the resolution would have the same aspect ratio as the monitor. Anything else would just be crazy.

But they certainly don't all use the same font size or DPI. There are over a billion Internet users in the world using all sorts of devices to connect, including netbooks and mobile phones. You need to broaden your horizons when it comes to web development.
__________________
Quote:
None but ourselves can free our minds
CatKiller is offline   Reply With Quote

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 08:28 AM.


vBulletin ©2000 - 2010, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. bilberry