Nvidia 3D-Beschleunigung unter Suse 10.2

derder
Hallo,
ich sitze bereits seit zwei Tagen an der Installation des Nvidia Grafiktreibers für meine GeForce 5500FX. Habe mich bei der Installation und Konfiguration an diverse Tutorials gehalten und bis dahin gab es auch keine Probleme. Aber direct rendering ist nicht aktiviert. Ich habe auch nach dem Problem schon zwei Tage gegoogelt und verschiedene Änderungen an der xorg.conf durchprobiert, ohne Erfolg. Ich bin gerade am verzweifeln und freue mich über jede Hilfe. Der Treiber wurde übre yast installiert.

Hier noch die xorg.conf:

code:
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64:
65:
66:
67:
68:
69:
70:
71:
72:
73:
74:
75:
76:
77:
78:
79:
80:
81:
82:
83:
84:
85:
86:
87:
88:
89:
90:
91:
92:
93:
94:
95:
96:
97:
98:
99:
100:
101:
102:
103:
104:
105:
106:
107:
108:
109:
110:
111:
112:
113:
114:
115:
116:
117:
118:
119:
120:
121:
122:
123:
124:
125:
126:
127:
128:
129:
130:
131:
132:
133:
134:
135:
136:
137:
138:
139:
140:
141:
142:
143:
144:
145:
146:
147:
148:
149:
# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig:  version 1.0  (buildmeister@builder3)  Thu Feb 14 18:20:37 PST 2008

# /.../
# SaX generated X11 config file
# Created on: 2008-05-04T14:14:22+0200.
#
# Version: 8.1
# Contact: Marcus Schaefer <sax@suse.de>, 2005
# Contact: SaX-User list <https://lists.berlios.de/mailman/listinfo/sax-users>
#
# Automatically generated by [ISaX] (8.1)
# PLEASE DO NOT EDIT THIS FILE!
#

Section "ServerLayout"
    Identifier     "Layout[all]"
    Screen         "Screen[0]" 0 0
    InputDevice    "Keyboard[0]" "CoreKeyboard"
    InputDevice    "Mouse[1]" "CorePointer"
    Option         "Clone" "off"
    Option         "Xinerama" "off"
EndSection

Section "Files"
    InputDevices      "/dev/gpmdata"
    InputDevices      "/dev/input/mice"
    FontPath        "/usr/share/fonts/misc:unscaled"
    FontPath        "/usr/share/fonts/local"
    FontPath        "/usr/share/fonts/75dpi:unscaled"
    FontPath        "/usr/share/fonts/100dpi:unscaled"
    FontPath        "/usr/share/fonts/Type1"
    FontPath        "/usr/share/fonts/URW"
    FontPath        "/usr/share/fonts/Speedo"
    FontPath        "/usr/share/fonts/PEX"
    FontPath        "/usr/share/fonts/cyrillic"
    FontPath        "/usr/share/fonts/latin2/misc:unscaled"
    FontPath        "/usr/share/fonts/latin2/75dpi:unscaled"
    FontPath        "/usr/share/fonts/latin2/100dpi:unscaled"
    FontPath        "/usr/share/fonts/latin2/Type1"
    FontPath        "/usr/share/fonts/latin7/75dpi:unscaled"
    FontPath        "/usr/share/fonts/baekmuk:unscaled"
    FontPath        "/usr/share/fonts/japanese:unscaled"
    FontPath        "/usr/share/fonts/kwintv"
    FontPath        "/usr/share/fonts/truetype"
    FontPath        "/usr/share/fonts/uni:unscaled"
    FontPath        "/usr/share/fonts/CID"
    FontPath        "/usr/share/fonts/ucs/misc:unscaled"
    FontPath        "/usr/share/fonts/ucs/75dpi:unscaled"
    FontPath        "/usr/share/fonts/ucs/100dpi:unscaled"
    FontPath        "/usr/share/fonts/hellas/misc:unscaled"
    FontPath        "/usr/share/fonts/hellas/75dpi:unscaled"
    FontPath        "/usr/share/fonts/hellas/100dpi:unscaled"
    FontPath        "/usr/share/fonts/hellas/Type1"
    FontPath        "/usr/share/fonts/misc/sgi:unscaled"
    FontPath        "/usr/share/fonts/xtest"
    FontPath        "/opt/kde3/share/fonts"
    FontPath        "unix/:7100"
EndSection

Section "Module"
    Load           "dbe"
    Load           "type1"
    Load           "freetype"
    Load           "extmod"
    Load           "glx"
    Load           "v4l"
    #Load           "dri"
