Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
optimizing xorg.conf
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
caljoe
n00b
n00b


Joined: 07 Aug 2004
Posts: 59

PostPosted: Wed Aug 18, 2004 3:52 pm    Post subject: optimizing xorg.conf Reply with quote

Hi!

I'm running xorg with a nvidia driver on a toshiba laptop. Nvidia is loaded as module into the kernel. It takes about 6s to start xfce4. Do you think it's too much?

I tried to play around with the xorg.conf file but that did not really speeded things up. Besides, I don't understand what I'm doing... :)

How could I optimize this config file? Up to now, there is a lot of "Modelines" commands that I copied from a knoppix box, but I don't think they are used at start up.

Should I use the "UseEdidFreqs" Option? The log file says it cannot read the frequencies...

How can I find the "real" values of hsynv and vrefresh? The default values (48kHz and 60Hz) seem to work all right but what I have in my knoppix-config file is broader than that.

thanks for any advide,

joe -
Back to top
View user's profile Send private message
El_Presidente_Pufferfish
Veteran
Veteran


Joined: 11 Jul 2002
Posts: 1179
Location: Seattle

PostPosted: Wed Aug 18, 2004 3:55 pm    Post subject: Re: optimizing xorg.conf Reply with quote

caljoe wrote:
How can I find the "real" values of hsynv and vrefresh?


Google your monitor model, i suppose
Back to top
View user's profile Send private message
iakie
n00b
n00b


Joined: 07 Jul 2004
Posts: 23

PostPosted: Wed Aug 18, 2004 6:54 pm    Post subject: Reply with quote

Check your xorg log under /var/log/ I think nvidia driver will attempt various configuration at start up, if u don't specify H/V. and it will set to optimum. my log gave me a bunch of configure. the only problem is that i don't know which one is H, and which one is V. (in fact, i think there was 3 3 different values. that is, u have to pick 2 number out 3, then figure out which one is which)
Back to top
View user's profile Send private message
headache
Apprentice
Apprentice


Joined: 26 May 2004
Posts: 226

PostPosted: Wed Aug 18, 2004 10:18 pm    Post subject: Re: optimizing xorg.conf Reply with quote

caljoe wrote:
Hi!

I'm running xorg with a nvidia driver on a toshiba laptop. Nvidia is loaded as module into the kernel. It takes about 6s to start xfce4. Do you think it's too much?

Depends on your hardware...

Do you think 6 seconds is too long?
_________________
"I'd rather have a President who does it to a woman than one who does it to his country" -- Shirley Maclaine
Liberal (adj.): Free from bigotry; open to progress; tolerant of others.
Back to top
View user's profile Send private message
caljoe
n00b
n00b


Joined: 07 Aug 2004
Posts: 59

PostPosted: Thu Aug 19, 2004 1:14 am    Post subject: Reply with quote

the nvidia driver does indeed tries several configurations at start up, but they all depend of the given range for hsync and vrefresh... If I don't give it, it starts with some default values. I don't know if these values are reasonable enough and googling does not bring any solution, as usual with laptop screens...

Quote:
Do you think 6 seconds is too long?


And yes, I think 6 seconds is too long. Actually, at boot, it takes about 15 seconds to start X; it is only when X is running that killing it allows to start it again in 6 seconds.

A propos boot time, I need 53 seconds between the moment I boot my computer and the moment I get my desktop environment (including the time I write my username and password):
POLL: how much time do YOU need?
Back to top
View user's profile Send private message
torchZ06
Apprentice
Apprentice


Joined: 01 Nov 2003
Posts: 175
Location: the front range

PostPosted: Fri Aug 20, 2004 8:04 am    Post subject: Reply with quote

caljoe,

i lived with/fought with the standard X configs for years before i did anything about it, because i figured it was too complicated... i was so wrong. the display is your interface to your box and you use it for everything you do on your cpu, so it makes sense to take the time to make it right. go thru your config file and pare it down-- cut out all the comments and useless stuff so that it doesn't look so daunting. copy it if you want to read some of the comments later, but get it into a manageable form with less cruft. then research the limits of your hardware-- especially the max horiz and vert refresh rates and the max dot clock for both your graphics card AND monitor.

here's two threads that really helped me:
https://forums.gentoo.org/viewtopic.php?t=89527&sid=66d127723a7a6cdb8874f60c026a8e9b
https://forums.gentoo.org/viewtopic.php?t=127469&highlight=

and i don't like having X guessing at resolutions-- i want them explicitly specified by me in the config file. the gtf utility is a lifesaver-- it generates perfect modelines (unlike those websites that claim to do the same) and its so simple to paste them into your config file once you get the knack for it. it's probably a little like making your first few kernels-- seems wicked complex at first, but once you get the hang of things not too bad.

and here's my config file for reference:
Code:

# generated by X -configure
# modified by ppk 3jul2004

Section "ServerLayout"
    Identifier     "X.org Configured"
    Screen      0  "Screen0" 0 0
    InputDevice    "Logitech Mx510" "CorePointer"
    InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"
    RgbPath      "/usr/X11R6/lib/X11/rgb"
    ModulePath   "/usr/X11R6/lib/modules"
    FontPath     "/usr/share/fonts/misc/"
    FontPath     "/usr/share/fonts/TTF/"
    FontPath     "/usr/share/fonts/Speedo/"
    FontPath     "/usr/share/fonts/Type1/"
    FontPath     "/usr/share/fonts/CID/"
    FontPath     "/usr/share/fonts/75dpi/"
    FontPath     "/usr/share/fonts/100dpi/"
EndSection

Section "Module"
    Load  "extmod"
    Load  "dri"
    Load  "dbe"
    Load  "record"
    Load  "xtrap"
    Load  "glx"
    Load  "speedo"
    Load  "type1"
    Load  "freetype"
EndSection

Section "InputDevice"
    Identifier  "Keyboard0"
    Driver      "keyboard"
EndSection

Section "InputDevice"
    Identifier  "Logitech Mx510"
    Driver      "mouse"
    Option      "Protocol" "IMPS/2"
    Option      "Device" "/dev/input/mice"
    Option      "ZAxisMapping" "4 5"
EndSection

Section "Monitor"
    Identifier   "Sony GDM-FW900"
    HorizSync    30-121
    VertRefresh  48-160
    Option       "DPMS"
    DisplaySize  482 308
    Modeline "1920x1200_85.00"  282.74  1920 2072 2280 2640  1200 1201 1204 12600
  -HSync +Vsync
EndSection

Section "Device"
    Option     "HWcursor"   "false"
        Identifier  "GeForce FX 5200"
    Driver      "nvidia"
    VendorName  "nVidia Corporation"
    BoardName   "NV34 [GeForce FX 5200]"
    BusID       "PCI:1:0:0"
EndSection

Section "Screen"
    Identifier "Screen0"
    Device     "GeForce FX 5200"
    Monitor    "Sony GDM-FW900"
    DefaultDepth 24
    SubSection "Display"
        Depth     24
        Viewport  0 0
        Modes   "1920x1200_85.00"
    EndSubSection
EndSection
Back to top
View user's profile Send private message
caljoe
n00b
n00b


Joined: 07 Aug 2004
Posts: 59

PostPosted: Fri Aug 20, 2004 11:35 am    Post subject: Reply with quote

thanks for your advice torchZ06!

I'll start to work on it now!

joe-
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum