From owner-freebsd-x11@freebsd.org Tue Oct 4 22:58:32 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 94A53AF4C54; Tue, 4 Oct 2016 22:58:32 +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 59F95CF9; Tue, 4 Oct 2016 22:58:32 +0000 (UTC) (envelope-from isoa@kapsi.fi) Received: from karviainen.kapsi.fi ([217.30.184.182] 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 1brYfL-0006aE-US; Wed, 05 Oct 2016 01:58:28 +0300 MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Wed, 05 Oct 2016 01:58:27 +0300 From: Arto Pekkanen To: Petr Fischer Cc: freebsd-x11@freebsd.org, owner-freebsd-x11@freebsd.org In-Reply-To: <20161003021517.GB92917@pf-bsd.local> References: <20161003021517.GB92917@pf-bsd.local> Message-ID: <07be07151f0b51498e9e9d4e2c518fdd@kapsi.fi> X-Sender: isoa@kapsi.fi User-Agent: RoundCube Webmail/0.9.4 X-SA-Exim-Connect-IP: 217.30.184.182 X-SA-Exim-Mail-From: isoa@kapsi.fi X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on mail X-Spam-Level: X-Spam-Status: No, score=-5.5 required=5.0 tests=ALL_TRUSTED,BAYES_00, RP_MATCHES_RCVD autolearn=ham version=3.3.2 Subject: Re: NVidia + run X apps from jail X-SA-Exim-Version: 4.2.1 (built Mon, 26 Dec 2011 16:24:06 +0000) X-SA-Exim-Scanned: Yes (on mail.kapsi.fi) X-BeenThere: freebsd-x11@freebsd.org X-Mailman-Version: 2.1.23 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, 04 Oct 2016 22:58:32 -0000 Petr Fischer kirjoitti 03.10.2016 05:15: > Hello, I have kodi installed in a jail and running it remotely to the > main host X server with DISPLAY=server:0 kodi... > > With vesa driver, it's slow but everything works from jail. > > Just bought new NVidia 210 card, installed "nvidia-driver" package, > but now, every OpenGL application cant't start (when started inside > jail): > > 1) DISPLAY=server:0 xclock (from jail) > OK > > 2) DISPLAY=server:0 glxgears (from jail) > libGL error: No matching fbConfigs or visuals found > libGL error: failed to load driver: swrast > X Error of failed request: BadValue (integer parameter out of range > for operation) > Major opcode of failed request: 153 (GLX) > Minor opcode of failed request: 3 (X_GLXCreateContext) > Value in failed request: 0x0 > Serial number of failed request: 33 > Current serial number in output stream: 35 > > What's the problem? Thanks! pf > _______________________________________________ > 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" Yes, first verify that you can get accelerated GPU support working on the actual system where you run the X-server. If the nvidia-driver -package does not work, install one of the other nvidia-driver-* package and try again. Test the graphics with OpenGL applications. After you can get OpenGL working locally on the system where X11 server is running in, next you need to try if you can get AIGLX working. To do this I would suggest installing the exact nvidia-driver or nvidia-driver-* package (which you installed in system with X11 server) inside the jail from where you want to run X11 apps. Aftern this you should try starting some OpenGL using app from inside the jail with DISPLAY=server:0 and see what happens. If the AIGLX option did not work, you have another solution that requires more work but is way more optimal: VirtualGL. I actually have used this succesfully on several occassions. To get it working you just need to read the documentation at http://www.virtualgl.org/Documentation/Documentation and improvise. Requires shell scripting, but very doable. You can install VirtualGL via packages or ports. -- Arto Pekkanen