Skip to contentSkip to conversation

Software switch from /dev/tty1 to /dev/tty2

DISCUSSION Sébastien Lefebvre 2 participants 2 messages Feb 23, 2004

lore
Share & tools
lore
#0 lore raw

Hi !

Does anyone know how to switch from /dev/tty1 to /dev/tty2 with Bash ? Here is my setup, this could give you other ideas for alternative solutions :

I boot using a full screen framebuffer on /dev/tty1
The "active" console is /dev/tty2 (which receives the boot logs).
Then, using /etc/init.d, I launch a script (as I defined CONSOLE and console to /dev/tty1 in lilo.conf, every output is still displayed on /dev/tty2).

Then, I could either :

-Display a message on /dev/tty1 (this requires to clear the framebuffer, how to do that ?)

or

-switch to console /dev/tty1 within my script.

Thanks a lot for any idea,

Sébastien

-
To unsubscribe from this list: send the line "unsubscribe linux-console" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#1 lore raw

On Mon, 2004-02-23 09:56:03 +0100, Sébastien Lefebvre <[email protected]> wrote in message <[email protected]>:

Quoted 3 lines

Hi !

Does anyone know how to switch from /dev/tty1 to /dev/tty2 with Bash ?

$ man chvt

MfG, JBG

Signature · 4 lines
   Jan-Benedict Glaw       [email protected]    . +49-172-7608481
   "Eine Freie Meinung in  einem Freien Kopf    | Gegen Zensur | Gegen Krieg
    fuer einen Freien Staat voll Freier Bürger" | im Internet! |   im Irak!
   ret = do_actions((curr | FREE_SPEECH) & ~(NEW_COPYRIGHT_LAW | DRM | TCPA));