UBports Robot Logo UBports Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Remap bluetooth keyboard keys?

    Support
    2
    4
    1.1k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • V
      vandys
      last edited by

      I have a nice BT keyboard, everything works perfectly. I would like to remap the caps lock key to be another control key, as I use the control key often and the caps lock basically never.

      On Android, this is the kcm and kl files. I see these directories on my phone, but they don't really seem to apply under Touch (it appears a generic HID interface is used instead?).

      On X this would be the xmodmap command, but this isn't X, it's Mir, I think.

      And if it was the console it'd be loadkeys. But this is Bluetooth, not console.

      So has anybody discovered where Touch keeps its keyboard mapping files? TIA.

      advocatuxA V 2 Replies Last reply Reply Quote 0
      • advocatuxA
        advocatux @vandys
        last edited by

        @vandys, maybe you can try something like this

        http://www.fascinatingcaptain.com/howto/remap-keyboard-keys-for-ubuntu/

        1 Reply Last reply Reply Quote 0
        • V
          vandys @vandys
          last edited by

          Some more discoveries...

          A look at the keyboard options leads me to some setxkbmap files in /usr/share/X11/xkb. However, setxkbmap itself doesn't work (no X display). Yay.

          There's an /etc/default/keyboard file, but putting ctrl:swapcaps in XKBOPTIONS has no effect. Yay again.

          I guess next I'll try morphing one of the keyboard configs and see if it'll pull in my changes through the screen menu.

          advocatuxA 1 Reply Last reply Reply Quote 0
          • advocatuxA
            advocatux @vandys
            last edited by advocatux

            @vandys, you can try to play with loadkeys, dumpkeys and showkeys in the terminal.

            https://superuser.com/questions/290115/how-to-change-console-keymap-in-linux

            I don't know for the graphic session though. Maybe there's some template somewhere but I didn't investigate it yet.

            1 Reply Last reply Reply Quote 0
            • First post
              Last post