LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   I have an XF86 config file for video, how do I turn it into XORG config (http://www.linuxquestions.org/questions/linux-newbie-8/i-have-an-xf86-config-file-for-video-how-do-i-turn-it-into-xorg-config-332727/)

lowpingnoob 06-12-2005 08:33 AM

I have an XF86 config file for video, how do I turn it into XORG config
 
Yeah, the sample config file that came with the driver, I am replacing parts of it and taking parts out as needed. Only problem is that it is XF86 and I need XORG, should I just change the name, or do I have to change 1. Everywhere where it says XF86 2. the whole format! I know that they use the same syntax, so is it safe to use this file as the config file...?

lowpingnoob 06-12-2005 08:37 AM

another thing
 
uh this

# 3840x2400 @ 12Hz for IBM's T221 FlatPanel
Modeline "3840x2400" 148.0 3840 3944 4328 4816 2400 2401 2404 2418

I need to change this to a Dell 19" monitor (i dont know model) at 1600x1200 with

Horizontal 68.7

Vertical 85
max res is 1600 x 1200 (I usually run at 1024x768)

Hope thats what yyou meed to help me...

acid_kewpie 06-12-2005 08:41 AM

the files are syntactically identical (assuming it's a XFRee86 4.x config, not a really old 3.x one). there are a few small differences like the keyboard driver being "kbd" and not "keyboard" which would prevent an instant swap over, but Device sections and such remain wholly indentical.

lowpingnoob 06-12-2005 08:43 AM

Quote:

Originally posted by acid_kewpie
the files are syntactically identical (assuming it's a XFRee86 4.x config, not a really old 3.x one). there are a few small differences like the keyboard driver being "kbd" and not "keyboard" which would prevent an instant swap over, but Device sections and such remain wholly indentical.
So in the driver line of the keyboard section put "kbd" instead? Thats all (plus the monitor stuff)?

lowpingnoob 06-12-2005 08:46 AM

Re: another thing
 
Quote:

Originally posted by lowpingnoob
uh this

# 3840x2400 @ 12Hz for IBM's T221 FlatPanel
Modeline "3840x2400" 148.0 3840 3944 4328 4816 2400 2401 2404 2418

I need to change this to a Dell 19" monitor (i dont know model) at 1600x1200 with

Horizontal 68.7

Vertical 85
max res is 1600 x 1200 (I usually run at 1024x768)

Hope thats what yyou meed to help me...

I have no idea what I am supposed to change the settings to. I ponder that that 12Hz in the first line should be changed to my monitors vertical refresh, but that is about it.

lowpingnoob 06-12-2005 08:47 AM

Re: Re: another thing
 
Quote:

Originally posted by lowpingnoob
I have no idea what I am supposed to change the settings to. I ponder that that 12Hz in the first line should be changed to my monitors vertical refresh, but that is about it.
Oh and , duh, the name of the monitor should be changed, but I don't know what I am supposed to put for resolution (max, default, etc.???)

lowpingnoob 06-12-2005 09:04 AM

148.0 3840 3944 4328 4816 2400 2401 2404 2418

THese numbers don't make sense.

acid_kewpie 06-12-2005 09:05 AM

well ideally you should need to explicitly define a modeline. when you start X, it'll try to work out what modelines are acceptable. to use a given resolution, it just needs to be defined in the relevant "Screen" section, e.g :
Code:

Section "Screen"
    Identifier  "nvidia1screen"
    Device      "nvidia1"
    Monitor    "dell e770p"
    DefaultDepth 24
    Subsection "Display"
        Depth      24
        Modes      "1280x1024" "1152x864" "1024x768" "800x600" "640x480"
        ViewPort    0 0
    EndSubsection
    Option "NoLogo" "true"
EndSection

if defining the mode there causes an error when you use it, then you might need to finetune a modeline, but it's becoming less common that it's needed as X gets better. as a note, those list of resolutions are cycled through by using Ctrl+Alt+[+ or - key]. i'd recommend putting the new reoslution at the end, and using a standard 1024x768 or soemthing when it starts up, so you'll at least get into x before you try that mode out.

lowpingnoob 06-12-2005 09:08 AM

Quote:

Originally posted by acid_kewpie
well ideally you should need to explicitly define a modeline. when you start X, it'll try to work out what modelines are acceptable. to use a given resolution, it just needs to be defined in the relevant "Screen" section, e.g :
Code:

Section "Screen"
    Identifier  "nvidia1screen"
    Device      "nvidia1"
    Monitor    "dell e770p"
    DefaultDepth 24
    Subsection "Display"
        Depth      24
        Modes      "1280x1024" "1152x864" "1024x768" "800x600" "640x480"
        ViewPort    0 0
    EndSubsection
    Option "NoLogo" "true"
EndSection

if defining the mode there causes an error when you use it, then you might need to finetune a modeline, but it's becoming less common that it's needed as X gets better. as a note, those list of resolutions are cycled through by using Ctrl+Alt+[+ or - key]. i'd recommend putting the new reoslution at the end, and using a standard 1024x768 or soemthing when it starts up, so you'll at least get into x before you try that mode out.

Thanks , but thats not what i needed, i needed

Section "Monitor"

Identifier "Monitor1"
VendorName "Dell"
ModelName "19 inch monitor"

# be sure to replace these values with values appropriate for your
# monitor!
HorizSync 60-70
VertRefresh 80-90

# 3840x2400 @ 12Hz for IBM's T221 FlatPanel
Modeline "3840x2400" 148.0 3840 3944 4328 4816 2400 2401 2404 2418

EndSection

acid_kewpie 06-12-2005 09:09 AM

if you do want it though: http://xtiming.sourceforge.net/cgi-bin/xtiming.pl and also if you do get running at the right resolution and frequency, you can use xvidtune inside X to really finetune it. when you do, it can output a modeline for you. it outputs to a terminal though, so you need to run it via one to get any results.

lowpingnoob 06-12-2005 09:09 AM

Quote:

Originally posted by lowpingnoob
Thanks , but thats not what i needed, i needed

Section "Monitor"

Identifier "Monitor1"
VendorName "Dell"
ModelName "19 inch monitor"

# be sure to replace these values with values appropriate for your
# monitor!
HorizSync 60-70
VertRefresh 80-90

# 3840x2400 @ 12Hz for IBM's T221 FlatPanel
Modeline "3840x2400" 148.0 3840 3944 4328 4816 2400 2401 2404 2418

EndSection

Just the underlined stuff.

acid_kewpie 06-12-2005 09:10 AM

hmm.. not a good typo i had there... i meant you should NOT need to define a modeline. just try without one at all first.

lowpingnoob 06-12-2005 09:12 AM

Can I just post what I have at the moment (the whole thing) so you can see whats wrong with it (I know the name is messed (still says sample)

lowpingnoob 06-12-2005 09:15 AM

well here it is anyway, not in its own little frame




Section "Files"

RgbPath "/usr/X11R6/lib/X11/rgb"
FontPath "unix/:-1"

EndSection


##########################################################################
# Server flags section.
##########################################################################

Section "ServerFlags"

# Uncomment this to cause a core dump at the spot where a signal is
# received. This may leave the console in an unusable state, but may
# provide a better stack trace in the core dump to aid in debugging
#NoTrapSignals

# Uncomment this to disable the <Crtl><Alt><BS> server abort sequence
# This allows clients to receive this key event.
#DontZap

# Uncomment this to disable the <Crtl><Alt><KP_+>/<KP_-> mode switching
# sequences. This allows clients to receive these key events.
#DontZoom

# This allows the server to start up even if the
# mouse device can't be opened/initialised.
AllowMouseOpenFail

EndSection


##########################################################################
# Input devices
##########################################################################

#
# Keyboard section
#
Section "InputDevice"

Identifier "Keyboard1"
Driver "Keyboard"
Option "AutoRepeat" "250 30"

Option "XkbRules" "xfree86"
Option "XkbModel" "pc105"
Option "XkbLayout" "us"

EndSection


#
# Pointer section
#
Section "InputDevice"

Identifier "Mouse1"
Driver "mouse"
Option "Protocol" "IMPS/2"
Option "Device" "/dev/psaux"

EndSection


##########################################################################
# Module section
##########################################################################

Section "Module"

Load "dbe"

# Load the glx module.
Load "glx"

Load "extmod"

Load "type1"
Load "freetype"
EndSection


##########################################################################
# Monitor section
##########################################################################

Section "Monitor"

Identifier "Monitor1"
VendorName "Dell"
ModelName "19 inch monitor"

# be sure to replace these values with values appropriate for your
# monitor!
HorizSync 60-70
VertRefresh 80-90

# 3840x2400 @ 12Hz for IBM's T221 FlatPanel
Modeline "3840x2400" 148.0 3840 3944 4328 4816 2400 2401 2404 2418

EndSection


##########################################################################
# Graphics device section(s)
##########################################################################

Section "Device"
Identifier "NV AGP"
VendorName "nvidia"
Driver "nvidia"
# update this with the PCI id of your card. Consult the output
# of the 'lspci' command. The BusID is usually optional when
# only using one graphics card.
BusID "PCI:1:0:0"
EndSection



##########################################################################
# Screen sections
##########################################################################

#
# screen section for an nvidia AGP card
#
Section "Screen"
Identifier "Screen AGP"
Device "NV AGP"
Monitor "MyMonitor"
DefaultColorDepth 24
Subsection "Display"
Depth 8
Modes "1280x1024" "1024x768" "800x600" "640x400"
EndSubsection
Subsection "Display"
Depth 16
Modes "1280x1024" "1024x768" "800x600" "640x480"
EndSubsection
Subsection "Display"
Depth 24
Modes "1280x1024" "1024x768" "800x600" "640x480"
EndSubsection

EndSection



##########################################################################
# ServerLayout sections
# (invoke using the '-layout' option of 'startx'.
##########################################################################

#
# just one agp card
#
Section "ServerLayout"
Identifier "AGP"
Screen "Screen AGP"
InputDevice "Mouse1" "CorePointer"
InputDevice "Keyboard1" "CoreKeyboard"
EndSection

lowpingnoob 06-12-2005 09:17 AM

Who ever wants to edit this please do (i should have all the parameters that you need).


All times are GMT -5. The time now is 07:24 AM.