[Phosh] Remapping keys of an external keyboard
I recently bought a no-brand foldable Bluetooth keyboard (picture) for use with my PinePhone (running Mobian). The basic keys work fine, and I got deadkeys/lv3/compose to work by firing up dconf-editor and editing /org/gnome/desktop/input-sources/sources and /org/gnome/desktop/input-sources/xkb-options.

Unfortunately, though, some of the special keys don't work as expected. Fn+[top row keys] always produces the keysym of the "upper" blue function instead of the "lower" one, e.g. Fn+` produces XF86HomePage instead of Escape, and similar for the other top-row keys. wev reveals that Fn+` produces keycode 180, and indeed, in the output of xkbcomp, I see:
    key <I180> {         [    XF86HomePage ]
I changed XF86HomePage to Escape and tried to reinsert the keymap with xkbcomp, but some searching reveals that this is not possible on Wayland. So I instead added
    key <I180> { [    Escape, XF86HomePage ] };
to the intl section in /usr/share/X11/xkb/symbols/us and rebooted. But this did not remap the key; rather, the xkbcomp output now shows
    key <I180> {         [    XF86HomePage,    XF86HomePage ] };

I guess something is overriding the change, but I don't know what exactly, or even how to find out. I'm unfamiliar with the whole Wayland/GNOME/Phosh stack (I've never had a need for anything other than X11), so I feel like I'm really out of my depth here. Does anyone know how to proceed with this?

Possibly Related Threads…
Thread Author Replies Views Last Post
  Play along - create a PinePhone keyboard Luke 214 109,901 Yesterday, 12:54 AM
Last Post: biketool
  Pine phone keyboard ? bcnaz 7 728 09-22-2021, 08:57 PM
Last Post: bcnaz
  Pinephone keyboard layout / stickers mob 6 351 09-18-2021, 09:07 AM
Last Post: ryo
  FOSS Pinephone keyboard firmware effort megous 3 1,035 06-21-2021, 08:26 AM
Last Post: megous
  Bluetooth keyboard with trackpad Zebulon Walton 5 1,316 05-12-2021, 07:28 AM
Last Post: wibble
  Using the Blackberry 10 I2C Keyboard PMOD with the Pinephone mil 8 2,690 03-24-2021, 06:54 PM
Last Post: slvr
  Slide out keyboard discussion thread murak 28 18,990 12-02-2020, 11:05 AM
Last Post: eFqLLnGo
  Keyboard Input Question Lidesia 3 2,350 09-04-2020, 06:24 PM
Last Post: Lidesia
  psion like keyboard discussion vinnie 49 34,552 08-04-2020, 05:04 AM
Last Post: Peter Gamma
  Additional batteries and external battery chargers mitcoes 18 13,677 01-16-2020, 06:04 AM
Last Post: wibble

Forum Jump:

Users browsing this thread: 1 Guest(s)