kernel message: [ 1.240000] input: gpio-keys as /devices/platform/gpio-keys/input/input0 [ 1.250000] input: matrix-keypad as /devices/platform/matrix-keypad/input/in1 no /dev/event/inputX device but there is /sys/devices/platform/gpio-keys/input/input0 the uevent is : PRODUCT=19/1/1/100 NAME="gpio-keys" PHYS="gpio-keys/input0" EV==3 KEY==100000 0 0 0 MODALIAS=input:b0019v0001p0001e0100-e0,1,k74,ramlsfw from /proc/interrupts 181: 87 GPIO Bank D Power when I press the button nothing happen. device not poweroff. we have a metrix-keypad in out device. all keys work find. so I try to map the "F1" to KEY_POWER. then I press the "F1" device not pwoeroff On 10/3/09, xiangfu liu <xiangfu.z@xxxxxxxxx> wrote: > sorry forget the subject. send again > > On 10/3/09, xiangfu liu <xiangfu.z@xxxxxxxxx> wrote: >> Hi >> >> I try to write gpio-keys driver a POWER button. attach is the patch. >> but when I press or hold the button. the system not poweroff. do nothing. >> >> I have change the KEY_POWER to KEY_A. then I press the button again. >> the terminal ouptu 'a' , it works. but why KEY_POWER? >> >> give me some tips >> >> thanks for help >> >> Best Regards >> Xiangfu >> > -- Blog: http://www.openmobilefree.net -- To unsubscribe from this list: send the line "unsubscribe linux-input" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html