Remap touch mouse buttons in Linux

Multi tool use
Multi tool use

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
1
down vote

favorite
2












I'm using a Bluetooth touch enabled mouse with Ubuntu and notice that it has some extra keyboard mappings in it, that have no practical use for me. Left swipe on the mouse gives a 'd' and right swipe gives an Backspace. I have try to alter the key mapping with xinput and input-kdb but without any luck so far.



$ xinput list "ThinkPad Bluetooth Touch Mouse"
ThinkPad Bluetooth Touch Mouse
Reporting 6 classes:
Class originated from: 10. Type: XIButtonClass
Buttons supported: 7
Button labels: "Button Left" "Button Middle" "Button Right" "Button Wheel Up" "Button Wheel Down" "Button Horiz Wheel Left" "Button Horiz Wheel Right"
Button state:
Class originated from: 10. Type: XIKeyClass
Keycodes supported: 248
Class originated from: 10. Type: XIValuatorClass
Detail for Valuator 0:
Label: Rel X
Range: -1.000000 - -1.000000
Resolution: 1 units/m
Mode: relative
Class originated from: 10. Type: XIValuatorClass
Detail for Valuator 1:
Label: Rel Y
Range: -1.000000 - -1.000000
Resolution: 1 units/m
Mode: relative
Class originated from: 10. Type: XIValuatorClass
Detail for Valuator 2:
Label: Rel Vert Wheel
Range: -1.000000 - -1.000000
Resolution: 1 units/m
Mode: relative
Class originated from: 10. Type: XIScrollClass
Scroll info for Valuator 2
type: 1 (vertical)
increment: -1.000000
flags: 0x2 ( preferred )


Disabling the buttons didn't help (mapping them to 0), the various characters were still generated.



Using input-kbd to make changes to the keymapping resulted in a error.



$ sudo input-kbd 6
/dev/input/event6
bustype : BUS_BLUETOOTH
vendor : 0x17ef
product : 0x6063
version : 87
name : "ThinkPad Bluetooth Touch Mouse"
phys : "9c:b6:d0:ec:e1:c4"
uniq : "f0:65:dd:b0:b6:d5"
bits ev : EV_SYN EV_KEY EV_REL EV_MSC EV_REP

map: 12 keys, size: 19/64
0x90001 = 272 # BTN_LEFT
0x90002 = 273 # BTN_RIGHT
0x90003 = 274 # BTN_MIDDLE
0x70006 = 46 # KEY_C
0x70007 = 32 # KEY_D
0x7002a = 14 # KEY_BACKSPACE
0x70014 = 16 # KEY_Q
0x7002b = 15 # KEY_TAB
0x700e3 = 125 # KEY_LEFTMETA
0x700e0 = 29 # KEY_LEFTCTRL
0xc0224 = 158 # KEY_BACK
0xc0225 = 159 # KEY_FORWARD


Creating a file with 0x70007 = 240 mapping the d to KEY_UNKNOWN causes a



$ sudo input-kdb -f keymap 6
/dev/input/event6
map: 12 keys, size: 19/64
scancode 458759 out of range (0-19)


Is there another way of mapping these keyboards input stemming from the mouse, somehow?







