From owner-freebsd-x11@freebsd.org Wed Oct 5 03:46: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 9D223AF4595 for ; Wed, 5 Oct 2016 03:46:02 +0000 (UTC) (envelope-from petr.fischer@me.com) Received: from pv33p00im-asmtp002.me.com (pv33p00im-asmtp002.me.com [17.142.194.251]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 824168B2 for ; Wed, 5 Oct 2016 03:46:02 +0000 (UTC) (envelope-from petr.fischer@me.com) Received: from process-dkim-sign-daemon.pv33p00im-asmtp002.me.com by pv33p00im-asmtp002.me.com (Oracle Communications Messaging Server 7.0.5.38.0 64bit (built Feb 26 2016)) id <0OEK008002ECLC00@pv33p00im-asmtp002.me.com> for freebsd-x11@freebsd.org; Wed, 05 Oct 2016 03:45:53 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=me.com; s=4d515a; t=1475639153; bh=0Q3BVAQW5ah4sGeRlzXI6iQpvit224gpVsO2paMcOeQ=; h=Date:From:To:Subject:Message-id:MIME-version:Content-type; b=OQEAjHtvZs0fNWm6wOoZMk4hSH3VJpdZkl63KIRvYYaWhYAH6yDutYZ3ujciXYvJX /yXfhQ2UXUZxYG2FLn5MtLs0ML/jFSEy79iz5Ivum05nKFD1q9N6mU6XU6Vz7hHwQo KJT6mjvDgNoXCc0tM9LGK6IcWG9cJlH7dCl/fKigez/IqllhUynAeMBd5Wc/Qa6M6u ydc96ok+86rUjWzyQcLeAT6I+ADkIa1TrhKfEVUsaS2j92dUPiy/+IJF0PeAxjVpgB 4s3Gg/XFrSIdGS7fg1DZHSoS079g7LuU3E2BnW3/e9eCZL8MEv524wfVNeyvIclMp2 HUnEdgN3VxFhw== Received: from localhost (109.2.broadband2.iol.cz [83.208.2.109]) by pv33p00im-asmtp002.me.com (Oracle Communications Messaging Server 7.0.5.38.0 64bit (built Feb 26 2016)) with ESMTPSA id <0OEK0026W2GEZY30@pv33p00im-asmtp002.me.com> for freebsd-x11@freebsd.org; Wed, 05 Oct 2016 03:45:53 +0000 (GMT) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2016-10-05_01:,, signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 clxscore=1034 suspectscore=4 malwarescore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1603290000 definitions=main-1610050064 Date: Wed, 05 Oct 2016 05:45:49 +0200 From: Petr Fischer To: freebsd-x11@freebsd.org Subject: Re: NVidia + run X apps from jail Message-id: <20161005034549.34ib275kgav3bunw@pf-bsd.local> References: <20161003021517.GB92917@pf-bsd.local> <07be07151f0b51498e9e9d4e2c518fdd@kapsi.fi> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-disposition: inline In-reply-to: <07be07151f0b51498e9e9d4e2c518fdd@kapsi.fi> User-Agent: NeoMutt/20161003 (1.7.0) 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: Wed, 05 Oct 2016 03:46:02 -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. Yes, I installed correct nvidia-driver-340 (old graphics card, older driver). That is OK. Works fine (media acceleration + opengl). > 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. Installed exactly this older nvidia driver also inside jail - but no luck. No working OpenGL (AIGLX) to server:0. Still this errors: libGL error: No matching fbConfigs or visuals found libGL error: failed to load driver: swrast ... > 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. I tried hard this virtualgl thing, started vglclient, used vglrun on other side, and ended with this error message: $ DISPLAY=server:0 vglrun glxgears [VGL] ERROR: in fconfig_instance-- [VGL] 97: Function not implemented It's too much for me, absolutely no info on google about this error. To much layers for me (and maybe some of the layer not implemented some function, or this is just bogus error). So I gave up OpenGL in a jail and installed everything (whole desktops + kodi + all deps) on the base host (server:0). A also tried to run whole Xorg in a jail, configured many devfs rules (nvidia devs, mixer devs etc etc), but also no luck - there was some error like: "Can't get extended write mode on /dev/io" (or something like this). But thanks Scot + Arto for your answers, I learned a lot of small details. > -- > Arto Pekkanen