Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 13073 - right arrow key sending wrong keycode in xfree-4.2.1-r2
Summary: right arrow key sending wrong keycode in xfree-4.2.1-r2
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: PPC Linux
: High major
Assignee: Martin Schlemmer (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-01-02 00:10 UTC by Mark Guertin
Modified: 2006-02-04 06:03 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
xkdbcomp diff (xkb-diff,51.91 KB, patch)
2003-01-07 11:53 UTC, Mark Guertin
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Mark Guertin 2003-01-02 00:10:47 UTC
Hi Az

I've been digging around on this one, but I have some info, just don't know what
to do with it...

Did some keycode checking, and the -r2 xfree is sending a different keycode
(according to xev) for the right arrow key.  Nothing in my configuration changed
from the 4.2.1 setup.

In xfree-4.2.1 right arrow sends keycode 114 
In xfree-4.2.1-r2 right arrow sends keycode 110

Nothing else noticeable is amiss and I really have no idea where to go from here
with it.  I assigned bug to you for now, you can dump it back on me once I get a
clue as to what to do :)

Any suggestions would be great.  Also it works fine still from kernel, showkeys
shows me all the same keycodes that it did with older version (shouldn't be
affected anyway)
Comment 1 Martin Schlemmer (RETIRED) gentoo-dev 2003-01-02 16:00:28 UTC
Will do.  What keymap btw ?  Tried a different one yet ?
Comment 2 Mark Guertin 2003-01-02 21:23:17 UTC
Okie, I went through a variety of keymaps etc, and even compared the newer
keymaps and keycodes files to old ones, they are all identical and I get the
same response with any keymap/keycode combo I tried.

It looks like something else is causing this stuff.  Any other suggestions?
Comment 3 Martin Schlemmer (RETIRED) gentoo-dev 2003-01-05 10:33:05 UTC
No idea. Ill do a diff of xkb source in 4.2.1 and 4.2.1-r2, and see if I can
track it down to a patch/whatever.
Comment 4 Mark Guertin 2003-01-05 16:07:23 UTC
Ahh that sounds like exactly what the doctor ordered

lemme know when you have something for me to test out 
Comment 5 Mark Guertin 2003-01-07 11:45:14 UTC
I did a bit of checking and the differences seem _very_ trivcial, this is a head
scratcher...in fact I don't know what chagned really, looks identical:

diff -uNr /var/tmp/portage/xfree-4.2.1/work/xc/lib/xkbfile/
/var/tmp/portage/xfree-4.2.1-r2/work/xc/lib/xkbfile/
diff -uNr /var/tmp/portage/xfree-4.2.1/work/xc/lib/xkbfile/maprules.c
/var/tmp/portage/xfree-4.2.1-r2/work/xc/lib/xkbfile/maprules.c
--- /var/tmp/portage/xfree-4.2.1/work/xc/lib/xkbfile/maprules.c 2003-01-07
12:33:56.000000000 -0500
+++ /var/tmp/portage/xfree-4.2.1-r2/work/xc/lib/xkbfile/maprules.c     
2001-10-27 23:32:47.000000000 -0400
@@ -502,15 +502,15 @@
     }
     else {
        if (rule->keycodes)
-           names->keycodes= _Concat(names->keycodes,rule->keycodes);
+           names->keycodes= _Concat(names->keycodes,rule->keycodes);
        if (rule->symbols)
-           names->symbols= _Concat(names->symbols,rule->symbols);
+           names->symbols= _Concat(names->symbols,rule->symbols);
        if (rule->types)
-           names->types= _Concat(names->types,rule->types);
+           names->types= _Concat(names->types,rule->types);
        if (rule->compat)
-           names->compat= _Concat(names->compat,rule->compat);
+           names->compat= _Concat(names->compat,rule->compat);
        if (rule->geometry)
-           names->geometry= _Concat(names->geometry,rule->geometry);
+           names->geometry= _Concat(names->geometry,rule->geometry);
        if (rule->keymap)
            names->keymap= _Concat(names->keymap,rule->keymap);
     }
Comment 6 Mark Guertin 2003-01-07 11:53:14 UTC
Created attachment 7051 [details, diff]
xkdbcomp diff

Looks like there may be some big(ish) behaviour changes here, not sure how much
applies but the definately messed with some keymaps.
Comment 7 Martin Schlemmer (RETIRED) gentoo-dev 2003-01-07 16:21:51 UTC
First one prob just indentation/tab fixes.  Looking at last diff now.
Comment 8 Martin Schlemmer (RETIRED) gentoo-dev 2003-01-07 16:25:36 UTC
Looks more like eastern support, euro support and the bison-1.75 fix.  Not
really anything that looks like what could be causing.

This on your PPC box Gerk ?  Other guys with same problem ?
Comment 9 Mark Guertin 2003-01-07 16:32:29 UTC
Yep on my ppc boxen (all of them).

