-   Linux - Software (
-   -   running "startx -- -depth 16" from a graphical login (

crm 11-15-2004 09:12 AM

running "startx -- -depth 16" from a graphical login
in order to get DRI and games running on my computer i have to start the x server with the -depth 16 command. this workis okay, however everytime i reboor i have to shut off gdm and kil all x servers then sart with the command line options.
what do i add the '-- -depth 16' argument to in order to alwaise start x in this mode?

i am using gentoo with xdm, gdm, and enlightenment.

perfect_circle 11-15-2004 09:36 AM

edit your /etc/X11/XF86Config or /etc/X11/xorg.conf (whatever your system uses).

You will find in there something like that:


Section "Screen"
        Identifier "Screen0"
        Device    "Videocard0"
        Monitor    "Monitor0"
        DefaultDepth    24
        SubSection "Display"
                Viewport  0 0
                Depth    24
                Modes    "1024x768" "800x600" "640x480"

change default depth to 16

u cant also do that from X-windows i think, under System Settings->display or something like that.

crm 11-15-2004 10:09 AM

yes! it worked fine

i still get errors when i run GLX and DRI still says its swiched off... but my FPS hasnearly doubled, so im gettingsomwhere :D
at least the screensavers wont look jerkey anymore

perfect_circle 11-15-2004 11:23 AM

post your xorg.conf to see if i can help u.

crm 11-15-2004 07:43 PM


Section "Module"

    Load        "dbe"  # Double buffer extension

    Load        "type1"

    Load        "freetype"
 #  Load        "speedo"
    Load        "extmod"

SubSection  "extmod"
                Option    "omit xfree86-dga"

    Load      "glx"

    Load      "dri"


Section "Files"

    RgbPath    "/usr/X11R6/lib/X11/rgb"

    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/"
    FontPath  "/usr/share/fonts/local/"
#    FontPath  "/usr/share/fonts/TrueType/"
#    FontPath  "/usr/share/fonts/freefont/"

# The module search path.  The default path is shown here.

#    ModulePath "/usr/X11R6/lib/modules"


Section "ServerFlags"

#    Option "DisableVidModeExtension"

#    Option "AllowNonLocalXvidtune"

#    Option "DisableModInDev"

#    Option "AllowNonLocalModInDev"


Section "InputDevice"

    Identifier  "Keyboard1"
    Driver      "kbd"

#    Option    "Protocol"      "Xqueue"

    Option "AutoRepeat" "500 30"

#    Option    "Xleds"      "1 2 3"

#    Option "LeftAlt"    "Meta"
#    Option "RightAlt"    "ModeShift"

#    Option "XkbModel"    "pc102"

#    Option "XkbModel"    "microsoft"

    Option "XkbModel"  "pc101"
    Option "XkbLayout"  "gb"


Section "InputDevice"

# Identifier and driver

    Identifier  "Mouse1"
    Driver      "mouse"
    Option "Protocol"    "Auto"
    Option "Device"      "/dev/psaux"

# Mouse-speed setting for PS/2 mouse.

#    Option "Resolution"        "256"

#    Option "Protocol"  "Xqueue"

# Emulate3Buttons is an option for 2-button Microsoft mice
# Emulate3Timeout is the timeout in milliseconds (default is 50ms)

    Option "Emulate3Buttons"
#    Option "Emulate3Timeout"    "50"

# ChordMiddle is an option for some 3-button Logitech mice

#    Option "ChordMiddle"


# Any number of monitor sections may be present

Section "Monitor"

    Identifier  "guess2"

    HorizSync  48.363

#    HorizSync  30-64        # multisync
#    HorizSync  31.5, 35.2    # multiple fixed sync frequencies
#    HorizSync  15-25, 30-50  # multiple ranges of sync frequencie

    VertRefresh 50-70


Section "Device"
    Identifier  "Standard VGA"
    VendorName  "Unknown"
    BoardName  "Unknown"

#    Chipset    "generic"

    Driver    "vesa"

#    BusID      "PCI:0:10:0"

#    VideoRam  256

#    Clocks    25.2 28.3


# Device configured by xorgconfig:

Section "Device"
    Identifier  "voodo3 right"
    # glide vga dri glx
    # Driver "vga"

    Driver      "tdfx"
    VideoRam    16384
    # Insert Clocks lines here if appropriate

# **********************************************************************
# Screen sections

Section "Screen"
    Identifier  "Screen 1"
    Device      "voodo3 right"
    Monitor    "guess2"
    DefaultDepth 16

    Subsection "Display"
        Depth      8
        Modes      "1024x768" "1024x768" "1024x768"
        ViewPort    0 0
    Subsection "Display"
        Depth      16
        Modes      "1024x768" "1024x768" "1024x768"
        ViewPort    0 0

Section "ServerLayout"

# The Identifier line must be present
    Identifier  "Simple Layout"

    Screen "Screen 1"

    InputDevice "Mouse1" "CorePointer"
    InputDevice "Keyboard1" "CoreKeyboard"


#below MAY not work!!

Section "DRI"

    #Group 60    #my edits
    #Mode 0660  #my edits
    Mode 0666


sorry its a bit messy, ive had tio hack it to pieces to remove the comments so its a bit more web friendly.

All times are GMT -5. The time now is 09:47 AM.