Remap hardware keyboard to Polish characters

Hi,

This is a question on borderline between localisation and system settings, so spare me if I posted in the wrong category :slight_smile:

I’m using an Xperia 10 III with SFOS 5.1.0.11 and Clicks Power Keyboard. After some initial struggle, it works fine, except for the fact that I’m unable to enter Polish characters. This is an issue within the device, as it lacks a physical Right Alt key, which is used in combination with a letter to provide language-specific characters in the default PL layout.

I wanted to do the old Linux trick with remapping one of the other keys that I don’t use. But… what CLI app can be used to read the keyboard input (key events, keycodes, whatever is available) and do the actual remap? The official documentation is surprisingly poor on this topic and I don’t see any apps like xinput, xmodmap etc. to be installed from the repos. I assume that’s because SFOS uses Wayland, but other apps that work under it are apparently unavailable as well.

I will be grateful for any help, like possible working apps, the location of keyboard layout files et cetera.

For only reading what’s happening, there’s evdev_trace, available in the mce-tools package.
Won’t help with remapping though, it can only show evdev/input events.

1 Like

After some time and searching I think I’m on a good trace. Seems like there are udev rules to be added… May possibly work on other Bluetooth devices too. I haven’t gone this low on the system yet, but I will post on the progress :slight_smile:

I close this discussion and move it to a more general question here: Remapping Bluetooth keyboard keys using udev - question