Date: Sat, 13 Aug 2011 22:12:26 -0500 From: Antonio Olivares <olivares14031@gmail.com> To: Polytropon <freebsd@edvax.de> Cc: FreeBSD Questions <freebsd-questions@freebsd.org> Subject: Re: System lockups in X with nVidia GeForce 7600 GS (G73) and Gtk+ Message-ID: <CAJ5UdcOnmo8HN3j1=5F9Pcj1X_VLFjwwD8Fc6N_kL4pwuB_omw@mail.gmail.com> In-Reply-To: <20110814032206.49ad7062.freebsd@edvax.de> References: <20110814032206.49ad7062.freebsd@edvax.de>
next in thread | previous in thread | raw e-mail | index | archive | help
> It complains about xorg-server must be >= 1.8, but > only 1.7.7 is in latest ports (right now). This is > step 4 on the list. Note that it's "./autogen.sh", > not "./autogen" as in the article. > > The steps explained are: > > 1. Uninstall any nvidia driver > # pkg_delete nvidia-driver-\* > # vi /boot/loader.conf # Remove the line 'nvidia_load="YES"' > > 2. Patch your kernel (Update your system if you are not running 8.0-CURRENT or a recent 7.1-STABLE / 7.2-PRERELEASE): > # cd /usr/src/sys > # fetch http://people.freebsd.org/~rnoland/drm-nouveau-032109.patch > # mkdir modules/drm/nouveau > # patch > drm-nouveau-032109.patch > # cd /usr/src && make kernel > # reboot > > 3. Install libdrm from git: > % git clone git://anongit.freedesktop.org/git/mesa/drm > % cd drm > % ./autogen --enable-nouveau-experimental-api > % gmake > % sudo gmake install > > 4. Install xf86-video-nouveau from git: > % git clone git://anongit.freedesktop.org/git/nouveau/xf86-video-nouveau > % cd xf86-video-nouveau > % ./autogen > % gmake > % sudo gmake install > > 5. Update /usr/local/etc/X11/xorg.conf. > > As I said, I have problems doing so because of > > nouveau_dri2.c:374: warning: implicit declaration of function 'DRI2BlockClient' > nouveau_dri2.c: In function 'nouveau_dri2_init': > nouveau_dri2.c:445: error: 'DRI2InfoRec' has no member named 'ScheduleSwap' > nouveau_dri2.c:446: error: 'DRI2InfoRec' has no member named 'ScheduleWaitMSC' > nouveau_dri2.c:447: error: 'DRI2InfoRec' has no member named 'GetMSC' > gmake[2]: *** [nouveau_dri2.lo] Error 1 > gmake[2]: Leaving directory `/usr/src/sys/drm/xf86-video-nouveau/src' > gmake[1]: *** [all-recursive] Error 1 > gmake[1]: Leaving directory `/usr/src/sys/drm/xf86-video-nouveau' > gmake: *** [all] Error 2 > > and so on. > > > > So my questions are: > > Has anyone got the "nouveau" driver working, and if, > how precisely has he done so? I have nouveau working but for another card: vgapci0@pci0:1:0:0: class=0x030000 card=0x82781043 chip=0x06e410de rev=0xa1 hdr=0x00 vendor = 'NVIDIA Corporation' device = 'NVIDIA GeForce 8400 GS (G98)' class = display subclass = VGA [olivares@quadcore ~]$ cat /var/log/Xorg.0.log | grep 'nouveau' (II) LoadModule: "nouveau" (II) Loading /usr/local/lib/xorg/modules/drivers/nouveau_drv.so (II) Module nouveau: vendor="X.Org Foundation" [drm] failed to load kernel module "nouveau" In mplayer's mailing list, some folks recommended me to get the nvidia driver directly, but I have run into trouble compiling the nvidia driver from ports. I need the source and I did not want to get into trouble :( > > Is there an explaination of the lockups (always only > in relation to Gtk+ triggering it)? Does it indicate > a defective driver or a defective hardware? What do > you think? > > I have _never_ encountered such kind of problems yet, > so I'm almost out of ideas. Sadly I can't check with > my (wonderfully working) ATI card because this one > is AGP, but the mainboard only has PCIe. > > Any ideas and instructions, as well as diagnosis-guessing > is very welcome. :-) > It complains about xorg-server must be >= 1.8, but > only 1.7.7 is in latest ports (right now). This is > step 4 on the list. Note that it's "./autogen.sh", > not "./autogen" as in the article. This would explain it :( The xorg-server is at 1.7.7, I questioned myself why xf86-driver-nouveau is from 2009 :(, and in Fedora it is just old and these guys keep churning and churning new & updated drivers :( The folks recommended me to get nvidia driver, but I get: quadcore# pwd /usr/ports/x11/nvidia-driver quadcore# make install clean ===> Building for nvidia-driver-270.41.19 ===> src (all) "/usr/share/mk/bsd.kmod.mk", line 12: "can't find kernel source tree" *** Error code 1 Stop in /usr/ports/x11/nvidia-driver/work/NVIDIA-FreeBSD-x86_64-270.41.19. *** Error code 1 Stop in /usr/ports/x11/nvidia-driver. *** Error code 1 Stop in /usr/ports/x11/nvidia-driver. Maybe this would be the route to go in your case Polytropon? The folks recommend it to me because of some additional things, lower CPU usage, better 3D stuff & other good things http://freebsd.1045724.n5.nabble.com/Nvidia-driver-td4078051.html Some folks say that it is the recommended thing to do, is to install nvidia drivers. Regards, Antonio
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAJ5UdcOnmo8HN3j1=5F9Pcj1X_VLFjwwD8Fc6N_kL4pwuB_omw>