Alt+ArrowUp (inittab kbrequest)

1999-06-20 Thread J Horacio MG
I have already pressed by mistake the Alt+ArrowUp key combo, resulting
in a system shutdown (losing all work done!).

In my /etc/inittab I've got the Ctrl+Alt+End key combo configured for
shutdowns:

kb:12345:kbrequest:/sbin/shutdown -t1 -a -h now

and some kbrequest for the Alt+ArrowUp which reads:

kb::kbrequest:/bin/echo "Keyboard Request--edit /etc/inittab to let this
work."

which says nothing about shutdown, so, why does Alt+ArrowUp perform a
system shutdown?  Can I safely comment the line?

TIA
-- 
Horacio
[EMAIL PROTECTED]
Valencia - ESPAÑA


Re: Alt+ArrowUp (inittab kbrequest)

1999-06-21 Thread David Wright
Quoting J Horacio MG ([EMAIL PROTECTED]):
> I have already pressed by mistake the Alt+ArrowUp key combo, resulting
> in a system shutdown (losing all work done!).
> 
> In my /etc/inittab I've got the Ctrl+Alt+End key combo configured for
> shutdowns:
> 
> kb:12345:kbrequest:/sbin/shutdown -t1 -a -h now
> 
> and some kbrequest for the Alt+ArrowUp which reads:
> 
> kb::kbrequest:/bin/echo "Keyboard Request--edit /etc/inittab to let this
> work."
> 
> which says nothing about shutdown, so, why does Alt+ArrowUp perform a
> system shutdown?  Can I safely comment the line?

I think you need to archive your postings and their replies a
bit more efficiently. I was about to cut and paste a previous
reply on the subject when I noticed that the question was posed
by you!

--8<

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 ([EMAIL PROTECTED])

--8<

Cheers,

-- 
Email:  [EMAIL PROTECTED]   Tel: +44 1908 653 739  Fax: +44 1908 655 151
Snail:  David Wright, Earth Science Dept., Milton Keynes, England, MK7 6AA
Disclaimer:   These addresses are only for reaching me, and do not signify
official stationery. Views expressed here are either my own or plagiarised.


Re: Alt+ArrowUp (inittab kbrequest)

1999-06-21 Thread J Horacio MG
~> I think you need to archive your postings and their replies a
~> bit more efficiently. I was about to cut and paste a previous
~> reply on the subject when I noticed that the question was posed
~> by you!

I can assure you they are efficiently enough archived.  I asked why
Alt+ArrowUp would shutdown the system while it's not configured to
perform that task, and whether it would be safe to comment the line
which refers to it in /etc/inittab:

# Action on special keypress (ALT-UpArrow).
kb::kbrequest:/bin/echo "Keyboard Request--edit /etc/inittab to let this
work."

See?  it doesn't say anywhere to shutdown the system (at least that I
know), but it does.

The answer I got about a year ago was about configuring Ctrl+Alt+End to
perform the shutdown task, which works perfectly.

Thank you anyway for your concern
-- 
Horacio
[EMAIL PROTECTED]
Valencia - ESPAÑA


Re: Alt+ArrowUp (inittab kbrequest)

1999-06-21 Thread Matt Folwell
I could be totally wrong, but I think...

On Mon, Jun 21, 1999 at 12:11:52AM +0200, J Horacio MG wrote:
> I have already pressed by mistake the Alt+ArrowUp key combo, resulting
> in a system shutdown (losing all work done!).
> 
> In my /etc/inittab I've got the Ctrl+Alt+End key combo configured for
> shutdowns:
> 
> kb:12345:kbrequest:/sbin/shutdown -t1 -a -h now

This line tells init to shutdown whenever it receives a KeyboardSignal
from the keyboard handler, in runlevels 1-5.

> and some kbrequest for the Alt+ArrowUp which reads:
> 
> kb::kbrequest:/bin/echo "Keyboard Request--edit /etc/inittab to let this
> work."

This line doesn't give any runlevels, so it won't have any effect.

> which says nothing about shutdown, so, why does Alt+ArrowUp perform a
> system shutdown?  Can I safely comment the line?

