How to stop the USB Joystick from moving the mouse arrow [Solved]

Forum Forums New users New Users and General Questions How to stop the USB Joystick from moving the mouse arrow [Solved]

  • This topic has 11 replies, 6 voices, and was last updated Jan 10-10:43 pm by felipecardope.
Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #95852
    Member
    felipecardope

      Title: How to stop the USB Joystick from moving the mouse arrow

      Hello everybody.
      I need help and I appreciate anyone who can help me.
      How to prevent USB Joystick control mouse arrow?
      I move to the directions (up, down, left or right) of the USB joystick and the mouse arrow moves on the screen at the same time. Some Joystick buttons trigger the left, right, or middle mouse button.

      felipe@antix:~
      $ lsusb
      Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
      Bus 005 Device 002: ID 0079:0011 DragonRise Inc. Gamepad
      Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
      Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
      Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
      Bus 002 Device 003: ID 049f:000e Compaq Computer Corp. Internet Keyboard
      Bus 002 Device 002: ID 275d:0ba6 USB OPTICAL MOUSE
      Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
      felipe@antix:~
      $

      felipe@antix:~
      $ inxi -S
      System:
      Host: antixsuper Kernel: 5.10.104-antix.1-amd64-smp arch: x86_64 bits: 64
      Desktop: IceWM v: 3.2.3
      Distro: antiX-21_x64-full Grup Yorum 31 October 2021
      felipe@antix:~
      $

      Título: Como impedir que o controle USB movimente a seta do rato/mouse

      Olá a todos.
      Eu preciso de ajuda e agradeço a quem poder me ajudar.
      Como impedir que o controle USB controle a seta do rato?
      Eu movimento para as direções (cima, baixo, esquerda ou direita) do controle USB e a seta do rato movimenta na tela ao mesmo tempo. Alguns botões do controle acionam o botão esquerdo, direito ou do meio do rato.

      #95853
      Moderator
      christophe
        Helpful
        Up
        0
        ::

        See if this works:

        https://www.antixforum.com/forums/topic/prohibit-gamepad-from-moving-mouse-cursor-in-games/

        confirmed antiX frugaler, since 2019

        #95855
        Member
        blur13
          Helpful
          Up
          0
          ::

          https://wiki.archlinux.org/title/Gamepad#Disable_joystick_from_controlling_mouse

          this worked for me.

          basically the same as christophes solution but slightly different directory to put it in.

          #95866
          Member
          felipecardope
            Helpful
            Up
            0
            ::

            Thanks christophe and blur13.

            I created the ’51-joystick.conf’ file in the /etc/X11/ folder as the root user with the instructions:

            Section “InputClass”
            Identifier “joystick catchall”
            MatchIsJoystick “on”
            MatchDevicePath “/dev/input/event*”
            Driver “joystick”
            Option “StartKeysEnabled” “False”
            #Disable mouse
            Option “StartMouseEnabled” “False”
            #support
            EndSection 

            I saved the ’51-joystick.conf’ file and closed it. Then I restarted the computer, but unfortunately the USB stick kept moving the arrow.

            I also tried blur13’s suggestion, I cut the ’51-joystick.conf’ file as root user from the /etc/X11/ folder to the /etc/X11/xorg.conf.d/ folder and restarted the computer. But what happened was that the graphics mode didn’t start and I had to ask marcelocripe for help to have antiX in graphics mode again. marcelocripe helped me to delete the file and now I have antiX starting in graphic mode again.

            Would there be any other way to prevent the USB control directional pad from moving the arrow?

            – – – – –

            Obrigado christophe e blur13.

            Eu criei o arquivo ’51-joystick.conf’ na pasta /etc/X11/ como usuário root com as instruções:

            Section “InputClass”
            Identifier “joystick catchall”
            MatchIsJoystick “on”
            MatchDevicePath “/dev/input/event*”
            Driver “joystick”
            Option “StartKeysEnabled” “False”
            #Disable mouse
            Option “StartMouseEnabled” “False”
            #support
            EndSection 

            Salvei o arquivo ’51-joystick.conf’ e o fechei. Em seguida, eu reiniciei o computador, mas infelizmente o direcional do controle USB continuou movimentando a seta.

            A sugestão do blur13 eu também tentei, eu recortei o arquivo ’51-joystick.conf’ como usuário root da pasta /etc/X11/ para a pasta /etc/X11/xorg.conf.d/ e reiniciei o computador. Mas o que aconteceu foi que o modo gráfico não iniciou e eu precisei pedir ajuda ao marcelocripe para eu ter novamente o antiX no modo gráfico. O marcelocripe me ajudou a apagar o arquivo e agora eu estou novamente com o antiX iniciando no modo gráfico.

            Teria mais alguma forma de impedir que o direcional do controle USB continue movimentando a seta?

            #95867
            Moderator
            caprea
              Helpful
              Up
              0
              ::

              Not sure how this happened but the quotation marks in the above text file are malformed, which can be the reason for the not starting of the graphic mode.
              Please try it again with this file and place it as /etc/X11/xorg.conf.d/51-joystick.conf

              Section "InputClass"
                      Identifier "joystick catchall"
                      MatchIsJoystick "on"
                      MatchDevicePath "/dev/input/event*"
                      Driver "joystick"
                      Option "StartKeysEnabled" "False"
                      #Disable mouse
                      Option "StartMouseEnabled" "False"
              EndSection
              #95910
              Member
              felipecardope
                Helpful
                Up
                0
                ::

                Olá Caprea.
                Eu substitui as aspas curvas duplas pelas aspas duplas retas no arquivo “51-joystick.conf” no caminho /etc/X11/ e reiniciei o computador. Mas não funcionou.

                Hello Caprea.
                I replaced the double curly quotes with the straight double quotes in the “51-joystick.conf” file in the path /etc/X11/ and restarted the computer. But it did not work.

                #95946
                Moderator
                christophe
                  Helpful
                  Up
                  0
                  ::

                  Please try it again with this file and place it as /etc/X11/xorg.conf.d/51-joystick.conf

                  It really IS supposed to be there (not /etc/X11).

                  (I once had a problem like you did with graphics not starting — it was because of an additional line in the file that I used as a comment, but I forgot to put the # in front of it. antiX tried to run that comment as some sort of command, and the xserver would not start — until I put the # in front of that line. So look carefully at your text in the file to make sure…)

                  confirmed antiX frugaler, since 2019

                  #96112
                  Member
                  marcelocripe
                    Helpful
                    Up
                    0
                    ::

                    Hello Christophe, Blur13, Caprea and felipecardope.

                    Yesterday after work I went to felipecardope to try to help him with this problem. I checked the “51-joystick.conf” file that felipecardope created in the /etc/X11/ folder and there weren’t any curly quotes that could prevent it from working.

                    However, @angel7 had posted the solution in this topic O my joystick is moving the mouse arrow:

                    @angel7 wrote: (Automatic translation to the English language)
                    Need to remove

                    sudo apt-get remove xserver-xorg-input-joystick

                    stops the joystick from moving the mouse arrow and buttons when pressed.

                    I tested it on an executable USB device (LiveUSB) with antiX 21 full 64-bit and it worked for felipecardope’s control

                    Bus 004 Device 002: ID 0079:0011 DragonRise Inc. Gamepad

                    Now the control of felipecardope works only in games and no longer controls the arrow.

                    – – – – –

                    Olá Christophe, Blur13, Caprea e felipecardope.

                    Ontem depois do trabalho eu fui até o felipecardope para tentar ajudá-lo com este problema. Eu verifiquei o arquivo “51-joystick.conf” que o felipecardope criou na pasta /etc/X11/ e não havia nenhuma aspas curvas que pudesse impedir o funcionamento.

                    Contudo o @angel7 havia postado a soluçao neste tópico O meu joystick está movendo a seta do mouse:

                    @angel7 escreveu:
                    Precisa remover

                    sudo apt-get remove xserver-xorg-input-joystick

                    para o joystick não mover mais a seta do mouse e nem os botões quando pressionados.

                    Eu testei em um dispositivo USB executável com o antiX 21 full de 64 bits e funcionou para o controle do felipecardope

                    Bus 004 Device 002: ID 0079:0011 DragonRise Inc. Gamepad

                    Agora o controle do felipecardope funciona apenas nos jogos e não controla mais a seta.

                    #96130
                    Member
                    marcelocripe
                      Helpful
                      Up
                      0
                      ::

                      The felipecardope just warned me that in some game emulators the directional pad is not detected and in others the directional pad is detected. Therefore, removing “xserver-xorg-input-joystick” package is not the ideal solution.

                      – – – – –

                      O felipecardope acabou de me avisar que em alguns emuladores de jogos o direcional do controle não é detectado e em outros o direcional do controle é detectado. Por tanto, remover pacote “xserver-xorg-input-joystick” não é a solução ideal.

                      #97075
                      Moderator
                      BobC
                        Helpful
                        Up
                        0
                        ::

                        It sounds like maybe you need the joystick to be configurable. On this webpage I see it refers to a couple programs that do that.

                        These two programs

                        jstest-gtk
                        qjoypad

                        Did you look at this one?
                        https://www.howtoforge.com/tutorial/how-to-configure-your-gamepad-on-ubuntu/

                        #97096
                        Moderator
                        caprea
                          Helpful
                          Up
                          0
                          ::

                          I checked the “51-joystick.conf” file that felipecardope created in the /etc/X11/ folder

                          I overlooked your last posts. If felipecardope really created the file in /etc/X11, this is wrong.
                          The file should be created in /etc/X11/xorg.conf.d/

                          #97128
                          Member
                          felipecardope
                            Helpful
                            Up
                            0
                            ::

                            Many thanks to everyone who helped me.
                            The file “51-joystick.conf” in the path /etc/X11/xorg.conf.d/ and after I restarted the computer the USB stick stopped moving the arrow on the screen.

                            Muito obrigado a todos que me ajudaram.
                            O arquivo “51-joystick.conf” no caminho /etc/X11/xorg.conf.d/ e após eu reiniciar o computador o direcional do controle USB parou de mover a seta na tela.

                          Viewing 12 posts - 1 through 12 (of 12 total)
                          • You must be logged in to reply to this topic.