* Re: [PATCH 1/2] eeepc-wmi: add additional hotkeys
@ 2010-11-08 1:58 Joey Lee
2010-11-08 7:18 ` Dmitry Torokhov
0 siblings, 1 reply; 10+ messages in thread
From: Joey Lee @ 2010-11-08 1:58 UTC (permalink / raw)
To: dmitry.torokhov
Cc: chris, corentin.chary, hadess, yong.y.wang, acpi4asus-user,
Egbert Eich, Stefan Dirsch, kay.sievers, platform-driver-x86
Hi Dmitry,
於 六,2010-11-06 於 02:39 -0700,Dmitry Torokhov 提到:
> On Sat, Nov 06, 2010 at 08:42:52AM +0100, Corentin Chary wrote:
> > On Sat, Nov 6, 2010 at 4:02 AM, Chris Bagwell <chris@cnpbagwell.com> wrote:
> > > On Mon, Oct 11, 2010 at 12:10 PM, Dmitry Torokhov
> > > <dmitry.torokhov@gmail.com> wrote:
> > >> On Sunday, October 10, 2010 11:26:22 pm Corentin Chary wrote:
> > >>> On Mon, Oct 11, 2010 at 3:48 AM, <chris@cnpbagwell.com> wrote:
> > >>> > From: Chris Bagwell <chris@cnpbagwell.com>
> > >>> >
> > >>> > Added 4 hotkeys using same keymap values as eeepc-latop.
> > >>> > These are mousepad toggle, resolution change, screen off,
> > >>> > and task manager. These were tested on 1005PE and are the
> > >>> > Fn-F3, F4, F7, and F9, respectively.
> > >>> >
> > >>> > Also, added a new hot key for power toggles (Fn-Space on 1005PE)
> > >>> > and is meant to drive cpufv interface from userspace.
> > >>> >
> > >>> > Finally, added several keys to be ignored that are being emitted
> > >>> > but do not mapped to any useful or documented hotkeys. This is
> > >>> > purely cosmetic to prevent uknown key reports on console/log files.
> > >>> > These keys are reported on 1005PE's.
> > >>>
> > >>> What are exactly these keys ? Since they are probably some obscure Fn+
> > >>> combo, and they are probably used on another model, I'm not sure we should
> > >>> hide them.
> > >>>
> > >>> I'm still not happy with F13 for "disable touchpad" but I did the same
> > >>> for other laptops,
> > >>> and we don't have a key for that ATM.
> > >>
> > >> The most sensible way would be to add one then. We just need to decide if
> > >> it should be a key or a switch.
> > >>
> > >
> > > Motivated by thread on linux-input "Touchpad toggle mess", I changed
> > > Fn-F3(toggle touchpad) from KEY_F13 to KEY_F22 With Gnome 2.32
> > > (Fedora 14), now magically my touchpad toggle works automagically.
> > >
> > > So I'd like to submit a patch to change both eeepc-laptop and
> > > eeepc-wmi to use KEY_F22 for toggle touchpad to get some immediate
> > > benifit. Any issues with this? Is F13 doing anything useful by
> > > default?
> > >
> > > I know in this thread and in other thread Dmitry mentioned we should
> > > make a KEY_TOUCHPAD_TOGGLE (or whatever name). I'm probably just
> > > smart enough to do that if preferred but don't think I'd be able to
> > > take it to the next level and get it translated to
> > > XF86XK_TouchpadToggle. Help appreciate in that area.
> > >
> > > Chris
> > >
> >
> > Hi Chris,
> > Since 2.6.38 merge window should be in a long time, I think we have
> > the time to ad new keys.
> >
> > Dimitry, what do you think of :
> >
> > KEY_TOUCHPAD_TOGGLE 248
> > KEY_TOUCHPAD_ON 249
> > KEY_TOUCHPAD_OFF 250
> >
> > Maybe we should keep these lower keycodes for other stuff, and use
> > some higher ones ?
> >
>
> I think we should move them up. Bastien mentioned that X already
> standardized on F21, 22 and 23 so they will need to remap anyways, thus
> we'll be "wasting" valuable lower scancode estate if we do it this way.
>
If we move them up to higher keycode.
Does X-window already support keycode more then 255?
Actually, I also got problem with our X-window not support
KEY_DOLLAR(0x1b2) and KEY_EURO(0x1b3).
I need use udev or hal to remapping those key to lower keycodes.
> The only thing that is left is to feed udev guys with keymaps till X is
> able to take the full scancode trange.
>
Sorry I am not clear understood.
Did you mean we put the key re-mapping to lower keycode in udev until X
ready for full scancode range?
Does there have any time line for X window support full scancode range?
Thank's a lot!
Joey Lee
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH 1/2] eeepc-wmi: add additional hotkeys
2010-11-08 1:58 [PATCH 1/2] eeepc-wmi: add additional hotkeys Joey Lee
@ 2010-11-08 7:18 ` Dmitry Torokhov
0 siblings, 0 replies; 10+ messages in thread
From: Dmitry Torokhov @ 2010-11-08 7:18 UTC (permalink / raw)
To: Joey Lee
Cc: chris, corentin.chary, hadess, yong.y.wang, acpi4asus-user,
Egbert Eich, Stefan Dirsch, kay.sievers, platform-driver-x86
On Sun, Nov 07, 2010 at 06:58:26PM -0700, Joey Lee wrote:
> Hi Dmitry,
>
> 於 六,2010-11-06 於 02:39 -0700,Dmitry Torokhov 提到:
> > On Sat, Nov 06, 2010 at 08:42:52AM +0100, Corentin Chary wrote:
> > > On Sat, Nov 6, 2010 at 4:02 AM, Chris Bagwell <chris@cnpbagwell.com> wrote:
> > > > On Mon, Oct 11, 2010 at 12:10 PM, Dmitry Torokhov
> > > > <dmitry.torokhov@gmail.com> wrote:
> > > >> On Sunday, October 10, 2010 11:26:22 pm Corentin Chary wrote:
> > > >>> On Mon, Oct 11, 2010 at 3:48 AM, <chris@cnpbagwell.com> wrote:
> > > >>> > From: Chris Bagwell <chris@cnpbagwell.com>
> > > >>> >
> > > >>> > Added 4 hotkeys using same keymap values as eeepc-latop.
> > > >>> > These are mousepad toggle, resolution change, screen off,
> > > >>> > and task manager. These were tested on 1005PE and are the
> > > >>> > Fn-F3, F4, F7, and F9, respectively.
> > > >>> >
> > > >>> > Also, added a new hot key for power toggles (Fn-Space on 1005PE)
> > > >>> > and is meant to drive cpufv interface from userspace.
> > > >>> >
> > > >>> > Finally, added several keys to be ignored that are being emitted
> > > >>> > but do not mapped to any useful or documented hotkeys. This is
> > > >>> > purely cosmetic to prevent uknown key reports on console/log files.
> > > >>> > These keys are reported on 1005PE's.
> > > >>>
> > > >>> What are exactly these keys ? Since they are probably some obscure Fn+
> > > >>> combo, and they are probably used on another model, I'm not sure we should
> > > >>> hide them.
> > > >>>
> > > >>> I'm still not happy with F13 for "disable touchpad" but I did the same
> > > >>> for other laptops,
> > > >>> and we don't have a key for that ATM.
> > > >>
> > > >> The most sensible way would be to add one then. We just need to decide if
> > > >> it should be a key or a switch.
> > > >>
> > > >
> > > > Motivated by thread on linux-input "Touchpad toggle mess", I changed
> > > > Fn-F3(toggle touchpad) from KEY_F13 to KEY_F22 With Gnome 2.32
> > > > (Fedora 14), now magically my touchpad toggle works automagically.
> > > >
> > > > So I'd like to submit a patch to change both eeepc-laptop and
> > > > eeepc-wmi to use KEY_F22 for toggle touchpad to get some immediate
> > > > benifit. Any issues with this? Is F13 doing anything useful by
> > > > default?
> > > >
> > > > I know in this thread and in other thread Dmitry mentioned we should
> > > > make a KEY_TOUCHPAD_TOGGLE (or whatever name). I'm probably just
> > > > smart enough to do that if preferred but don't think I'd be able to
> > > > take it to the next level and get it translated to
> > > > XF86XK_TouchpadToggle. Help appreciate in that area.
> > > >
> > > > Chris
> > > >
> > >
> > > Hi Chris,
> > > Since 2.6.38 merge window should be in a long time, I think we have
> > > the time to ad new keys.
> > >
> > > Dimitry, what do you think of :
> > >
> > > KEY_TOUCHPAD_TOGGLE 248
> > > KEY_TOUCHPAD_ON 249
> > > KEY_TOUCHPAD_OFF 250
> > >
> > > Maybe we should keep these lower keycodes for other stuff, and use
> > > some higher ones ?
> > >
> >
> > I think we should move them up. Bastien mentioned that X already
> > standardized on F21, 22 and 23 so they will need to remap anyways, thus
> > we'll be "wasting" valuable lower scancode estate if we do it this way.
> >
>
> If we move them up to higher keycode.
> Does X-window already support keycode more then 255?
>
Not at the moment.
> Actually, I also got problem with our X-window not support
> KEY_DOLLAR(0x1b2) and KEY_EURO(0x1b3).
>
> I need use udev or hal to remapping those key to lower keycodes.
>
> > The only thing that is left is to feed udev guys with keymaps till X is
> > able to take the full scancode trange.
> >
>
> Sorry I am not clear understood.
> Did you mean we put the key re-mapping to lower keycode in udev until X
> ready for full scancode range?
Yes.
>
> Does there have any time line for X window support full scancode range?
Not that I know of, but this question is better asked on Xorg mailing
lists.
Thanks.
--
Dmitry
^ permalink raw reply [flat|nested] 10+ messages in thread
* [PATCH 1/2] eeepc-wmi: add additional hotkeys
@ 2010-10-11 1:48 chris
2010-10-11 6:26 ` Corentin Chary
0 siblings, 1 reply; 10+ messages in thread
From: chris @ 2010-10-11 1:48 UTC (permalink / raw)
To: platform-driver-x86, acpi4asus-user, yong.y.wang; +Cc: Chris Bagwell
From: Chris Bagwell <chris@cnpbagwell.com>
Added 4 hotkeys using same keymap values as eeepc-latop.
These are mousepad toggle, resolution change, screen off,
and task manager. These were tested on 1005PE and are the
Fn-F3, F4, F7, and F9, respectively.
Also, added a new hot key for power toggles (Fn-Space on 1005PE)
and is meant to drive cpufv interface from userspace.
Finally, added several keys to be ignored that are being emitted
but do not mapped to any useful or documented hotkeys. This is
purely cosmetic to prevent uknown key reports on console/log files.
These keys are reported on 1005PE's.
Signed-off-by: Chris Bagwell <chris@cnpbagwell.com>
---
drivers/platform/x86/eeepc-wmi.c | 15 +++++++++++++++
1 files changed, 15 insertions(+), 0 deletions(-)
diff --git a/drivers/platform/x86/eeepc-wmi.c b/drivers/platform/x86/eeepc-wmi.c
index 9dc50fb..441b000 100644
--- a/drivers/platform/x86/eeepc-wmi.c
+++ b/drivers/platform/x86/eeepc-wmi.c
@@ -60,6 +60,10 @@ MODULE_ALIAS("wmi:"EEEPC_WMI_MGMT_GUID);
#define EEEPC_WMI_DEVID_BACKLIGHT 0x00050012
+/* Keys marked with KE_IGNORE and KEY_RESERVE are keys known to
+ * not be useful to userspace and prevents printing to console
+ * about unknown key received.
+ */
static const struct key_entry eeepc_wmi_keymap[] = {
/* Sleep already handled via generic ACPI code */
{ KE_KEY, 0x5d, { KEY_WLAN } },
@@ -69,6 +73,17 @@ static const struct key_entry eeepc_wmi_keymap[] = {
{ KE_IGNORE, NOTIFY_BRNDOWN_MIN, { KEY_BRIGHTNESSDOWN } },
{ KE_IGNORE, NOTIFY_BRNUP_MIN, { KEY_BRIGHTNESSUP } },
{ KE_KEY, 0xcc, { KEY_SWITCHVIDEOMODE } },
+ { KE_KEY, 0x6b, { KEY_F13 } }, /* Disable Touchpad */
+ { KE_KEY, 0xe1, { KEY_F14 } },
+ { KE_KEY, 0xe9, { KEY_DISPLAY_OFF } },
+ { KE_KEY, 0xe0, { KEY_PROG1 } },
+ { KE_KEY, 0x5c, { KEY_F15 } },
+ { KE_IGNORE, 0x83, { KEY_RESERVED } },
+ { KE_IGNORE, 0xeb, { KEY_RESERVED } },
+ { KE_IGNORE, 0xec, { KEY_RESERVED } },
+ { KE_IGNORE, 0xed, { KEY_RESERVED } },
+ { KE_IGNORE, 0xee, { KEY_RESERVED } },
+ { KE_IGNORE, 0xef, { KEY_RESERVED } },
{ KE_END, 0},
};
--
1.7.3.1
^ permalink raw reply related [flat|nested] 10+ messages in thread
* Re: [PATCH 1/2] eeepc-wmi: add additional hotkeys
2010-10-11 1:48 chris
@ 2010-10-11 6:26 ` Corentin Chary
2010-10-11 13:25 ` Chris Bagwell
[not found] ` <AANLkTin3J3oOaYD8G=YSrBr0AKzw7mY7v0BQssw5z2Z6-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
0 siblings, 2 replies; 10+ messages in thread
From: Corentin Chary @ 2010-10-11 6:26 UTC (permalink / raw)
To: chris; +Cc: platform-driver-x86, acpi4asus-user, yong.y.wang
On Mon, Oct 11, 2010 at 3:48 AM, <chris@cnpbagwell.com> wrote:
> From: Chris Bagwell <chris@cnpbagwell.com>
>
> Added 4 hotkeys using same keymap values as eeepc-latop.
> These are mousepad toggle, resolution change, screen off,
> and task manager. These were tested on 1005PE and are the
> Fn-F3, F4, F7, and F9, respectively.
>
> Also, added a new hot key for power toggles (Fn-Space on 1005PE)
> and is meant to drive cpufv interface from userspace.
>
> Finally, added several keys to be ignored that are being emitted
> but do not mapped to any useful or documented hotkeys. This is
> purely cosmetic to prevent uknown key reports on console/log files.
> These keys are reported on 1005PE's.
What are exactly these keys ? Since they are probably some obscure Fn+ combo,
and they are probably used on another model, I'm not sure we should hide them.
I'm still not happy with F13 for "disable touchpad" but I did the same
for other laptops,
and we don't have a key for that ATM.
Otherwise, looks good.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH 1/2] eeepc-wmi: add additional hotkeys
2010-10-11 6:26 ` Corentin Chary
@ 2010-10-11 13:25 ` Chris Bagwell
2010-10-11 13:57 ` Corentin Chary
[not found] ` <AANLkTin3J3oOaYD8G=YSrBr0AKzw7mY7v0BQssw5z2Z6-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
1 sibling, 1 reply; 10+ messages in thread
From: Chris Bagwell @ 2010-10-11 13:25 UTC (permalink / raw)
To: Corentin Chary; +Cc: platform-driver-x86, acpi4asus-user, yong.y.wang
On Mon, Oct 11, 2010 at 1:26 AM, Corentin Chary
<corentin.chary@gmail.com> wrote:
> On Mon, Oct 11, 2010 at 3:48 AM, <chris@cnpbagwell.com> wrote:
>> From: Chris Bagwell <chris@cnpbagwell.com>
>>
>> Added 4 hotkeys using same keymap values as eeepc-latop.
>> These are mousepad toggle, resolution change, screen off,
>> and task manager. These were tested on 1005PE and are the
>> Fn-F3, F4, F7, and F9, respectively.
>>
>> Also, added a new hot key for power toggles (Fn-Space on 1005PE)
>> and is meant to drive cpufv interface from userspace.
>>
>> Finally, added several keys to be ignored that are being emitted
>> but do not mapped to any useful or documented hotkeys. This is
>> purely cosmetic to prevent uknown key reports on console/log files.
>> These keys are reported on 1005PE's.
>
> What are exactly these keys ? Since they are probably some obscure Fn+ combo,
> and they are probably used on another model, I'm not sure we should hide them.
They are Fn-1, 2, s, d, f, and e. I can't really guess what 1 and 2
are for but I assume sdfe are arrow keys or something similar on
larger models?
I debated on if to add ignores since surely some model uses them but I
settled on someone else can modify current file instead of adding new
lines once they are driven to add their laptop specific keys.
>
> I'm still not happy with F13 for "disable touchpad" but I did the same
> for other laptops,
> and we don't have a key for that ATM.
And user land doesn't seem very supported of this concept at the
moment as well. I've tried some xinput stuff on touchpad tied to F13
but no luck so far. It does have a property to disable touchpad but
I've not had time to fully debug yet. I'm trying to stay away fo
synclient since thats end-of-lifed.
>
> Otherwise, looks good.
Thanks. BTW, please let me know specifically if you'd like the ignore
keys removed and I'll re-send a patch. I don't have enough info to be
able to map them though.
Chris
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH 1/2] eeepc-wmi: add additional hotkeys
2010-10-11 13:25 ` Chris Bagwell
@ 2010-10-11 13:57 ` Corentin Chary
0 siblings, 0 replies; 10+ messages in thread
From: Corentin Chary @ 2010-10-11 13:57 UTC (permalink / raw)
To: Chris Bagwell; +Cc: platform-driver-x86, acpi4asus-user, yong.y.wang
On Mon, Oct 11, 2010 at 3:25 PM, Chris Bagwell <chris@cnpbagwell.com> wrote:
> On Mon, Oct 11, 2010 at 1:26 AM, Corentin Chary
> <corentin.chary@gmail.com> wrote:
>> On Mon, Oct 11, 2010 at 3:48 AM, <chris@cnpbagwell.com> wrote:
>>> From: Chris Bagwell <chris@cnpbagwell.com>
>>>
>>> Added 4 hotkeys using same keymap values as eeepc-latop.
>>> These are mousepad toggle, resolution change, screen off,
>>> and task manager. These were tested on 1005PE and are the
>>> Fn-F3, F4, F7, and F9, respectively.
>>>
>>> Also, added a new hot key for power toggles (Fn-Space on 1005PE)
>>> and is meant to drive cpufv interface from userspace.
>>>
>>> Finally, added several keys to be ignored that are being emitted
>>> but do not mapped to any useful or documented hotkeys. This is
>>> purely cosmetic to prevent uknown key reports on console/log files.
>>> These keys are reported on 1005PE's.
>>
>> What are exactly these keys ? Since they are probably some obscure Fn+ combo,
>> and they are probably used on another model, I'm not sure we should hide them.
>
> They are Fn-1, 2, s, d, f, and e. I can't really guess what 1 and 2
> are for but I assume sdfe are arrow keys or something similar on
> larger models?
>
> I debated on if to add ignores since surely some model uses them but I
> settled on someone else can modify current file instead of adding new
> lines once they are driven to add their laptop specific keys.
>
>>
>> I'm still not happy with F13 for "disable touchpad" but I did the same
>> for other laptops,
>> and we don't have a key for that ATM.
>
> And user land doesn't seem very supported of this concept at the
> moment as well. I've tried some xinput stuff on touchpad tied to F13
> but no luck so far. It does have a property to disable touchpad but
> I've not had time to fully debug yet. I'm trying to stay away fo
> synclient since thats end-of-lifed.
>
>>
>> Otherwise, looks good.
>
> Thanks. BTW, please let me know specifically if you'd like the ignore
> keys removed and I'll re-send a patch. I don't have enough info to be
> able to map them though.
I'd remove them, and wait for someone to complain that he has garbage
in dmesg or unmapped keys.
--
Corentin Chary
http://xf.iksaif.net
^ permalink raw reply [flat|nested] 10+ messages in thread
[parent not found: <AANLkTin3J3oOaYD8G=YSrBr0AKzw7mY7v0BQssw5z2Z6-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>]
* Re: [PATCH 1/2] eeepc-wmi: add additional hotkeys
[not found] ` <AANLkTin3J3oOaYD8G=YSrBr0AKzw7mY7v0BQssw5z2Z6-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2010-10-11 17:10 ` Dmitry Torokhov
2010-11-06 3:02 ` Chris Bagwell
0 siblings, 1 reply; 10+ messages in thread
From: Dmitry Torokhov @ 2010-10-11 17:10 UTC (permalink / raw)
To: Corentin Chary
Cc: yong.y.wang-ral2JQCrhuEAvxtiuMwx3w,
acpi4asus-user-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f,
platform-driver-x86-u79uwXL29TY76Z2rM5mHXA
On Sunday, October 10, 2010 11:26:22 pm Corentin Chary wrote:
> On Mon, Oct 11, 2010 at 3:48 AM, <chris-ZCD0YumhXB+iMFqZbmIluw@public.gmane.org> wrote:
> > From: Chris Bagwell <chris-ZCD0YumhXB+iMFqZbmIluw@public.gmane.org>
> >
> > Added 4 hotkeys using same keymap values as eeepc-latop.
> > These are mousepad toggle, resolution change, screen off,
> > and task manager. These were tested on 1005PE and are the
> > Fn-F3, F4, F7, and F9, respectively.
> >
> > Also, added a new hot key for power toggles (Fn-Space on 1005PE)
> > and is meant to drive cpufv interface from userspace.
> >
> > Finally, added several keys to be ignored that are being emitted
> > but do not mapped to any useful or documented hotkeys. This is
> > purely cosmetic to prevent uknown key reports on console/log files.
> > These keys are reported on 1005PE's.
>
> What are exactly these keys ? Since they are probably some obscure Fn+
> combo, and they are probably used on another model, I'm not sure we should
> hide them.
>
> I'm still not happy with F13 for "disable touchpad" but I did the same
> for other laptops,
> and we don't have a key for that ATM.
The most sensible way would be to add one then. We just need to decide if
it should be a key or a switch.
--
Dmitry
------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3.
Spend less time writing and rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH 1/2] eeepc-wmi: add additional hotkeys
2010-10-11 17:10 ` Dmitry Torokhov
@ 2010-11-06 3:02 ` Chris Bagwell
2010-11-06 7:42 ` Corentin Chary
0 siblings, 1 reply; 10+ messages in thread
From: Chris Bagwell @ 2010-11-06 3:02 UTC (permalink / raw)
To: Dmitry Torokhov
Cc: Corentin Chary, platform-driver-x86, acpi4asus-user, yong.y.wang
On Mon, Oct 11, 2010 at 12:10 PM, Dmitry Torokhov
<dmitry.torokhov@gmail.com> wrote:
> On Sunday, October 10, 2010 11:26:22 pm Corentin Chary wrote:
>> On Mon, Oct 11, 2010 at 3:48 AM, <chris@cnpbagwell.com> wrote:
>> > From: Chris Bagwell <chris@cnpbagwell.com>
>> >
>> > Added 4 hotkeys using same keymap values as eeepc-latop.
>> > These are mousepad toggle, resolution change, screen off,
>> > and task manager. These were tested on 1005PE and are the
>> > Fn-F3, F4, F7, and F9, respectively.
>> >
>> > Also, added a new hot key for power toggles (Fn-Space on 1005PE)
>> > and is meant to drive cpufv interface from userspace.
>> >
>> > Finally, added several keys to be ignored that are being emitted
>> > but do not mapped to any useful or documented hotkeys. This is
>> > purely cosmetic to prevent uknown key reports on console/log files.
>> > These keys are reported on 1005PE's.
>>
>> What are exactly these keys ? Since they are probably some obscure Fn+
>> combo, and they are probably used on another model, I'm not sure we should
>> hide them.
>>
>> I'm still not happy with F13 for "disable touchpad" but I did the same
>> for other laptops,
>> and we don't have a key for that ATM.
>
> The most sensible way would be to add one then. We just need to decide if
> it should be a key or a switch.
>
Motivated by thread on linux-input "Touchpad toggle mess", I changed
Fn-F3(toggle touchpad) from KEY_F13 to KEY_F22 With Gnome 2.32
(Fedora 14), now magically my touchpad toggle works automagically.
So I'd like to submit a patch to change both eeepc-laptop and
eeepc-wmi to use KEY_F22 for toggle touchpad to get some immediate
benifit. Any issues with this? Is F13 doing anything useful by
default?
I know in this thread and in other thread Dmitry mentioned we should
make a KEY_TOUCHPAD_TOGGLE (or whatever name). I'm probably just
smart enough to do that if preferred but don't think I'd be able to
take it to the next level and get it translated to
XF86XK_TouchpadToggle. Help appreciate in that area.
Chris
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH 1/2] eeepc-wmi: add additional hotkeys
2010-11-06 3:02 ` Chris Bagwell
@ 2010-11-06 7:42 ` Corentin Chary
2010-11-06 9:39 ` Dmitry Torokhov
0 siblings, 1 reply; 10+ messages in thread
From: Corentin Chary @ 2010-11-06 7:42 UTC (permalink / raw)
To: Chris Bagwell
Cc: Dmitry Torokhov, platform-driver-x86, acpi4asus-user, yong.y.wang
On Sat, Nov 6, 2010 at 4:02 AM, Chris Bagwell <chris@cnpbagwell.com> wrote:
> On Mon, Oct 11, 2010 at 12:10 PM, Dmitry Torokhov
> <dmitry.torokhov@gmail.com> wrote:
>> On Sunday, October 10, 2010 11:26:22 pm Corentin Chary wrote:
>>> On Mon, Oct 11, 2010 at 3:48 AM, <chris@cnpbagwell.com> wrote:
>>> > From: Chris Bagwell <chris@cnpbagwell.com>
>>> >
>>> > Added 4 hotkeys using same keymap values as eeepc-latop.
>>> > These are mousepad toggle, resolution change, screen off,
>>> > and task manager. These were tested on 1005PE and are the
>>> > Fn-F3, F4, F7, and F9, respectively.
>>> >
>>> > Also, added a new hot key for power toggles (Fn-Space on 1005PE)
>>> > and is meant to drive cpufv interface from userspace.
>>> >
>>> > Finally, added several keys to be ignored that are being emitted
>>> > but do not mapped to any useful or documented hotkeys. This is
>>> > purely cosmetic to prevent uknown key reports on console/log files.
>>> > These keys are reported on 1005PE's.
>>>
>>> What are exactly these keys ? Since they are probably some obscure Fn+
>>> combo, and they are probably used on another model, I'm not sure we should
>>> hide them.
>>>
>>> I'm still not happy with F13 for "disable touchpad" but I did the same
>>> for other laptops,
>>> and we don't have a key for that ATM.
>>
>> The most sensible way would be to add one then. We just need to decide if
>> it should be a key or a switch.
>>
>
> Motivated by thread on linux-input "Touchpad toggle mess", I changed
> Fn-F3(toggle touchpad) from KEY_F13 to KEY_F22 With Gnome 2.32
> (Fedora 14), now magically my touchpad toggle works automagically.
>
> So I'd like to submit a patch to change both eeepc-laptop and
> eeepc-wmi to use KEY_F22 for toggle touchpad to get some immediate
> benifit. Any issues with this? Is F13 doing anything useful by
> default?
>
> I know in this thread and in other thread Dmitry mentioned we should
> make a KEY_TOUCHPAD_TOGGLE (or whatever name). I'm probably just
> smart enough to do that if preferred but don't think I'd be able to
> take it to the next level and get it translated to
> XF86XK_TouchpadToggle. Help appreciate in that area.
>
> Chris
>
Hi Chris,
Since 2.6.38 merge window should be in a long time, I think we have
the time to ad new keys.
Dimitry, what do you think of :
KEY_TOUCHPAD_TOGGLE 248
KEY_TOUCHPAD_ON 249
KEY_TOUCHPAD_OFF 250
Maybe we should keep these lower keycodes for other stuff, and use
some higher ones ?
Thanks,
--
Corentin Chary
http://xf.iksaif.net
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH 1/2] eeepc-wmi: add additional hotkeys
2010-11-06 7:42 ` Corentin Chary
@ 2010-11-06 9:39 ` Dmitry Torokhov
0 siblings, 0 replies; 10+ messages in thread
From: Dmitry Torokhov @ 2010-11-06 9:39 UTC (permalink / raw)
To: Corentin Chary
Cc: Chris Bagwell, platform-driver-x86, acpi4asus-user, yong.y.wang,
Bastien Nocera
On Sat, Nov 06, 2010 at 08:42:52AM +0100, Corentin Chary wrote:
> On Sat, Nov 6, 2010 at 4:02 AM, Chris Bagwell <chris@cnpbagwell.com> wrote:
> > On Mon, Oct 11, 2010 at 12:10 PM, Dmitry Torokhov
> > <dmitry.torokhov@gmail.com> wrote:
> >> On Sunday, October 10, 2010 11:26:22 pm Corentin Chary wrote:
> >>> On Mon, Oct 11, 2010 at 3:48 AM, <chris@cnpbagwell.com> wrote:
> >>> > From: Chris Bagwell <chris@cnpbagwell.com>
> >>> >
> >>> > Added 4 hotkeys using same keymap values as eeepc-latop.
> >>> > These are mousepad toggle, resolution change, screen off,
> >>> > and task manager. These were tested on 1005PE and are the
> >>> > Fn-F3, F4, F7, and F9, respectively.
> >>> >
> >>> > Also, added a new hot key for power toggles (Fn-Space on 1005PE)
> >>> > and is meant to drive cpufv interface from userspace.
> >>> >
> >>> > Finally, added several keys to be ignored that are being emitted
> >>> > but do not mapped to any useful or documented hotkeys. This is
> >>> > purely cosmetic to prevent uknown key reports on console/log files.
> >>> > These keys are reported on 1005PE's.
> >>>
> >>> What are exactly these keys ? Since they are probably some obscure Fn+
> >>> combo, and they are probably used on another model, I'm not sure we should
> >>> hide them.
> >>>
> >>> I'm still not happy with F13 for "disable touchpad" but I did the same
> >>> for other laptops,
> >>> and we don't have a key for that ATM.
> >>
> >> The most sensible way would be to add one then. We just need to decide if
> >> it should be a key or a switch.
> >>
> >
> > Motivated by thread on linux-input "Touchpad toggle mess", I changed
> > Fn-F3(toggle touchpad) from KEY_F13 to KEY_F22 With Gnome 2.32
> > (Fedora 14), now magically my touchpad toggle works automagically.
> >
> > So I'd like to submit a patch to change both eeepc-laptop and
> > eeepc-wmi to use KEY_F22 for toggle touchpad to get some immediate
> > benifit. Any issues with this? Is F13 doing anything useful by
> > default?
> >
> > I know in this thread and in other thread Dmitry mentioned we should
> > make a KEY_TOUCHPAD_TOGGLE (or whatever name). I'm probably just
> > smart enough to do that if preferred but don't think I'd be able to
> > take it to the next level and get it translated to
> > XF86XK_TouchpadToggle. Help appreciate in that area.
> >
> > Chris
> >
>
> Hi Chris,
> Since 2.6.38 merge window should be in a long time, I think we have
> the time to ad new keys.
>
> Dimitry, what do you think of :
>
> KEY_TOUCHPAD_TOGGLE 248
> KEY_TOUCHPAD_ON 249
> KEY_TOUCHPAD_OFF 250
>
> Maybe we should keep these lower keycodes for other stuff, and use
> some higher ones ?
>
I think we should move them up. Bastien mentioned that X already
standardized on F21, 22 and 23 so they will need to remap anyways, thus
we'll be "wasting" valuable lower scancode estate if we do it this way.
The only thing that is left is to feed udev guys with keymaps till X is
able to take the full scancode trange.
Thanks.
--
Dmitry
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2010-11-08 7:18 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-11-08 1:58 [PATCH 1/2] eeepc-wmi: add additional hotkeys Joey Lee
2010-11-08 7:18 ` Dmitry Torokhov
-- strict thread matches above, loose matches on Subject: below --
2010-10-11 1:48 chris
2010-10-11 6:26 ` Corentin Chary
2010-10-11 13:25 ` Chris Bagwell
2010-10-11 13:57 ` Corentin Chary
[not found] ` <AANLkTin3J3oOaYD8G=YSrBr0AKzw7mY7v0BQssw5z2Z6-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2010-10-11 17:10 ` Dmitry Torokhov
2010-11-06 3:02 ` Chris Bagwell
2010-11-06 7:42 ` Corentin Chary
2010-11-06 9:39 ` Dmitry Torokhov
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).