LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 12-31-2012, 10:16 AM   #1
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 2,911

Rep: Reputation: 45
xorg.conf: screen resolution.


Hi:

I want to have a resolution somewhere between 640x480 and 800x600. But, according to the man page of xorg.conf, the resolutions in the Screen section must satisfy certain requirements. If I specified a fixed horizontal and a fixed vertical frequency, then I could compute the resolution. But their are given as ranges in the Monitor section and do not want to touch them. Any ideas?


Slackware 14.0
 
Old 12-31-2012, 07:28 PM   #2
ljb643
Member
 
Registered: Nov 2003
Posts: 253

Rep: Reputation: Disabled
I think making up your own screen settings is kind of a "lost art". It was common with CRT monitors to do this, but LCD monitors have a native resolution and refresh rate, and don't work nearly as well in any other mode. If you really want to do this anyway, I suggest starting with this rather old file on your Slackware install: /usr/doc/Linux-HOWTOs/XFree86-Video-Timings-HOWTO

I'm not sure how much of it still applies, but it will give you an idea of what is involved in those timing values in the Mode lines of the Monitor configuration section.
 
Old 01-01-2013, 07:55 AM   #3
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 1,697

Rep: Reputation: 426Reputation: 426Reputation: 426Reputation: 426Reputation: 426
You should be able to look through the /var/log/Xorg.*.log files and see what is available.

The monitor you use will dictate sizes... and not necessarily by frequency. LCD monitors don't work that way. They have a native display (usually the largest they will do), then smaller ones where it is an even division of that size... outside a list of supported resolutions, they tend to display nothing (a black screen).

Mine has an odd (to me) way of doing a 800x600... It does it by creating a display of 800x600... using 1920x1024 resolution, then centering it. Is it a 800x600 ... well sort of. Doesn't fill the screen though - the pixels are the same size as that used for 1920x1024.

Last edited by jpollard; 01-01-2013 at 07:59 AM.
 
Old 01-01-2013, 11:00 AM   #4
Pearlseattle
Member
 
Registered: Aug 2007
Location: Switzerland
Distribution: Gentoo
Posts: 661

Rep: Reputation: 71
Example of an xorg.conf file used to set the resolution to 1920x1080 - (delete the stuff that does not apply to you and) modify the "Modes" line at the very bottom to change resolution to anything you want.
Keep in mind of what jpollard wrote and have a look at your Xorg.0.log to know which resolutions are natively supported after that your graphics card spoke with your monitor. Resolutions that are not listed are possible but 1) you'll have to set a modeline and 2) have usually to spend 3 to 4 hrs trying to convince your graphics card to use it (was always different in my case depending on the graphics card, cable (vga, dvi, hdmi) and monitor used.

Code:
Section "ServerLayout"
        Identifier     "X.org Configured"
        Screen      0  "Screen0" 0 0
        InputDevice    "Mouse1" "CorePointer"
        InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

Section "ServerFlags"
        Option "BlankTime" "20"
        Option  "AutoAddDevices"        "false"
EndSection

Section "Module"
        Load  "dbe"
        Load  "extmod"
        Load  "glx"
        Load  "record"
        Load  "freetype"
        Load  "type1"
        Load  "synaptics"
EndSection

Section "InputDevice"
        Identifier  "Keyboard0"
        Driver      "kbd"
        Option  "XkbLayout" "ch"
        Option  "XkbVariant" "de"
        Option  "XkbOptions" "terminate:ctrl_alt_bksp"
EndSection

Section "InputDevice"
        Identifier "Mouse1"
        Driver  "mouse"
        Option  "Protocol"      "IMPS/2"
        Option  "Device"        "/dev/input/mice" #Touchpad
        Option  "Buttons"       "5"
        Option  "ZAxisMapping" "4 5 6 7"
#NEXT LINES ARE FOR WHEN USING EVDEV AS DRIVER
#       Driver  "evdev"
#       Option  "Device"        "/dev/input/event3"
EndSection

Section "Monitor"
        Identifier   "Monitor0"
        VendorName   "Monitor Vendor"
        ModelName    "Monitor Model"
EndSection

Section "Device"
        Identifier "Card0"
        Driver  "nvidia"
        VendorName  "nVidia Corporation"
        BoardName   "Unknown Board"
        BusID       "PCI:1:0:0"
        Option  "RegistryDwords" "EnableBrightnessControl=1"
EndSection

Section "Extensions"
        Option      "Composite"   "enable"
EndSection

Section "Screen"
        Identifier "Screen0"
        Device     "Card0"
        Monitor    "Monitor0"
        DefaultDepth 24
        SubSection "Display"
                Viewport   0 0
                Depth     24
#               Modes   "1024x768"
#               Modes   "1440x900"
#               Modes   "1680x1050"
                Modes   "1920x1080"
        EndSubSection
EndSection
 
Old 01-01-2013, 11:31 AM   #5
dugan
Senior Member
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 4,238

