You are not logged in.

#1 2009-07-27 18:53:23

tkdfighter
Member
From: Switzerland
Registered: 2009-01-28
Posts: 126

[solved] Restart console / tty

A friend of mine hibernated his PC. After waking it up, the virtual terminals were gone with X running fine. Is there a command to restart them without rebooting?

Last edited by tkdfighter (2009-08-10 20:14:54)

Offline

#2 2009-07-27 23:36:09

Hohoho
Member
Registered: 2007-06-23
Posts: 222

Re: [solved] Restart console / tty

From inittab:

c1:2345:respawn:/sbin/agetty -8 38400 vc/1 linux
c2:2345:respawn:/sbin/agetty -8 38400 vc/2 linux
c3:2345:respawn:/sbin/agetty -8 38400 vc/3 linux
c4:2345:respawn:/sbin/agetty -8 38400 vc/4 linux
c5:2345:respawn:/sbin/agetty -8 38400 vc/5 linux
c6:2345:respawn:/sbin/agetty -8 38400 vc/6 linux

The agetty commands is what you need probably.

Offline

#3 2009-08-08 11:07:04

djszapi
Member
From: Cambridge, United Kingdom
Registered: 2009-06-14
Posts: 1,439
Website

Re: [solved] Restart console / tty

and ctrl+alt+backspace for X.

Offline

#4 2009-08-08 11:15:01

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,231
Website

Re: [solved] Restart console / tty

tkdfighter wrote:

...with X running fine.

djszapi wrote:

and ctrl+alt+backspace for X.

Probably not helpful to the OP.

If I'm not mistaken, then `init q` command will force init to re-read /etc/inittab and do anything it needs to to get back to the state that inittab specifies (ie, restart the getty's)

Offline

#5 2009-08-10 20:14:29

tkdfighter
Member
From: Switzerland
Registered: 2009-01-28
Posts: 126

Re: [solved] Restart console / tty

Sorry for the late update, it's exam season roll . Anyways, "/sbin/agetty -8 38400 vc/1 linux" solved the problem, thanks!

Offline

Board footer

Powered by FluxBB