[Phosh] Remapping keys of an external keyboard
#1
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:
Code:
    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
Code:
    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
Code:
    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?
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  keyboard case charging but not typing new2pinephone 18 5,207 02-19-2024, 07:30 AM
Last Post: theResonant
  Keyboard doesn't charge my phone no matter what, so can I charge my phone directly ragreenburg 3 5,482 01-14-2024, 03:34 PM
Last Post: acid andy
  I've added an I2C connector to the PP keyboard eugenr 0 359 11-26-2023, 07:24 AM
Last Post: eugenr
  Update the PinePhone keyboard driver to support missing characters? Peter Gamma 8 7,901 10-22-2023, 08:43 PM
Last Post: Peter Gamma
  key repeat with pinephone keyboard rotwang 0 392 10-22-2023, 03:39 PM
Last Post: rotwang
Exclamation USB mouse isn't working when a PP keyboard is attached? mikeb 3 1,111 10-21-2023, 08:21 PM
Last Post: Peter Gamma
  Pinephone with mini keyboard, trackpad and large power bank? Peter Gamma 0 447 10-21-2023, 07:50 AM
Last Post: Peter Gamma
  Which mini keyboard and mouse to choose for the PP? Peter Gamma 0 561 10-21-2023, 02:55 AM
Last Post: Peter Gamma
  Use the Linux Console with the PinePhone Keyboard mburns 2 902 10-20-2023, 04:11 PM
Last Post: mburns
  How to disassemble Keyboard top and replace cables? elof 2 717 10-11-2023, 09:03 AM
Last Post: elof

Forum Jump:


Users browsing this thread: 1 Guest(s)