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: Wed, 18 Jul 2007 22:55:05 +0200 Message-ID: <469E7E29.2050206@inwind.it> References: <469A5385.6030402@inwind.it> <469A68CC.5040902@inwind.it> <469A99ED.3090603@inwind.it> <469C647B.1000307@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: > 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)