Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 27 Oct 1999 16:58:54 -0400 (EDT)
From:      grafe@lab12.ie.pitt.edu (Gary Rafe)
To:        freebsd-questions@freebsd.org
Subject:   Q: Changing virtual terminal from a shell ?
Message-ID:  <199910272058.QAA29119@lab12.ie.pitt.edu>

next in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199910272058.QAA29119>