Gå til innhold

Sette opp X i Arch Linux med nVidia kort


Anbefalte innlegg

Hei,

tenkte jeg skulle prøve Arch Linux, og installasjonen gikk smertefritt og var enkel. Men når jeg skulle installere X ble det derimot litt mer problemer.

 

Jeg installerte nvidia-drivern (jeg har et gammelt nVidia GeForce FX 5200 kort):

pacman -S nvidia

 

så installerte jeg X:

pacman -S xorg
xorgconfig

og konfigurerte Xorg.conf, som ser slik ut:

 

# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig:  version 1.0  (buildmeister@builder3)  Tue Aug  1 21:11:12 PDT 2006

# Section "InputDevice" 
#    Identifier  "Mouse2"
#    Driver      "mouse"
#    Option      "Protocol"      "MouseMan"
#    Option      "Device"        "/dev/mouse2"
# EndSection
#
# Section "InputDevice"
#    Identifier "spaceball"
#    Driver     "magellan"
#    Option     "Device"        "/dev/cua0"
# EndSection
#
# Section "InputDevice"
#    Identifier "spaceball2"
#    Driver     "spaceorb"
#    Option     "Device"        "/dev/cua0"
# EndSection
#
# Section "InputDevice"
#    Identifier "touchscreen0"
#    Driver     "microtouch"
#    Option     "Device"        "/dev/ttyS0"
#    Option     "MinX"          "1412"
#    Option     "MaxX"          "15184"
#    Option     "MinY"          "15372"
#    Option     "MaxY"          "1230"
#    Option     "ScreenNumber"  "0"
#    Option     "ReportingMode" "Scaled"
#    Option     "ButtonNumber"  "1"
#    Option     "SendCoreEvents"
# EndSection
#
# Section "InputDevice"
#    Identifier "touchscreen1"
#    Driver     "elo2300"
#    Option     "Device"        "/dev/ttyS0"
#    Option     "MinX"          "231"
#    Option     "MaxX"          "3868"
#    Option     "MinY"          "3858"
#    Option     "MaxY"          "272"
#    Option     "ScreenNumber"  "0"
#    Option     "ReportingMode" "Scaled"
#    Option     "ButtonThreshold"       "17"
#    Option     "ButtonNumber"  "1"
#    Option     "SendCoreEvents"
# EndSection
# **********************************************************************
# Monitor section
# **********************************************************************
# Any number of monitor sections may be present
# **********************************************************************
# Graphics device section
# **********************************************************************
# Any number of graphics device sections may be present
# Standard VGA Device:
# Device configured by xorgconfig:
# **********************************************************************
# Screen sections
# **********************************************************************
# Any number of screen sections may be present.  Each describes
# the configuration of a single screen.  A single specific screen section
# may be specified from the X server command line with the "-screen"
# option.
# **********************************************************************
# ServerLayout sections.
# **********************************************************************
# Any number of ServerLayout sections may be present.  Each describes
# the way multiple screens are organised.  A specific ServerLayout
# section may be specified from the X server command line with the
# "-layout" option.  In the absence of this, the first section is used.
# When now ServerLayout section is present, the first Screen section
# is used alone.
# Section "DRI"
#    Mode 0666
# EndSection

Section "ServerLayout"

# The Identifier line must be present
# Each Screen line specifies a Screen section name, and optionally
# the relative position of other screens.  The four names after
# primary screen name are the screens to the top, bottom, left and right
# of the primary screen.  In this example, screen 2 is located to the
# right of screen 1.
# Each InputDevice line specifies an InputDevice section name and
# optionally some options to specify the way the device is to be
# used.  Those options include "CorePointer", "CoreKeyboard" and
# "SendCoreEvents".
   Identifier     "Simple Layout"
   Screen         "Screen 1" 0 0
   InputDevice    "Mouse1" "CorePointer"
   InputDevice    "Keyboard1" "CoreKeyboard"
EndSection

Section "Files"

