Why does my XBox 360 Controller not work with Ubuntu 18.04?












1














I have a gamepad Tronsmart Mars G02 which is connected to my laptop by USB transmitter.



Previously it worked without any problems on Ubuntu 16.04. But I replaced my HDD and installed Ubuntu 18.04 and now I cannot make gamepad working.



Here is a part of dmesg:



[ 2171.036631] usb 2-1.1: new full-speed USB device number 8 using ehci-pci
[ 2171.146376] usb 2-1.1: New USB device found, idVendor=2563, idProduct=0575
[ 2171.146380] usb 2-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 2171.146383] usb 2-1.1: Product: PS3/PC Gamepad
[ 2171.146386] usb 2-1.1: Manufacturer: SHANWAN
[ 2171.149335] input: SHANWAN PS3/PC Gamepad as /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.1/2-1.1:1.0/0003:2563:0575.0004/input/input19
[ 2171.209186] hid-generic 0003:2563:0575.0004: input,hidraw2: USB HID v1.10 Gamepad [SHANWAN PS3/PC Gamepad] on usb-0000:00:1d.0-1.1/input0
[ 2182.292062] usb 2-1.1: USB disconnect, device number 8
[ 2182.568355] usb 2-1.1: new full-speed USB device number 9 using ehci-pci
[ 2182.679955] usb 2-1.1: New USB device found, idVendor=045e, idProduct=028e
[ 2182.679963] usb 2-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 2182.679968] usb 2-1.1: Product: Controller
[ 2182.679972] usb 2-1.1: Manufacturer: SHANWAN
[ 2182.681010] input: Microsoft X-Box 360 pad as /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.1/2-1.1:1.0/input/input20
[ 2184.362618] input: Microsoft X-Box 360 pad as /devices/virtual/input/input21


Here is a list of items from the evtest command:



sudo evtest
No device specified, trying to scan all of /dev/input/event*
Available devices:
/dev/input/event0: Lid Switch
/dev/input/event1: Power Button
/dev/input/event2: Power Button
/dev/input/event3: AT Translated Set 2 keyboard
/dev/input/event4: Video Bus
/dev/input/event5: Video Bus
/dev/input/event6: Logitech USB Receiver
/dev/input/event7: Logitech USB Receiver
/dev/input/event8: ETPS/2 Elantech Touchpad
/dev/input/event9: HDA Intel PCH Mic
/dev/input/event10: HDA Intel PCH Headphone
/dev/input/event11: HDA Intel PCH HDMI/DP,pcm=3
/dev/input/event12: Microsoft X-Box 360 pad
/dev/input/event13: WebCam SC-0311139N
/dev/input/event14: Microsoft X-Box 360 pad
Select the device event number [0-14]:


I tried to choose 12 and 14 but didn't receive any reaction on gamepad buttons pressing.



So, it seems like ubuntu sees my gamepad but doesn't recognize any buttons click or stick moves.



Any ideas what to check or how to configure the gamepad?










share|improve this question









New contributor




