From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Dmitry Torokhov" Subject: Re: [PATCH] input: change SysRq keycode for systems without SysRq key Date: Thu, 19 Jul 2007 17:00:23 -0400 Message-ID: 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: Content-Disposition: inline Sender: owner-linux-input@atrey.karlin.mff.cuni.cz List-Help: List-Owner: List-Post: List-Unsubscribe: To: federico ferri Cc: Linus Torvalds , linux-input@atrey.karlin.mff.cuni.cz List-Id: linux-input@vger.kernel.org On 7/19/07, Dmitry Torokhov wrote: > On 7/18/07, federico ferri wrote: > > Dmitry Torokhov ha scritto: > > > EVIOCSKEYCODE support for HID (USB) went in in 2.6.22-rc1. > > > > > > There is keyfuzz utility you can use to play with keymaps for a > > > particular device: > > > > > > http://0pointer.de/lennart/projects/keyfuzz/ > > hi Dmitry, > > I tried keyfuzz, but I'm not able to change sysrq key (I get an invalid > > argument error). > > I paste some log of my tries: > > > > # uname -r > > 2.6.22 > > > > # for i in /dev/input/event*; do echo -e ">>>> $i:"; keyfuzz -i -d$i; done > > >>>> /dev/input/event0: > > evdev driver version 1.0.0. > > device name: PC Speaker > > >>>> /dev/input/event1: > > evdev driver version 1.0.0. > > device name: Mitsumi Electric Apple Extended USB Keyboard > > >>>> /dev/input/event2: > > evdev driver version 1.0.0. > > device name: Mitsumi Electric Apple Extended USB Keyboard > > >>>> /dev/input/event3: > > evdev driver version 1.0.0. > > device name: Microsoft Basic Optical Mouse > > > > # 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 > > > > (strace gives me no useful info) > > > > > What is 84? For SUB you map a "usage" to a keycode and regular key ^^^ USB > usages start with 0x00070000... > > -- > Dmitry > -- Dmitry