EndSection

Section "ServerFlags"
    Option         "AllowMouseOpenFail" "on"
EndSection

Section "InputDevice"
    Identifier     "Keyboard[0]"
    Driver         "kbd"
    Option         "Protocol" "Standard"
    Option         "XkbLayout" "de"
    Option         "XkbModel" "microsoftpro"
    Option         "XkbRules" "xfree86"
EndSection

Section "InputDevice"
    Identifier     "Mouse[1]"
    Driver         "mouse"
    Option         "Buttons" "10"
    Option         "Device" "/dev/input/mice"
    Option         "Name" "PS2++ Logitech MX Mouse"
    Option         "Protocol" "explorerps/2"
    Option         "Vendor" "Sysp"
    Option         "ZAxisMapping" "4 5"
EndSection

Section "Modes"
    Identifier         "Modes[0]"
EndSection

Section "Monitor"
    Identifier     "Monitor[0]"
    VendorName     "SAMTRON"
    ModelName      "96P97P(T)"
    UseModes       "Modes[0]"
    DisplaySize     352    264
    HorizSync       30.0 - 93.0
    VertRefresh     50.0 - 160.0
    Option         "CalcAlgorithm" "XServerPool"
    Option         "DPMS"
EndSection

Section "Device"
    Identifier     "Device[0]"
    Driver         "nvidia"
    VendorName     "NVIDIA"
    BoardName      "GeForce FX 5500"
EndSection

Section "Screen"
    Identifier     "Screen[0]"
    Device         "Device[0]"
    Monitor        "Monitor[0]"
    DefaultDepth    24
    Option         "NvAGP" "3"
    Option         "NoLogo" "1"
    Option         "RenderAccel" "True"
    Option         "AddARGBGLXVisuals" "True"
    SubSection     "Display"
        Depth       15
        Modes      "1280x1024" "1280x960" "1280x800" "1152x864" "1280x768" "1024x768" "1280x600" "1024x600" "800x600" "768x576" "640x480"
    EndSubSection
    SubSection     "Display"
        Depth       16
        Modes      "1280x1024" "1280x960" "1280x800" "1152x864" "1280x768" "1024x768" "1280x600" "1024x600" "800x600" "768x576" "640x480"
    EndSubSection
    SubSection     "Display"
        Depth       24
        Modes      "1280x1024" "1280x960" "1280x800" "1152x864" "1280x768" "1024x768" "1280x600" "1024x600" "800x600" "768x576" "640x480"
    EndSubSection
    SubSection     "Display"
        Depth       8
        Modes      "1280x1024" "1280x960" "1280x800" "1152x864" "1280x768" "1024x768" "1280x600" "1024x600" "800x600" "768x576" "640x480"
    EndSubSection
EndSection

Section "Extensions"
    Option         "Composite" "Enable"
EndSection

BluePeril
Ich hab die Kommentare ganz oben mal weggelassen:
code:
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64:
65:
66:
67:
68:
69:
70:
71:
72:
73:
74:
75:
76:
77:
78:
79:
80:
81:
82:
83:
84:
85:
86:
87:
88:
89:
90:
91:
92:
93:
94:
95:
96:
97:
98:
99:
100:
101:
102:
103:
104:
105:
106:
107:
108:
109:
110:
111:
112:
113:
114:
115:
116:
117:
118:
119:
120:
121:
122:
123:
124:
125:
126:
127:
128:
129:
130:
131:
132:
133:
134:
135:
136:
137:
138:
139:
Section "ServerLayout"
    Identifier     "Layout[all]"
    Screen         "Screen[0]" 0 0
    InputDevice    "Keyboard[0]" "CoreKeyboard"
    InputDevice    "Mouse[1]" "CorePointer"
    Option         "Clone" "off"
    Option         "Xinerama" "off"
EndSection

Section "Files"
    InputDevices      "/dev/gpmdata"
    InputDevices      "/dev/input/mice"
    FontPath        "/usr/share/fonts/misc:unscaled"
    FontPath        "/usr/share/fonts/local"
    FontPath        "/usr/share/fonts/75dpi:unscaled"
    FontPath        "/usr/share/fonts/100dpi:unscaled"
    FontPath        "/usr/share/fonts/Type1"
    FontPath        "/usr/share/fonts/URW"
    FontPath        "/usr/share/fonts/Speedo"
    FontPath        "/usr/share/fonts/PEX"
    FontPath        "/usr/share/fonts/cyrillic"
    FontPath        "/usr/share/fonts/latin2/misc:unscaled"
    FontPath        "/usr/share/fonts/latin2/75dpi:unscaled"
    FontPath        "/usr/share/fonts/latin2/100dpi:unscaled"
    FontPath        "/usr/share/fonts/latin2/Type1"
    FontPath        "/usr/share/fonts/latin7/75dpi:unscaled"
    FontPath        "/usr/share/fonts/baekmuk:unscaled"
    FontPath        "/usr/share/fonts/japanese:unscaled"
    FontPath        "/usr/share/fonts/kwintv"
    FontPath        "/usr/share/fonts/truetype"
    FontPath        "/usr/share/fonts/uni:unscaled"
    FontPath        "/usr/share/fonts/CID"
    FontPath        "/usr/share/fonts/ucs/misc:unscaled"
    FontPath        "/usr/share/fonts/ucs/75dpi:unscaled"
    FontPath        "/usr/share/fonts/ucs/100dpi:unscaled"
    FontPath        "/usr/share/fonts/hellas/misc:unscaled"
    FontPath        "/usr/share/fonts/hellas/75dpi:unscaled"
    FontPath        "/usr/share/fonts/hellas/100dpi:unscaled"
    FontPath        "/usr/share/fonts/hellas/Type1"
    FontPath        "/usr/share/fonts/misc/sgi:unscaled"
    FontPath        "/usr/share/fonts/xtest"
    FontPath        "/opt/kde3/share/fonts"
    FontPath        "unix/:7100"
EndSection

Section "Module"
    Load           "dbe"
    Load           "type1"
    Load           "freetype"
    Load           "extmod"
    Load           "glx"
    Load           "v4l"
    Load           "dri"
    Load           "drm"
EndSection

Section "ServerFlags"
    Option         "AllowMouseOpenFail" "on"
    Option         "AIGLX"                    "on"
EndSection

Section "InputDevice"
    Identifier     "Keyboard[0]"
    Driver         "kbd"
    Option         "Protocol" "Standard"
    Option         "XkbLayout" "de"
    Option         "XkbModel" "microsoftpro"
    Option         "XkbRules" "xfree86"
EndSection

Section "InputDevice"
    Identifier     "Mouse[1]"
    Driver         "mouse"
    Option         "Buttons" "10"
    Option         "Device" "/dev/input/mice"
    Option         "Name" "PS2++ Logitech MX Mouse"
    Option         "Protocol" "explorerps/2"
    Option         "Vendor" "Sysp"
    Option         "ZAxisMapping" "4 5"
EndSection

Section "Modes"
    Identifier         "Modes[0]"
EndSection

Section "Monitor"
    Identifier     "Monitor[0]"
    VendorName     "SAMTRON"
    ModelName      "96P97P(T)"
    UseModes       "Modes[0]"
    DisplaySize     352    264
    HorizSync       30.0 - 93.0
    VertRefresh     50.0 - 160.0
    Option         "CalcAlgorithm" "XServerPool"
    Option         "DPMS"
EndSection

Section "Device"
    Identifier     "Device[0]"
    Driver         "nvidia"
    VendorName     "NVIDIA"
    BoardName      "GeForce FX 5500"
    Option         "NvAGP" "3"
    Option         "NoLogo" "1"
    Option         "RenderAccel" "True"
    Option         "AddARGBGLXVisuals" "True"
EndSection

Section "Screen"
    Identifier     "Screen[0]"
    Device         "Device[0]"
    Monitor        "Monitor[0]"
    DefaultDepth    24

    SubSection     "Display"
        Depth       15
        Modes      "1280x1024" "1280x960" "1280x800" "1152x864" "1280x768" "1024x768" "1280x600" "1024x600" "800x600" "768x576" "640x480"
    EndSubSection
    SubSection     "Display"
        Depth       16
        Modes      "1280x1024" "1280x960" "1280x800" "1152x864" "1280x768" "1024x768" "1280x600" "1024x600" "800x600" "768x576" "640x480"
    EndSubSection
    SubSection     "Display"
        Depth       24
        Modes      "1280x1024" "1280x960" "1280x800" "1152x864" "1280x768" "1024x768" "1280x600" "1024x600" "800x600" "768x576" "640x480"
    EndSubSection
    SubSection     "Display"
        Depth       8
        Modes      "1280x1024" "1280x960" "1280x800" "1152x864" "1280x768" "1024x768" "1280x600" "1024x600" "800x600" "768x576" "640x480"
    EndSubSection
EndSection

Section "Extensions"
    Option         "Composite" "Enable"
EndSection

