Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
X only runs at 8bit (config included)
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
Crisis
l33t
l33t


Joined: 10 Feb 2003
Posts: 613
Location: Portland, OR

PostPosted: Thu Dec 11, 2003 2:14 am    Post subject: X only runs at 8bit (config included) Reply with quote

Well I had a gentoo desktop box running for a very long time and it was fine, but I had to reformat and didnt get to backup my config, and now I can't get X to run in anything but 8bit. I created the default file, but can't seem to get it the way it used to be. One thing I noticed in the file is the part about the card being PCI when it is actually AGP... If you have any ideas, I'd appreciate it! Here is my file:

Code:
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" "auto"
        Option      "Device" "/dev/mouse"
EndSection

Section "Monitor"
        Identifier   "Monitor0"
        VendorName   "@@@"
        ModelName    "0"
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     "TurboQueue"                # [<bool>]
        #Option     "FastVram"                  # [<bool>]
        #Option     "NoHostBus"                 # [<bool>]
        #Option     "RenderAcceleration"        # [<bool>]
        #Option     "ForceCRT1Type"             # [<str>]
        #Option     "ForceCRT2Type"             # [<str>]
        #Option     "ShadowFB"                  # [<bool>]
        #Option     "DRI"                       # [<bool>]
        #Option     "Rotate"                    # [<str>]
        #Option     "NoXvideo"                  # [<bool>]
        #Option     "Vesa"                      # [<bool>]
        #Option     "MaxXFBMem"                 # <i>
        #Option     "ForceCRT1"                 # [<bool>]
        #Option     "XvOnCRT2"                  # [<bool>]
        #Option     "PanelDelayCompensation"    # <i>
        #Option     "TVStandard"                # <str>
        #Option     "UseROMData"                # [<bool>]
        #Option     "NoInternalModes"           # [<bool>]
        #Option     "UseOEMData"                # [<bool>]
        #Option     "NoYV12"                    # [<bool>]
        #Option     "CHTVType"                  # [<bool>]
        #Option     "CHTVOverscan"              # [<bool>]
        #Option     "CHTVSuperOverscan"         # [<bool>]
        #Option     "CHTVLumaBandwidthCVBS"     # <i>
        #Option     "CHTVLumaBandwidthSVIDEO"   # <i>
        #Option     "CHTVLumaFlickerFilter"     # <i>
        #Option     "CHTVChromaBandwidth"       # <i>
        #Option     "CHTVChromaFlickerFilter"   # <i>
        #Option     "CHTVCVBSColor"             # [<bool>]
        #Option     "CHTVTextEnhance"           # <i>
        #Option     "CHTVContrast"              # <i>
        #Option     "SISTVEdgeEnhance"          # <i>
        #Option     "SISTVAntiFlicker"          # <str>
        #Option     "SISTVSaturation"           # <i>
        #Option     "SISTVCFilter"              # [<bool>]
        #Option     "SISTVYFilter"              # <i>
        #Option     "SISTVColorCalibFine"       # <i>
        #Option     "SISTVColorCalibCoarse"     # <i>
        #Option     "SISTVXScale"               # <i>
        #Option     "SISTVYScale"               # <i>
        #Option     "TVXPosOffset"              # <i>
        #Option     "TVYPosOffset"              # <i>
        #Option     "SIS6326TVAntiFlicker"      # <str>
        #Option     "SIS6326TVEnableYFilter"    # [<bool>]
        #Option     "SIS6326TVYFilterStrong"    # [<bool>]
        #Option     "SIS6326TVForcePlug"        # <str>
        #Option     "SIS6326FSCAdjust"          # <i>
        #Option     "UseColorHWCursor"          # [<bool>]
        #Option     "ColorHWCursorBlending"     # [<bool>]
        #Option     "ColorHWCursorBlendThreshold"       # <i>
        #Option     "RestoreBySetMode"          # [<bool>]
        #Option     "NoCRT2Detection"           # [<bool>]
        #Option     "ForceCRT2ReDetection"      # [<bool>]
        #Option     "CRT1Gamma"                 # [<bool>]
        #Option     "CRT2Gamma"                 # [<bool>]
        #Option     "XvDefaultContrast"         # <i>
        #Option     "XvDefaultBrightness"       # <i>
        #Option     "XvDefaultHue"              # <i>
        #Option     "XvDefaultSaturation"       # <i>
        #Option     "XvDefaultDisableGfx"       # [<bool>]
        #Option     "XvDefaultDisableGfxLR"     # [<bool>]
        #Option     "XvChromaMin"               # <i>
        #Option     "XvChromaMax"               # <i>
        #Option     "XvUseChromaKey"            # [<bool>]
        #Option     "XvInsideChromaKey"         # [<bool>]
        #Option     "XvYUVChromaKey"            # [<bool>]
        #Option     "XvDisableColorKey"         # [<bool>]
        #Option     "XvUseMemcpy"               # [<bool>]
        #Option     "ScaleLCD"                  # [<bool>]
        #Option     "EnableHotkey"              # [<bool>]
        #Option     "SpecialTiming"             # <str>
        #Option     "LVDSHL"                    # <i>
        #Option     "EnableSiSCtrl"             # [<bool>]
        #Option     "StoredGammaBrightnessRed"  # <i>
        #Option     "StoredGammaBrightnessGreen"        # <i>
        #Option     "StoredGammaBrightnessBlue"         # <i>
        #Option     "StoredGammaPreBrightnessRed"       # <i>
        #Option     "StoredGammaPreBrightnessGreen"     # <i>
        #Option     "StoredGammaPreBrightnessBlue"      # <i>
        #Option     "MergedFB"                  # [<bool>]
        #Option     "MergedFBAuto"              # [<bool>]
        #Option     "CRT2HSync"                 # [<str>]
        #Option     "CRT2VRefresh"              # [<str>]
        #Option     "CRT2Position"              # [<str>]
        #Option     "MetaModes"                 # [<str>]
        #Option     "MergedDPI"                 # [<str>]
        #Option     "TwinView"                  # [<bool>]
        #Option     "SecondMonitorHorizSync"    # [<str>]
        #Option     "SecondMonitorVertRefresh"  # [<str>]
        #Option     "TwinViewOrientation"       # [<str>]
        #Option     "NoMergedXinerama"          # [<bool>]
        #Option     "MergedXineramaCRT2IsScreen0"       # [<bool>]
        #Option     "NoTwinviewXineramaInfo"    # [<bool>]
        Identifier  "Card0"
        Driver      "sis"
        VendorName  "Silicon Integrated Systems [SiS]"
        BoardName   "SiS300/305 PCI/AGP VGA Display Adapter"
        BusID       "PCI:1:0:0"
