From owner-freebsd-x11@freebsd.org Tue Jul 19 19:06:29 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 E4A2DB9E69D for ; Tue, 19 Jul 2016 19:06:29 +0000 (UTC) (envelope-from kris@ixsystems.com) Received: from barracuda.ixsystems.com (barracuda.ixsystems.com [12.229.62.30]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.ixsystems.com", Issuer "Go Daddy Secure Certificate Authority - G2" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id C23DD1E88 for ; Tue, 19 Jul 2016 19:06:29 +0000 (UTC) (envelope-from kris@ixsystems.com) X-ASG-Debug-ID: 1468955188-08ca0410fd146560001-0Qlll1 Received: from zimbra.ixsystems.com ([10.246.0.20]) by barracuda.ixsystems.com with ESMTP id gzwR6RM1MiUNAocK (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Tue, 19 Jul 2016 12:06:28 -0700 (PDT) X-Barracuda-Envelope-From: kris@ixsystems.com X-Barracuda-RBL-Trusted-Forwarder: 10.246.0.20 X-ASG-Whitelist: Client Received: from localhost (localhost [127.0.0.1]) by zimbra.ixsystems.com (Postfix) with ESMTP id BB043E0880C; Tue, 19 Jul 2016 12:06:28 -0700 (PDT) Received: from zimbra.ixsystems.com ([127.0.0.1]) by localhost (zimbra.ixsystems.com [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id 9Q4TlKWi3Rc5; Tue, 19 Jul 2016 12:06:28 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by zimbra.ixsystems.com (Postfix) with ESMTP id 0F3FDE088CB; Tue, 19 Jul 2016 12:06:27 -0700 (PDT) X-Virus-Scanned: amavisd-new at ixsystems.com Received: from zimbra.ixsystems.com ([127.0.0.1]) by localhost (zimbra.ixsystems.com [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id wQdFCdpqIZzd; Tue, 19 Jul 2016 12:06:27 -0700 (PDT) Received: from [172.20.0.22] (vpn.ixsystems.com [10.249.0.2]) by zimbra.ixsystems.com (Postfix) with ESMTPSA id 47B41E088C8; Tue, 19 Jul 2016 12:06:27 -0700 (PDT) Subject: Re: Add NVIDIA driver to built-in Xorg configuration? To: Arto Pekkanen X-ASG-Orig-Subj: Re: Add NVIDIA driver to built-in Xorg configuration? References: <1468938758.1929309.670653761.3FF6400F@webmail.messagingengine.com> <5166ed14-2751-8db9-f2ec-063f6e41765a@ixsystems.com> <70baed407721f41026fd9e6a6a66589e@kapsi.fi> Cc: freebsd-x11@freebsd.org From: Kris Moore Message-ID: <06092db3-9290-ef54-aae2-d1ab9e299441@ixsystems.com> Date: Tue, 19 Jul 2016 15:06:24 -0400 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:45.0) Gecko/20100101 Thunderbird/45.1.1 MIME-Version: 1.0 In-Reply-To: <70baed407721f41026fd9e6a6a66589e@kapsi.fi> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-Barracuda-Connect: UNKNOWN[10.246.0.20] X-Barracuda-Start-Time: 1468955188 X-Barracuda-Encrypted: ECDHE-RSA-AES256-GCM-SHA384 X-Barracuda-URL: https://10.246.0.26:443/cgi-mod/mark.cgi X-Virus-Scanned: by bsmtpd at ixsystems.com X-Barracuda-BRTS-Status: 1 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 19:06:30 -0000 On 07/19/2016 14:25, Arto Pekkanen wrote: > 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. > We already ship the nvidia driver, and auto-loads depending upon which device is found from 'pciconf' (Ignoring optimus). That has historically worked well for us, and it *used* to work with xorg auto-detecting nvidia drivers out of box. I'm hoping this restores that behavior. -- Kris Moore iXsystems Enterprise Storage & Servers Driven By Open Source