Thinkpad X200 Keymap

Hi,

I’ve got a Thinkpad X200 running the latest GCC2H nightly. It’s really well supported - great for Haiku.

Does anyone have the proper keymap file? I’m using the ‘Thinkpad International’ layout, but I would like to use the keys above the left and right arrows (page forward/back?) for shortcuts to switch workspace.

Would I be able to edit the keymap and add these keys from the raw hex input values somehow? How would I find out what the value they emit is?

Thanks,
Chris

According to http://www.thinkwiki.org/wiki/How_to_get_special_keys_to_work, these keys have codes 233 and 234 (“F19” and “F20”). However, I think there is a layer of conversion from PS/2 keyvcodes to BeOS keycodes before they get to the keymap, so a simple keymap change may not be enough.

Thanks. So I think this would actually need a new layout (in system/data/KeyboardLayouts/ThinkPad.
This is part of the read-only FS, so is there a way of specifying new layouts somewhere in /boot/home?

Hi moochris,

maybe not enough, considering what PulkoMandy said, but the userguide may at least shed some light: Keymap prefs.

Regards,
Humdinger

Hi Humdinger,

Yes, saw that page - thanks. However, looks like it’s a KeyboardLayout rather than keymap that I need to create and these are stored in the read only FS under system/data

I would try to adapt an existing one if there is a way of adding a layout to e.g. /boot/home/config somewhere?

Thanks,
Chris

Creating it in either /system/non-packaged/data/KeyboardLayouts/ or ~/config/non-packaged/data/KeyboardLayouts/ should work.

Regards,
Humdinger

Ah, great - thanks. Will give that a try.

Hi Chris,

i just brought an X200 too, and i’d like to set this keys. Is it working for you? IF yes, can you tell me, how did you set it up?

Thanks!

Best regards,
miqlas

Hi Miqlas,

I haven’t got it working yet… I didn’t need my own KeyboardLayout in the end - just used another ThinkPad one.

The key codes are 0xe9 and 0xea, so I think you should just be able to add them to the keymap file following this guide:
http://haiku-os.org/docs/userguide/en/preferences/keymap.html

However, if I add a row with those codes for the keys, I still get nothing when pressing them. Let me know if you have any more luck than me! I will investigate a bit more at the weekend.

Thanks,
Chris

Hi Chris,

you can find more info about this bug here: https://dev.haiku-os.org/ticket/8574
I just tested the keylogger, but no scancode emitted :frowning:

Bye!

–miqlas

Hi miqlas

Oh, right - I had no success and this would explain why. Thanks for the link - maybe things have changed in the time since the bug was filed that means an easier solution is possible?

Chris