From owner-freebsd-questions Wed Oct 27 13:59: 3 1999 Delivered-To: freebsd-questions@freebsd.org Received: from lab12.ie.pitt.edu (lab12.ie.pitt.edu [136.142.89.102]) by hub.freebsd.org (Postfix) with ESMTP id 9F3F514CC6 for ; Wed, 27 Oct 1999 13:59:00 -0700 (PDT) (envelope-from grafe@lab12.ie.pitt.edu) Received: (from grafe@localhost) by lab12.ie.pitt.edu (8.8.8+Sun/8.8.8) id QAA29119 for freebsd-questions@freebsd.org; Wed, 27 Oct 1999 16:58:54 -0400 (EDT) Date: Wed, 27 Oct 1999 16:58:54 -0400 (EDT) Message-Id: <199910272058.QAA29119@lab12.ie.pitt.edu> From: grafe@lab12.ie.pitt.edu (Gary Rafe) To: freebsd-questions@freebsd.org Subject: Q: Changing virtual terminal from a shell ? Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG We're looking for a FreeBSD equivalent to the Linux chvt(1) command, i.e., something that can changes the virtual terminal from a shell. Our new 3.3R/PAO Toshiba uses the Trident Cyber9525DVD video chip. APM suspend/resume works well when the current virtual terminal is *not* displaying the running X server. However, the system (or just keyboard?) hangs (can't say for certain, since the display doesn't come back) after power is restored. Until we can find the "correct" configuration (kernel, XF86Config) to make this work reliably, a simple shell script that sync(8)s filesystems, "chvt" to ttyv0 if the X server is running, then suspends the system with "apm(8)". The apmd(8) would restore the virtual terminal following the resume event (if the X server is running). Cheers -- Gary To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message