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

2007-08-17 Thread Jiri Kosina
(CCs trimmed a little bit) On Fri, 17 Aug 2007, Marvin Raaijmakers wrote: What's the current state of this patch? Hi Marvin, does the patch below establish the functionality you are looking for? Please note that we do the reporting only for such usages that have the type of EV_KEY. diff

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

2007-08-17 Thread Jiri Kosina
On Fri, 17 Aug 2007, Marvin Raaijmakers wrote: This code doesn't filter out the status events right? So that still needs to be done(?). Hi Marvin, I am not sure what you mean by that -- this patch is supposed to issue input_event(EV_MSC, MSC_SCAN) if and only if it would mean the change in

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

2007-08-17 Thread Marvin Raaijmakers
Ah this is the part that checks for a change in key state: !!test_bit(usage-code, input-key) != value Well, in that case: yes, this is the functionality I was looking for. - Marvin On Fri, 2007-08-17 at 16:42 +0200, Jiri Kosina wrote: On Fri, 17 Aug 2007, Marvin Raaijmakers wrote: This

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

2007-07-30 Thread Jiri Kosina
On Fri, 20 Jul 2007, federico ferri wrote: oh, great! finally I got to remap F13 to SysRq (which was keycode 99). would be nice to have some informations in the manpage about how to find/dump those raw scancodes, cause with showkey/evtest I only see translated keycodes. [I added keyfuzz's

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

2007-07-19 Thread Dmitry Torokhov
On 7/19/07, federico ferri [EMAIL PROTECTED] wrote: Dmitry Torokhov ha scritto: # echo 84 183 | keyfuzz -s -d/dev/input/event1 EVIOCGKEYCODE: Invalid argument # echo 84 183 | keyfuzz -s -d/dev/input/event2 EVIOCGKEYCODE: Invalid argument # echo 0x05d 0x0b7 | keyfuzz -s -d/dev/input/event2

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

2007-07-19 Thread federico ferri
Dmitry Torokhov ha scritto: do you see some solution? perhaps can you supply an example of re-mapping F13 to SysRq? KEY_F13 is normally assigned to usage 0x00070068. Since you want your F13 to be used as SysRq you need map that usage to KEY_SYSRQ. Please try doing: echo 458856 84 | keyfuzz

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

2007-07-17 Thread federico ferri
Dmitry Torokhov ha scritto: 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

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

2007-07-16 Thread federico ferri
this patch adds an entry in Kconfig after 'config MAGIC_SYSRQ' which asks for a different keycode (replacing also KEY_SYSRQ with CONFIG_MAGIC_SYSRQ_KEYCODE in char/keyboard.c) it was tested on some USB keyboards (Microsoft and Apple USB keyboards, and it works) I sumbitted this patch two years

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

2007-07-16 Thread federico ferri
Linus Torvalds ha scritto: On Sun, 15 Jul 2007, federico ferri wrote: this patch adds an entry in Kconfig after 'config MAGIC_SYSRQ' which asks for a different keycode (replacing also KEY_SYSRQ with CONFIG_MAGIC_SYSRQ_KEYCODE in char/keyboard.c) Quite frankly, I think that if we

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

2007-07-16 Thread Dmitry Torokhov
Hi Linus, On 7/15/07, Linus Torvalds [EMAIL PROTECTED] wrote: On Mon, 16 Jul 2007, federico ferri wrote: Linus Torvalds ha scritto: 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