Configuring Kensington Slimblade in Linux











up vote
0
down vote

favorite












I just got a Kensigton Slimblade Trackball and I'm trying to configure it. I'm adapting it from my old Logitech Marble configuration.



I want the configuration to be:




  • Left-Bottom: Left click

  • Left-Top: Backward

  • Right-Top: Right click and ball scroll lock

  • Right-Bottom: Middle click


The configuration I could set until now is:




  • Left-Bottom: Left click

  • Left-Top: Middle click

  • Right-Top: Right click and ball scroll lock

  • Right-Bottom: Backward


This is my configuration script:



xinput set-int-prop "Kensington Kensington Slimblade Trackball" "Evdev Middle Button Emulation" 8 1   

xinput set-button-map "Kensington Kensington Slimblade Trackball" 1 2 8 4 5 6 7

xinput set-int-prop "Kensington Kensington Slimblade Trackball" "Evdev Wheel Emulation" 8 1
xinput set-int-prop "Kensington Kensington Slimblade Trackball" "Evdev Wheel Emulation Button" 8 8
xinput set-int-prop "Kensington Kensington Slimblade Trackball" "Evdev Wheel Emulation Axes" 8 6 7 4 5
xinput set-int-prop "Kensington Kensington Slimblade Trackball" "Evdev Wheel Emulation Timeout" 16 300


Before running this script, xev reports button numbers as:



Left-Bottom: 1, Left-Top: 2, Right-Top: 8, Right-Botom: 3


After running this script:



Left-Bottom: 1, Left-Top: 2, Right-Top: 8, Right-Botom: 8


So AFAIK, xinput set-button-map changes button order. In this page, I learned that the 2nd value corresponds to the middle mouse button, and the 8th to the Thumb1 (normally related to backward function). So I thought I should just use number 3 as the 2nd element and 2 as the 8th element like this:



xinput set-button-map "Kensington Kensington Slimblade Trackball" 1 3 8 4 5 6 7 2


but now the top-left button has right-click function and left-bottom is disabled. xev now reports



Left-Bottom: 1, Left-Top: 3, Right-Top: 2, Right-Botom: 8. 


Anyone knows how I set the configuration as I intend ? I'm using Ubuntu 16.04. Thanks.










