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

Remap bluetooth keyboard keys?

Scheduled Pinned Locked Moved Support
4 Posts 2 Posters 1.3k Views 1 Watching
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 Offline
      vandys
      last edited by 12 Jul 2017, 21:44

      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.

      A V 2 Replies Last reply 13 Jul 2017, 16:01 Reply Quote 0
      • A Offline
        advocatux @vandys
        last edited by 13 Jul 2017, 16:01

        @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 Offline
          vandys @vandys
          last edited by 15 Jul 2017, 16:51

          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.

          A 1 Reply Last reply 15 Jul 2017, 22:32 Reply Quote 0
          • A Offline
            advocatux @vandys
            last edited by advocatux 15 Jul 2017, 22:32

            @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
            1 out of 4
            • First post
              1/4
              Last post