Alt+ArrowUp and Ctrl+Alt+End both send KeyboardSignal to init, so hopefully
you've got the line
  alt keycode 103 = KeyboardSignal
in /etc/kbd/default.map.gz
If you remove that it should fix it.

-- 
Matt Folwell, Trinity College, Cambridge.  CB2 1TQ
[EMAIL PROTECTED]
Hi! I'm a .signature virus! Copy me into your ~/.signature to help me spread!


Re: Alt+ArrowUp (inittab kbrequest)

1999-06-22 Thread David Wright
Quoting J Horacio MG ([EMAIL PROTECTED]):
> ~> I think you need to archive your postings and their replies a
> ~> bit more efficiently. I was about to cut and paste a previous
> ~> reply on the subject when I noticed that the question was posed
> ~> by you!
> 
> I can assure you they are efficiently enough archived.  I asked why
> Alt+ArrowUp would shutdown the system while it's not configured to
> perform that task, and whether it would be safe to comment the line
> which refers to it in /etc/inittab:
> 
> # Action on special keypress (ALT-UpArrow).
> kb::kbrequest:/bin/echo "Keyboard Request--edit /etc/inittab to let this
> work."
> 
> See?  it doesn't say anywhere to shutdown the system (at least that I
> know), but it does.
> 
> The answer I got about a year ago was about configuring Ctrl+Alt+End to
> perform the shutdown task, which works perfectly.
> 
> Thank you anyway for your concern

I'm sorry. I thought in light of the previous thread's reply
that you would know to look and see was already defined in
/etc/kbd/default.map.gz to produce KeyboardSignal (which you
yourself must have already made equivalent to shutdown). 
I hope it's all sorted now and you have removed
alt keycode 103 = KeyboardSignal  

Cheers,

-- 
Email:  [EMAIL PROTECTED]   Tel: +44 1908 653 739  Fax: +44 1908 655 151
Snail:  David Wright, Earth Science Dept., Milton Keynes, England, MK7 6AA
Disclaimer:   These addresses are only for reaching me, and do not signify
official stationery. Views expressed here are either my own or plagiarised.


Re: Alt+ArrowUp (inittab kbrequest)

1999-06-22 Thread David Wright
Quoting Matt Folwell ([EMAIL PROTECTED]):
> I could be totally wrong, but I think...
> 
> On Mon, Jun 21, 1999 at 12:11:52AM +0200, J Horacio MG wrote:
> > I have already pressed by mistake the Alt+ArrowUp key combo, resulting
> > in a system shutdown (losing all work done!).
> > 
> > In my /etc/inittab I've got the Ctrl+Alt+End key combo configured for
> > shutdowns:
> > 
> > kb:12345:kbrequest:/sbin/shutdown -t1 -a -h now
> 
> This line tells init to shutdown whenever it receives a KeyboardSignal
> from the keyboard handler, in runlevels 1-5.
> 
> > and some kbrequest for the Alt+ArrowUp which reads:
> > 
> > kb::kbrequest:/bin/echo "Keyboard Request--edit /etc/inittab to let this
> > work."
> 
> This line doesn't give any runlevels, so it won't have any effect.

That appears not to be the case. I think most slink users will
have chanced upon this message on their VCs, so it was quite a
good key definition to advertise the facility. OTOH if you
use xdm you may be totally unaware of it because Alt-Up may already
be defined to switch desktops in your window manager.

man inittab (slink) admits to being incomplete and its explanation
of runlevels could be improved.

> > which says nothing about shutdown, so, why does Alt+ArrowUp perform a
> > system shutdown?  Can I safely comment the line?
> 
> Alt+ArrowUp and Ctrl+Alt+End both send KeyboardSignal to init, so hopefully
> you've got the line
>   alt keycode 103 = KeyboardSignal
> in /etc/kbd/default.map.gz
> If you remove that it should fix it.

Cheers,

-- 
Email:  [EMAIL PROTECTED]   Tel: +44 1908 653 739  Fax: +44 1908 655 151
Snail:  David Wright, Earth Science Dept., Milton Keynes, England, MK7 6AA
Disclaimer:   These addresses are only for reaching me, and do not signify
official stationery. Views expressed here are either my own or plagiarised.