share|improve this question


























    up vote
    0
    down vote

    favorite












    I just got a Kensigton Slimblade Trackball and I'm trying to configure it. I'm adapting it from my old Logitech Marble configuration.



    I want the configuration to be:




    • Left-Bottom: Left click

    • Left-Top: Backward

    • Right-Top: Right click and ball scroll lock

    • Right-Bottom: Middle click


    The configuration I could set until now is:




    • Left-Bottom: Left click

    • Left-Top: Middle click

    • Right-Top: Right click and ball scroll lock

    • Right-Bottom: Backward


    This is my configuration script:



    xinput set-int-prop "Kensington Kensington Slimblade Trackball" "Evdev Middle Button Emulation" 8 1   

    xinput set-button-map "Kensington Kensington Slimblade Trackball" 1 2 8 4 5 6 7

    xinput set-int-prop "Kensington Kensington Slimblade Trackball" "Evdev Wheel Emulation" 8 1
    xinput set-int-prop "Kensington Kensington Slimblade Trackball" "Evdev Wheel Emulation Button" 8 8
    xinput set-int-prop "Kensington Kensington Slimblade Trackball" "Evdev Wheel Emulation Axes" 8 6 7 4 5
    xinput set-int-prop "Kensington Kensington Slimblade Trackball" "Evdev Wheel Emulation Timeout" 16 300


    Before running this script, xev reports button numbers as:



    Left-Bottom: 1, Left-Top: 2, Right-Top: 8, Right-Botom: 3


    After running this script:



    Left-Bottom: 1, Left-Top: 2, Right-Top: 8, Right-Botom: 8


    So AFAIK, xinput set-button-map changes button order. In this page, I learned that the 2nd value corresponds to the middle mouse button, and the 8th to the Thumb1 (normally related to backward function). So I thought I should just use number 3 as the 2nd element and 2 as the 8th element like this:



    xinput set-button-map "Kensington Kensington Slimblade Trackball" 1 3 8 4 5 6 7 2


    but now the top-left button has right-click function and left-bottom is disabled. xev now reports



    Left-Bottom: 1, Left-Top: 3, Right-Top: 2, Right-Botom: 8. 


    Anyone knows how I set the configuration as I intend ? I'm using Ubuntu 16.04. Thanks.










    share|improve this question
























      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      I just got a Kensigton Slimblade Trackball and I'm trying to configure it. I'm adapting it from my old Logitech Marble configuration.



      I want the configuration to be:




      • Left-Bottom: Left click

      • Left-Top: Backward

      • Right-Top: Right click and ball scroll lock

      • Right-Bottom: Middle click


      The configuration I could set until now is:




      • Left-Bottom: Left click

      • Left-Top: Middle click

      • Right-Top: Right click and ball scroll lock

      • Right-Bottom: Backward


      This is my configuration script:



      xinput set-int-prop "Kensington Kensington Slimblade Trackball" "Evdev Middle Button Emulation" 8 1   

      xinput set-button-map "Kensington Kensington Slimblade Trackball" 1 2 8 4 5 6 7

      xinput set-int-prop "Kensington Kensington Slimblade Trackball" "Evdev Wheel Emulation" 8 1
      xinput set-int-prop "Kensington Kensington Slimblade Trackball" "Evdev Wheel Emulation Button" 8 8
      xinput set-int-prop "Kensington Kensington Slimblade Trackball" "Evdev Wheel Emulation Axes" 8 6 7 4 5
      xinput set-int-prop "Kensington Kensington Slimblade Trackball" "Evdev Wheel Emulation Timeout" 16 300


      Before running this script, xev reports button numbers as:



      Left-Bottom: 1, Left-Top: 2, Right-Top: 8, Right-Botom: 3


      After running this script:



      Left-Bottom: 1, Left-Top: 2, Right-Top: 8, Right-Botom: 8


      So AFAIK, xinput set-button-map changes button order. In this page, I learned that the 2nd value corresponds to the middle mouse button, and the 8th to the Thumb1 (normally related to backward function). So I thought I should just use number 3 as the 2nd element and 2 as the 8th element like this:



      xinput set-button-map "Kensington Kensington Slimblade Trackball" 1 3 8 4 5 6 7 2


      but now the top-left button has right-click function and left-bottom is disabled. xev now reports



      Left-Bottom: 1, Left-Top: 3, Right-Top: 2, Right-Botom: 8. 


      Anyone knows how I set the configuration as I intend ? I'm using Ubuntu 16.04. Thanks.










      share|improve this question













      I just got a Kensigton Slimblade Trackball and I'm trying to configure it. I'm adapting it from my old Logitech Marble configuration.



      I want the configuration to be:




      • Left-Bottom: Left click

      • Left-Top: Backward

      • Right-Top: Right click and ball scroll lock

      • Right-Bottom: Middle click


      The configuration I could set until now is:




      • Left-Bottom: Left click

      • Left-Top: Middle click

      • Right-Top: Right click and ball scroll lock

      • Right-Bottom: Backward


      This is my configuration script:



      xinput set-int-prop "Kensington Kensington Slimblade Trackball" "Evdev Middle Button Emulation" 8 1   

      xinput set-button-map "Kensington Kensington Slimblade Trackball" 1 2 8 4 5 6 7

      xinput set-int-prop "Kensington Kensington Slimblade Trackball" "Evdev Wheel Emulation" 8 1
      xinput set-int-prop "Kensington Kensington Slimblade Trackball" "Evdev Wheel Emulation Button" 8 8
      xinput set-int-prop "Kensington Kensington Slimblade Trackball" "Evdev Wheel Emulation Axes" 8 6 7 4 5
      xinput set-int-prop "Kensington Kensington Slimblade Trackball" "Evdev Wheel Emulation Timeout" 16 300


      Before running this script, xev reports button numbers as:



      Left-Bottom: 1, Left-Top: 2, Right-Top: 8, Right-Botom: 3


      After running this script:



      Left-Bottom: 1, Left-Top: 2, Right-Top: 8, Right-Botom: 8


      So AFAIK, xinput set-button-map changes button order. In this page, I learned that the 2nd value corresponds to the middle mouse button, and the 8th to the Thumb1 (normally related to backward function). So I thought I should just use number 3 as the 2nd element and 2 as the 8th element like this:



      xinput set-button-map "Kensington Kensington Slimblade Trackball" 1 3 8 4 5 6 7 2


      but now the top-left button has right-click function and left-bottom is disabled. xev now reports



      Left-Bottom: 1, Left-Top: 3, Right-Top: 2, Right-Botom: 8. 


      Anyone knows how I set the configuration as I intend ? I'm using Ubuntu 16.04. Thanks.







      linux ubuntu xinput






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Jul 2 at 18:00









      Nelson Teixeira

      848




      848






















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          0
          down vote



          accepted










          A few minutes after I post the question I found the answer. Here goes in case anyone needs it (configuration for Mint 18/Ubuntu 16.04):



          xinput set-int-prop "Kensington Kensington Slimblade Trackball" "Evdev Middle Button Emulation" 8 0
          7 8 9
          xinput set-button-map "Kensington Kensington Slimblade Trackball" 1 8 2 4 5 6 7 3 2
          xinput set-int-prop "Kensington Kensington Slimblade Trackball" "Evdev Wheel Emulation" 8 1
          xinput set-int-prop "Kensington Kensington Slimblade Trackball" "Evdev Wheel Emulation Button" 8 8
          xinput set-int-prop "Kensington Kensington Slimblade Trackball" "Evdev Wheel Emulation Axes" 8 6 7 4 5
          xinput set-int-prop "Kensington Kensington Slimblade Trackball" "Evdev Wheel Emulation Timeout" 16 300


          Edit



          After upgrading for Mint 19 (at home) and Ubuntu 18.04 (at office) I found the configuration above doesn't work. 18.04 uses a different library for these kind of devices (libinput) and even if I reinstalled Evdev some options don't work. After a painful search I found the solution.
          Create a a file with .conf extension in /usr/share/X11/xorg.conf.d/ folder. In my case I named it 10-slimblade.conf. Put this configuration inside the file:



          Section "InputClass"
          Identifier "Kensington Kensington Slimblade Trackball"
          MatchProduct "Kensington Kensington Slimblade Trackball"
          MatchIsPointer "on"
          MatchDevicePath "/dev/input/event*"
          Driver "libinput"
          Option "ButtonMapping" "1 8 2 4 5 6 7 3 2"
          Option "ScrollButton" "8"
          Option "ScrollMethod" "button"
          Option "MiddleEmulation" "on"
          EndSection


          Restart session, and that's it.






          share|improve this answer























            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: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: null,
            bindNavPrevention: true,
            postfix: "",
            imageUploader: {
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            },
            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%2f453069%2fconfiguring-kensington-slimblade-in-linux%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes








            up vote
            0
            down vote



            accepted










            A few minutes after I post the question I found the answer. Here goes in case anyone needs it (configuration for Mint 18/Ubuntu 16.04):



            xinput set-int-prop "Kensington Kensington Slimblade Trackball" "Evdev Middle Button Emulation" 8 0
            7 8 9
            xinput set-button-map "Kensington Kensington Slimblade Trackball" 1 8 2 4 5 6 7 3 2
            xinput set-int-prop "Kensington Kensington Slimblade Trackball" "Evdev Wheel Emulation" 8 1
            xinput set-int-prop "Kensington Kensington Slimblade Trackball" "Evdev Wheel Emulation Button" 8 8
            xinput set-int-prop "Kensington Kensington Slimblade Trackball" "Evdev Wheel Emulation Axes" 8 6 7 4 5
            xinput set-int-prop "Kensington Kensington Slimblade Trackball" "Evdev Wheel Emulation Timeout" 16 300


            Edit



            After upgrading for Mint 19 (at home) and Ubuntu 18.04 (at office) I found the configuration above doesn't work. 18.04 uses a different library for these kind of devices (libinput) and even if I reinstalled Evdev some options don't work. After a painful search I found the solution.
            Create a a file with .conf extension in /usr/share/X11/xorg.conf.d/ folder. In my case I named it 10-slimblade.conf. Put this configuration inside the file:



            Section "InputClass"
            Identifier "Kensington Kensington Slimblade Trackball"
            MatchProduct "Kensington Kensington Slimblade Trackball"
            MatchIsPointer "on"
            MatchDevicePath "/dev/input/event*"
            Driver "libinput"
            Option "ButtonMapping" "1 8 2 4 5 6 7 3 2"
            Option "ScrollButton" "8"
            Option "ScrollMethod" "button"
            Option "MiddleEmulation" "on"
            EndSection


            Restart session, and that's it.






            share|improve this answer



























              up vote
              0
              down vote



              accepted










              A few minutes after I post the question I found the answer. Here goes in case anyone needs it (configuration for Mint 18/Ubuntu 16.04):



              xinput set-int-prop "Kensington Kensington Slimblade Trackball" "Evdev Middle Button Emulation" 8 0
              7 8 9
              xinput set-button-map "Kensington Kensington Slimblade Trackball" 1 8 2 4 5 6 7 3 2
              xinput set-int-prop "Kensington Kensington Slimblade Trackball" "Evdev Wheel Emulation" 8 1
              xinput set-int-prop "Kensington Kensington Slimblade Trackball" "Evdev Wheel Emulation Button" 8 8
              xinput set-int-prop "Kensington Kensington Slimblade Trackball" "Evdev Wheel Emulation Axes" 8 6 7 4 5
              xinput set-int-prop "Kensington Kensington Slimblade Trackball" "Evdev Wheel Emulation Timeout" 16 300


              Edit



              After upgrading for Mint 19 (at home) and Ubuntu 18.04 (at office) I found the configuration above doesn't work. 18.04 uses a different library for these kind of devices (libinput) and even if I reinstalled Evdev some options don't work. After a painful search I found the solution.
              Create a a file with .conf extension in /usr/share/X11/xorg.conf.d/ folder. In my case I named it 10-slimblade.conf. Put this configuration inside the file:



              Section "InputClass"
              Identifier "Kensington Kensington Slimblade Trackball"
              MatchProduct "Kensington Kensington Slimblade Trackball"
              MatchIsPointer "on"
              MatchDevicePath "/dev/input/event*"
              Driver "libinput"
              Option "ButtonMapping" "1 8 2 4 5 6 7 3 2"
              Option "ScrollButton" "8"
              Option "ScrollMethod" "button"
              Option "MiddleEmulation" "on"
              EndSection


              Restart session, and that's it.






              share|improve this answer

























                up vote
                0
                down vote



                accepted







                up vote
                0
                down vote



                accepted






                A few minutes after I post the question I found the answer. Here goes in case anyone needs it (configuration for Mint 18/Ubuntu 16.04):



                xinput set-int-prop "Kensington Kensington Slimblade Trackball" "Evdev Middle Button Emulation" 8 0
                7 8 9
                xinput set-button-map "Kensington Kensington Slimblade Trackball" 1 8 2 4 5 6 7 3 2
                xinput set-int-prop "Kensington Kensington Slimblade Trackball" "Evdev Wheel Emulation" 8 1
                xinput set-int-prop "Kensington Kensington Slimblade Trackball" "Evdev Wheel Emulation Button" 8 8
                xinput set-int-prop "Kensington Kensington Slimblade Trackball" "Evdev Wheel Emulation Axes" 8 6 7 4 5
                xinput set-int-prop "Kensington Kensington Slimblade Trackball" "Evdev Wheel Emulation Timeout" 16 300


                Edit



                After upgrading for Mint 19 (at home) and Ubuntu 18.04 (at office) I found the configuration above doesn't work. 18.04 uses a different library for these kind of devices (libinput) and even if I reinstalled Evdev some options don't work. After a painful search I found the solution.
                Create a a file with .conf extension in /usr/share/X11/xorg.conf.d/ folder. In my case I named it 10-slimblade.conf. Put this configuration inside the file:



                Section "InputClass"
                Identifier "Kensington Kensington Slimblade Trackball"
                MatchProduct "Kensington Kensington Slimblade Trackball"
                MatchIsPointer "on"
                MatchDevicePath "/dev/input/event*"
                Driver "libinput"
                Option "ButtonMapping" "1 8 2 4 5 6 7 3 2"
                Option "ScrollButton" "8"
                Option "ScrollMethod" "button"
                Option "MiddleEmulation" "on"
                EndSection


                Restart session, and that's it.






                share|improve this answer














                A few minutes after I post the question I found the answer. Here goes in case anyone needs it (configuration for Mint 18/Ubuntu 16.04):



                xinput set-int-prop "Kensington Kensington Slimblade Trackball" "Evdev Middle Button Emulation" 8 0
                7 8 9
                xinput set-button-map "Kensington Kensington Slimblade Trackball" 1 8 2 4 5 6 7 3 2
                xinput set-int-prop "Kensington Kensington Slimblade Trackball" "Evdev Wheel Emulation" 8 1
                xinput set-int-prop "Kensington Kensington Slimblade Trackball" "Evdev Wheel Emulation Button" 8 8
                xinput set-int-prop "Kensington Kensington Slimblade Trackball" "Evdev Wheel Emulation Axes" 8 6 7 4 5
                xinput set-int-prop "Kensington Kensington Slimblade Trackball" "Evdev Wheel Emulation Timeout" 16 300


                Edit



                After upgrading for Mint 19 (at home) and Ubuntu 18.04 (at office) I found the configuration above doesn't work. 18.04 uses a different library for these kind of devices (libinput) and even if I reinstalled Evdev some options don't work. After a painful search I found the solution.
                Create a a file with .conf extension in /usr/share/X11/xorg.conf.d/ folder. In my case I named it 10-slimblade.conf. Put this configuration inside the file:



                Section "InputClass"
                Identifier "Kensington Kensington Slimblade Trackball"
                MatchProduct "Kensington Kensington Slimblade Trackball"
                MatchIsPointer "on"
                MatchDevicePath "/dev/input/event*"
                Driver "libinput"
                Option "ButtonMapping" "1 8 2 4 5 6 7 3 2"
                Option "ScrollButton" "8"
                Option "ScrollMethod" "button"
                Option "MiddleEmulation" "on"
                EndSection


                Restart session, and that's it.







                share|improve this answer














                share|improve this answer



                share|improve this answer








                edited Nov 21 at 16:05

























                answered Jul 2 at 18:13









                Nelson Teixeira

                848




                848






























                     

                    draft saved


                    draft discarded



















































                     


                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f453069%2fconfiguring-kensington-slimblade-in-linux%23new-answer', 'question_page');
                    }
                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    Morgemoulin

                    Scott Moir

                    Souastre