Updated fujitsu-tablet.ko for T902?

Asked by Arpit Nema

I have recently purchased the Fujitsu T902, and am facing issues with getting all the bezel buttons to work. I was hoping that the admins here could get in touch with Robert Gerlach about updating the fujitsu-tablet.c code to support the remaining three keys.

The details:
There are 6 panel buttons : a Win key, Volume Up, Volume Down, Rotate Screen,"A" Key and "B" key.
The Win key, "A" key and "B" keys are detected in xev [keycodes 161 (NoSymbol), 186 (XF86ScrollDown) and 185 (XF86ScrollUp) respectively] and can be reassigned as needed using xmodmap. ( I reassigned the win key to launch a screen rotation script and it works).
The remaining keys cannot be detected in either xev or showkey -s (-k).

Thanks
nema.arpit

PS Magick rotation works perfectly. So the hinge part from the fujitsu-tablet module is ok.

Question information

Language:
English Edit question
Status:
Solved
For:
Magick Rotation Edit question
Assignee:
No assignee Edit question
Solved by:
Arpit Nema
Solved:
Last query:
Last reply:
Revision history for this message
Arpit Nema (nema-arpit) said :
#1

Alright! I was able to solve this by modifying the fujitsu-tablet.c. Can people here make sure that the changes are safe? (I think they are, but what do I know :P)

Edit the fujitsu-tablet.c in MagickExtras/fujitsu-tablet-20120404-gerlach folder
Change the following :

Code:

static unsigned short keymap_Lifebook_Tseries[KEYMAP_LEN] __initconst = {
    KEY_RESERVED,
    KEY_RESERVED,
    KEY_RESERVED,
    KEY_RESERVED,
    KEY_SCROLLDOWN,
    KEY_SCROLLUP,
    KEY_DIRECTION,
    KEY_LEFTCTRL,
    KEY_BRIGHTNESSUP,
    KEY_BRIGHTNESSDOWN,
    KEY_BRIGHTNESS_ZERO,
    KEY_RESERVED,
    KEY_RESERVED,
    KEY_RESERVED,
    KEY_RESERVED,
    KEY_LEFTALT
};

/Code

to

Code:

static unsigned short keymap_Lifebook_Tseries[KEYMAP_LEN] __initconst = {
    KEY_RESERVED,
    KEY_VOLUMEDOWN,
    KEY_VOLUMEUP,
    KEY_DIRECTION,
    KEY_SCROLLDOWN,
    KEY_SCROLLUP,
    KEY_DIRECTION,
    KEY_LEFTCTRL,
    KEY_BRIGHTNESSUP,
    KEY_BRIGHTNESSDOWN,
    KEY_BRIGHTNESS_ZERO,
    KEY_RESERVED,
    KEY_RESERVED,
    KEY_RESERVED,
    KEY_RESERVED,
    KEY_LEFTALT
};

/Code

Then follow the readme to setup dkms. showkey/xev now show up all the keys.