On Tue, 14 May 2002, Alon Altman wrote:

> Hi,
> Some OpenGL app has locked my console - my PC is totally unresponsive
> locally, 100% responsive remotely.
> 
> My question is: Can I unlock the console remotely? If so, how do I do it?
> 
> I tried to kill -9 X (and thus all apps) but at no avail. Any ideas?

Two issues: screen and keyboard

For restoring the screen, first kill X, and then run a program that
restores the textmode. Svgalib comes with three such programs - 

restoretextmode - uses svgalib to set the mode, and requires that you
        saved the text mode (using savetextmode), before.
mode3 - uses real mode vga bios of the card to set mode 3.
vga_reset - uses real mode card init routine from card bios.

The order is in increasing chance of the program working, but also in
increasing chance of crashing the computer.
It is also possible that the card is in such a state that only a
hardware reset will get it out of.
(Someone wrote an improved version of vga_reset, you might find it on
freshmeat, or google).

keyboard: it is possible that the console is left in raw mode. To
restore to cooked mode, either use Alt-SysRQ-R (if enabled), or run
kbd_mode using telnet/ssh.


-- 
Matan Ziv-Av.                         [EMAIL PROTECTED]



=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]

Reply via email to