You are not logged in.

#1 2002-11-18 20:06:20

sasdav
Member
Registered: 2002-11-18
Posts: 66

XFree86 problems

I'm having several problems getting XFree86 working.  I run X -configure then try
XFree86 -xf86config /root/XF86Config.new
and I get some nasty errors:
xf86OpenSerial: Cannot open device /dev/mouse
  No such file or directory
etc

I can edit XF86Config.new and change /dev/mouse to /dev/psaux, then when I try again it seems to work but the mouse doesn't work.

I have a PS/2 mouse with 3 buttons.

Also, is there a way to get the hSync and vSync of my monitor?  I'd like to try getting a better resolution than 640x480.


Thanks

Offline

#2 2002-11-19 00:04:34

sarah31
Member
From: Middle of Canada
Registered: 2002-08-20
Posts: 2,975
Website

Re: XFree86 problems

here is my XF86Config-4 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"
EndSection

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

Section "Monitor"
        #DisplaySize      360   270     # mm
        Identifier   "Monitor0"
        VendorName   "DWE"
        HorizSync    30-95
        VertRefresh  50-160
        ModelName    "PnP Monitor"
        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     "SWcursor"                  # [<bool>]
        #Option     "HWcursor"                  # [<bool>]
        #Option     "NoAccel"                   # [<bool>]
        #Option     "ShowCache"                 # [<bool>]
        #Option     "ShadowFB"                  # [<bool>]
        #Option     "UseFBDev"                  # [<bool>]
        #Option     "Rotate"                    # [<str>]
        #Option     "VideoKey"                  # <i>
        #Option     "FlatPanel"                 # [<bool>]
        Identifier  "Card0"
        Driver      "nvidia"
        VendorName  "NVidia"
        BoardName   "GeForce4 MX/MX 440"
        BusID       "PCI:1:0:0"
        Option      "NvAGP" "1"
EndSection

Section "Screen"
        Identifier "Screen0"
        Device     "Card0"
        Monitor    "Monitor0"
        DefaultDepth 24
        SubSection "Display"
                Depth     1
        EndSubSection
        SubSection "Display"
                Depth     4
        EndSubSection
        SubSection "Display"
                Depth     8
        EndSubSection
        SubSection "Display"
                Depth     15
        EndSubSection
        SubSection "Display"
                Depth     16
        EndSubSection
        SubSection "Display"
                Depth     24
                Modes "1280x1024" "1024x768" "800x600" "640x480"
        EndSubSection
EndSection

in your case you will have to first edit your mouse section to something like:

Section "InputDevice"
        Identifier  "Mouse0"
        Driver      "mouse"
        Option      "Protocol" "PS/2"
        Option      "Device" "/dev/psaux"

        Option      "Buttons" "3"
        Option      "ZAxisMapping" "4 5"
EndSection

the "Options "Buttons" "3"" may not hold with your mouse unless it has a scroll wheel if it does not then you will have to change the line to:

Options "Emulate3Buttons" "True"

don't forget the ZAxisMapping line either!

next resolutions:

you will have no mode in your depth settings like so:

EndSubSection
        SubSection "Display"
                Depth     16

just add them in like i did above:


SubSection "Display"
                Depth     24

                Modes "1280x1024" "1024x768" "800x600" "640x480"


fianlly don't forget to add a default depth level like so:

       
       Section "Screen"
        Identifier "Screen0"
        Device     "Card0"
        Monitor    "Monitor0"

DefaultDepth 24


as for refresh rates just add lines like this (in red) below:


Section "Monitor"
        #DisplaySize      360   270     # mm
        Identifier   "Monitor0"
        VendorName   "DWE"

        HorizSync    30-95
        VertRefresh  50-160
        ModelName    "PnP Monitor"
        Option      "DPMS"
EndSection


AKA uknowme

I am not your friend

Offline

#3 2002-11-19 16:48:54

sasdav
Member
Registered: 2002-11-18
Posts: 66

Re: XFree86 problems

I found the XF86Config-4 that Redhat had generated and after a little tweaking it works fine.
Thanks

Offline

Board footer

Powered by FluxBB