Bug 5259 - Support for Acer Ferrari 4k keyboard
Summary: Support for Acer Ferrari 4k keyboard
Status: RESOLVED FIXED
Alias: None
Product: xkeyboard-config
Classification: Unclassified
Component: General (show other bugs)
Version: unspecified
Hardware: All Linux (All)
: high normal
Assignee: xkb
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-12-07 18:19 UTC by Alexander Dubov
Modified: 2006-03-17 10:35 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments
Proposed addition to symbols/inet v1.37 (1.10 KB, patch)
2005-12-07 18:23 UTC, Alexander Dubov
Details | Splinter Review
Trivial addition to symbols.dir following that to symbols/inet (366 bytes, patch)
2005-12-07 18:25 UTC, Alexander Dubov
Details | Splinter Review
Trivial addition to xorg following that to symbols/inet (425 bytes, patch)
2005-12-07 18:26 UTC, Alexander Dubov
Details | Splinter Review
Trivial addition to xorg.lst following that to symbols/inet (340 bytes, patch)
2005-12-07 18:27 UTC, Alexander Dubov
Details | Splinter Review
Trivial addition to xorg.xml following that to symbols/inet (466 bytes, patch)
2005-12-07 18:28 UTC, Alexander Dubov
Details | Splinter Review
Patch to add support for Acer F4k keyboard (3.23 KB, patch)
2005-12-30 01:34 UTC, Alexander Dubov
Details | Splinter Review

Description Alexander Dubov 2005-12-07 18:19:22 UTC
The aforementioned laptop has a keyboard with few extra keys that are better be 
supported by xkb, for improved convenience of its users.
Comment 1 Alexander Dubov 2005-12-07 18:23:50 UTC
Created attachment 4018 [details] [review]
Proposed addition to symbols/inet v1.37
Comment 2 Alexander Dubov 2005-12-07 18:25:28 UTC
Created attachment 4019 [details] [review]
Trivial addition to symbols.dir following that to symbols/inet
Comment 3 Alexander Dubov 2005-12-07 18:26:32 UTC
Created attachment 4020 [details] [review]
Trivial addition to xorg following that to symbols/inet
Comment 4 Alexander Dubov 2005-12-07 18:27:12 UTC
Created attachment 4021 [details] [review]
Trivial addition to xorg.lst following that to symbols/inet
Comment 5 Alexander Dubov 2005-12-07 18:28:02 UTC
Created attachment 4022 [details] [review]
Trivial addition to xorg.xml following that to symbols/inet
Comment 6 Alexander Dubov 2005-12-07 18:34:36 UTC
I've posted few patches to xkb files I use to make all keys of my Acer F4k to 
work. I'm also forced to use "setkeycodes" on some escaped keycodes in the 
following manner: 
xkb     : 233  234  240  241  242  243  244  245  249  249 
console : 159  158  235  236  237  238  239  138  192  192 
scode   : e033 e034 e06e e074 e073 e025 e026 e027 e055 e056 
 
(I need to map "scode" code to "console" code in order to get an "xkb" code 
reported by xev). 
 
I don't have enough knowledge of the input system in linux (kernel mapping + 
xkb mapping, but I hope my solution is at least reasonable. I will be glad if 
it (or something similar) could be included into official tree. 
Comment 7 Alexander Dubov 2005-12-30 01:34:57 UTC
Created attachment 4190 [details] [review]
Patch to add support for Acer F4k keyboard

After some consideration I decided on this key mapping (patch against Xorg-7.0
xkbdata). The rationale and kernel scancode mapping are as following:
# Extra keys for Acer Ferrari 4k
# Key		    | scode | X11 symbol   | X11 kcode	| Console kcode
# ----------------------------------------------------------------------
# Fn-F1 	      e025    Help	     I70 - 240	   235
# Fn-F2 	      e026    XF86Launch1    I71 - 241	   236
# Fn-F3 	      e027    XF86Launch2    I72 - 242	   237
# Fn-F4 	      <acpi sleep event>
# Fn-F5 	      e029    XF86Display    I26 - 166	   154
# Euro		      e033    EuroSign	     I25 - 165	   205
# Dollar	      e034    dollar	     I24 - 164	   166
# WIFI ON	      e055    NoSymbol		 x	   240
# WIFI OFF	      e056    NoSymbol		 x	   241
# USB ON	      e057    NoSymbol		 x	   242
# USB OFF	      e058    NoSymbol		 x	   243
# BR. UP	      e063    NoSymbol		 x	   244
# Fn-F7 (TPAD ON)     e071    NoSymbol		 x	   245
# Fn-F7 (TPAD OFF)    e072    NoSymbol		 x	   246
# "P" button	      e073    XF86Launch3    I73 - 243	   238
# "e" button	      e074    XF86Launch4    I74 - 244	   239
# --------------------------------------------
# Rationale: "NoSymbol" keys have nothing to do with X apps - they must be
#		handled on the lower level if at all (they do their work).
#		Therefore I've mapped them to the keycodes that never get
#		reported to X (I think).
#	     "XF86Display" mapped according to the only other occurrence in
#		<inet> file.
#	     "Help" and "XF86Launch*" buttons mapped by majority and
#		grouping of "XF86Launch*" buttons in <inet> file.
#	     "dollar" was mapped in resemblance of it ASCII code and "Euro"
#		used to plug a discontinuity

KEYCODES="e025 235 e026 236 e027 237 e029 154 e033 205 e034 166 e055 240 e056
241 e057 242 e058 243 e063 244 e071 245 e072 246 e073 238 e074 239"
Comment 8 Mike A. Harris 2006-03-17 22:26:12 UTC
Reassigning bug to xkeyboard-config component, as X.Org's xkbdata is no
longer maintained or supported.
Comment 9 Sergey V. Udaltsov 2006-03-18 05:35:15 UTC
Thanks, committed.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.