This problem occurs for all ppc users trying to use 4.2.1-r2.  It's very
perplexing.  I;m not sure it's going to make the cut for 1.4 release time, but
it would be great if it can.  I've been working on this one myself for some time
now and have gotten no where, its a large compile and I just don't have the time
to fight with it :(

Comment 10 Martin Schlemmer (RETIRED) gentoo-dev 2003-01-07 16:59:12 UTC
Oki, Ill see what I can do.
Comment 11 Mark Guertin 2003-01-08 09:59:16 UTC
was there a lot of changes from 4.2.1 to 4.2.1-r2 ?  Because 4.2.1 runs very
well for me, the only issue I have with it is that it doesn't have the -fPIC
fixup for xinerama.

Times like this I wish we could run paralelle builds for different arches, as
4.2.1 + the fPIC patch would be all we really need ATM.

I also have an ebuild that's done to supply the whole of dri-trunk into 4.2.1
(bringing it up to 4.2.99.2) which works amazingly well on my machine, gives
most PPC users full dri capability.  I went from 99fps in glxgears to 1400fps :) :)

So maybe a 4.2.99.2 ebuild would be in order for ppc stable? (4.2.1 + dri-trunk
stuff I have?).  It might be an ugly build, but it would get things done very
well for 1.4 release and being stable.

Any thoughts on this Az ?

BTW, the right arrow key is working ok again with 4.2.99.3
Comment 12 Ferris McCormick (RETIRED) gentoo-dev 2003-01-10 14:08:09 UTC
It's not PPC specific.  I built xfree86-4.2.1-r2 for SPARC (sun5(us) kbd). On
this system, Right arrow is OK, but the 'L/l' key sends 'B/b', and ',/<' sends
'v/V'.  On another SPARC system with a different keyboard, it is reported that
only the 'B' key is broken.

My guess is that all platforms are broken in some way or another as far as
xf86-4.2.1-r2 kbd mappings are concerned.
Comment 13 Mark Guertin 2003-01-14 09:53:30 UTC
I think between Azarah and I we have tracked this down and there is a
forthcoming build ( -r3) to correct this.
Comment 14 Martin Schlemmer (RETIRED) gentoo-dev 2003-01-17 05:36:59 UTC
Gerk, your feedback on fixed -r2 ok?  You think we should do a bump to -r3
to get people to update and make sure its fixed for all ?
Comment 15 Martin Schlemmer (RETIRED) gentoo-dev 2003-01-22 00:31:36 UTC
Gerk, any feedback from Nall ?
Comment 16 Mark Guertin 2003-01-22 15:00:56 UTC
Things are all fine for most users, Nall still has some strange keycode issues,
I will cc him on this bug and get him on the loop.

I think his down arrow key is mapping to eject heh
Comment 17 Mark Guertin 2003-01-22 16:22:12 UTC
roughneck has this same issue so I'm adding him to cc
Comment 18 Jonathan Nall 2003-01-22 16:23:24 UTC
i'm still seeing this. pressing the down arrow causes the CD to eject. xev shows
it's a keycode of 116. 

looking into this tonight.
Comment 19 Jonathan Nall 2003-01-22 23:00:01 UTC
dug in a little more tonight and this is not an X problem per se.
from the console showkeys yields
[Fn-F12] => 108
[Down] => 108

so this is futher reaching than X. there's something going on in the kernel
scancodes->keycodes mapping.

however, i did see this with respect to X (from the output of startx):
Couldn't load XKB keymap, falling back to pre-XKB keymap

here's my X keyboard setup:

Section "InputDevice"
Identifier  "Keyboard0"
Driver      "keyboard"
Option          "CustomKeycodes"
Option          "XkbModel"      "Macintosh"
Option          "XkbLayout"     "us"
Option          "XkbRules"      "xfree"
EndSection

thoughts?
Comment 20 Ferris McCormick (RETIRED) gentoo-dev 2003-01-23 15:02:22 UTC
No longer an issue for me on sparc (see #14126, 13161).
Comment 21 Mark Guertin 2003-02-13 00:53:12 UTC
THis is most definately a pre XKB layout issue, likely with the adb styled 
keyboard layouts. 
 
Using XKB layouts is a work around, but the problem lies with upstream code.  
I've been told they know of at least part of this, so we'll see what happens in 
their CVS I suppose 
Comment 22 Mark Guertin 2003-03-10 12:00:10 UTC
ok, I finally got the skinny on all this... 
 
the pre XKB assumes ADB keycodes... adb keycodes in the kernel are very 
much depcreciated and the cause of this stuff by the looks of it. 
 
This wont be getting fixed according to the kernel people I have spoken with as 
it is legacy only, new sets should be using linux keycodes and not adb 
keycodes, so I'm going to close this bug 
 
Thanks az and everyone else 
Comment 23 Pieter Van den Abeele (RETIRED) gentoo-dev 2003-10-11 04:35:44 UTC
This bug should be closed, no longer an issue.