From owner-freebsd-questions@FreeBSD.ORG Sun Jun 10 17:33:48 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DA917106564A for ; Sun, 10 Jun 2012 17:33:48 +0000 (UTC) (envelope-from lars@larseighner.com) Received: from mail.team1internet.com (mail.team1internet.com [216.110.13.10]) by mx1.freebsd.org (Postfix) with ESMTP id B7FCA8FC16 for ; Sun, 10 Jun 2012 17:33:48 +0000 (UTC) Received: from larseighner.com (unknown [71.20.75.102]) by mail.team1internet.com (Postfix) with SMTP id A5C9516B4AE; Sun, 10 Jun 2012 12:33:47 -0500 (CDT) Received: by larseighner.com (nbSMTP-1.00) for uid 1001 lars@larseighner.com; Sun, 10 Jun 2012 12:32:14 -0500 (CDT) Date: Sun, 10 Jun 2012 12:32:13 -0500 (CDT) From: Lars Eighner X-X-Sender: lars@noos.larseighnerhome.com To: Gary Aitken In-Reply-To: <4FD4D317.3020503@dreamchaser.org> Message-ID: References: <4FD4CF8F.3030701@dreamchaser.org> <4FD4D317.3020503@dreamchaser.org> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-questions@freebsd.org Subject: Re: fn going to X X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 10 Jun 2012 17:33:48 -0000 On Sun, 10 Jun 2012, Gary Aitken wrote: > On 06/10/12 10:47, Gary Aitken wrote: >> What's the trick to allow fn to still be used to switch vtys when running X? >> At first I thought it was the wm grabbing it, but I've disabled that and now it goes to whatever app has the focus. Seems like something in the kernel has to grab it before it gets passed on to X. > > I see it's fn when in X. > > However, once out of X on another vty, switching to the vty where X was > started does not get me back to X. How do I get back to the X display > which is running? Oh, you have to swith to the vtty where X is running, which certainly is NOT where you started X. Look in /etc/ttys for a line like this: ttyvb "/usr/local/bin/xdm -nodaemon" xterm off secure The above is not standard on installation, so probably the 'ttyv?' is different. The ? is the ttyv number (in hex) where your X should be running - BUT the hex number start at 0 (zero) while your F keys start with 1. For example, the above says X should run in ttyv b = 11 decimal, but that is associated with F12 (so that F1 can be mapped to ttyv0). It is possible to run some gui programs like zgv without a terminal, but in that case there is no way to switch terminals into or out of them. You can only launch them and quit them. Maybe (or not) X could run like that if you did not have a dedicated ttyv set up in /etc/ttys. -- Lars Eighner http://www.larseighner.com/index.html 8800 N IH35 APT 1191 AUSTIN TX 78753-5266