EndSection

Section "Screen"
        Identifier "Screen0"
        Device     "Card0"
        Monitor    "Monitor0"
        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
        EndSubSection
EndSection
Back to top
View user's profile Send private message
tomchuk
Guru
Guru


Joined: 23 Mar 2003
Posts: 317
Location: Brooklyn, NY

PostPosted: Thu Dec 11, 2003 2:33 am    Post subject: Reply with quote

You need a "DefaultDepth" in your screen section. like:

Code:

Section "Screen"
        Identifier "Screen0"
        Device     "Card0"
        Monitor    "Monitor0"
        DefaultDepth    24      # <<---- DefaultDepth
        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
        EndSubSection
EndSection
Back to top
View user's profile Send private message
tomchuk
Guru
Guru


Joined: 23 Mar 2003
Posts: 317
Location: Brooklyn, NY

PostPosted: Thu Dec 11, 2003 2:48 am    Post subject: Reply with quote

...and where did you get that XF86Config? It seems somewhat off. This should probably work much better:
Code:


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"      "microsoft" # assuming you have windows keys
    Option      "XkbRules"      "xfree86"
    Option      "XkbLayout"     "us"
EndSection


Section "InputDevice"
        Identifier  "Mouse0"
        Driver      "mouse"
        Option      "Protocol" "auto"
        Option      "Device" "/dev/mouse"             
        Option      "Buttons"        "5"                        # assuming wheel mouse
        Option      "ZAxisMapping"        "4 5"         # assuming wheel mouse
        Option      "Resolution"        "600"
EndSection

Section "Monitor"
        Identifier   "Monitor0"
        HorizSync        <range for your monitor>
        VertRefresh        <range for your monitor>
        Option        "dpms"        "on"
EndSection

Section "Device"
        Identifier  "Card0"
        Driver      "sis"
        VendorName  "Silicon Integrated Systems [SiS]"
        BoardName   "SiS300/305 PCI/AGP VGA Display Adapter"
        BusID       "PCI:1:0:0"
EndSection

Section "Screen"
        Identifier "Screen0"
        Device     "Card0"
        Monitor    "Monitor0"
        DefaultDepth     24
        SubSection "Display"
                Depth     8
                Modes "800x600 ... 1600x1200" # put whatever your monitor supports here
        EndSubSection
                Depth     16
                Modes "800x600 ... 1600x1200" # put whatever your monitor supports here
        EndSubSection
                Depth     24
                Modes "800x600 ... 1600x1200" # put whatever your monitor supports here
        EndSubSection
EndSection

Section "ServerLayout"
        Identifier     "XFree86 Configured"
        Screen      0  "Screen0" 0 0
        InputDevice    "Mouse0" "CorePointer"
        InputDevice    "Keyboard0" "CoreKeyboard"
EndSection
Back to top
View user's profile Send private message
Crisis
l33t
l33t


Joined: 10 Feb 2003
Posts: 613
Location: Portland, OR

PostPosted: Thu Dec 11, 2003 3:52 am    Post subject: Reply with quote

Well I was able to get higher depths to work, but only at 640x480 :(

The command I used to make the config was:

/usr/X11R6/bin/XFree86 -configure
Back to top
View user's profile Send private message
jcc
Apprentice
Apprentice


Joined: 30 May 2003
Posts: 233
Location: Fort de France, Martinique

PostPosted: Thu Dec 11, 2003 3:57 am    Post subject: Reply with quote

run 'xf86config' as root, read the questions, answer them. it'll work. There's no screen resolution defined nowhere in your file, that's not so surprising that xfree won't be guessing your prefered one. All those automated tools really don't help in the long run... :)

ps: the config file you're using right now looks more like an useless skeleton to me... really screw that up quickly :)
Back to top
View user's profile Send private message
Crisis
l33t
l33t


Joined: 10 Feb 2003
Posts: 613
Location: Portland, OR

PostPosted: Thu Dec 11, 2003 3:42 pm    Post subject: Reply with quote

xf86config is what I used the first time but I couldn't get that config file to work at all which is when I went searching. I was using generic video card drives though as I was not sure what I had, I am trying it again as [sis] so I will see if that works when I get home.
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