Rep: Reputation: 1299Reputation: 1299Reputation: 1299Reputation: 1299Reputation: 1299Reputation: 1299Reputation: 1299Reputation: 1299Reputation: 1299
You can use xvidtune to find the settings.
 
Old 01-01-2013, 01:54 PM   #6
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 2,911

Original Poster
Rep: Reputation: 45
Thank you for your reply, ljb643. My monitor is a CRT, thanks God. I've just found Rev.3 of the same HOWTO you mentioned, which I had from a very old version of Slackware. The reason behind my post is the tiny fonts used nowadays in GUIs (and in the text console too as I could see when installing slack 14), which render them almost unintelligible for even people with normal vision. So, my usual remedy has been to diminish the resolution and cope with a virtual screen.

By the way, is there a utility that queries the monitor and dumps its data, such as dot clock frequency, max horizontal scan frequency et cetera?

EDIT: thank you guys for your posts.
@dugan: xvidtune gets a 'Video modes are not settable on this chip' message. My video adapter is a cheep one.

Last edited by stf92; 01-01-2013 at 02:12 PM.
 
Old 01-02-2013, 08:08 AM   #7
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 1,697

Rep: Reputation: 426Reputation: 426Reputation: 426Reputation: 426Reputation: 426
Most CRTs don't have EDID data available. It has to be taken from the manual associated with the CRT.

The only dot frequency available otherwise is taken from the video card. I believe what the Xserver tries to do is cross match the EDID data against the video card data and come up with the appropriate resolutions. When that fails it falls back to a default value such as 640x480 or VGA (depending on what the video card supports).

When the EDID data IS available, the /var/log/Xorg... log files will list what modes are available.
 
1 members found this post helpful.
Old 01-02-2013, 11:34 AM   #8
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 2,911

Original Poster
Rep: Reputation: 45
This monitor is Philips 107ESI (maybe 107ES1) although Xorg.0.log lists it as 107E5. It has EDID data available (I lack the manual). From Xorg.0.log:
Code:
 Supported detailed timing:
[    63.352] (II) VESA(0): clock: 25.2 MHz   Image Size:  306 x 230 mm
[    63.352] (II) VESA(0): h_active: 640  h_sync: 656  h_sync_end 752 h_blank_end 800 h_border: 0
[    63.352] (II) VESA(0): v_active: 350  v_sync: 387  v_sync_end 389 v_blanking: 449 v_border: 0
[    63.352] (II) VESA(0): Serial No:  BZ  314405
[    63.352] (II) VESA(0): Monitor name: PHILIPS 107E5
[    63.352] (II) VESA(0): Ranges: V min: 50 V max: 160 Hz, H min: 30 H max: 71 kHz, PixClock max 115 MHz
I guess the numbers given after 'Monitor name' are monitor data whereas those given before are the card data. However, assuming both 'clock' and 'PixClock' are video dot frequencies, there is a big difference between 25.2 and 115. Perhaps the monitor is much better than the video card despite the fact that the former is much older. Thanks for you post.
 
Old 01-03-2013, 06:28 AM   #9
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 1,697

Rep: Reputation: 426Reputation: 426Reputation: 426Reputation: 426Reputation: 426
It's been a long time since I've seen a single clock value for a video card that low. I have an old (now) FireGL V3600 that reports 148.5 MHz...
 
Old 01-03-2013, 03:15 PM   #10
philanc
Member
 
Registered: Jan 2011
Posts: 58

Rep: Reputation: 21
Quote:
Originally Posted by stf92 View Post
The reason behind my post is the tiny fonts used nowadays in GUIs (...)
If this is your objective, a different approach might be to play with the dpi parameter:

for example, the following starts X on my PC with text in an apparently large font
startx -- -dpi 150

HTH,

Phil
 
1 members found this post helpful.
Old 01-03-2013, 03:47 PM   #11
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 2,911

Original Poster
Rep: Reputation: 45
Very helpful of you. Thanks.
 
Old 01-05-2013, 08:53 PM   #12
Poprocks
Member
 
Registered: Sep 2003
Location: Toronto, Canada
Distribution: Slackware
Posts: 194

Rep: Reputation: 26
Does xrandr not work for you?
 
1 members found this post helpful.
Old 01-06-2013, 03:47 AM   #13
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 2,911

Original Poster
Rep: Reputation: 45
I'll give it a try, thank you.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Changing GUI screen resolution in /etc/XOrg.config (aka xorg.conf) stf92 Linux - General 0 07-10-2012 03:48 AM
Screen Resolution. with SiS graphics. Cant get xorg.conf to help... frammy7 Linux - Hardware 7 09-01-2009 07:05 AM
xorg.conf screen resolution overridden by XFCE? songangel Slackware 5 04-03-2009 12:05 PM
Xorg.conf, custom screen resolution tntcoder Linux - Newbie 3 05-12-2006 10:19 AM


All times are GMT -5. The time now is 11:33 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration