Gentoo Archives: gentoo-user

From: Jonatan Antoni <jantoni@×××.de>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Nvidia hangs Xorg
Date: Wed, 01 Mar 2006 11:43:12
Message-Id: 4405878F.6010601@web.de
1 Hi again,
2
3 On 2/28/06, Daniel da Veiga <danieldaveiga@×××××.com> wrote:
4 > On 2/28/06, Jonatan Antoni <jantoni@×××.de> wrote:
5 > > Hy there,
6 > >
7 > > I'm playing around with the nvidia kernel-modules and glx-drivers
8 for x11 for a while.
9 > > First all works fine, but using mozilla-firefox crashes the
10 x-server after a while. Let
11 > > me give you an example: Running firefox works, going to google as
12 well, but going to
13 > > http://gentoo-wiki.com/HOWTO_Dual_Monitors and click the link "4.1
14 Moving focus between screens"
15 > > hangs the display. I can still move around the mouse-cursor, but
16 everything else is locked.
17 > >
18 > > Logging in to my system remotely by ssh, I can find the X-proccess
19 taking nearly 100 percent
20 > > of cpu-time. By restarting xdm the X-system comes back correctly.
21 > >
22 > > Now I'm back using the default nv-driver of the xorg-project,
23 because that's the only way of sending
24 > > this email without x11 hangs. In the future I want to use the
25 dual-head function of my geforce fx5200
26 > > for a video-beamer. Is there another way without using the original
27 nvidia drivers or has somebody
28 > > a hint about that nasty error?
29 > >
30 > I have an FX 5200 too, and never had problems with it, I used to
31 > download and install the NVidia drivers from their site, but then I
32 > noticed that portage could handle it, so I just call "emerge
33 > nvidia-settings" (as it gets by dependency nvidia-kernel and
34 > nvidia-glx). Everything works. Have you tried following the NVidia
35 > Guide from the Gentoo Docs?
36
37 Today I tried it by emerging nvidia-kernel-1.0.8178-r3 and
38 nvidia-glx-1.0.8178,
39 having gentoo-kernel 2.6.14-r5 running. Loading the kernel-module with
40 modprobe
41 works fine. Than I tuned my xorg.conf to use the nvidia-glx module, now
42 my xorg.conf
43 looks like this:
44
45 ---[/etc/X11/xorg.conf]------------
46
47 Section "Module"
48
49 SubSection "extmod"
50 Option "omit xfree86-dga" # don't initialise the DGA extension
51 EndSubSection
52
53 Load "type1"
54 Load "freetype"
55 Load "glx"
56
57 EndSection
58
59 Section "Files"
60
61 RgbPath "/usr/X11R6/lib/X11/rgb"
62
63 FontPath "/usr/share/fonts/misc/"
64 FontPath "/usr/share/fonts/TTF/"
65 FontPath "/usr/share/fonts/Type1/"
66 # FontPath "/usr/share/fonts/CID/"
67 FontPath "/usr/share/fonts/75dpi/"
68 FontPath "/usr/share/fonts/100dpi/"
69 FontPath "/usr/share/fonts/local/"
70 # FontPath "/usr/share/fonts/Speedo/"
71 # FontPath "/usr/share/fonts/TrueType/"
72 FontPath "/usr/share/fonts/freefont/"
73
74 # The module search path. The default path is shown here.
75 # ModulePath "/usr/X11R6/lib/modules"
76
77 EndSection
78
79 Section "ServerFlags"
80
81 EndSection
82
83 Section "InputDevice"
84
85 Identifier "Keyboard1"
86 Driver "kbd"
87 Option "AutoRepeat" "500 30"
88 Option "XkbRules" "xorg"
89 Option "XkbModel" "logicdp"
90 Option "XkbLayout" "de"
91 Option "XkbVariant" "nodeadkeys"
92
93 EndSection
94
95 Section "InputDevice"
96
97 Identifier "Mouse1"
98 Driver "mouse"
99 Option "Protocol" "IMPS/2"
100 Option "Device" "/dev/input/mice"
101 Option "ZAxisMapping" "4 5"
102
103 EndSection
104
105 Section "Monitor"
106
107 Identifier "monitor"
108 HorizSync 30-96
109 VertRefresh 48-160
110 Option "DPMS"
111
112 EndSection
113
114 Section "Device"
115 Identifier "graka"
116 Driver "nvidia"
117 Screen 0
118 #VideoRam 65536
119 # Insert Clocks lines here if appropriate
120 EndSection
121
122 Section "Screen"
123 Identifier "Screen 1"
124 Device "graka"
125 Monitor "monitor"
126 DefaultDepth 24
127
128 Subsection "Display"
129 Depth 8
130 Modes "1280x1024" "1024x768" "800x600" "640x480"
131 ViewPort 0 0
132 EndSubsection
133 Subsection "Display"
134 Depth 16
135 Modes "1280x1024" "1024x768" "800x600" "640x480"
136 ViewPort 0 0
137 EndSubsection
138 Subsection "Display"
139 Depth 24
140 Modes "1280x1024" "1024x768" "800x600" "640x480"
141 ViewPort 0 0
142 EndSubsection
143 EndSection
144
145 Section "ServerLayout"
146
147 Identifier "Simple Layout"
148 Screen "Screen 1"
149 InputDevice "Mouse1" "CorePointer"
150 InputDevice "Keyboard1" "CoreKeyboard"
151
152 EndSection
153
154 ---[END]------------------
155
156 Starting up xorg just with 'startx' works fine.. xfce4 comes up. But
157 lateron it hangs with nearly 100 percent of cpu-time usage,
158 especially if I use the webbrowser firefox.
159
160 I don't know what's wrong. Any more hints on that?
161
162 thx,
163 Jonatan
164 --
165 gentoo-user@g.o mailing list

Replies

Subject Author
Re: [gentoo-user] Nvidia hangs Xorg Glenn Enright <elinar@×××××××.nz>