[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Why does tty1 become the current VT on reboot/halt?



"Noah L. Meyerhans" <frodo@ccs.neu.edu> writes:

> Hey all.  Why is it that when I reboot or halt my machine, I'm
> automatically switched to the first virtual console?  I don't like this at
> all, because all of the messages coming from the rc scripts get sent
> whichever VC I was on when I typed the reboot/halt command.  I haven't
> been able to figure out how/where the event occurs.  Is it possible to
> prevent it, or to have all the rc scripts send their output to tty1?

Well, I can't provide a solution, but I can provide an explanation:
xdm, or more specifically the Xserver xdm was running.  Whenever an
xserver shuts down, it reverts to the virtual terminal that was active
when it started (which is usually VT1, unless you hit Alt-F# at the
right time in the boot sequence).  While this makes sense as something
to do when the xserver is shut down directly, (for example, if one
were running X through startx and exited X, one would expect to go
back to the shell prompt that ran startx) it may not be the right
thing to do when the Xserver is shut down while not active.

I don't find this any more than a really minor inconvenience, since
switching vt's with Alt-Fn works during the shutdown process, and even 
continues to work after the system has halted.  You might file a
wishlist bug against your favorite xserver though saying that it
shouldn't switch vt's on shutdown unless it (the Xserver) was on the
currently active vt.


--  
Unsubscribe?  mail -s unsubscribe debian-user-request@lists.debian.org < /dev/null


Reply to: