All of lore.kernel.org
 help / color / mirror / Atom feed
From: xiangfu liu <xiangfu.z@gmail.com>
To: linux-input@vger.kernel.org
Subject: Re: how to make KEY_POWER work in terminal system
Date: Sun, 4 Oct 2009 00:42:07 +0800	[thread overview]
Message-ID: <bc65a8d50910030942hecf96b2hc06ff18f786a1cc@mail.gmail.com> (raw)
In-Reply-To: <bc65a8d50910030813y26138fbet402bdfb3f8321af8@mail.gmail.com>

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@gmail.com> wrote:
> sorry forget the subject. send again
>
> On 10/3/09, xiangfu liu <xiangfu.z@gmail.com> 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

  reply	other threads:[~2009-10-03 16:42 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-03 15:13 how to make KEY_POWER work in terminal system xiangfu liu
2009-10-03 16:42 ` xiangfu liu [this message]
2009-10-06  5:06   ` Dmitry Torokhov
     [not found]     ` <bc65a8d50910062032u1ab5d215xb37737b197bb7d46@mail.gmail.com>
     [not found]       ` <bc65a8d50910062033j5c2f86c4s2a17cb21cf16a7f7@mail.gmail.com>
2009-10-07  4:35         ` 回复: " Dmitry Torokhov
2009-10-08  3:46           ` xiangfu liu
2009-10-13 13:08           ` ??: " Xiangfu Liu
2009-10-14  6:12             ` Dmitry Torokhov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bc65a8d50910030942hecf96b2hc06ff18f786a1cc@mail.gmail.com \
    --to=xiangfu.z@gmail.com \
    --cc=linux-input@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.