Extensa 5220

Thomas Ilnseher ilnseher at eit.uni-kl.de
Tue Dec 11 07:07:49 PST 2007


Am Dienstag, den 11.12.2007, 14:08 +0000 schrieb Carlos Corbacho:
> On Tuesday 11 December 2007 14:00:55 Hannes Mayer wrote:
> > I didn't start this thread, but this works for me
> 
> Re-adding Thomas to CC.
> 
> > --- fdi/information/10freedesktop/30-keymap-acer.fdi.orig	2007-12-11 14:52:04.000000000 +0100
> > +++ fdi/information/10freedesktop/30-keymap-acer.fdi	2007-12-11 14:53:11.000000000 +0100
> > @@ -131,6 +131,27 @@
> >              <append key="input.keymap.data" type="strlist">e074:prog1</append> <!-- "e" Acer eManager button -->
> >              <append key="info.capabilities" type="strlist">input.keymap</append>
> >            </match>
> > +          <!-- Extensa 5220; possibly also 5210, 5610, 5620 -->
> > +          <match key="/org/freedesktop/Hal/devices/computer:system.hardware.product" contains="5220">
> 
> Drop the comment, change "5220" to "5210;5220;5610;5620".
> Change 'contains' to 'contains_outof'.
I don't know what happened, this is the actual patch. there is a
contains_outof.

> 
> > +            <append key="input.keymap.data" type="strlist">e025:help</append> <!-- Fn+F1 Hotkey help -->
> > +            <append key="input.keymap.data" type="strlist">e026:setup</append> <!-- Fn+F2 Acer eSettings -->
> > +            <append key="input.keymap.data" type="strlist">e027:battery</append> <!-- Fn+F3 Power Management -->
> > +             <append key="input.keymap.data" type="strlist">e029:switchvideomode</append> <!-- Fn+F5 Display toggle -->
> > +            <append key="input.keymap.data" type="strlist">e033:euro</append> <!-- Euro symbol -->
> > +            <append key="input.keymap.data" type="strlist">e034:dollar</append> <!-- Dollar symbol -->
> > +            <append key="input.keymap.data" type="strlist">e054:bluetooth</append> <!-- bluetooth Switch, no bluetooth -->
> 
> Even if your particular model don't have bluetooth, the option to install it
> still exists (and other variants probably do have it). So this should look
> like:
> 
> +            <append key="input.keymap.data" type="strlist">e053:bluetooth</append> <!-- Bluetooth (toggle) on-to-off -->
> +            <append key="input.keymap.data" type="strlist">e054:bluetooth</append> <!-- Bluetooth (toggle) off-to-on -->
I can confirm it is only e054 !

For the sake of it, i did a dmesg -c >/dev/null, pressed the key 5
times, and placed the output of dmesg here:

note 10freedesktop # dmesg -c >/dev/null 
note 10freedesktop # dmesg 
# five key presses!!
note 10freedesktop # dmesg 
atkbd.c: Unknown key pressed (translated set 2, code 0xd4 on
isa0060/serio0).
atkbd.c: Use 'setkeycodes e054 <keycode>' to make it known.
atkbd.c: Unknown key released (translated set 2, code 0xd4 on
isa0060/serio0).
atkbd.c: Use 'setkeycodes e054 <keycode>' to make it known.
atkbd.c: Unknown key pressed (translated set 2, code 0xd4 on
isa0060/serio0).
atkbd.c: Use 'setkeycodes e054 <keycode>' to make it known.
atkbd.c: Unknown key released (translated set 2, code 0xd4 on
isa0060/serio0).
atkbd.c: Use 'setkeycodes e054 <keycode>' to make it known.
atkbd.c: Unknown key pressed (translated set 2, code 0xd4 on
isa0060/serio0).
atkbd.c: Use 'setkeycodes e054 <keycode>' to make it known.
atkbd.c: Unknown key released (translated set 2, code 0xd4 on
isa0060/serio0).
atkbd.c: Use 'setkeycodes e054 <keycode>' to make it known.
atkbd.c: Unknown key pressed (translated set 2, code 0xd4 on
isa0060/serio0).
atkbd.c: Use 'setkeycodes e054 <keycode>' to make it known.
atkbd.c: Unknown key released (translated set 2, code 0xd4 on
isa0060/serio0).
atkbd.c: Use 'setkeycodes e054 <keycode>' to make it known.
atkbd.c: Unknown key pressed (translated set 2, code 0xd4 on
isa0060/serio0).
atkbd.c: Use 'setkeycodes e054 <keycode>' to make it known.
atkbd.c: Unknown key released (translated set 2, code 0xd4 on
isa0060/serio0).
atkbd.c: Use 'setkeycodes e054 <keycode>' to make it known.

if it makes you feel better, feel free to add this e053 key anyway.




> 
> > +            <append key="input.keymap.data" type="strlist">e055:wlan</append> <!-- Wireless (toggle) on-to-off -->
> > +            <append key="input.keymap.data" type="strlist">e056:wlan</append> <!-- Wireless (toggle) off-to-on -->
> > +            <append key="input.keymap.data" type="strlist">e06e:lock</append> <!--  Windows Lock function --> 
> > +            <append key="input.keymap.data" type="strlist">e071:f22</append> <!-- Fn+F7 Touchpad toggle (off-to-on) -->
> > +            <append key="input.keymap.data" type="strlist">e072:f23</append> <!-- Fn+F7 Touchpad toggle (on-to-off) -->
> > +            <append key="input.keymap.data" type="strlist">e073:prog2</append> <!-- "P" programmable button -->
> > +            <append key="input.keymap.data" type="strlist">e074:prog1</append> <!-- "e" Acer eManager button -->
> > +            <append key="input.keymap.data" type="strlist">e075:presentation</append> <!-- Minimise all Windows -->
> > +            <append key="input.keymap.data" type="strlist">e078:fn</append> <!-- fn key --> 
> 
> Does the Fn key (bottom left, right of Ctrl) actually produce this scancode?
> Or is this in combination with something else?
Yes.

oddly, this key produces key down and key up events simultanous when the
fn-key is released. Here is an example of pressing fn+f3:
atkbd.c: Unknown key pressed (translated set 2, code 0xa7 on
isa0060/serio0).
atkbd.c: Use 'setkeycodes e027 <keycode>' to make it known.
atkbd.c: Unknown key released (translated set 2, code 0xa7 on
isa0060/serio0).
atkbd.c: Use 'setkeycodes e027 <keycode>' to make it known.
atkbd.c: Unknown key pressed (translated set 2, code 0xf8 on
isa0060/serio0).
atkbd.c: Use 'setkeycodes e078 <keycode>' to make it known.
atkbd.c: Unknown key released (translated set 2, code 0xf8 on
isa0060/serio0).
atkbd.c: Use 'setkeycodes e078 <keycode>' to make it known.

what would be expected is: e078 down, e027 down, e027up, e078up


> 
> > +            <append key="input.keymap.data" type="strlist">e079:sync</append> <!-- Launch NTI shadow -->
> > +			<append key="info.capabilities" type="strlist">input.keymap</append>
> > +          </match>      
> >          </match>
> >          <match key="/org/freedesktop/Hal/devices/computer:system.hardware.product" prefix="Ferrari">
> >            <!-- Laptops with extra Euro and Dollar keys -->
> 
> If we can sort out the three remaining points, then I'm happy with this
> patch.
> 
> -Carlos
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 30-keymap-acer.fdi
Type: application/xml
Size: 24992 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/hal/attachments/20071211/316ef8f7/attachment-0001.rdf 


More information about the hal mailing list