From owner-freebsd-questions@freebsd.org Thu Sep 22 03:17:52 2016 Return-Path: Delivered-To: freebsd-questions@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 A41FEBE5D61 for ; Thu, 22 Sep 2016 03:17:52 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx01.qsc.de (mx01.qsc.de [213.148.129.14]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 6CC08B0 for ; Thu, 22 Sep 2016 03:17:51 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from r56.edvax.de (port-92-195-35-217.dynamic.qsc.de [92.195.35.217]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx01.qsc.de (Postfix) with ESMTPS id BE7A03CE73; Thu, 22 Sep 2016 05:17:41 +0200 (CEST) Received: from r56.edvax.de (localhost [127.0.0.1]) by r56.edvax.de (8.14.5/8.14.5) with SMTP id u8M3Hfus002014; Thu, 22 Sep 2016 05:17:41 +0200 (CEST) (envelope-from freebsd@edvax.de) Date: Thu, 22 Sep 2016 05:17:41 +0200 From: Polytropon To: Andrea Venturoli Cc: "freebsd-questions@freebsd.org" Subject: Re: OpenGL over X11/SSH Message-Id: <20160922051741.5092ccae.freebsd@edvax.de> In-Reply-To: <2deff892-7ac3-e3e2-92fe-27e95f089ea0@netfence.it> References: <2deff892-7ac3-e3e2-92fe-27e95f089ea0@netfence.it> Reply-To: Polytropon Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Sep 2016 03:17:52 -0000 On Wed, 21 Sep 2016 17:50:53 +0200, Andrea Venturoli wrote: > I'm used to connecting via ssh to a couple of "heavy duty" servers on my > LAN; I've got X11 forward working and in fact I usually run emacs, > xterm, sometimes even FireFox. > > Now I need to try an OpenGL-based program, but I'm not able to get it right. > > > > > % glxinfo > > name of display: localhost:11.0 > > libGL error: failed to open drm device: No such file or directory > > libGL error: failed to load driver: r600 > > libGL error: unable to load driver: swrast_dri.so > > libGL error: failed to load driver: swrast > > X Error of failed request: GLXBadContext > > Major opcode of failed request: 154 (GLX) > > Minor opcode of failed request: 6 (X_GLXIsDirect) > > Serial number of failed request: 46 > > Current serial number in output stream: 45 > > > > AFAICT this should work, albeit without hardware acceleration, which is > fine to me since this is only going to be a test. If I understand the messages correctly, the OpenGL output requires direct rendering (DRM) instead of a software renderer. The DRM/DRI task is being performed directly on the hardware the program is running on and maybe cannot be redirected to a remote X system. The somehow direct access to the hardware maybe cannot be tunneled over X11/SSH. The messages indicate that the DRM device cannot be found and the r600 (Radeon?) driver cannot be loaded. This is a quire early error of libGL. On the other hand, if you use software rendering, it _should_ work. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...