maemo.org Bugzilla – Bug 3021
Xomap doesn't handle FN key properly (keycodes > 255)
Last modified: 2011-09-02 21:43:34 UTC
You need to
before you can comment on or make changes to this bug.
SOFTWARE VERSION: 2.2007.50-2
Modern keyboards on PCs has all kinds of multimedia keys and the KEY_FN on
N810's keyboard could be counted as one.
The FN key uses the standard keycode 0x1d0 (464) defined in
/usr/include/linux/input.h. The problem here is that x11 protocol doesn't
support keycodes over 255.
The Xomap currently does something very odd with the keycode (see  for more
details), it takes the lowest 8 bits, increases by 8 and decreases by 0:
key_code = scan_code + KD_MIN_KEYCODE - ki->minScanCode
The result is 216 and this code is used happily in the xkb mappings.
To me this looks like a bug (according to xev also Xorg receives code 216).
Since x12 isn't coming any time soon, I believe the best choice would be to use
HAL and let it remap the keys to some unused keycode explicitly. HAL uses
EVIOCSKEYCODE ioctl with the evdev device to do this but unfortunately it seems
that the Maemo's OMAP keyboard driver doesn't implement this (at least I get
EINVAL while it works on PC).
ack. oops, i should know this a bit better. :)
Daniel: Is working going on for this? Want to have an internal copy for this
Daniel: Will this be fixed for Fremantle?
Willing to give Fremantle pre-alpha2 a try and add a comment about it?
No X.Org in Fremantle sources yet (at least I didn't find it). And probably the
key codes will be completely different for RX-51.
I did get X.Org 1.5.1 working with n810 though with ARM Linux Internet
Platform. Looks like there the xf86-input-evdev 2.0.4 passes the KEY_FN
(464) to X.Org but key codes over 256 are discarded there.
So, for ALIP I modified the xf86-input-evdev to send Alt Gr (108) instead of
KEY_FB . I also changed the keymap in xkeyboard-config to use the Alt Gr
instead of the old invalid keycode 216.
(In reply to comment #6)
> No X.Org in Fremantle sources yet
Fremantle SDK alpha now has
As far as I've been told it's WONTFIX for Diablo (not critical enough to fix).
Yes, this is not critical and it's actually upstream issue.
Upstream ticket is http://bugs.freedesktop.org/show_bug.cgi?id=11227 .
Setting version to Fremantle as the upstream ticket is still open.
This is a WONTFIX for Maemo5 as long as it is not fixed upstream, and I don't
expect an upstream fix soon I'd rather recommend to file a report in
bugs.meego.com as MeeGo Handset is where the unstable development is taking
place. (Please note that MeeGo for the Nokia N900 is unstable. If you are
for more information and be aware of the risks of trying unstable software.)
Closing as wontfix.