GNOME Bugzilla – Bug 590954
render of TypeMatrix tm2020 geometry with some keys duplicated shows only one of them
Last modified: 2009-12-07 11:20:27 UTC
Please describe the problem: In the Gnome applet showing current keyboard map, when I've previously selected TypeMatrix tm2020 keyboard model (recently added in Xorg, see bug #23136 on Freedesktop.org), I get a layout of the keyboard where some keys are missing : indeed, this keyboard has some keys duplicated : two space, tabulation, backspace keys. On the rendered keyboard image, I get only one of them ! Steps to reproduce: 1. select TypeMatrix EZR tm2020 as keyboard geometry in the Gnome's keyboard applet 2. in this applet, show current layout Actual results: duplicated keys are missing (space, backspace, tab) Expected results: all keys shown Does this happen every time? yes Other information: I can also setup problematic config with following command line : setxkbmap -geometry 'typematrix(tm2020)' -symbols 'pc+fr(bepo)' The xkbprint program gives a good result : setxkbmap -geometry 'typematrix(tm2020)' -symbols 'pc+fr(bepo)' -print|xkbcomp -o - -xkm - | xkbprint -color -diffs -full -label symbols -level2 -pict all -o - -|gv -
Created attachment 140032 [details] picture of the Typematrix tm2020 keyboard
Created attachment 140033 [details] screenshot of faulty Gnome applet which forget some duplicated keys
Created attachment 140034 [details] picture correctly rendered by xkbprint of the same description (PostScript format)
the same result is noticed with the Keytronic flexpro geometry and this keyboard has a splitted space key..
Created attachment 145053 [details] keytronic flexpro as shown by the applet
The current logic of libgnomekbd is slightly broken - it does not handle repeating keycodes well... Will try to fix that.
fixed in git. please check.
I've tried to patch the libgnomekbd package from Debian Sid (2.28.0-2) with patch given from git (commit d1f0758a82776031184c73a8366d4bdca29e9bb9). I then built some packages, and used on a Debian Sid system : I didn't notice any change when showing the Keytronic flexpro (TypeMatrix 2020 isn't in xkeyboard-config's Sid package yet) keyboard mapping with Gnome Keyboard applet, even after a disconnect or a reboot. I wonder if I've done an error or if the bug is already here ?
I chosen flexpro model. The picture with the patch is different from the picture without it - several new keys appeared (duplicated keycodes).
Created attachment 146565 [details] flexpro kbd with the patch
I've retested after installing updated xkb-data package with TypeMatrix 2020 keyboard geometry definition, and it works ! I was misleaded by the strange geometry of the Keytronic Flexpro keyboard (its Return key has wrong shape). Thanks for your picture, it helped me to check I get the same result as yours :-)
Created attachment 147092 [details] TM2020 geometry with fix.
-#define noKBDRAW_DEBUG +#define KBDRAW_DEBUG Reopening, some debug sipped in.
Bastien, that should be noKBDRAW_DEBUG
(In reply to comment #14) > Bastien, that should be noKBDRAW_DEBUG Right, as you already fixed in: http://git.gnome.org/cgit/libgnomekbd/commit/?id=76929f1dab171bd5aba00dfa53ffca6cdd79a38e