LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 11-15-2004, 09:12 AM   #1
crm
Member
 
Registered: Apr 2004
Location: leeds - UK
Distribution: Gentoo Stage 1 on Riser FS 4
Posts: 204

Rep: Reputation: 30
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.
 
Old 11-15-2004, 09:36 AM   #2
perfect_circle
Senior Member
 
Registered: Oct 2004
Location: Athens, Greece
Distribution: Slackware, arch
Posts: 1,783

Rep: Reputation: 52
edit your /etc/X11/XF86Config or /etc/X11/xorg.conf (whatever your system uses).

You will find in there something like that:

Code:
Section "Screen"
	Identifier "Screen0"
	Device     "Videocard0"
	Monitor    "Monitor0"
	DefaultDepth     24
	SubSection "Display"
		Viewport   0 0
		Depth     24
		Modes    "1024x768" "800x600" "640x480"
	EndSubSection
EndSection
change default depth to 16

u cant also do that from X-windows i think, under System Settings->display or something like that.
 
Old 11-15-2004, 10:09 AM   #3
crm
Member
 
Registered: Apr 2004
Location: leeds - UK
Distribution: Gentoo Stage 1 on Riser FS 4
Posts: 204

Original Poster
Rep: Reputation: 30
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
at least the screensavers wont look jerkey anymore
thanks!
 
Old 11-15-2004, 11:23 AM   #4
perfect_circle
Senior Member
 
Registered: Oct 2004
Location: Athens, Greece
Distribution: Slackware, arch
Posts: 1,783

Rep: Reputation: 52
post your xorg.conf to see if i can help u.
 
Old 11-15-2004, 07:43 PM   #5
crm
Member
 
Registered: Apr 2004
Location: leeds - UK
Distribution: Gentoo Stage 1 on Riser FS 4
Posts: 204

Original Poster
Rep: Reputation: 30
Code:
Section "Module"

    Load        "dbe"   # Double buffer extension


    Load        "type1"

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

SubSection  "extmod"
                Option    "omit xfree86-dga"
                    EndSubSection




    Load       "glx"

    Load       "dri"

EndSection

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"

EndSection


Section "ServerFlags"


#    Option "DisableVidModeExtension"


#    Option "AllowNonLocalXvidtune"


#    Option "DisableModInDev"

#    Option "AllowNonLocalModInDev"

EndSection

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"

EndSection


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"

EndSection


# 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

EndSection




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

EndSection

# 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
EndSection


# **********************************************************************
# 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
    EndSubsection
    Subsection "Display"
        Depth       16
        Modes       "1024x768" "1024x768" "1024x768"
        ViewPort    0 0
    EndSubsection
EndSection

Section "ServerLayout"

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



    Screen "Screen 1"



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

EndSection

#below MAY not work!!

Section "DRI"

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

 EndSection

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


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
"Failed to set up write combining range" error when running startx jbryanj Linux - Software 1 10-24-2005 05:23 PM
pass "startx" argument while running runlevel 5? kpachopoulos Linux - General 2 07-03-2005 09:29 AM
How to start KDE automaticlly without typing "startx" then "startkde" Jonescity Slackware 8 10-29-2004 09:32 PM
"localhost login" problems, loading graphical enterface and configuring static ip june Mandriva 2 10-15-2004 02:46 PM
Howto disable "Graphical Login" or "Standard Login?" the_gripmaster Red Hat 1 07-08-2004 02:55 PM


All times are GMT -5. The time now is 09:11 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration