* Re: asus_wmi: Unknown key pressed
[not found] ` <22009182.20.1357413346491.JavaMail.gkos@dynomob>
@ 2013-01-05 20:06 ` Corentin Chary
2013-01-05 23:09 ` Dmitry Torokhov
0 siblings, 1 reply; 6+ messages in thread
From: Corentin Chary @ 2013-01-05 20:06 UTC (permalink / raw)
To: Konstantin V. Gavrilenko
Cc: Yong Wang, Dmitry Torokhov, linux-input, Seth Forshee
On Sat, Jan 5, 2013 at 7:19 PM, Konstantin V. Gavrilenko
<k.gavrilenko@arhont.com> wrote:
> Thanks for a prompt response.
>
> for all three events the showkey generates the same data
>
> keycode 240 press
> keycode 240 release
>
> ----- Original Message -----
> From: "Corentin Chary" <corentincj@iksaif.net>
> To: "Konstantin V. Gavrilenko" <k.gavrilenko@arhont.com>
> Cc: "Yong Wang" <yong.y.wang@intel.com>, "Dmitry Torokhov" <dtor@mail.ru>
> Sent: Saturday, 5 January, 2013 6:58:11 PM
> Subject: Re: asus_wmi: Unknown key pressed
>
> Hi,
>
> On Sat, Jan 5, 2013 at 3:17 PM, Konstantin V. Gavrilenko
> <k.gavrilenko@arhont.com> wrote:
>> Hi Guys,
>>
>> sorry for writing out of the blue, but your email addresses where provided in the kernel modules. I hope you will direct me to a better place where I can report the problem or someone that can help solve the problem with asus_wmi module.
>>
>> In my new laptop UX51VZA v203 my syslog is constantly filled with the following lines, even though I do not press any buttons on the keyboard.
>>
>> Dec 30 08:28:52 dynomob kernel: [22731.108645] asus_wmi: Unknown key c6 pressed
>> Dec 30 08:28:53 dynomob kernel: [22732.110834] asus_wmi: Unknown key c6 pressed
>> Dec 30 08:28:58 dynomob kernel: [22737.079312] asus_wmi: Unknown key c6 pressed
>> Dec 30 08:28:59 dynomob kernel: [22738.075352] asus_wmi: Unknown key c6 pressed
>> Dec 30 08:29:00 dynomob kernel: [22739.076342] asus_wmi: Unknown key c6 pressed
>> Dec 30 08:29:01 dynomob kernel: [22740.083493] asus_wmi: Unknown key c6 pressed
>>
>>
>> It took me a while to work out that this was information from the ambient light sensor )) and since there is no way to operate it or disable it, I had to cover it with a piece of black paper. Such default behavior is very disruptive as it generates an actual unseen key press, that is extremely annoying if you trying to type a password.
>
> This should not generate any key if the key is unknown. But maybe
> another key is generated (and not logged). Can you run showkey in a
> terminal and try to see what keycode you are getting ?
> I'll make a patch to ignore this key.
>
>> There are couple of other unknown signals tat I managed to figure out, namely
>>
>> Fn+A (ambient light button) generates
>> Jan 5 15:12:08 dynomob kernel: [46786.001579] asus_wmi: Unknown key 7a pressed
>
> Will map this key to some keycode.
>
>> unplugging of the powercord generates
>> Jan 5 15:13:08 dynomob kernel: [46845.606336] asus_wmi: Unknown key cf pressed
>
> Don't know what is means, so will probably just be ignored with a comment.
>
> Thanks,
Oh right, Seth added some code to send KEY_UNKNOWN keys in such cases.
Seth, maybe keys present with KEY_IGNORE type should not send
KEY_UNKNOWN to avoid this kind of issues ?
--
Corentin Chary
http://xf.iksaif.net
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: asus_wmi: Unknown key pressed
2013-01-05 20:06 ` asus_wmi: Unknown key pressed Corentin Chary
@ 2013-01-05 23:09 ` Dmitry Torokhov
2013-01-06 18:30 ` Corentin Chary
0 siblings, 1 reply; 6+ messages in thread
From: Dmitry Torokhov @ 2013-01-05 23:09 UTC (permalink / raw)
To: Corentin Chary
Cc: Konstantin V. Gavrilenko, Yong Wang, linux-input, Seth Forshee
On Sat, Jan 05, 2013 at 08:06:32PM +0000, Corentin Chary wrote:
> On Sat, Jan 5, 2013 at 7:19 PM, Konstantin V. Gavrilenko
> <k.gavrilenko@arhont.com> wrote:
> > Thanks for a prompt response.
> >
> > for all three events the showkey generates the same data
> >
> > keycode 240 press
> > keycode 240 release
> >
> > ----- Original Message -----
> > From: "Corentin Chary" <corentincj@iksaif.net>
> > To: "Konstantin V. Gavrilenko" <k.gavrilenko@arhont.com>
> > Cc: "Yong Wang" <yong.y.wang@intel.com>, "Dmitry Torokhov" <dtor@mail.ru>
> > Sent: Saturday, 5 January, 2013 6:58:11 PM
> > Subject: Re: asus_wmi: Unknown key pressed
> >
> > Hi,
> >
> > On Sat, Jan 5, 2013 at 3:17 PM, Konstantin V. Gavrilenko
> > <k.gavrilenko@arhont.com> wrote:
> >> Hi Guys,
> >>
> >> sorry for writing out of the blue, but your email addresses where provided in the kernel modules. I hope you will direct me to a better place where I can report the problem or someone that can help solve the problem with asus_wmi module.
> >>
> >> In my new laptop UX51VZA v203 my syslog is constantly filled with the following lines, even though I do not press any buttons on the keyboard.
> >>
> >> Dec 30 08:28:52 dynomob kernel: [22731.108645] asus_wmi: Unknown key c6 pressed
> >> Dec 30 08:28:53 dynomob kernel: [22732.110834] asus_wmi: Unknown key c6 pressed
> >> Dec 30 08:28:58 dynomob kernel: [22737.079312] asus_wmi: Unknown key c6 pressed
> >> Dec 30 08:28:59 dynomob kernel: [22738.075352] asus_wmi: Unknown key c6 pressed
> >> Dec 30 08:29:00 dynomob kernel: [22739.076342] asus_wmi: Unknown key c6 pressed
> >> Dec 30 08:29:01 dynomob kernel: [22740.083493] asus_wmi: Unknown key c6 pressed
> >>
> >>
> >> It took me a while to work out that this was information from the ambient light sensor )) and since there is no way to operate it or disable it, I had to cover it with a piece of black paper. Such default behavior is very disruptive as it generates an actual unseen key press, that is extremely annoying if you trying to type a password.
> >
> > This should not generate any key if the key is unknown. But maybe
> > another key is generated (and not logged). Can you run showkey in a
> > terminal and try to see what keycode you are getting ?
> > I'll make a patch to ignore this key.
> >
> >> There are couple of other unknown signals tat I managed to figure out, namely
> >>
> >> Fn+A (ambient light button) generates
> >> Jan 5 15:12:08 dynomob kernel: [46786.001579] asus_wmi: Unknown key 7a pressed
> >
> > Will map this key to some keycode.
> >
> >> unplugging of the powercord generates
> >> Jan 5 15:13:08 dynomob kernel: [46845.606336] asus_wmi: Unknown key cf pressed
> >
> > Don't know what is means, so will probably just be ignored with a comment.
> >
> > Thanks,
>
> Oh right, Seth added some code to send KEY_UNKNOWN keys in such cases.
> Seth, maybe keys present with KEY_IGNORE type should not send
> KEY_UNKNOWN to avoid this kind of issues ?
KEY_UNKNOWN should not really be mapped to any key so it should not
interfere with normal typing/other operations while still being able to
detect the events. The idea is for users to be able to notice the new
events and then developers can decide if they should be ignored or
mapped to some particular keycodes (or maybe routed through some other
subsystem).
--
Dmitry
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: asus_wmi: Unknown key pressed
2013-01-05 23:09 ` Dmitry Torokhov
@ 2013-01-06 18:30 ` Corentin Chary
2013-01-07 7:40 ` Dmitry Torokhov
2013-01-07 11:05 ` Konstantin V. Gavrilenko
0 siblings, 2 replies; 6+ messages in thread
From: Corentin Chary @ 2013-01-06 18:30 UTC (permalink / raw)
To: Dmitry Torokhov
Cc: Konstantin V. Gavrilenko, Yong Wang, linux-input, Seth Forshee
On Sat, Jan 5, 2013 at 11:09 PM, Dmitry Torokhov
<dmitry.torokhov@gmail.com> wrote:
> On Sat, Jan 05, 2013 at 08:06:32PM +0000, Corentin Chary wrote:
>> On Sat, Jan 5, 2013 at 7:19 PM, Konstantin V. Gavrilenko
>> <k.gavrilenko@arhont.com> wrote:
>> > Thanks for a prompt response.
>> >
>> > for all three events the showkey generates the same data
>> >
>> > keycode 240 press
>> > keycode 240 release
>> >
>> > ----- Original Message -----
>> > From: "Corentin Chary" <corentincj@iksaif.net>
>> > To: "Konstantin V. Gavrilenko" <k.gavrilenko@arhont.com>
>> > Cc: "Yong Wang" <yong.y.wang@intel.com>, "Dmitry Torokhov" <dtor@mail.ru>
>> > Sent: Saturday, 5 January, 2013 6:58:11 PM
>> > Subject: Re: asus_wmi: Unknown key pressed
>> >
>> > Hi,
>> >
>> > On Sat, Jan 5, 2013 at 3:17 PM, Konstantin V. Gavrilenko
>> > <k.gavrilenko@arhont.com> wrote:
>> >> Hi Guys,
>> >>
>> >> sorry for writing out of the blue, but your email addresses where provided in the kernel modules. I hope you will direct me to a better place where I can report the problem or someone that can help solve the problem with asus_wmi module.
>> >>
>> >> In my new laptop UX51VZA v203 my syslog is constantly filled with the following lines, even though I do not press any buttons on the keyboard.
>> >>
>> >> Dec 30 08:28:52 dynomob kernel: [22731.108645] asus_wmi: Unknown key c6 pressed
>> >> Dec 30 08:28:53 dynomob kernel: [22732.110834] asus_wmi: Unknown key c6 pressed
>> >> Dec 30 08:28:58 dynomob kernel: [22737.079312] asus_wmi: Unknown key c6 pressed
>> >> Dec 30 08:28:59 dynomob kernel: [22738.075352] asus_wmi: Unknown key c6 pressed
>> >> Dec 30 08:29:00 dynomob kernel: [22739.076342] asus_wmi: Unknown key c6 pressed
>> >> Dec 30 08:29:01 dynomob kernel: [22740.083493] asus_wmi: Unknown key c6 pressed
>> >>
>> >>
>> >> It took me a while to work out that this was information from the ambient light sensor )) and since there is no way to operate it or disable it, I had to cover it with a piece of black paper. Such default behavior is very disruptive as it generates an actual unseen key press, that is extremely annoying if you trying to type a password.
>> >
>> > This should not generate any key if the key is unknown. But maybe
>> > another key is generated (and not logged). Can you run showkey in a
>> > terminal and try to see what keycode you are getting ?
>> > I'll make a patch to ignore this key.
>> >
>> >> There are couple of other unknown signals tat I managed to figure out, namely
>> >>
>> >> Fn+A (ambient light button) generates
>> >> Jan 5 15:12:08 dynomob kernel: [46786.001579] asus_wmi: Unknown key 7a pressed
>> >
>> > Will map this key to some keycode.
>> >
>> >> unplugging of the powercord generates
>> >> Jan 5 15:13:08 dynomob kernel: [46845.606336] asus_wmi: Unknown key cf pressed
>> >
>> > Don't know what is means, so will probably just be ignored with a comment.
>> >
>> > Thanks,
>>
>> Oh right, Seth added some code to send KEY_UNKNOWN keys in such cases.
>> Seth, maybe keys present with KEY_IGNORE type should not send
>> KEY_UNKNOWN to avoid this kind of issues ?
>
> KEY_UNKNOWN should not really be mapped to any key so it should not
> interfere with normal typing/other operations while still being able to
> detect the events. The idea is for users to be able to notice the new
> events and then developers can decide if they should be ignored or
> mapped to some particular keycodes (or maybe routed through some other
> subsystem).
The issue here is that the scancode is already present in the keymap
with the type "KE_IGNORE" instead of "KE_KEY", but sparse_keymap seems
to send KEY_UNKNOWN anyway.
And Konstantin seems to say that it's bad in some cases (passwords?).
--
Corentin Chary
http://xf.iksaif.net
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: asus_wmi: Unknown key pressed
2013-01-06 18:30 ` Corentin Chary
@ 2013-01-07 7:40 ` Dmitry Torokhov
2013-01-07 9:06 ` Corentin Chary
2013-01-07 11:05 ` Konstantin V. Gavrilenko
1 sibling, 1 reply; 6+ messages in thread
From: Dmitry Torokhov @ 2013-01-07 7:40 UTC (permalink / raw)
To: Corentin Chary
Cc: Konstantin V. Gavrilenko, Yong Wang, linux-input, Seth Forshee
On Sun, Jan 06, 2013 at 06:30:40PM +0000, Corentin Chary wrote:
> On Sat, Jan 5, 2013 at 11:09 PM, Dmitry Torokhov
> <dmitry.torokhov@gmail.com> wrote:
> > On Sat, Jan 05, 2013 at 08:06:32PM +0000, Corentin Chary wrote:
> >> On Sat, Jan 5, 2013 at 7:19 PM, Konstantin V. Gavrilenko
> >> <k.gavrilenko@arhont.com> wrote:
> >> > Thanks for a prompt response.
> >> >
> >> > for all three events the showkey generates the same data
> >> >
> >> > keycode 240 press
> >> > keycode 240 release
> >> >
> >> > ----- Original Message -----
> >> > From: "Corentin Chary" <corentincj@iksaif.net>
> >> > To: "Konstantin V. Gavrilenko" <k.gavrilenko@arhont.com>
> >> > Cc: "Yong Wang" <yong.y.wang@intel.com>, "Dmitry Torokhov" <dtor@mail.ru>
> >> > Sent: Saturday, 5 January, 2013 6:58:11 PM
> >> > Subject: Re: asus_wmi: Unknown key pressed
> >> >
> >> > Hi,
> >> >
> >> > On Sat, Jan 5, 2013 at 3:17 PM, Konstantin V. Gavrilenko
> >> > <k.gavrilenko@arhont.com> wrote:
> >> >> Hi Guys,
> >> >>
> >> >> sorry for writing out of the blue, but your email addresses where provided in the kernel modules. I hope you will direct me to a better place where I can report the problem or someone that can help solve the problem with asus_wmi module.
> >> >>
> >> >> In my new laptop UX51VZA v203 my syslog is constantly filled with the following lines, even though I do not press any buttons on the keyboard.
> >> >>
> >> >> Dec 30 08:28:52 dynomob kernel: [22731.108645] asus_wmi: Unknown key c6 pressed
> >> >> Dec 30 08:28:53 dynomob kernel: [22732.110834] asus_wmi: Unknown key c6 pressed
> >> >> Dec 30 08:28:58 dynomob kernel: [22737.079312] asus_wmi: Unknown key c6 pressed
> >> >> Dec 30 08:28:59 dynomob kernel: [22738.075352] asus_wmi: Unknown key c6 pressed
> >> >> Dec 30 08:29:00 dynomob kernel: [22739.076342] asus_wmi: Unknown key c6 pressed
> >> >> Dec 30 08:29:01 dynomob kernel: [22740.083493] asus_wmi: Unknown key c6 pressed
> >> >>
> >> >>
> >> >> It took me a while to work out that this was information from the ambient light sensor )) and since there is no way to operate it or disable it, I had to cover it with a piece of black paper. Such default behavior is very disruptive as it generates an actual unseen key press, that is extremely annoying if you trying to type a password.
> >> >
> >> > This should not generate any key if the key is unknown. But maybe
> >> > another key is generated (and not logged). Can you run showkey in a
> >> > terminal and try to see what keycode you are getting ?
> >> > I'll make a patch to ignore this key.
> >> >
> >> >> There are couple of other unknown signals tat I managed to figure out, namely
> >> >>
> >> >> Fn+A (ambient light button) generates
> >> >> Jan 5 15:12:08 dynomob kernel: [46786.001579] asus_wmi: Unknown key 7a pressed
> >> >
> >> > Will map this key to some keycode.
> >> >
> >> >> unplugging of the powercord generates
> >> >> Jan 5 15:13:08 dynomob kernel: [46845.606336] asus_wmi: Unknown key cf pressed
> >> >
> >> > Don't know what is means, so will probably just be ignored with a comment.
> >> >
> >> > Thanks,
> >>
> >> Oh right, Seth added some code to send KEY_UNKNOWN keys in such cases.
> >> Seth, maybe keys present with KEY_IGNORE type should not send
> >> KEY_UNKNOWN to avoid this kind of issues ?
> >
> > KEY_UNKNOWN should not really be mapped to any key so it should not
> > interfere with normal typing/other operations while still being able to
> > detect the events. The idea is for users to be able to notice the new
> > events and then developers can decide if they should be ignored or
> > mapped to some particular keycodes (or maybe routed through some other
> > subsystem).
>
> The issue here is that the scancode is already present in the keymap
> with the type "KE_IGNORE" instead of "KE_KEY", but sparse_keymap seems
> to send KEY_UNKNOWN anyway.
> And Konstantin seems to say that it's bad in some cases (passwords?).
No, sparse keymap does not generate KEY_UNKNOWN events for entries
marked KE_IGNORE. As far as I can see none of the codes mentioned by
Konstantin are defines in keymap found in asus-nb-wmi.
Thanks.
--
Dmitry
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: asus_wmi: Unknown key pressed
2013-01-07 7:40 ` Dmitry Torokhov
@ 2013-01-07 9:06 ` Corentin Chary
0 siblings, 0 replies; 6+ messages in thread
From: Corentin Chary @ 2013-01-07 9:06 UTC (permalink / raw)
To: Dmitry Torokhov
Cc: Konstantin V. Gavrilenko, Yong Wang, linux-input, Seth Forshee
On Mon, Jan 7, 2013 at 7:40 AM, Dmitry Torokhov
<dmitry.torokhov@gmail.com> wrote:
> On Sun, Jan 06, 2013 at 06:30:40PM +0000, Corentin Chary wrote:
>> On Sat, Jan 5, 2013 at 11:09 PM, Dmitry Torokhov
>> <dmitry.torokhov@gmail.com> wrote:
>> > On Sat, Jan 05, 2013 at 08:06:32PM +0000, Corentin Chary wrote:
>> >> On Sat, Jan 5, 2013 at 7:19 PM, Konstantin V. Gavrilenko
>> >> <k.gavrilenko@arhont.com> wrote:
>> >> > Thanks for a prompt response.
>> >> >
>> >> > for all three events the showkey generates the same data
>> >> >
>> >> > keycode 240 press
>> >> > keycode 240 release
>> >> >
>> >> > ----- Original Message -----
>> >> > From: "Corentin Chary" <corentincj@iksaif.net>
>> >> > To: "Konstantin V. Gavrilenko" <k.gavrilenko@arhont.com>
>> >> > Cc: "Yong Wang" <yong.y.wang@intel.com>, "Dmitry Torokhov" <dtor@mail.ru>
>> >> > Sent: Saturday, 5 January, 2013 6:58:11 PM
>> >> > Subject: Re: asus_wmi: Unknown key pressed
>> >> >
>> >> > Hi,
>> >> >
>> >> > On Sat, Jan 5, 2013 at 3:17 PM, Konstantin V. Gavrilenko
>> >> > <k.gavrilenko@arhont.com> wrote:
>> >> >> Hi Guys,
>> >> >>
>> >> >> sorry for writing out of the blue, but your email addresses where provided in the kernel modules. I hope you will direct me to a better place where I can report the problem or someone that can help solve the problem with asus_wmi module.
>> >> >>
>> >> >> In my new laptop UX51VZA v203 my syslog is constantly filled with the following lines, even though I do not press any buttons on the keyboard.
>> >> >>
>> >> >> Dec 30 08:28:52 dynomob kernel: [22731.108645] asus_wmi: Unknown key c6 pressed
>> >> >> Dec 30 08:28:53 dynomob kernel: [22732.110834] asus_wmi: Unknown key c6 pressed
>> >> >> Dec 30 08:28:58 dynomob kernel: [22737.079312] asus_wmi: Unknown key c6 pressed
>> >> >> Dec 30 08:28:59 dynomob kernel: [22738.075352] asus_wmi: Unknown key c6 pressed
>> >> >> Dec 30 08:29:00 dynomob kernel: [22739.076342] asus_wmi: Unknown key c6 pressed
>> >> >> Dec 30 08:29:01 dynomob kernel: [22740.083493] asus_wmi: Unknown key c6 pressed
>> >> >>
>> >> >>
>> >> >> It took me a while to work out that this was information from the ambient light sensor )) and since there is no way to operate it or disable it, I had to cover it with a piece of black paper. Such default behavior is very disruptive as it generates an actual unseen key press, that is extremely annoying if you trying to type a password.
>> >> >
>> >> > This should not generate any key if the key is unknown. But maybe
>> >> > another key is generated (and not logged). Can you run showkey in a
>> >> > terminal and try to see what keycode you are getting ?
>> >> > I'll make a patch to ignore this key.
>> >> >
>> >> >> There are couple of other unknown signals tat I managed to figure out, namely
>> >> >>
>> >> >> Fn+A (ambient light button) generates
>> >> >> Jan 5 15:12:08 dynomob kernel: [46786.001579] asus_wmi: Unknown key 7a pressed
>> >> >
>> >> > Will map this key to some keycode.
>> >> >
>> >> >> unplugging of the powercord generates
>> >> >> Jan 5 15:13:08 dynomob kernel: [46845.606336] asus_wmi: Unknown key cf pressed
>> >> >
>> >> > Don't know what is means, so will probably just be ignored with a comment.
>> >> >
>> >> > Thanks,
>> >>
>> >> Oh right, Seth added some code to send KEY_UNKNOWN keys in such cases.
>> >> Seth, maybe keys present with KEY_IGNORE type should not send
>> >> KEY_UNKNOWN to avoid this kind of issues ?
>> >
>> > KEY_UNKNOWN should not really be mapped to any key so it should not
>> > interfere with normal typing/other operations while still being able to
>> > detect the events. The idea is for users to be able to notice the new
>> > events and then developers can decide if they should be ignored or
>> > mapped to some particular keycodes (or maybe routed through some other
>> > subsystem).
>>
>> The issue here is that the scancode is already present in the keymap
>> with the type "KE_IGNORE" instead of "KE_KEY", but sparse_keymap seems
>> to send KEY_UNKNOWN anyway.
>> And Konstantin seems to say that it's bad in some cases (passwords?).
>
> No, sparse keymap does not generate KEY_UNKNOWN events for entries
> marked KE_IGNORE. As far as I can see none of the codes mentioned by
> Konstantin are defines in keymap found in asus-nb-wmi.
Ah right, I misread sprase-keymap.c, and using KE_IGNORE here should work.
Sorry for the confusion.
--
Corentin Chary
http://xf.iksaif.net
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: asus_wmi: Unknown key pressed
2013-01-06 18:30 ` Corentin Chary
2013-01-07 7:40 ` Dmitry Torokhov
@ 2013-01-07 11:05 ` Konstantin V. Gavrilenko
1 sibling, 0 replies; 6+ messages in thread
From: Konstantin V. Gavrilenko @ 2013-01-07 11:05 UTC (permalink / raw)
To: Corentin Chary; +Cc: Yong Wang, linux-input, Seth Forshee, Dmitry Torokhov
Yours sincerely,
Konstantin V. Gavrilenko
Arhont Information Security Ltd
web: http://www.arhont.com
e-mail: k.gavrilenko@arhont.com
tel: +44 (0) 870 44 31337
fax: +44 (0) 208 429 3111
PGP: Key ID - 0xE81824F4
PGP: Server - keyserver.pgp.com
----- Original Message -----
From: "Corentin Chary" <corentincj@iksaif.net>
To: "Dmitry Torokhov" <dmitry.torokhov@gmail.com>
Cc: "Konstantin V. Gavrilenko" <k.gavrilenko@arhont.com>, "Yong Wang" <yong.y.wang@intel.com>, linux-input@vger.kernel.org, "Seth Forshee" <seth.forshee@canonical.com>
Sent: Sunday, 6 January, 2013 6:30:40 PM
Subject: Re: asus_wmi: Unknown key pressed
On Sat, Jan 5, 2013 at 11:09 PM, Dmitry Torokhov
<dmitry.torokhov@gmail.com> wrote:
> On Sat, Jan 05, 2013 at 08:06:32PM +0000, Corentin Chary wrote:
>> On Sat, Jan 5, 2013 at 7:19 PM, Konstantin V. Gavrilenko
>> <k.gavrilenko@arhont.com> wrote:
>> > Thanks for a prompt response.
>> >
>> > for all three events the showkey generates the same data
>> >
>> > keycode 240 press
>> > keycode 240 release
>> >
>> > ----- Original Message -----
>> > From: "Corentin Chary" <corentincj@iksaif.net>
>> > To: "Konstantin V. Gavrilenko" <k.gavrilenko@arhont.com>
>> > Cc: "Yong Wang" <yong.y.wang@intel.com>, "Dmitry Torokhov" <dtor@mail.ru>
>> > Sent: Saturday, 5 January, 2013 6:58:11 PM
>> > Subject: Re: asus_wmi: Unknown key pressed
>> >
>> > Hi,
>> >
>> > On Sat, Jan 5, 2013 at 3:17 PM, Konstantin V. Gavrilenko
>> > <k.gavrilenko@arhont.com> wrote:
>> >> Hi Guys,
>> >>
>> >> sorry for writing out of the blue, but your email addresses where provided in the kernel modules. I hope you will direct me to a better place where I can report the problem or someone that can help solve the problem with asus_wmi module.
>> >>
>> >> In my new laptop UX51VZA v203 my syslog is constantly filled with the following lines, even though I do not press any buttons on the keyboard.
>> >>
>> >> Dec 30 08:28:52 dynomob kernel: [22731.108645] asus_wmi: Unknown key c6 pressed
>> >> Dec 30 08:28:53 dynomob kernel: [22732.110834] asus_wmi: Unknown key c6 pressed
>> >> Dec 30 08:28:58 dynomob kernel: [22737.079312] asus_wmi: Unknown key c6 pressed
>> >> Dec 30 08:28:59 dynomob kernel: [22738.075352] asus_wmi: Unknown key c6 pressed
>> >> Dec 30 08:29:00 dynomob kernel: [22739.076342] asus_wmi: Unknown key c6 pressed
>> >> Dec 30 08:29:01 dynomob kernel: [22740.083493] asus_wmi: Unknown key c6 pressed
>> >>
>> >>
>> >> It took me a while to work out that this was information from the ambient light sensor )) and since there is no way to operate it or disable it, I had to cover it with a piece of black paper. Such default behavior is very disruptive as it generates an actual unseen key press, that is extremely annoying if you trying to type a password.
>> >
>> > This should not generate any key if the key is unknown. But maybe
>> > another key is generated (and not logged). Can you run showkey in a
>> > terminal and try to see what keycode you are getting ?
>> > I'll make a patch to ignore this key.
>> >
>> >> There are couple of other unknown signals tat I managed to figure out, namely
>> >>
>> >> Fn+A (ambient light button) generates
>> >> Jan 5 15:12:08 dynomob kernel: [46786.001579] asus_wmi: Unknown key 7a pressed
>> >
>> > Will map this key to some keycode.
>> >
>> >> unplugging of the powercord generates
>> >> Jan 5 15:13:08 dynomob kernel: [46845.606336] asus_wmi: Unknown key cf pressed
>> >
>> > Don't know what is means, so will probably just be ignored with a comment.
>> >
>> > Thanks,
>>
>> Oh right, Seth added some code to send KEY_UNKNOWN keys in such cases.
>> Seth, maybe keys present with KEY_IGNORE type should not send
>> KEY_UNKNOWN to avoid this kind of issues ?
>
> KEY_UNKNOWN should not really be mapped to any key so it should not
> interfere with normal typing/other operations while still being able to
> detect the events. The idea is for users to be able to notice the new
> events and then developers can decide if they should be ignored or
> mapped to some particular keycodes (or maybe routed through some other
> subsystem).
> The issue here is that the scancode is already present in the keymap
> with the type "KE_IGNORE" instead of "KE_KEY", but sparse_keymap seems
> to send KEY_UNKNOWN anyway.
> And Konstantin seems to say that it's bad in some cases (passwords?).
Depending on how frequently the light conditions change, the number of events generated can be quite large, as often as every second.
The main annoyances I noticed:
- the logs get clogged up very fast with "asus_wmi: Unknown key c6 pressed"
- those "hidden" characters are silently inserted, making it impossible to type the password correctly, unless the ambient light does not change.
- the automatic layout switcher (xneur) is impossible to use
- general experience of typing is degraded, as you are frequently interrupted.
yours,
Konstantin
--
Corentin Chary
http://xf.iksaif.net
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2013-01-07 11:11 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <CAHR064jzPejiWM_XqeY0a+Uf7cYPUrYMNd0FDEUvwkgrMB1hDg@mail.gmail.com>
[not found] ` <22009182.20.1357413346491.JavaMail.gkos@dynomob>
2013-01-05 20:06 ` asus_wmi: Unknown key pressed Corentin Chary
2013-01-05 23:09 ` Dmitry Torokhov
2013-01-06 18:30 ` Corentin Chary
2013-01-07 7:40 ` Dmitry Torokhov
2013-01-07 9:06 ` Corentin Chary
2013-01-07 11:05 ` Konstantin V. Gavrilenko
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).