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