LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   XF86Config Setup (https://www.linuxquestions.org/questions/linux-newbie-8/xf86config-setup-88916/)

ToolBoy 09-03-2003 03:05 PM

XF86Config Setup
 
Hey,

I can't seem to get my XF86Config file working correctly. I have a Dell Optiplex GX1. It has an onboard ATI Rage PRO AGP 2x with 4 MB of RAM. The monitor is a HP Pavilion M70 (D5259A). When I use the Config file below the computer does not boot into KDE. I can use a different Config file and KDE comes up but it's not at the right resolution and whatnot. So basicaly I need this file to start working. Plus default to a resolution of say 1024x768 at 85Hz. Also for some reason with those mouse setting my mouse is still not using the scroll wheel. It's a Logitech Cordless Freedom Navigator.

Oh, I am using Gentoo Linux, if that information is needed. I don’t think it would be.

*****
My XF86Config File
*****
Section "ServerLayout"
Identifier "XFree86 Configured"
Screen 0 "Screen0" 0 0
InputDevice "Mouse0" "CorePointer"
InputDevice "Keyboard0" "CoreKeyboard"
EndSection

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

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

Section "InputDevice"
Identifier "Keyboard0"
Driver "keyboard"
Option "XkbModel" "pc104"
Option "XkbLayout" "us"
EndSection

Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "PS/2"
Option "Device" "/dev/psaux"
Option "ZAxisMapping" "4 5"
EndSection

Section "Monitor"
Identifier "Monitor0"
VendorName "Monitor Vendor"
ModelName "HP D5259A Pavilion M70 Monitor"
DisplaySize 320 240
HorizSync 30-70
VertRefresh 50-120
Option "dpms"
EndSection


Section "Device"
### Available Driver options are:-
### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
### <string>: "String", <freq>: "<f> Hz/kHz/MHz"
### [arg]: arg optional
#Option "accel" # [<bool>]
#Option "crt_display" # [<bool>]
#Option "composite_sync" # [<bool>]
#Option "hw_cursor" # [<bool>]
#Option "linear" # [<bool>]
#Option "mmio_cache" # [<bool>]
#Option "panel_display" # [<bool>]
#Option "probe_clocks" # [<bool>]
#Option "reference_clock" # <freq>
#Option "shadow_fb" # [<bool>]
#Option "sw_cursor" # [<bool>]
Identifier "Card0"
Driver "ati"
VendorName "ATI"
BoardName "Mach64 3D RAGE II"
ChipSet "ati"
ChipId 0x4742
ChipRev 0x5c
EndSection

Section "Screen"
Identifier "Screen0"
Device "Card0"
Monitor "Monitor0"
DefaultDepts 24
SubSection "Display"
Depth 24
Modes "1024x768" "800x600" "640x480"
EndSubsection
EndSection

Section "ServerFlags"

EndSection

jpbarto 09-03-2003 03:38 PM

are you sure the ATI supports a color depth of 24?
plus you should probably use a protocol of "IMPS/2" instead of "PS/2" for the mouse.

Also you should include a DRI permissions section.

just my $0.02
jpbarto

fragglehorn 09-03-2003 05:07 PM

You could probably just take your other config file and remove "800x600" "640x480" from the screen section.

ToolBoy 09-03-2003 05:12 PM

Ok I got the mouse working. By using the following configuration.

Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "auto"
Option "Device" "/dev/mouse"
Option "ZAxisMapping" "4 5"
EndSection

I also added a “DRI” section like below.

Section “DRI”
Mode 0666
End Section

I can’t see why the card would not support 24-bit color. I am fairly sure that it’s capable of it. I believe that’s what I ran when it use to be a windows box. Also is Mach64 really what I should have for the configuration? A few places online said to use that if you had a Rage Pro. So I am assuming it’s correct. Any more help I could get would be great.

Thanks.
Tool

jpbarto 09-03-2003 06:59 PM

about the depth issue: take for example the Voodoo3 cards... they'll do DRI and 1024x768 but only in 16 bit color. Voodoo5 will do it too but only in 24. Might want to see what the user's guide over at dri.sourceforge.net has to say.

ToolBoy 09-04-2003 12:58 AM

OK, I decide against the DRI part untill i figure out what my hardware supports wiht it.

Anway, my Config file is now going into KDE just fine. The only problem is that my resolution is still off. I should be able to run at 1024/768 at 85Hz. When KDE comes up it's not that as the default it's 800x600 at 85Hz. Pressing CTRL-ALT + or - only changes from 800x600 to 640x.480. Here is my new XF86Config file and the results of a $xrandr. Please help me if you can.

***
XF86Config
***

Section "ServerLayout"
Identifier "XFree86 Configured"
Screen 0 "Screen0" 0 0
InputDevice "Mouse0" "CorePointer"
InputDevice "Keyboard0" "CoreKeyboard"
EndSection

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

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

Section "InputDevice"
Identifier "Keyboard0"
Driver "keyboard"
Option "XkbModel" "pc104"
Option "XkbLayout" "us"
EndSection

Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "auto"
Option "Device" "/dev/mouse"
Option "ZAxisMapping" "4 5"
EndSection

Section "Monitor"
Identifier "Monitor0"
VendorName "Monitor Vendor"
ModelName "HP D5259A Pavilion M70 Monitor"
DisplaySize 320 240
HorizSync 30-70
VertRefresh 50-120
Option "dpms"
EndSection


Section "Device"
### Available Driver options are:-
### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
### <string>: "String", <freq>: "<f> Hz/kHz/MHz"
### [arg]: arg optional
#Option "accel" # [<bool>]
#Option "crt_display" # [<bool>]
#Option "composite_sync" # [<bool>]
#Option "hw_cursor" # [<bool>]
#Option "linear" # [<bool>]
#Option "mmio_cache" # [<bool>]
#Option "panel_display" # [<bool>]
#Option "probe_clocks" # [<bool>]
#Option "reference_clock" # <freq>
#Option "shadow_fb" # [<bool>]
#Option "sw_cursor" # [<bool>]
Identifier "Card0"
Driver "ati"
VendorName "ATI"
BoardName "Mach64 3D RAGE II"
ChipSet "ati"
ChipId 0x4742
ChipRev 0x5c
EndSection

Section "Screen"
Identifier "Screen0"
Device "Card0"
Monitor "Monitor0"
DefaultColorDepth 24
SubSection "Display"
Depth 8
Modes "1024x768/85Hz" "800x600" "640x480"
Virtual 0 0
EndSubSection
SubSection "Display"
Depth 16
Modes "1024x768/85Hz" "800x600" "640x480"
Virtual 0 0
EndSubSection
SubSection "Display"
EndSubSection
SubSection "Display"
Depth 24
Modes "1024x768/85Hz" "800x600" "640x480"
Virtual 0 0
EndSubSection
EndSection


***
xrandr
***
bash-2.05b$ xrandr
SZ: Pixels Physical Refresh
*0 800 x 600 ( 323mm x 242mm ) *85 75 72 60 56
1 640 x 480 ( 323mm x 242mm ) 85 75 72 60
2 700 x 525 ( 323mm x 242mm ) 59
3 640 x 512 ( 323mm x 242mm ) 60
4 720 x 400 ( 323mm x 242mm ) 85
5 640 x 400 ( 323mm x 242mm ) 85
6 576 x 432 ( 323mm x 242mm ) 75
7 640 x 350 ( 323mm x 242mm ) 85
8 576 x 384 ( 323mm x 242mm ) 54
9 512 x 384 ( 323mm x 242mm ) 84 75 70 60 87
10 416 x 312 ( 323mm x 242mm ) 74
11 400 x 300 ( 323mm x 242mm ) 85 75 72 60 56
12 320 x 240 ( 323mm x 242mm ) 85 75 72 60
13 360 x 200 ( 323mm x 242mm ) 85
14 320 x 200 ( 323mm x 242mm ) 85
15 320 x 175 ( 323mm x 242mm ) 85
Current rotation - normal
Current reflection - none
Rotations possible - normal
Reflections possible - none


I also forgot to mention that "Physical" specs from the xrandr say 323mm x 242mm. When on the XF68Config file they say 320mm x 240mm. The monitor specs are 320 x 240. Don't know why it's not the same.

Thank you again,
Tool


All times are GMT -5. The time now is 12:57 AM.