share|improve this question
























    up vote
    1
    down vote

    favorite
    2












    I'm using a Bluetooth touch enabled mouse with Ubuntu and notice that it has some extra keyboard mappings in it, that have no practical use for me. Left swipe on the mouse gives a 'd' and right swipe gives an Backspace. I have try to alter the key mapping with xinput and input-kdb but without any luck so far.



    $ xinput list "ThinkPad Bluetooth Touch Mouse"
    ThinkPad Bluetooth Touch Mouse
    Reporting 6 classes:
    Class originated from: 10. Type: XIButtonClass
    Buttons supported: 7
    Button labels: "Button Left" "Button Middle" "Button Right" "Button Wheel Up" "Button Wheel Down" "Button Horiz Wheel Left" "Button Horiz Wheel Right"
    Button state:
    Class originated from: 10. Type: XIKeyClass
    Keycodes supported: 248
    Class originated from: 10. Type: XIValuatorClass
    Detail for Valuator 0:
    Label: Rel X
    Range: -1.000000 - -1.000000
    Resolution: 1 units/m
    Mode: relative
    Class originated from: 10. Type: XIValuatorClass
    Detail for Valuator 1:
    Label: Rel Y
    Range: -1.000000 - -1.000000
    Resolution: 1 units/m
    Mode: relative
    Class originated from: 10. Type: XIValuatorClass
    Detail for Valuator 2:
    Label: Rel Vert Wheel
    Range: -1.000000 - -1.000000
    Resolution: 1 units/m
    Mode: relative
    Class originated from: 10. Type: XIScrollClass
    Scroll info for Valuator 2
    type: 1 (vertical)
    increment: -1.000000
    flags: 0x2 ( preferred )


    Disabling the buttons didn't help (mapping them to 0), the various characters were still generated.



    Using input-kbd to make changes to the keymapping resulted in a error.



    $ sudo input-kbd 6
    /dev/input/event6
    bustype : BUS_BLUETOOTH
    vendor : 0x17ef
    product : 0x6063
    version : 87
    name : "ThinkPad Bluetooth Touch Mouse"
    phys : "9c:b6:d0:ec:e1:c4"
    uniq : "f0:65:dd:b0:b6:d5"
    bits ev : EV_SYN EV_KEY EV_REL EV_MSC EV_REP

    map: 12 keys, size: 19/64
    0x90001 = 272 # BTN_LEFT
    0x90002 = 273 # BTN_RIGHT
    0x90003 = 274 # BTN_MIDDLE
    0x70006 = 46 # KEY_C
    0x70007 = 32 # KEY_D
    0x7002a = 14 # KEY_BACKSPACE
    0x70014 = 16 # KEY_Q
    0x7002b = 15 # KEY_TAB
    0x700e3 = 125 # KEY_LEFTMETA
    0x700e0 = 29 # KEY_LEFTCTRL
    0xc0224 = 158 # KEY_BACK
    0xc0225 = 159 # KEY_FORWARD


    Creating a file with 0x70007 = 240 mapping the d to KEY_UNKNOWN causes a



    $ sudo input-kdb -f keymap 6
    /dev/input/event6
    map: 12 keys, size: 19/64
    scancode 458759 out of range (0-19)


    Is there another way of mapping these keyboards input stemming from the mouse, somehow?







    share|improve this question






















      up vote
      1
      down vote

      favorite
      2









      up vote
      1
      down vote

      favorite
      2






      2





      I'm using a Bluetooth touch enabled mouse with Ubuntu and notice that it has some extra keyboard mappings in it, that have no practical use for me. Left swipe on the mouse gives a 'd' and right swipe gives an Backspace. I have try to alter the key mapping with xinput and input-kdb but without any luck so far.



      $ xinput list "ThinkPad Bluetooth Touch Mouse"
      ThinkPad Bluetooth Touch Mouse
      Reporting 6 classes:
      Class originated from: 10. Type: XIButtonClass
      Buttons supported: 7
      Button labels: "Button Left" "Button Middle" "Button Right" "Button Wheel Up" "Button Wheel Down" "Button Horiz Wheel Left" "Button Horiz Wheel Right"
      Button state:
      Class originated from: 10. Type: XIKeyClass
      Keycodes supported: 248
      Class originated from: 10. Type: XIValuatorClass
      Detail for Valuator 0:
      Label: Rel X
      Range: -1.000000 - -1.000000
      Resolution: 1 units/m
      Mode: relative
      Class originated from: 10. Type: XIValuatorClass
      Detail for Valuator 1:
      Label: Rel Y
      Range: -1.000000 - -1.000000
      Resolution: 1 units/m
      Mode: relative
      Class originated from: 10. Type: XIValuatorClass
      Detail for Valuator 2:
      Label: Rel Vert Wheel
      Range: -1.000000 - -1.000000
      Resolution: 1 units/m
      Mode: relative
      Class originated from: 10. Type: XIScrollClass
      Scroll info for Valuator 2
      type: 1 (vertical)
      increment: -1.000000
      flags: 0x2 ( preferred )


      Disabling the buttons didn't help (mapping them to 0), the various characters were still generated.



      Using input-kbd to make changes to the keymapping resulted in a error.



      $ sudo input-kbd 6
      /dev/input/event6
      bustype : BUS_BLUETOOTH
      vendor : 0x17ef
      product : 0x6063
      version : 87
      name : "ThinkPad Bluetooth Touch Mouse"
      phys : "9c:b6:d0:ec:e1:c4"
      uniq : "f0:65:dd:b0:b6:d5"
      bits ev : EV_SYN EV_KEY EV_REL EV_MSC EV_REP

      map: 12 keys, size: 19/64
      0x90001 = 272 # BTN_LEFT
      0x90002 = 273 # BTN_RIGHT
      0x90003 = 274 # BTN_MIDDLE
      0x70006 = 46 # KEY_C
      0x70007 = 32 # KEY_D
      0x7002a = 14 # KEY_BACKSPACE
      0x70014 = 16 # KEY_Q
      0x7002b = 15 # KEY_TAB
      0x700e3 = 125 # KEY_LEFTMETA
      0x700e0 = 29 # KEY_LEFTCTRL
      0xc0224 = 158 # KEY_BACK
      0xc0225 = 159 # KEY_FORWARD


      Creating a file with 0x70007 = 240 mapping the d to KEY_UNKNOWN causes a



      $ sudo input-kdb -f keymap 6
      /dev/input/event6
      map: 12 keys, size: 19/64
      scancode 458759 out of range (0-19)


      Is there another way of mapping these keyboards input stemming from the mouse, somehow?







      share|improve this question












      I'm using a Bluetooth touch enabled mouse with Ubuntu and notice that it has some extra keyboard mappings in it, that have no practical use for me. Left swipe on the mouse gives a 'd' and right swipe gives an Backspace. I have try to alter the key mapping with xinput and input-kdb but without any luck so far.



      $ xinput list "ThinkPad Bluetooth Touch Mouse"
      ThinkPad Bluetooth Touch Mouse
      Reporting 6 classes:
      Class originated from: 10. Type: XIButtonClass
      Buttons supported: 7
      Button labels: "Button Left" "Button Middle" "Button Right" "Button Wheel Up" "Button Wheel Down" "Button Horiz Wheel Left" "Button Horiz Wheel Right"
      Button state:
      Class originated from: 10. Type: XIKeyClass
      Keycodes supported: 248
      Class originated from: 10. Type: XIValuatorClass
      Detail for Valuator 0:
      Label: Rel X
      Range: -1.000000 - -1.000000
      Resolution: 1 units/m
      Mode: relative
      Class originated from: 10. Type: XIValuatorClass
      Detail for Valuator 1:
      Label: Rel Y
      Range: -1.000000 - -1.000000
      Resolution: 1 units/m
      Mode: relative
      Class originated from: 10. Type: XIValuatorClass
      Detail for Valuator 2:
      Label: Rel Vert Wheel
      Range: -1.000000 - -1.000000
      Resolution: 1 units/m
      Mode: relative
      Class originated from: 10. Type: XIScrollClass
      Scroll info for Valuator 2
      type: 1 (vertical)
      increment: -1.000000
      flags: 0x2 ( preferred )


      Disabling the buttons didn't help (mapping them to 0), the various characters were still generated.



      Using input-kbd to make changes to the keymapping resulted in a error.



      $ sudo input-kbd 6
      /dev/input/event6
      bustype : BUS_BLUETOOTH
      vendor : 0x17ef
      product : 0x6063
      version : 87
      name : "ThinkPad Bluetooth Touch Mouse"
      phys : "9c:b6:d0:ec:e1:c4"
      uniq : "f0:65:dd:b0:b6:d5"
      bits ev : EV_SYN EV_KEY EV_REL EV_MSC EV_REP

      map: 12 keys, size: 19/64
      0x90001 = 272 # BTN_LEFT
      0x90002 = 273 # BTN_RIGHT
      0x90003 = 274 # BTN_MIDDLE
      0x70006 = 46 # KEY_C
      0x70007 = 32 # KEY_D
      0x7002a = 14 # KEY_BACKSPACE
      0x70014 = 16 # KEY_Q
      0x7002b = 15 # KEY_TAB
      0x700e3 = 125 # KEY_LEFTMETA
      0x700e0 = 29 # KEY_LEFTCTRL
      0xc0224 = 158 # KEY_BACK
      0xc0225 = 159 # KEY_FORWARD


      Creating a file with 0x70007 = 240 mapping the d to KEY_UNKNOWN causes a



      $ sudo input-kdb -f keymap 6
      /dev/input/event6
      map: 12 keys, size: 19/64
      scancode 458759 out of range (0-19)


      Is there another way of mapping these keyboards input stemming from the mouse, somehow?









      share|improve this question











      share|improve this question




      share|improve this question










      asked Dec 14 '17 at 14:38









      Wieki

      62




      62

























          active

          oldest

          votes











          Your Answer







          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "106"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          convertImagesToLinks: false,
          noModals: false,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );








           

          draft saved


          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f410884%2fremap-touch-mouse-buttons-in-linux%23new-answer', 'question_page');

          );

          Post as a guest



































          active

          oldest

          votes













          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes










           

          draft saved


          draft discarded


























           


          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f410884%2fremap-touch-mouse-buttons-in-linux%23new-answer', 'question_page');

          );

          Post as a guest













































































          alYxr ch G01Pme4lTjijyf0GYls8,eNI,L48 KGpG1l eWt7K
          2gVc3L,t6A5LZxCBuV6oCvjg,uZp03S5gHpm8iA1L JC vNe iH

          Popular posts from this blog

          How to check contact read email or not when send email to Individual?

          How many registers does an x86_64 CPU actually have?

          Displaying single band from multi-band raster using QGIS