I'm setting up my Internet Keys (or Multimedia Keys) of my keyboard (A4Tech KBS-26 in Japanese).
If I press a "Calendar key" under "xev" it said the key is not recognized, so looking at "dmesg -c" it display me:
atkbd.c: Unknown key pressed (translated set 2, code 0x95 on isa0060/serio0).
atkbd.c: Use 'setkeycodes e015 <keycode>' to make it known.
So, I entered: "setkeycodes e015 149
I used 149, because looking on similar models and using the tool "getscancodes" (from keytouch), I seems to be the correct value. But the problem is that when I run that command and running again xev, and pressing "calendar" button, it display:
KeyRelease event, serial 30, synthetic NO, window 0x1400001,
root 0x44, subw 0x0, time 5803500, (463,406), root:(467,433),
state 0x10, keycode 151 (keysym 0x1008ff58, unknown), same_screen YES,
XLookupString gives 0 bytes:
My question is: Why the keycode is not the same? if I specified "149" why it is "151" on xev?
The problem is that it seems there is no relation from the values I enter as keycode in "setkeycodes" and the values i recieve on "xev" for my "special keys".
What I did was looking for each value from 100 to 255 until I get the reading on xev as "149".
It worked, but I didn't add those values to my .Xmodmap, (or even a paper). After reboot, I loose those values and I have to do it again... I want to learn the correct way to do it... any suggestion?