[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 19 14,179 02-14-2025, 04:09 PM
Last Post: zltpxqhp69o2
  Searching for a PinePhone Keyboard Case RubiksCube 1 2,096 10-07-2024, 11:08 PM
Last Post: tllim
  So which keyboard you suggest for the Pinephone? Peter Gamma 21 9,891 07-19-2024, 08:05 AM
Last Post: Peter Gamma
  Rii mini 4 keyboard and touchpad work over Bluetooth Peter Gamma 0 1,033 07-19-2024, 08:02 AM
Last Post: Peter Gamma
  Bring the Pinephone keyboard back, it is worth it! Peter Gamma 1 2,053 07-04-2024, 07:32 AM
Last Post: Kevin Kofler
Heart The Pinephone keyboard offers alternative layouts Peter Gamma 0 813 07-04-2024, 05:40 AM
Last Post: Peter Gamma
  Keyboard & 2.4G usb dongle for the Pinephone? Peter Gamma 2 1,780 06-29-2024, 09:36 PM
Last Post: Peter Gamma
  Bluetooth keyboard with trackpad Zebulon Walton 11 14,081 06-29-2024, 04:09 AM
Last Post: Peter Gamma
  Was someone able to use the Pinephone keyboard & an usb mouse at the same? Peter Gamma 4 6,545 06-26-2024, 07:11 AM
Last Post: dachalife
Exclamation USB mouse isn't working when a PP keyboard is attached? mikeb 6 4,601 06-25-2024, 12:10 AM
Last Post: Peter Gamma

Forum Jump:


Users browsing this thread: 1 Guest(s)