Aleksandr is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

























    1














    I have a gamepad Tronsmart Mars G02 which is connected to my laptop by USB transmitter.



    Previously it worked without any problems on Ubuntu 16.04. But I replaced my HDD and installed Ubuntu 18.04 and now I cannot make gamepad working.



    Here is a part of dmesg:



    [ 2171.036631] usb 2-1.1: new full-speed USB device number 8 using ehci-pci
    [ 2171.146376] usb 2-1.1: New USB device found, idVendor=2563, idProduct=0575
    [ 2171.146380] usb 2-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
    [ 2171.146383] usb 2-1.1: Product: PS3/PC Gamepad
    [ 2171.146386] usb 2-1.1: Manufacturer: SHANWAN
    [ 2171.149335] input: SHANWAN PS3/PC Gamepad as /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.1/2-1.1:1.0/0003:2563:0575.0004/input/input19
    [ 2171.209186] hid-generic 0003:2563:0575.0004: input,hidraw2: USB HID v1.10 Gamepad [SHANWAN PS3/PC Gamepad] on usb-0000:00:1d.0-1.1/input0
    [ 2182.292062] usb 2-1.1: USB disconnect, device number 8
    [ 2182.568355] usb 2-1.1: new full-speed USB device number 9 using ehci-pci
    [ 2182.679955] usb 2-1.1: New USB device found, idVendor=045e, idProduct=028e
    [ 2182.679963] usb 2-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
    [ 2182.679968] usb 2-1.1: Product: Controller
    [ 2182.679972] usb 2-1.1: Manufacturer: SHANWAN
    [ 2182.681010] input: Microsoft X-Box 360 pad as /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.1/2-1.1:1.0/input/input20
    [ 2184.362618] input: Microsoft X-Box 360 pad as /devices/virtual/input/input21


    Here is a list of items from the evtest command:



    sudo evtest
    No device specified, trying to scan all of /dev/input/event*
    Available devices:
    /dev/input/event0: Lid Switch
    /dev/input/event1: Power Button
    /dev/input/event2: Power Button
    /dev/input/event3: AT Translated Set 2 keyboard
    /dev/input/event4: Video Bus
    /dev/input/event5: Video Bus
    /dev/input/event6: Logitech USB Receiver
    /dev/input/event7: Logitech USB Receiver
    /dev/input/event8: ETPS/2 Elantech Touchpad
    /dev/input/event9: HDA Intel PCH Mic
    /dev/input/event10: HDA Intel PCH Headphone
    /dev/input/event11: HDA Intel PCH HDMI/DP,pcm=3
    /dev/input/event12: Microsoft X-Box 360 pad
    /dev/input/event13: WebCam SC-0311139N
    /dev/input/event14: Microsoft X-Box 360 pad
    Select the device event number [0-14]:


    I tried to choose 12 and 14 but didn't receive any reaction on gamepad buttons pressing.



    So, it seems like ubuntu sees my gamepad but doesn't recognize any buttons click or stick moves.



    Any ideas what to check or how to configure the gamepad?










    share|improve this question









    New contributor




    Aleksandr is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.























      1












      1








      1







      I have a gamepad Tronsmart Mars G02 which is connected to my laptop by USB transmitter.



      Previously it worked without any problems on Ubuntu 16.04. But I replaced my HDD and installed Ubuntu 18.04 and now I cannot make gamepad working.



      Here is a part of dmesg:



      [ 2171.036631] usb 2-1.1: new full-speed USB device number 8 using ehci-pci
      [ 2171.146376] usb 2-1.1: New USB device found, idVendor=2563, idProduct=0575
      [ 2171.146380] usb 2-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
      [ 2171.146383] usb 2-1.1: Product: PS3/PC Gamepad
      [ 2171.146386] usb 2-1.1: Manufacturer: SHANWAN
      [ 2171.149335] input: SHANWAN PS3/PC Gamepad as /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.1/2-1.1:1.0/0003:2563:0575.0004/input/input19
      [ 2171.209186] hid-generic 0003:2563:0575.0004: input,hidraw2: USB HID v1.10 Gamepad [SHANWAN PS3/PC Gamepad] on usb-0000:00:1d.0-1.1/input0
      [ 2182.292062] usb 2-1.1: USB disconnect, device number 8
      [ 2182.568355] usb 2-1.1: new full-speed USB device number 9 using ehci-pci
      [ 2182.679955] usb 2-1.1: New USB device found, idVendor=045e, idProduct=028e
      [ 2182.679963] usb 2-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
      [ 2182.679968] usb 2-1.1: Product: Controller
      [ 2182.679972] usb 2-1.1: Manufacturer: SHANWAN
      [ 2182.681010] input: Microsoft X-Box 360 pad as /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.1/2-1.1:1.0/input/input20
      [ 2184.362618] input: Microsoft X-Box 360 pad as /devices/virtual/input/input21


      Here is a list of items from the evtest command:



      sudo evtest
      No device specified, trying to scan all of /dev/input/event*
      Available devices:
      /dev/input/event0: Lid Switch
      /dev/input/event1: Power Button
      /dev/input/event2: Power Button
      /dev/input/event3: AT Translated Set 2 keyboard
      /dev/input/event4: Video Bus
      /dev/input/event5: Video Bus
      /dev/input/event6: Logitech USB Receiver
      /dev/input/event7: Logitech USB Receiver
      /dev/input/event8: ETPS/2 Elantech Touchpad
      /dev/input/event9: HDA Intel PCH Mic
      /dev/input/event10: HDA Intel PCH Headphone
      /dev/input/event11: HDA Intel PCH HDMI/DP,pcm=3
      /dev/input/event12: Microsoft X-Box 360 pad
      /dev/input/event13: WebCam SC-0311139N
      /dev/input/event14: Microsoft X-Box 360 pad
      Select the device event number [0-14]:


      I tried to choose 12 and 14 but didn't receive any reaction on gamepad buttons pressing.



      So, it seems like ubuntu sees my gamepad but doesn't recognize any buttons click or stick moves.



      Any ideas what to check or how to configure the gamepad?










      share|improve this question









      New contributor




      Aleksandr is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.











      I have a gamepad Tronsmart Mars G02 which is connected to my laptop by USB transmitter.



      Previously it worked without any problems on Ubuntu 16.04. But I replaced my HDD and installed Ubuntu 18.04 and now I cannot make gamepad working.



      Here is a part of dmesg:



      [ 2171.036631] usb 2-1.1: new full-speed USB device number 8 using ehci-pci
      [ 2171.146376] usb 2-1.1: New USB device found, idVendor=2563, idProduct=0575
      [ 2171.146380] usb 2-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
      [ 2171.146383] usb 2-1.1: Product: PS3/PC Gamepad
      [ 2171.146386] usb 2-1.1: Manufacturer: SHANWAN
      [ 2171.149335] input: SHANWAN PS3/PC Gamepad as /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.1/2-1.1:1.0/0003:2563:0575.0004/input/input19
      [ 2171.209186] hid-generic 0003:2563:0575.0004: input,hidraw2: USB HID v1.10 Gamepad [SHANWAN PS3/PC Gamepad] on usb-0000:00:1d.0-1.1/input0
      [ 2182.292062] usb 2-1.1: USB disconnect, device number 8
      [ 2182.568355] usb 2-1.1: new full-speed USB device number 9 using ehci-pci
      [ 2182.679955] usb 2-1.1: New USB device found, idVendor=045e, idProduct=028e
      [ 2182.679963] usb 2-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
      [ 2182.679968] usb 2-1.1: Product: Controller
      [ 2182.679972] usb 2-1.1: Manufacturer: SHANWAN
      [ 2182.681010] input: Microsoft X-Box 360 pad as /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.1/2-1.1:1.0/input/input20
      [ 2184.362618] input: Microsoft X-Box 360 pad as /devices/virtual/input/input21


      Here is a list of items from the evtest command:



      sudo evtest
      No device specified, trying to scan all of /dev/input/event*
      Available devices:
      /dev/input/event0: Lid Switch
      /dev/input/event1: Power Button
      /dev/input/event2: Power Button
      /dev/input/event3: AT Translated Set 2 keyboard
      /dev/input/event4: Video Bus
      /dev/input/event5: Video Bus
      /dev/input/event6: Logitech USB Receiver
      /dev/input/event7: Logitech USB Receiver
      /dev/input/event8: ETPS/2 Elantech Touchpad
      /dev/input/event9: HDA Intel PCH Mic
      /dev/input/event10: HDA Intel PCH Headphone
      /dev/input/event11: HDA Intel PCH HDMI/DP,pcm=3
      /dev/input/event12: Microsoft X-Box 360 pad
      /dev/input/event13: WebCam SC-0311139N
      /dev/input/event14: Microsoft X-Box 360 pad
      Select the device event number [0-14]:


      I tried to choose 12 and 14 but didn't receive any reaction on gamepad buttons pressing.



      So, it seems like ubuntu sees my gamepad but doesn't recognize any buttons click or stick moves.



      Any ideas what to check or how to configure the gamepad?







      18.04 gamepad xbox-360






      share|improve this question









      New contributor




      Aleksandr is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.











      share|improve this question









      New contributor




      Aleksandr is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      share|improve this question




      share|improve this question








      edited Dec 30 '18 at 23:16









      David Foerster

      27.8k1364110




      27.8k1364110






      New contributor




      Aleksandr is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      asked Dec 30 '18 at 21:51









      Aleksandr

      61




      61




      New contributor




      Aleksandr is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.





      New contributor





      Aleksandr is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






      Aleksandr is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






















          1 Answer
          1






          active

          oldest

          votes


















          0














          Not that you should have to do this, but apparently this works for some people from Reddit:



          sudo modprobe -r xpad
          sudo modprobe xpad


          This basically removes the xbox driver and adds it back.






          share|improve this answer





















          • I executed these commands and checked gamepad with evtest. This hasn't helped me :( Anyway, thanks.
            – Aleksandr
            Dec 30 '18 at 22:50










          • Not that it should make sense, but if you create a new user and login using that does the gamepad work? My thinking is maybe an old configuration file from before the change in how the driver worked might be messing with something?
            – Kristopher Ives
            Dec 30 '18 at 22:56











          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "89"
          };
          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',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          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
          });


          }
          });






          Aleksandr is a new contributor. Be nice, and check out our Code of Conduct.










          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1105701%2fwhy-does-my-xbox-360-controller-not-work-with-ubuntu-18-04%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









          0














          Not that you should have to do this, but apparently this works for some people from Reddit:



          sudo modprobe -r xpad
          sudo modprobe xpad


          This basically removes the xbox driver and adds it back.






          share|improve this answer





















          • I executed these commands and checked gamepad with evtest. This hasn't helped me :( Anyway, thanks.
            – Aleksandr
            Dec 30 '18 at 22:50










          • Not that it should make sense, but if you create a new user and login using that does the gamepad work? My thinking is maybe an old configuration file from before the change in how the driver worked might be messing with something?
            – Kristopher Ives
            Dec 30 '18 at 22:56
















          0














          Not that you should have to do this, but apparently this works for some people from Reddit:



          sudo modprobe -r xpad
          sudo modprobe xpad


          This basically removes the xbox driver and adds it back.






          share|improve this answer





















          • I executed these commands and checked gamepad with evtest. This hasn't helped me :( Anyway, thanks.
            – Aleksandr
            Dec 30 '18 at 22:50










          • Not that it should make sense, but if you create a new user and login using that does the gamepad work? My thinking is maybe an old configuration file from before the change in how the driver worked might be messing with something?
            – Kristopher Ives
            Dec 30 '18 at 22:56














          0












          0








          0






          Not that you should have to do this, but apparently this works for some people from Reddit:



          sudo modprobe -r xpad
          sudo modprobe xpad


          This basically removes the xbox driver and adds it back.






          share|improve this answer












          Not that you should have to do this, but apparently this works for some people from Reddit:



          sudo modprobe -r xpad
          sudo modprobe xpad


          This basically removes the xbox driver and adds it back.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Dec 30 '18 at 22:18









          Kristopher Ives

          1,8181016




          1,8181016












          • I executed these commands and checked gamepad with evtest. This hasn't helped me :( Anyway, thanks.
            – Aleksandr
            Dec 30 '18 at 22:50










          • Not that it should make sense, but if you create a new user and login using that does the gamepad work? My thinking is maybe an old configuration file from before the change in how the driver worked might be messing with something?
            – Kristopher Ives
            Dec 30 '18 at 22:56


















          • I executed these commands and checked gamepad with evtest. This hasn't helped me :( Anyway, thanks.
            – Aleksandr
            Dec 30 '18 at 22:50










          • Not that it should make sense, but if you create a new user and login using that does the gamepad work? My thinking is maybe an old configuration file from before the change in how the driver worked might be messing with something?
            – Kristopher Ives
            Dec 30 '18 at 22:56
















          I executed these commands and checked gamepad with evtest. This hasn't helped me :( Anyway, thanks.
          – Aleksandr
          Dec 30 '18 at 22:50




          I executed these commands and checked gamepad with evtest. This hasn't helped me :( Anyway, thanks.
          – Aleksandr
          Dec 30 '18 at 22:50












          Not that it should make sense, but if you create a new user and login using that does the gamepad work? My thinking is maybe an old configuration file from before the change in how the driver worked might be messing with something?
          – Kristopher Ives
          Dec 30 '18 at 22:56




          Not that it should make sense, but if you create a new user and login using that does the gamepad work? My thinking is maybe an old configuration file from before the change in how the driver worked might be messing with something?
          – Kristopher Ives
          Dec 30 '18 at 22:56










          Aleksandr is a new contributor. Be nice, and check out our Code of Conduct.










          draft saved

          draft discarded


















          Aleksandr is a new contributor. Be nice, and check out our Code of Conduct.













          Aleksandr is a new contributor. Be nice, and check out our Code of Conduct.












          Aleksandr is a new contributor. Be nice, and check out our Code of Conduct.
















          Thanks for contributing an answer to Ask Ubuntu!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.





          Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


          Please pay close attention to the following guidance:


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1105701%2fwhy-does-my-xbox-360-controller-not-work-with-ubuntu-18-04%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

          Human spaceflight

          Can not write log (Is /dev/pts mounted?) - openpty in Ubuntu-on-Windows?

          張江高科駅