From owner-freebsd-x11@freebsd.org Tue Jul 19 18:26:02 2016 Return-Path: Delivered-To: freebsd-x11@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 39B0BB9D7BA for ; Tue, 19 Jul 2016 18:26:02 +0000 (UTC) (envelope-from isoa@kapsi.fi) Received: from mail.kapsi.fi (mx1.kapsi.fi [IPv6:2001:1bc8:1004::1:25]) (using TLSv1.2 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id F3F0F1176 for ; Tue, 19 Jul 2016 18:26:01 +0000 (UTC) (envelope-from isoa@kapsi.fi) Received: from kirsikka.kapsi.fi ([217.30.184.185] helo=roundcube.kapsi.fi) by mail.kapsi.fi with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1bPZiO-0002So-Kn; Tue, 19 Jul 2016 21:25:56 +0300 MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Tue, 19 Jul 2016 21:25:56 +0300 From: Arto Pekkanen To: Kris Moore Cc: freebsd-x11@freebsd.org Subject: Re: Add NVIDIA driver to built-in Xorg configuration? In-Reply-To: <5166ed14-2751-8db9-f2ec-063f6e41765a@ixsystems.com> References: <1468938758.1929309.670653761.3FF6400F@webmail.messagingengine.com> <5166ed14-2751-8db9-f2ec-063f6e41765a@ixsystems.com> Message-ID: <70baed407721f41026fd9e6a6a66589e@kapsi.fi> X-Sender: isoa@kapsi.fi User-Agent: RoundCube Webmail/0.9.4 X-SA-Exim-Connect-IP: 217.30.184.185 X-SA-Exim-Mail-From: isoa@kapsi.fi X-SA-Exim-Scanned: No (on mail.kapsi.fi); SAEximRunCond expanded to false X-BeenThere: freebsd-x11@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: X11 on FreeBSD -- maintaining and support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Jul 2016 18:26:02 -0000 Kris Moore kirjoitti 19.07.2016 18:09: > On 07/19/2016 10:32, Tobias Kortkamp wrote: >> Hi, >> >> would it be possible to include the following patch in >> x11-servers/xorg-server? It adds the NVIDIA driver to the built-in X >> configuration. It would remove the need to have an xorg.conf on >> systems >> with an NVIDIA GPU which have to use x11/nvidia-driver. I think it's >> a >> source of unnecessary friction that doesn't really need to be there. >> It >> was deceptively simple to add, so I'm sure I'm missing something. ;-) >> >> Thanks, >> Tobias >> >> https://cgit.freedesktop.org/xorg/xserver/tree/hw/xfree86/common/xf86pciBus.c?id=xorg-server-1.17.4#n1187 >> =================================================================== >> --- files/patch-hw_xfree86_common_xf86pciBus.c (nonexistent) >> +++ files/patch-hw_xfree86_common_xf86pciBus.c (working copy) >> @@ -0,0 +1,10 @@ >> +--- hw/xfree86/common/xf86pciBus.c.orig 2016-07-19 >> 15:37:53.698794484 +0200 >> ++++ hw/xfree86/common/xf86pciBus.c 2016-07-19 15:37:26.000000000 >> +0200 >> +@@ -1192,6 +1192,7 @@ >> + #ifdef __linux__ >> + driverList[idx++] = "nouveau"; >> + #endif >> ++ driverList[idx++] = "nvidia"; >> + driverList[idx++] = "nv"; >> + break; >> + } >> _______________________________________________ >> freebsd-x11@freebsd.org mailing list >> https://lists.freebsd.org/mailman/listinfo/freebsd-x11 >> To unsubscribe, send any mail to "freebsd-x11-unsubscribe@freebsd.org" > > Ohh, we've been bit by that a bunch. I'm going to include this in > PC-BSD > also. Thanks! Bad idea, since nVidia driver is proprietary and must be installed separately. Thus it is only logical to have it configured separately. This is important to maintain a distiction between the bundled X.org drivers vs. 3rd party drivers. Also, currently the nVidia driver is broken on many FreeBSD versions due to KMS/DRM integration or lack thereof. Having X.org load nVidia automatically is just gonna cause a lot of trouble for the end user. And then there's the problem with nVidia Optimus laptops, where by default only the Intel driver works since the nVidia chip is not wired to any of the standard video outputs. Having nVidia auto loaded is just yet another problem waiting to happen. Why would PC-BSD even benefit from having nVidia auto loaded? The integration scripts should suggest enabling nVidia driver if compatible hardware is detected (ie. non-Optimus nVidia hardware, or Optimus where IGP outpus have been rewired to nVidia via BIOS). If the nVidia driver does not work, then the end user would actually realize, from context, that it was the nVidia driver that had problems. In case of problems if nVidia gets auto loaded without any notification to the user about it, then the user will be totally in the dark regarding why X.org won't start. Not even Linux distros auto load the proprietary nVidia driver. And for a good reason. -- Arto Pekkanen