Pmbootstrap: [rx-51] wrong keymap in X

Created on 5 Oct 2017  路  7Comments  路  Source: postmarketOS/pmbootstrap

It seems we have wrong keymap in X: blue key does not work, so symbols can not be accessed. /usr/share/X11/xkb/symbols/nokia_vndr/rx-51 exists and seems to contain something reasonable.

bug device

All 7 comments

I found this repo which basically patches the keyboard layout from upstream as I understand.

Maybe you could make a xkeyboard-nokia-rx51 package for starters, which works similarly (and to make sure that it still works), and then try to get these patches upstreamed so we can drop the package again.

Wow nice find @ollieparanoid , I was searching for some way to implement this a while back but wasn't able to find this project.

@ollieparanoid @craftyguy I looked at the patches in that repo and they change the X11 keyboard layout to be like in this picture:

which I created following the rx51_us.map file 馃憤

@drebrez: if I understood you right this can be closed now. Please re-open if there's still something left to do.

@ollieparanoid I just mentioned that those patches are for setting the X11 keyboard layout as the layout we have for the console.
We actually need to apply those patches somewhere, because right now in X11 the layout doesn't have all the special characters.
We also need a X11 layout for other languages, like the ch_de which uses the arrow keys differently

@pavelmachek @ollieparanoid @MartijnBraam @craftyguy I'm trying to have the keymap in X exactly like those we have in the console (which I have created some explaining images in the wiki https://wiki.postmarketos.org/wiki/Nokia_N900#Keyboard_layout), does it make sense to have it the same?

Then I'm not sure which solution is the best between:

  1. Apply some patch files (like in the repo @ollieparanoid found) to the original /usr/share/X11/xkb/symbols/nokia_vndr/rx-51 file
  2. Create a whole new keyboard layout (pmos_vndr/n900?) and add a layout entry to the /usr/share/X11/xkb/rules/evdev.xml file

what you think?

does it make sense to have it the same?

Yes, in my opinion it does. It's not intuitive when the keyboard layout is suddenly different when switching from tty0 to X11 or vice versa.

Then I'm not sure which solution is the best between:

In both cases, we would need to fork and override Alpine's xkeyboard-config package (it provides both files you suggested to change).

I would go with "1." and once the modified keymaps are tried and tested for a while, I'd recommend to upstream them to the official sources of xkeyboard-config so everybody benefits from it. Then we could also remove our forked package again.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ollieparanoid picture ollieparanoid  路  3Comments

ollieparanoid picture ollieparanoid  路  7Comments

craftyguy picture craftyguy  路  7Comments

schvabodka-man picture schvabodka-man  路  6Comments

craftyguy picture craftyguy  路  6Comments