Section "DRI"
	Mode		0666
EndSection
Das Module dri muss geladen werden (also # wegmachen). Außerdem fehlt das Module drm.
Ich hab die Section DRI noch mit drin (und den entsprechenden Nutzerrechten), damit auch ein normaler Nutzer OpenGL nutzen kann.
Unter Serverflags kann man noch Option "AIGLX" "on" packen, was die Desktopeffekte einschaltbar machen sollte.

Mir ist auch nicht klar, warum folgende Befehle bei dir in der "Section Screen" stehen, die sollten eigentlich in der "Section Device" sein:
code:
1:
2:
3:
4:
    Option         "NvAGP" "3"
    Option         "NoLogo" "1"
    Option         "RenderAccel" "True"
    Option         "AddARGBGLXVisuals" "True"


Die Config, die ich gepostet habe, sollte theoretisch funktionieren.
derder
habe die xorg.conf von dir übernommen, Xserver neugestartet (alt+strg+backspace):

glxinfo | grep direct
direct rendering: No

ich habe keine ahnung warum...
BluePeril
was gibt denn die Xorg.0.log aus (sollte unter /var/log zufinden sein)?
Ist der Treiber geladen? (in der Konsole ein lsmod | grep 'nvidia' sollte es anzeigen)
derder
lsmod | grep 'nvidia' gibt das aus:
nvidia 7854240 28
nvidia_agp 12316 1
agpgart 35528 2 nvidia,nvidia_agp
i2c_core 25216 2 nvidia,i2c_nforce2

das ist die log datei:
http://pastebin.com/f733e2d02
BluePeril
Das nvidia Modul ist richtig geladen und in der Log steht auch drin, dass es genutzt wird. Hast du mal nachgesehen, was glxinfo | grep direct ausgibt, wenn du dich als root anmeldest?
derder
code:
1:
2:
3:
4:
5:
6:
7:
derder@derder:~> glxinfo | grep direct
direct rendering: No
derder@derder:~> su
Passwort:
derder:/home/derder # glxinfo  | grep direct
direct rendering: Yes


interessant... nimms mir nicht übel aber ich weiß nicht wie ich das ändere...
BluePeril
Section "DRI"
Mode 0666
EndSection

Hast du das zu deiner xorg.conf hinzugefügt? Komplett neugestartet? Überprüfe auch mal ob du in der Gruppe video bist (sollte irgendwo im Yast einstellbar sein, ansonsten kuser).
derder
die section dri ist drin, in der gruppe video bin ich auch und ne kompletten reboot hab ich auch hinter mir. leider keine veränderung...
BluePeril
Ich denke, da wird irgendwo eine Berechtigung fehlen.
du kannst mal ein strace glxinfo > user.log 2>&1 als normaler Nutzer und als root machen (überschreib aber die eine Datei nicht!)
strace musst du eventuell vorher noch installieren.
derder
ich verstehe nicht ganz was ich machen soll bezüglich dieser log datei. ich habe keine derartige finden können. ich hab mal die konsolenausgabe von strace kopiert:

als user
http://pastebin.org/33955

als root
http://pastebin.org/33958

leider fehlen irgendwie die ersten zeilen bei der rootvariante weil der ausgegebene text zu lang für die konsole ist. ich hab nichts gefunden das zu beheben.
BluePeril
Darin sind alle Module, die er aufruft, für dich lesbar (sofern ich nichts übersehen habe).
So langsam weiß ich auch nicht weiter, die letzte Vermutung, die mir noch einfällt, wären die falschen Rechte unter /dev. Diese Dateien sind bei dir auch nicht mit aufgeführt, was bei mir der Fall ist.
Du solltest mit ls -l /dev/nvidia* folgendes oder ähnliches Bild erhalten:
code:
1:
2:
3:
ls -l /dev/nvidia*
crw-rw-rw- 1 root root 195,   0  5. Mai 16:39 /dev/nvidia0
crw-rw-rw- 1 root root 195, 255  5. Mai 16:39 /dev/nvidiactl
Sprich die Dateien sind les- und schreibbar, aber nicht ausführbar (rw-rw-rw-). Wenn dem nicht so ist kannst du dies mit chmod 666 /dev/nvidia* korrigieren.
Vielleicht liegt es aber auch an einer Richtlinie, die SELinux oder AppArmor vorgibt. Damit kenne ich mich allerdings nicht aus, da ich es nicht verwende.
derder
ls -l /dev/nvidia*
crw-rw---- 1 root video 195, 0 5. Mai 14:36 /dev/nvidia0
crw-rw---- 1 root video 195, 255 5. Mai 14:36 /dev/nvidiactl

deinen befehl wie gesagt durchgeführt (musste es seltsamerweise zweimal machen) und dann die richtige ausgabe gehabt. alt+strg+backspace und wieder direct rendering: no. daraufhin nochmal

ls -l /dev/nvidia*

und wieder
crw-rw---- 1 root video 195, 0 5. Mai 14:36 /dev/nvidia0
crw-rw---- 1 root video 195, 255 5. Mai 14:36 /dev/nvidiactl
BluePeril
ls zeigt nur an, um die Rechte zu ändern musst du den chmod Befehl ausführen. Dies ist wahrscheinlich auch der Grund, warum bei dir Direct Rendering nicht geht. Aber wenn du in der der Gruppe video bist, solltest du es trotzdem nutzen können.
Die Erklärung: der letzte Dreierblock "rw-" ist für die allgemeinen Benutzer, diese haben keine Zugriffsrechte. der Vorletzte Dreierblock ist für die Mitglieder der Gruppe video wichtig, diese haben hier Schreib- und Leserechte. der erste "rw-" Block ist für den Besitzer wichtig (hier root), dieser hat auch nur Schreib- und Leserechte.

Aus der grafischen Oberfläche ausloggen, Strg+Alt+F1 drücken, hier mit root einloggen und folgende Befehle ausführen:
code:
1:
2:
3:
4:
5:
init 3
gpasswd -a derder video
chmod 666 /dev/nvidia*
init 5


der erste beendet die komplette grafische Oberfläche, der zweite fügt dich der Gruppe video hinzu (auch wenn du es schon bist), der dritte setzt die Rechte der Dateien, der vierte startet die Grafik wieder. Danach mit Strg+Alt+F7 zur grafischen Oberfläche wechseln.
derder
Alles durchgeführt wie beschrieben (und wie nutzerrechte funktionieren wusste ich sogar schon) außer der gpasswd befehl. der hat kein "-a" und ändert auch das passwort einer gruppe. danach chmod 666 /dev/nvidia* durchgeführt. habe danach auch gleich als root per ls -l /dev/nvidia* geprüft ob die änderungen geschehen sind und sie waren geschehen. dann init 5, als benutzer eingeloggt und nochmal geprüft: als erstes direct rendering: no und danach kam per ls -l /dev/nvidia* wieder nur ein rw-rw---- bei raus.
BluePeril
Tut mir leid, aber mir gehen die Ideen aus.
Das einzige, was mir noch einfällt, wäre eine Unverträglichkeit, wenn du die ATI/AMD (fglrx) Treiber und die nVidia Treiber gleichzeitig installiert hast, dies war bei mir auf Grund eines Kartentausch vor einiger Zeit der Fall.
derder
gut, dem könnten wir nachgehen, die sind nämlcih beide installiert, wie deinstalliere ich denn den fglrx?
BluePeril
Yast --> Software hinzufügen/entfernen (Kann auch anders heißen).
Da suchst du dann die ATI Treiber und fglrx und deinstallierst sie. Sollte eigentlich selbsterklärend sein.
derder
das wird wohl nicht so einfach über yast gehen. ich hab den damals manuell installiert. der findet fglrx nichtmal über die paketverwaltung.
BluePeril
Da ich kein Suse mehr habe, kann es sein, dass die Pfade bzw. die Dateien an anderer Stelle sind.

die folgenden Dateien lagen bei mir in /usr/lib/xorg/
FGL.renamed.libGL.so.1.2
libfglrx_dm.a
libfglrx_dm.so.1.0
libfglrx_gamma.a
libfglrx_gamma.so.1 -> libfglrx_gamma.so.1.0
libfglrx_gamma.so.1.0
libfglrx_pp.a
libfglrx_pp.so.1.0
libfglrx_tvout.a
libfglrx_tvout.so.1 -> libfglrx_tvout.so.1.0
libfglrx_tvout.so.1.0
libGL.so -> /usr/lib/xorg/libGL.so.1.2
libGL.so.1 -> /usr/lib/xorg/libGL.so.1.2
libGL.so.1.2

Diese habe ich gelöscht und es funktionierte wieder. Allerdings nutze ich auch eine andere Linux Distribution. An deiner Stelle würde ich, wenn die Dateien gelöscht wurden, die installierten nvidia und xorg Pakete nochmal neuinstallieren. Dies kann man bequem im Yast machen.
Ob dies die Lösung bringt, weiß ich allerdings nicht.