Thread (22 messages) 22 messages, 6 authors, 2007-08-17

Re: [PATCH] input: change SysRq keycode for systems without SysRq key

flat view

From: "Dmitry Torokhov" <dmitry.torokhov@gmail.com>
Date: 2007-07-16 12:41:31

Hi Linus,

On 7/15/07, Linus Torvalds [off-list ref] wrote:

On Mon, 16 Jul 2007, federico ferri wrote:
quoted
Linus Torvalds ha scritto:
quoted
Well, this is totally untested, and I won't guarantee that this works
at all, but this is how to generally do these kinds of things..
YAY! it works great.
tried with:
# echo 183 > /sys/module/keyboard/parameters/sysrq_key
but also keyboard.sys_rq=183 on the command line should work; I'll
discover that on next reboot.
Yes, please do verify.
quoted
thank you, Linus!
You're welcome.
quoted
(now that this has done in the proper way, is this patch going to be
merged in the tree?)
I'm certainly ok with it, but I guess it's more up to Dmitry. If he ack's
it, I can just commit it.

Dmitry? Any reason not to do this?
Recent kernels have the ability to remap keymap for USB keyboards via
EVIOCSKEYCODE ioctl (we allowed 0adjusting keymaps on PS/2 keyboards
for a long time). So instead of having the new parameter redefining
SysRq keycode Frederico can remap one of the keys on his keyboard to
generate KEY_SYSRQ. This way SysRq should still work if he plugs in
another USB keyboard that has SysRq key or a PS/2 keyboard.

-- 
Dmitry
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help