# The location of the RGB database.  Note, this is the name of the
# file minus the extension (like ".txt" or ".db").  There is normally
# no need to change the default.
# Multiple FontPath entries are allowed (which are concatenated together),
# as well as specifying multiple comma-separated entries in one FontPath
# command (or a combination of both methods)
# 
# 
#    FontPath   "/usr/share/fonts/Type1"
#    FontPath   "/usr/lib/X11/fonts/local/"
#    FontPath   "/usr/lib/X11/fonts/misc/"
#    FontPath   "/usr/lib/X11/fonts/75dpi/:unscaled"
#    FontPath   "/usr/lib/X11/fonts/100dpi/:unscaled"
#    FontPath   "/usr/lib/X11/fonts/Speedo/"
#    FontPath   "/usr/lib/X11/fonts/Type1/"
#    FontPath   "/usr/lib/X11/fonts/TrueType/"
#    FontPath   "/usr/lib/X11/fonts/freefont/"
#    FontPath   "/usr/lib/X11/fonts/75dpi/"
#    FontPath   "/usr/lib/X11/fonts/100dpi/"
# The module search path.  The default path is shown here.
#    ModulePath "/usr/lib/modules"
   RgbPath         "/usr/share/X11/rgb"
   FontPath        "/usr/share/fonts/misc"
   FontPath        "/usr/share/fonts/75dpi"
   FontPath        "/usr/share/fonts/100dpi"
   FontPath        "/usr/share/fonts/TTF"
EndSection

Section "Module"

# This loads the DBE extension module.
# initialisation of the XFree86-DGA extension within that module.
# This loads the font modules
#    Load        "type1"
#    Load        "speedo"
# This loads the GLX module
   Load       "glx"
# This loads the DRI module
#    Load       "dri"
   Load           "dbe"  	# Double buffer extension
 
# This loads the miscellaneous extensions module, and disables
   SubSection     "extmod"
       Option         "omit xfree86-dga"   # don't initialise the DGA extension
   EndSubSection
   Load           "freetype"
#    Load        "xtt"
EndSection

Section "InputDevice"

   Identifier     "Keyboard1"
   Driver         "kbd"
   Option         "AutoRepeat" "500 30"
# Specify which keyboard LEDs can be user-controlled (eg, with xset(1))
   Option         "XkbRules" "xorg"
   Option         "XkbModel" "pc104"
   Option         "XkbLayout" "no"
   Option         "XkbVariant" "no-latin1"
EndSection

Section "InputDevice"

# Identifier and driver
# the following line.
#    Option "Protocol"	"Xqueue"
# Mouse-speed setting for PS/2 mouse.
#    Option "Resolution"	"256"
# Baudrate and SampleRate are only for some Logitech mice. In
# almost every case these lines should be omitted.
#    Option "BaudRate"	"9600"
#    Option "SampleRate"	"150"
# Mouse wheel mapping.  Default is to map vertical wheel to buttons 4 & 5,
# horizontal wheel to buttons 6 & 7.   Change if your mouse has more than
# 3 buttons and you need to map the wheel to different button ids to avoid
# conflicts.
# 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"
   Identifier     "Mouse1"
   Driver         "mouse"
   Option         "Protocol" "Auto"	# Auto detect
   Option         "Device" "/dev/mouse"
# When using XQUEUE, comment out the above two lines, and uncomment
   Option         "ZAxisMapping" "4 5 6 7"
# Emulate3Buttons is an option for 2-button mice
EndSection

Section "Monitor"

# HorizSync is in kHz unless units are specified.
# HorizSync may be a comma separated list of discrete values, or a
# comma separated list of ranges of values.
# NOTE: THE VALUES HERE ARE EXAMPLES ONLY.  REFER TO YOUR MONITOR'S
# USER MANUAL FOR THE CORRECT NUMBERS.
#    HorizSync	30-64         # multisync
#    HorizSync	31.5, 35.2    # multiple fixed sync frequencies
#    HorizSync	15-25, 30-50  # multiple ranges of sync frequencies
# VertRefresh is in Hz unless units are specified.
# VertRefresh may be a comma separated list of discrete values, or a
# comma separated list of ranges of values.
# NOTE: THE VALUES HERE ARE EXAMPLES ONLY.  REFER TO YOUR MONITOR'S
# USER MANUAL FOR THE CORRECT NUMBERS.
   Identifier     "Dell"
   HorizSync       31.5 - 79.0
   VertRefresh     50.0 - 90.0
