Extensa 5220
Carlos Corbacho
carlos at strangeworlds.co.uk
Wed Nov 28 09:40:48 PST 2007
On Tuesday 11 September 2007 16:14:57 Thomas Ilnseher wrote:
> I got this new laptop, with a lot of extra buttons on it.
> I tried to write the fdi file according to the info on:
> http://people.freedesktop.org/~hughsient/quirk/quirk-keymap-report.html
>
> but it doesn't work. Any help is appreciated.
Can you elaborate a bit further on "doesn't work"?
On Wednesday 28 November 2007 15:59:43 Danny Kukawka wrote:
> @Carlos: Could you verify this patch? You are more familiar with the Acer
> machines.
Here goes.
On Tuesday 11 September 2007 16:14:57 Thomas Ilnseher wrote:
> diff --git a/fdi/information/10freedesktop/30-keymap-acer.fdi b/fdi/information/10freedesktop/30-keymap-acer.fdi
> index bcce56d..c59bc8e 100644
> --- a/fdi/information/10freedesktop/30-keymap-acer.fdi
> +++ b/fdi/information/10freedesktop/30-keymap-acer.fdi
> @@ -7,6 +7,29 @@
> <match key="@input.originating_device:info.linux.driver" string="atkbd">
>
> <match key="/org/freedesktop/Hal/devices/computer:system.hardware.vendor" prefix="Acer">
> + <match key="/org/freedesktop/Hal/devices/computer:system.hardware.product" prefix="Extensa">
This is wrong - there is now an Extensa section in 30-keymap-acer.fdi
(between 'Aspire' and 'Ferrari' - the list is alphabetically ordered);
please add your 5220 entry to that section.
> + <!-- Extensa 5220; possibly also 5210, 5620 -->
Add them (and the 5610) - all these laptops will have the same base unit,
keyboard controller, etc.
> + <match key="/org/freedesktop/Hal/devices/computer:system.hardware.product" contains="5220">
s/contains/contains_outof/
> + <append key="input.keymap.data" type="strlist">e055:wlan</append> <!-- Wifi Switch, first press -->
> + <append key="input.keymap.data" type="strlist">e056:wlan</append> <!-- Wifi Switch, second press -->
> + <append key="input.keymap.data" type="strlist">e054:bluetooth</append> <!-- bluetooth Switch, second press -->
This is odd - I would usually expect bluetooth to be e057 & e058 - can you
confirm this is really not the case?
(Even if your laptop doesn't have bluetooth, others fitted with it would also
produce a second scancode for going from bluetooth on to off, so you would
need to add another entry for that - if the bluetooth really is e054, then
I expect this other scancode to be e053).
> + <append key="input.keymap.data" type="strlist">e074:prog1</append> <!-- e key, upper left side -->
This scancode is fine - however, please just copy and paste the relevant
comment from the other entries to keep the Acer keymaps consistent, rather
than rewriting them yourself (that way we can try and maintain consistency
across the various laptop entries).
> + <append key="input.keymap.data" type="strlist">e06e:screenlock</append> <!-- screenlock key, second press -->
> + <append key="input.keymap.data" type="strlist">e075:camera</append> <!-- camaera key, second press -->
> + <append key="input.keymap.data" type="strlist">e079:refresh</append> <!-- Possibly reload key ??? -->
These three keycodes I don't recognise, but your laptop does appear to have
new keys.
The manual though:
ftp://ftp.work.acer-euro.com/notebook/extensa_5220/manual/EX_5620_5610_5220_5210_User_Guide_Eng.pdf
lists these new keys as
Lock = Windows Lock function
Presentation = Minimise all windows
Sync = Launch NTI shadow (some sort of backup application?)
I presume the 'lock' key maps to e06e?
And what happens with these keys on the 'first press'? Do they already
generate a keycode (and which one), or do they produce a different
scancode?
> + <append key="input.keymap.data" type="strlist">e073:prog2</append> <!-- "P" key ??? -->
This scancode is fine - however, please just copy and paste the relevant
comment from the other entries to keep the Acer keymaps consistent, rather
than rewriting them yourself (that way we can try and maintain consistency
across the various laptop entries).
> + <append key="input.keymap.data" type="strlist">e033:f15</append> <!-- FIXME !!This is a dedicated "euro" key -->
> + <append key="input.keymap.data" type="strlist">e034:f14</append> <!-- FIXME !!This is a dedicated "$" key -->
There are proper Dollar and Euro keycodes - please use them.
> + <append key="input.keymap.data" type="strlist">e078:fn</append> <!-- fn key -->
> + <append key="input.keymap.data" type="strlist">e025:help</append> <!-- fn+f1 key -->
> + <append key="input.keymap.data" type="strlist">e026:setup</append> <!-- fn+f2 key -->
> + <append key="input.keymap.data" type="strlist">e027:battery</append> <!-- fn+f3 key -->
> + <append key="input.keymap.data" type="strlist">e029:switchvideomode</append> <!-- fn+f5 key -->
> + <append key="input.keymap.data" type="strlist">e071:f22</append> <!-- fn+f7 key, first press -->
> + <append key="input.keymap.data" type="strlist">e072:f22</append> <!-- fn+f7 key, 2nd press -->
These 7 scancodes are fine - however, please just copy and paste the relevant
comments from the other entries to keep the Acer keymaps consistent, rather
than rewriting them yourself (that way we can try and maintain consistency
across the various laptop entries).
Also, please reorder _all_ these entries - they should be sorted by scancode.
And check to see if any of your brightness keys produce scancodes (some do,
some don't).
> + <append key="info.capabilities" type="strlist">input.keymap</append>
> + </match>
> + </match>
> <match key="/org/freedesktop/Hal/devices/computer:system.hardware.product" prefix="Aspire">
> <!-- Aspire 1360 and Aspire 1520 are identical -->
> <match key="/org/freedesktop/Hal/devices/computer:system.hardware.product" contains_outof="1360;1520">
-Carlos
--
E-Mail: carlos at strangeworlds.co.uk
Web: strangeworlds.co.uk
GPG Key ID: 0x23EE722D
More information about the hal
mailing list