I was playing with vesafb and setfotn trying to see how much
screen I could give myself and I found a reliable way to lock
the console.
Simply set an 8x8 font (setfont alt-8x8), then hit return a
few times so that the cursor/shell prompt are in the bit of
screen which has just appeared. The run setfont again to switch
back to an 8x16 font. No console, no VT switching.
Magic sysrq still works, and I suspect that it's OK apart from
having an unusable console, but this machine wasn't on a network
and didn't have a serial console so I wasn't able to do much more
then sysrq-s-u-b.
I'm half of the opinion that font-setting should be a root-only
thing, anyway.
Also - it's quite nice to be able to have different sized fonts
on different consoles, but perhaps new consoles should inherit
settings from the first or last console. That way, if I put
setfont alt-8x8 in my rc.sysinit I can have a nice big screen
on all of my VTs...
Matthew.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.altern.org/andrebalsa/doc/lkml-faq.html