How to disable trackpad horizontal scrolling

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











up vote
3
down vote

favorite












I've recently switched from Ubuntu to Debian+Openbox on my ageing laptop. The minimalism is refreshing.



When I drag sideways with two fingers on the touchpad, this is interpreted as a horizontal scroll. Is there any way I can disable this?



Using xev I've identified that a two-finger horizontal drag is buttons 6 and 7. I've tried adding this line to .Xmodmap:



pointer = 1 2 3 5 4


which I hoped would implicitly unassign the horizontal scroll from buttons 6 and 7, but this hasn't worked.










share|improve this question

























    up vote
    3
    down vote

    favorite












    I've recently switched from Ubuntu to Debian+Openbox on my ageing laptop. The minimalism is refreshing.



    When I drag sideways with two fingers on the touchpad, this is interpreted as a horizontal scroll. Is there any way I can disable this?



    Using xev I've identified that a two-finger horizontal drag is buttons 6 and 7. I've tried adding this line to .Xmodmap:



    pointer = 1 2 3 5 4


    which I hoped would implicitly unassign the horizontal scroll from buttons 6 and 7, but this hasn't worked.










    share|improve this question























      up vote
      3
      down vote

      favorite









      up vote
      3
      down vote

      favorite











      I've recently switched from Ubuntu to Debian+Openbox on my ageing laptop. The minimalism is refreshing.



      When I drag sideways with two fingers on the touchpad, this is interpreted as a horizontal scroll. Is there any way I can disable this?



      Using xev I've identified that a two-finger horizontal drag is buttons 6 and 7. I've tried adding this line to .Xmodmap:



      pointer = 1 2 3 5 4


      which I hoped would implicitly unassign the horizontal scroll from buttons 6 and 7, but this hasn't worked.










      share|improve this question













      I've recently switched from Ubuntu to Debian+Openbox on my ageing laptop. The minimalism is refreshing.



      When I drag sideways with two fingers on the touchpad, this is interpreted as a horizontal scroll. Is there any way I can disable this?



      Using xev I've identified that a two-finger horizontal drag is buttons 6 and 7. I've tried adding this line to .Xmodmap:



      pointer = 1 2 3 5 4


      which I hoped would implicitly unassign the horizontal scroll from buttons 6 and 7, but this hasn't worked.







      debian openbox






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Sep 6 '17 at 13:03









      Jack Deeth

      758




      758




















          2 Answers
          2






          active

          oldest

          votes

















          up vote
          2
          down vote



          accepted










          Debian 9 should use the libinput driver by default (xserver-xorg-input-libinput), so I'm going with a solution for that one (see here).



          Create a file /etc/X11/xorg.conf.d/40-libinput.conf (create the directory if not existing) with the following content:



          $ cat /etc/X11/xorg.conf.d/40-libinput.conf
          Section "InputClass"
          Identifier "libinput touchpad catchall"
          MatchIsTouchpad "on"
          MatchDevicePath "/dev/input/event*"
          Driver "libinput"
          Option "HorizontalScrolling" "false"
          EndSection


          You can refer to the libinput man page for a detailed description of available configuration options.



          If you are using the synaptics driver (xserver-xorg-input-synaptics), have a look at the relevant page of the debian wiki or the archlinux wiki, the solution is almost identical.






          share|improve this answer






















          • Brilliant! That fixed it. Thanks very much!
            – Jack Deeth
            Sep 6 '17 at 14:30

















          up vote
          0
          down vote













          Same answer for a mouse



          Here is an example that disable horizontal scroll (Save the new file and reboot)



          nano /etc/X11/xorg.conf.d/40-libinput-mouse-left-right.conf



          Section "InputClass"
          Identifier "Logitech catchall"
          MatchIsPointer "on"
          Driver "libinput"
          Option "HorizontalScrolling" "false"
          EndSection


          Other useful commands



          xinput list
          xinput list-props 15


          Also xorg config file can be used to remap button



          Section "InputClass"
          # ...
          Option "ButtonMapping" "1 9 3 4 5 6 7 8 2"
          # OR
          Option "ButtonMapping" "a b c d e f g h i"
          # ...
          EndSection





          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: 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%2f390692%2fhow-to-disable-trackpad-horizontal-scrolling%23new-answer', 'question_page');

            );

            Post as a guest






























            2 Answers
            2






            active

            oldest

            votes








            2 Answers
            2






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes








            up vote
            2
            down vote



            accepted










            Debian 9 should use the libinput driver by default (xserver-xorg-input-libinput), so I'm going with a solution for that one (see here).



            Create a file /etc/X11/xorg.conf.d/40-libinput.conf (create the directory if not existing) with the following content:



            $ cat /etc/X11/xorg.conf.d/40-libinput.conf
            Section "InputClass"
            Identifier "libinput touchpad catchall"
            MatchIsTouchpad "on"
            MatchDevicePath "/dev/input/event*"
            Driver "libinput"
            Option "HorizontalScrolling" "false"
            EndSection


            You can refer to the libinput man page for a detailed description of available configuration options.



            If you are using the synaptics driver (xserver-xorg-input-synaptics), have a look at the relevant page of the debian wiki or the archlinux wiki, the solution is almost identical.






            share|improve this answer






















            • Brilliant! That fixed it. Thanks very much!
              – Jack Deeth
              Sep 6 '17 at 14:30














            up vote
            2
            down vote



            accepted










            Debian 9 should use the libinput driver by default (xserver-xorg-input-libinput), so I'm going with a solution for that one (see here).



            Create a file /etc/X11/xorg.conf.d/40-libinput.conf (create the directory if not existing) with the following content:



            $ cat /etc/X11/xorg.conf.d/40-libinput.conf
            Section "InputClass"
            Identifier "libinput touchpad catchall"
            MatchIsTouchpad "on"
            MatchDevicePath "/dev/input/event*"
            Driver "libinput"
            Option "HorizontalScrolling" "false"
            EndSection


            You can refer to the libinput man page for a detailed description of available configuration options.



            If you are using the synaptics driver (xserver-xorg-input-synaptics), have a look at the relevant page of the debian wiki or the archlinux wiki, the solution is almost identical.






            share|improve this answer






















            • Brilliant! That fixed it. Thanks very much!
              – Jack Deeth
              Sep 6 '17 at 14:30












            up vote
            2
            down vote



            accepted







            up vote
            2
            down vote



            accepted






            Debian 9 should use the libinput driver by default (xserver-xorg-input-libinput), so I'm going with a solution for that one (see here).



            Create a file /etc/X11/xorg.conf.d/40-libinput.conf (create the directory if not existing) with the following content:



            $ cat /etc/X11/xorg.conf.d/40-libinput.conf
            Section "InputClass"
            Identifier "libinput touchpad catchall"
            MatchIsTouchpad "on"
            MatchDevicePath "/dev/input/event*"
            Driver "libinput"
            Option "HorizontalScrolling" "false"
            EndSection


            You can refer to the libinput man page for a detailed description of available configuration options.



            If you are using the synaptics driver (xserver-xorg-input-synaptics), have a look at the relevant page of the debian wiki or the archlinux wiki, the solution is almost identical.






            share|improve this answer














            Debian 9 should use the libinput driver by default (xserver-xorg-input-libinput), so I'm going with a solution for that one (see here).



            Create a file /etc/X11/xorg.conf.d/40-libinput.conf (create the directory if not existing) with the following content:



            $ cat /etc/X11/xorg.conf.d/40-libinput.conf
            Section "InputClass"
            Identifier "libinput touchpad catchall"
            MatchIsTouchpad "on"
            MatchDevicePath "/dev/input/event*"
            Driver "libinput"
            Option "HorizontalScrolling" "false"
            EndSection


            You can refer to the libinput man page for a detailed description of available configuration options.



            If you are using the synaptics driver (xserver-xorg-input-synaptics), have a look at the relevant page of the debian wiki or the archlinux wiki, the solution is almost identical.







            share|improve this answer














            share|improve this answer



            share|improve this answer








            edited Sep 6 '17 at 14:32

























            answered Sep 6 '17 at 14:15









            resc

            837315




            837315











            • Brilliant! That fixed it. Thanks very much!
              – Jack Deeth
              Sep 6 '17 at 14:30
















            • Brilliant! That fixed it. Thanks very much!
              – Jack Deeth
              Sep 6 '17 at 14:30















            Brilliant! That fixed it. Thanks very much!
            – Jack Deeth
            Sep 6 '17 at 14:30




            Brilliant! That fixed it. Thanks very much!
            – Jack Deeth
            Sep 6 '17 at 14:30












            up vote
            0
            down vote













            Same answer for a mouse



            Here is an example that disable horizontal scroll (Save the new file and reboot)



            nano /etc/X11/xorg.conf.d/40-libinput-mouse-left-right.conf



            Section "InputClass"
            Identifier "Logitech catchall"
            MatchIsPointer "on"
            Driver "libinput"
            Option "HorizontalScrolling" "false"
            EndSection


            Other useful commands



            xinput list
            xinput list-props 15


            Also xorg config file can be used to remap button



            Section "InputClass"
            # ...
            Option "ButtonMapping" "1 9 3 4 5 6 7 8 2"
            # OR
            Option "ButtonMapping" "a b c d e f g h i"
            # ...
            EndSection





            share|improve this answer
























              up vote
              0
              down vote













              Same answer for a mouse



              Here is an example that disable horizontal scroll (Save the new file and reboot)



              nano /etc/X11/xorg.conf.d/40-libinput-mouse-left-right.conf



              Section "InputClass"
              Identifier "Logitech catchall"
              MatchIsPointer "on"
              Driver "libinput"
              Option "HorizontalScrolling" "false"
              EndSection


              Other useful commands



              xinput list
              xinput list-props 15


              Also xorg config file can be used to remap button



              Section "InputClass"
              # ...
              Option "ButtonMapping" "1 9 3 4 5 6 7 8 2"
              # OR
              Option "ButtonMapping" "a b c d e f g h i"
              # ...
              EndSection





              share|improve this answer






















                up vote
                0
                down vote










                up vote
                0
                down vote









                Same answer for a mouse



                Here is an example that disable horizontal scroll (Save the new file and reboot)



                nano /etc/X11/xorg.conf.d/40-libinput-mouse-left-right.conf



                Section "InputClass"
                Identifier "Logitech catchall"
                MatchIsPointer "on"
                Driver "libinput"
                Option "HorizontalScrolling" "false"
                EndSection


                Other useful commands



                xinput list
                xinput list-props 15


                Also xorg config file can be used to remap button



                Section "InputClass"
                # ...
                Option "ButtonMapping" "1 9 3 4 5 6 7 8 2"
                # OR
                Option "ButtonMapping" "a b c d e f g h i"
                # ...
                EndSection





                share|improve this answer












                Same answer for a mouse



                Here is an example that disable horizontal scroll (Save the new file and reboot)



                nano /etc/X11/xorg.conf.d/40-libinput-mouse-left-right.conf



                Section "InputClass"
                Identifier "Logitech catchall"
                MatchIsPointer "on"
                Driver "libinput"
                Option "HorizontalScrolling" "false"
                EndSection


                Other useful commands



                xinput list
                xinput list-props 15


                Also xorg config file can be used to remap button



                Section "InputClass"
                # ...
                Option "ButtonMapping" "1 9 3 4 5 6 7 8 2"
                # OR
                Option "ButtonMapping" "a b c d e f g h i"
                # ...
                EndSection






                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered 15 mins ago









                intika

                1695




                1695



























                     

                    draft saved


                    draft discarded















































                     


                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f390692%2fhow-to-disable-trackpad-horizontal-scrolling%23new-answer', 'question_page');

                    );

                    Post as a guest













































































                    Popular posts from this blog

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

                    Bahrain

                    Postfix configuration issue with fips on centos 7; mailgun relay