Re: [CtrlAltEnd] as [CtrlAltDel] ?
On Sun, 20 Sep 1998, Horacio M.G. wrote:
> Hi there,
>
> how can I make a key combo work?
> In etc/inittab I get the following line:
>
> # What to do when CTRL-ALT-DEL is pressed.
> ca:12345:ctrlaltdel:/sbin/shutdown -t1 -a -r now
>
> which is ok for shutting the system down and rebooting. But, how
> about shutting down and halting? I tried adding the line:
>
> # What to do when CTRL-ALT-END is pressed.
> ca:12345:ctrlaltend:/sbin/shutdown -t1 -a -h now
>
> which was just a guess, and obviously didn't work. I suppose I
> should first of all configure [CtrlAltEnd] as a key combo, but how
> and where?
In /etc/kbd/default.map.gz:
keycode 107 = Select
altgr control keycode 107 = KeyboardSignal
control alt keycode 107 = KeyboardSignal
and in /etc/inittab:
kb:12345:kbrequest:/sbin/shutdown -t1 -h now
I use Ctrl-Alt-Ins for halt, if you want that, it is this:
keycode 110 = Insert
altgr control keycode 110 = KeyboardSignal
control alt keycode 110 = KeyboardSignal
That, in theory, and in practice here, works.
Good luck,
Michael Beattie (mickyb@es.co.nz)
PGP Key available, reply with "pgpkey" as subject.
-----------------------------------------------------------------------------
Are the noises in my head bothering you?
-----------------------------------------------------------------------------
Debian GNU/Linux.... Ooohh You are missing out!
Reply to: