Hi,
Am 24.04.13 22:56, schrieb Bakul Shah:
On 24 Apr 2013 21:25:13 +0200 "Holger Sebert"
<holger.seb...@ruhr-uni-bochum.de> wrote:
I have tried it out: The driver says
"sc: e0 56" when pressing the "<"-key.
This means a two char sequence: e0, 0x56 is stuffed into the
kernel device kbin. Ultimately thsi will map to the value in
kbtabesc1[0x56]. Now kbtabesc1 is table 2 in a kbmap so we are
looking for an entry that starts with
2 86 ... # 86 == 0x56
In /sys/lib/kbmap/de I see
2 86 0
This explains why you don't see anything. What you want to do
is to copy this file to, say, de2 and replace the above with
2 86 '<
And then put the following in $home/lib/profile
cat /sys/lib/kbmap/de2 > /dev/kbmap
Probably under 'case terminal'.
Thanks alot! This gets the '<'-key going.
I have tried to put the key-with-modifier (Shift and AltGr)
chars into the kbmap but with no result. "3 86 '>" and "4 86 '|"
get all ignored.
I looked into kbd.c and it seems the driver does not support
modified states of extended scan codes of the form "e0 ??".
A hack would probably be possible, but maybe I am overlooking
something?
If not, how do I recompile and install the kbd-module on the
Raspberry Pi? I changed kbd.c for testing purposes and
executed "mk install" in the directory /sys/src/9/. Although
the build succeeded the changes did not seem to be incorporated.
Sorry for drifting off topic here ...
Best,
Holger