From owner-freebsd-questions@FreeBSD.ORG Sun Aug 14 03:12:26 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D8F40106566B for ; Sun, 14 Aug 2011 03:12:26 +0000 (UTC) (envelope-from olivares14031@gmail.com) Received: from mail-iy0-f172.google.com (mail-iy0-f172.google.com [209.85.210.172]) by mx1.freebsd.org (Postfix) with ESMTP id A7F3D8FC0A for ; Sun, 14 Aug 2011 03:12:26 +0000 (UTC) Received: by iye7 with SMTP id 7so10368434iye.17 for ; Sat, 13 Aug 2011 20:12:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=4kDHCu5vQ82MC0R1IL+5d+KUEoRCM2eYsjyxO14yMFM=; b=WyN06G0y7vRXKGQTxtq22VumhOct48xcHc8k9CJ4SI5Pv1O1RnHvNu8ecu9knZZjEn GmUiZUCVx1Y7wDM1UlLn93+yz2EEQA22f3MGvbwM2yo7xrAvg3UDkPI7K52PbTkUMObc RC1vV3Kt8XNkRbxDago62F/NREeFV4qtZXQ9Y= MIME-Version: 1.0 Received: by 10.42.156.1 with SMTP id x1mr2701374icw.226.1313291546045; Sat, 13 Aug 2011 20:12:26 -0700 (PDT) Received: by 10.42.169.134 with HTTP; Sat, 13 Aug 2011 20:12:26 -0700 (PDT) In-Reply-To: <20110814032206.49ad7062.freebsd@edvax.de> References: <20110814032206.49ad7062.freebsd@edvax.de> Date: Sat, 13 Aug 2011 22:12:26 -0500 Message-ID: From: Antonio Olivares To: Polytropon Content-Type: text/plain; charset=ISO-8859-1 Cc: FreeBSD Questions Subject: Re: System lockups in X with nVidia GeForce 7600 GS (G73) and Gtk+ X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 14 Aug 2011 03:12:26 -0000 > 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