X window managers on the reform pocket

Hi!

I just got my pocket reform (diy kit with rockchip cpu module) and it is great!

To my delight, it runs xorg so I can use exwm=)

The screen was initially configured in portrait layout, but this can be fixed by adding a file to /etc/X11/xorg.conf.d/ with the following contents:

Section "Monitor"
Identifier "DSI-1"
Option "Rotate" "Left"
EndSection

So far so good. I have not, however, been able to get the keyboard working with the eu layout (as in sway with eurokey2), for some reason altgr doesn’t bite. I tried the following to no avail, altgr+o is still just o, not o-diaeresis.

Section "InputClass"
Identifier "system-keyboard"
MatchIsKeyboard "on"
Option "XkbLayout" "eu"
Option "XkbModel" "pc105"
Option "XkbOptions" "lv3:ralt_switch"
EndSection

Do anyone have any idea about how to configure the reform pocket keyboard under x11?

Cheers,
Tor-bjorn

2 Likes

I have not tried on the Pocket Reform yet (as I have had problems getting X running properly) but on my other computers, I set up the AlgGr using xmodmap, specifying

keycode 108 = Multi_key

You can use xev to find out what keycode the AltGr key generates on the Pocket. Then you can enter all kinds of non-ascii characters by hitting the AltGr key (not holding), then some modifier (~, ', "), and then the target letter. So, for instance, to generate ö, I type AltGr " o in sequence.

Thanks! That works, and altgr was 108 on the pocket as well.

Cheers

And also, a little more digging shows that the eu keymap is not visible to x, so it defaulted to a us keymap explaining why this didnt work for me. Adding (shell-command “setxkbmap eu”) to my init.el fixes the whole thing:)

1 Like