From mboxrd@z Thu Jan 1 00:00:00 1970 From: federico ferri Subject: Re: [PATCH] input: change SysRq keycode for systems without SysRq key Date: Thu, 19 Jul 2007 23:39:37 +0200 Message-ID: <469FDA19.6020702@inwind.it> References: <469A5385.6030402@inwind.it> <469A68CC.5040902@inwind.it> <469A99ED.3090603@inwind.it> <469C647B.1000307@inwind.it> <469E7E29.2050206@inwind.it> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: Sender: owner-linux-input@atrey.karlin.mff.cuni.cz List-Help: List-Owner: List-Post: List-Unsubscribe: To: Dmitry Torokhov Cc: Linus Torvalds , linux-input@atrey.karlin.mff.cuni.cz List-Id: linux-input@vger.kernel.org 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 >> EVIOCGKEYCODE: Invalid argument > What is 84? For SUB you map a "usage" to a keycode and regular key > usages start with 0x00070000... 84 == 0x5d (KEY_SYSRQ) 183 is the code generated from my keyboard when I press F13 I don't get what "usage" means here; my keyboard has no fancy/multimedia keys (except 4 buttons_ volumeup, volume-down, mute, eject, but those belong to another event device) the keyfuzz manual page says: The scancode/keycode translation tables as read from STDIN [...]. All other lines have to contain a scancode and a keycode number separated by white space. The numbers may be specified either in decimal or in hexadecimal notation. [...] I typed my commands with the above in mind. anyway, if I try to load the bundled translation tables (r.g. the default one) to my event device, I get the same error. do you see some solution? perhaps can you supply an example of re-mapping F13 to SysRq? -- Federico Ferri