EndSection

Section "Device"

# The chipset line is optional in most cases.  It can be used to override
# the driver's chipset detection, and should not normally be specified.
#    Chipset	"generic"
# The Driver line must be present.  When using run-time loadable driver
# modules, this line instructs the server to load the specified driver
# module.  Even when not using loadable driver modules, this line
# indicates which driver should interpret the information in this section.
# The BusID line is used to specify which of possibly multiple devices
# this section is intended for.  When this line isn't present, a device
# section can only match up with the primary video device.  For PCI
# devices a line like the following could be used.  This line should not
# normally be included unless there is more than one video device
# intalled.
#    BusID      "PCI:0:10:0"
#    VideoRam	256
#    Clocks	25.2 28.3
   Identifier     "Standard VGA"
   Driver         "nvidia"
   VendorName     "Unknown"
   BoardName      "Unknown"
EndSection

Section "Device"

   #VideoRam    131072
   # Insert Clocks lines here if appropriate
   Identifier     "nVidia GeForce FX 5200"
   Driver         "nvidia"
EndSection

Section "Screen"
   Identifier     "Screen 1"
   Device         "nVidia GeForce FX 5200"
   Monitor        "Dell"
   DefaultDepth    24
   SubSection     "Display"
       Viewport    0 0
       Depth       8
       Modes      "1280x1024" "1024x768" "800x600" "640x480"
   EndSubSection
   SubSection     "Display"
       Viewport    0 0
       Depth       16
       Modes      "1280x1024" "1024x768" "800x600" "640x480"
   EndSubSection
   SubSection     "Display"
       Viewport    0 0
       Depth       24
       Modes      "1280x1024" "1024x768" "800x600" "640x480"
   EndSubSection
EndSection

 

 

 

Jeg trodde dette skulle være alt, så jeg prøvde å starte opp X. da fikk jeg beskjed om at den ikke fant modulen nvidia, og X startet ikke opp.

 

hva har jeg glemt her? Jeg har allerede sett på Arch Linux wiki'en

Lenke til kommentar
Videoannonse
Annonse
Sikker på at du har startet nvidia-modulen?

 

modprobe nvidia

hvis jeg ikke husker feil.

6840251[/snapback]

Det skal ikke være nødvendig. Modulen vil initialiseres automatisk under installasjonen, og er xorg.conf satt opp riktig, skal modulen sørge for at driveren startes når man starter X. Hvis man installerer driveren mens X er startet opp, må man selvfølgelig starte X på nytt. Men dette bør da være allmenn kunnskap.

Lenke til kommentar

jeg fikk en del spørsmål rundt det der når jeg installerte med driver fra hjemmesiden. da sa den at den kompilerte ett eller annet grensesnitt for meg tror jeg, husker ikke helt. Med den driveren fant den verken nvidia eller glx.

 

Til slutt funka det delvis ved at jeg kjørte pacman -Sf nvidia med den andre driveren installert. da funka det nesten. Får opp nvidia-logoen når jeg starter X, men så går den tilbake til konsollet. når jeg starter X som root kommer jeg til 3 xterm vinduer, og jeg klarer å starte xdm. men jeg får ikke logget inn derfra.

Lenke til kommentar

har ingen pakker som heter glxinfo.

 

Etter å ha sletta .xinitrc fikk jeg faktisk starta X som vanlig bruker også. Men dette er alt som skjer (se vedlagt bilde). starter jeg xdm får jeg opp en login manager hvor jeg ikke kan logge inn fra, fordi den ikke finner brukeren min.

 

Når jeg starter gdm ved oppstart kommer jeg til nVidia logoen, skjermen blir den standard blåfargen i ca. 1 sek, så stopper X.

post-47298-1158065035_thumb.png

Lenke til kommentar

Opprett en konto eller logg inn for å kommentere

Du må være et medlem for å kunne skrive en kommentar

Opprett konto

Det er enkelt å melde seg inn for å starte en ny konto!

Start en konto

Logg inn

Har du allerede en konto? Logg inn her.

Logg inn nå
×
×
  • Opprett ny...