From owner-freebsd-stable@FreeBSD.ORG Thu May 11 20:14:54 2006 Return-Path: X-Original-To: stable@freebsd.org Delivered-To: freebsd-stable@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8628816A4D9 for ; Thu, 11 May 2006 20:14:46 +0000 (UTC) (envelope-from nik@ngo.org.uk) Received: from jc.ngo.org.uk (jc.ngo.org.uk [69.55.225.33]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6ED9243D68 for ; Thu, 11 May 2006 20:14:34 +0000 (GMT) (envelope-from nik@ngo.org.uk) Received: from [192.168.0.22] (i-83-67-27-141.freedom2surf.net [83.67.27.141]) by jc.ngo.org.uk (8.13.4/8.13.5) with ESMTP id k4BKEWII033404 for ; Thu, 11 May 2006 13:14:32 -0700 (PDT) (envelope-from nik@ngo.org.uk) Message-ID: <44630A5B.2030906@ngo.org.uk> Date: Thu, 11 May 2006 10:56:43 +0100 From: Nik Clayton User-Agent: Thunderbird 1.5.0.2 (X11/20060504) MIME-Version: 1.0 To: stable@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: (0.746) DATE_IN_PAST_06_12 X-Scanned-By: MIMEDefang 2.54 on 69.55.225.33 Cc: Subject: Switching virtual consoles from within X X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 May 2006 20:15:38 -0000 Is it possible to (from the command line) switch virtual consoles while within X? Since I upgraded X on my laptop resume from suspend has been a little flaky. But if I make sure I run 'zzz' from within a text virtual terminal the laptop has (so far) always resumed correctly. I could create ~/bin/zzz which checks to see if I'm in X and refuses to run, but it would be even nicer if I could have it automatically switch to a virtual console for me, and then run /usr/sbin/zzz. I'm aware of 'vidcontrol -s ', and if I run that from a virtual terminal it works. However, if I run it within X it refuses to work, printing: vidcontrol: must be on a virtual console: Inappropriate ioctl for device Is there a way around this restriction? N