From owner-freebsd-questions@FreeBSD.ORG Sun Sep 28 22:07:27 2008 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 BBF391065686 for ; Sun, 28 Sep 2008 22:07:27 +0000 (UTC) (envelope-from fbsd.kdang@googlemail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.174]) by mx1.freebsd.org (Postfix) with ESMTP id 444C28FC1E for ; Sun, 28 Sep 2008 22:07:26 +0000 (UTC) (envelope-from fbsd.kdang@googlemail.com) Received: by ug-out-1314.google.com with SMTP id m2so245744uge.39 for ; Sun, 28 Sep 2008 15:07:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:user-agent :mime-version:to:cc:subject:references:in-reply-to:content-type :content-transfer-encoding:from; bh=AI1mivP+rzFVWaK5SFCrhRbRsmnCDAbH+V271GiNyAo=; b=shiFNVpTU9Rl8ru6OfvIjSOILqqhBUXn7D+4QWXobQR0Pqif7j2VH1CYrCuy4C9Oc7 VA3z/yweIrAuVdeW1h8Z5rVgJntTjo5qa6aUHbiS3iag2obAMdXYER5fxPyXZ71IWZcV MTVPHnUJMqY1+dSID4qyqTpX9TXIKfRTfDWzM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=message-id:date:user-agent:mime-version:to:cc:subject:references :in-reply-to:content-type:content-transfer-encoding:from; b=nVtjEeYKwBMvHp/DaLELBp1AIDA2MdHaDnFpp/VkRRoZStvHDbWu9CNxP22QP/+sNy /ehbiF6bdNZVmyl3zyeopcR7UG9udOetYf5lTTms1DXDKBPdo/O0irRjySEmPGcrXAOy bhM55UYcE2Vrc5vMhgUvBpDBNCC5WAjWk8Ejs= Received: by 10.66.245.2 with SMTP id s2mr662578ugh.80.1222639645785; Sun, 28 Sep 2008 15:07:25 -0700 (PDT) Received: from kemian.inf.ed.ac.uk (87-194-156-73.bethere.co.uk [87.194.156.73]) by mx.google.com with ESMTPS id 27sm2315208ugp.19.2008.09.28.15.07.24 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 28 Sep 2008 15:07:24 -0700 (PDT) Message-ID: <48E00021.8010603@gmail.com> Date: Sun, 28 Sep 2008 23:07:29 +0100 User-Agent: Thunderbird 2.0.0.16 (X11/20080726) MIME-Version: 1.0 To: dmw@unete.cl References: <48DD0692.4070006@gmail.com> <48DD5EAD.3030101@gmail.com> <20080928132954.GD2945@torus.slightlystrange.org> <200809281236.21968.dmw@unete.cl> In-Reply-To: <200809281236.21968.dmw@unete.cl> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit From: Kemian Dang Cc: Daniel Bye , freebsd-questions@freebsd.org Subject: Re: OpenGL things crash X in FB7-Stable, nVidia Card 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, 28 Sep 2008 22:07:27 -0000 Daniel Molina Wegener wrote: > On Sunday 28 September 2008 09:29:55 Daniel Bye wrote: >> On Fri, Sep 26, 2008 at 11:14:05PM +0100, Kemian Dang wrote: >>> Daniel Bye wrote: >>>> On Fri, Sep 26, 2008 at 04:58:10PM +0100, Kemian Dang > wrote: >>>>> Hi all, >>>>> >>>>> I have a FreeBSD 7 Stable box with a nVidia 6150 Go >>>>> Graphic Card. Everything was OK sometime before, but >>>>> after a series updated on ports, ( I am not sure about >>>>> the time, I have not use OpenGL stuff for long time) >>>>> running a program with OpenGL will cause the X crashed. >>>> [ -- snip -- ] >>>> >>>>> The last crash is when I choose a OpenGL screensaver. >>>>> >>>>> The ports is updated nearly daily, and I think this may >>>>> happen after sometime after I updated the latest >>>>> nVidia-driver. >>>>> >>>>> Any ideas about this problem? >>>> Try reinstalling the nVidia driver port. It installs its >>>> own GL libs, which may have been replaced by another >>>> port, depending on the order in which your ports were >>>> updated. Reinstalling should ensure you have the correct >>>> libs in the correct place... >>>> >>>> Dan >>> Thanks for reply Daniel. >>> >>> I have re-installed the nvidia-driver and tested OpenGL - >>> Crash again. So it seems not the case... >> Rats! Sorry that didn't help. >> >> One other thing occurs to me - you mentioned you updated some >> ports. Have you also updated your system source tree without >> doing a full buildworld cycle? If so, chances are that your >> nVidia driver is built against a different version of the >> kernel source than the running kernel. Although any >> differences will be minimal, there is a chance that something >> changed enough to upset the driver. > > I was having similar problems with the nvidia driver on my > 6.4-PRERELEASE machine. > > The solution was to remove agp and drm related drivers from > the kernel configuration and setting: > > hw.nvidia.registry.EnableAGPFW=1 > hw.nvidia.registry.EnableAGPSBA=1 > > In my sysctl.conf, and also setting: > > Option "NvAGP" "3" > > In my xorg.conf in the Screen section... > > The concrete problem -- not related with GL failures -- was > system freezing with /sysctl -a/ command on terminal emulators > from X server. > > I hope it would help. > >> Failing that, all I can suggest is that you keep an eye on >> your console and see if the driver emits any messages just >> before it chokes. >> >> Good luck! >> >> Dan > > > Best regards, Does not work. I have removed the agp in kernel(there is no drm in my kernel), set the sysctl.conf and the xorg.conf. Recompiled and restarted my laptop. Xorg still crashed when I selecting the OpenGL Screen Saver. I can use sysctl -a, here is the result: 11:05pm kemian ~> sysctl -a |grep nvidia hw.nvidia.version: NVIDIA UNIX x86 Kernel Module 173.14.12 Thu Jul 17 18:06:02 PDT 2008 hw.nvidia.registry.EnableVia4x: 0 hw.nvidia.registry.EnableALiAGP: 0 hw.nvidia.registry.NvAGP: 1 hw.nvidia.registry.ReqAGPRate: 15 hw.nvidia.registry.EnableAGPSBA: 1 hw.nvidia.registry.EnableAGPFW: 1 hw.nvidia.registry.Mobile: 4294967295 hw.nvidia.registry.ResmanDebugLevel: 4294967295 hw.nvidia.registry.RmLogonRC: 1 hw.nvidia.registry.ModifyDeviceFiles: 1 hw.nvidia.registry.DeviceFileUID: 0 hw.nvidia.registry.DeviceFileGID: 0 hw.nvidia.registry.DeviceFileMode: 438 hw.nvidia.registry.RemapLimit: 0 hw.nvidia.registry.UpdateMemoryTypes: 4294967295 hw.nvidia.registry.UseVBios: 1 hw.nvidia.registry.RMEdgeIntrCheck: 1 hw.nvidia.registry.UsePageAttributeTable: 4294967295 hw.nvidia.registry.dwords: hw.nvidia.cards.0.model: GeForce Go 6150 hw.nvidia.cards.0.irq: 21 hw.nvidia.cards.0.vbios: 05.51.28.52.25 hw.nvidia.cards.0.type: PCI dev.nvidia.0.%desc: GeForce Go 6150 dev.nvidia.0.%driver: nvidia dev.nvidia.0.%parent: vgapci0 BTW, I have tried games/apoolGL, crashed as it started. Thanks, Kemian