RetroPie forum home
    • Recent
    • Tags
    • Popular
    • Home
    • Docs
    • Register
    • Login
    Please do not post a support request without first reading and following the advice in https://retropie.org.uk/forum/topic/3/read-this-first

    Xbox360 wireless controllers - receiver connectivity issues

    Scheduled Pinned Locked Moved Help and Support
    56 Posts 29 Posters 56.8k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • trixter1981T
      trixter1981
      last edited by trixter1981

      Hi guys,
      I've tested several kernels (including the latest) and it seems that there's an issue with xboxdrv and libusb starting with kernel 4.4.6-3.
      See the discussion here: https://discourse.osmc.tv/t/april-update-xboxdrv-not-working/15291/3

      To fix the issue I've performed a downgrade to kernel 4.1.21-v7+.
      This is doable with rpi-update, unfortunately the script had some issues so I patched it to skip the certificate check. You can find it here: http://pastebin.com/e2ZKSMr1.
      Just copy and paste the script, save it in /usr/bin/rpi-update. Then chmod +x rpi-update /usr/bin/rpi-update.

      The command to use is this one:

      rpi-update 771a503cfc2a1130e2df2a4ddfc45ffa0f592b3f

      that downgrades to this precise committed version: https://github.com/Hexxeh/rpi-firmware/commit/771a503cfc2a1130e2df2a4ddfc45ffa0f592b3f

      hope this will help!

      all the best and thanks! I really love the retropie project!

      pommeP 1 Reply Last reply Reply Quote 2
      • pommeP
        pomme @trixter1981
        last edited by

        @trixter1981 said in Xbox360 wireless controllers - receiver connectivity issues:

        Just copy and paste the script, save it in /usr/bin/rpi-update. Then chmod +x rpi-update /usr/bin/rpi-update.

        The command to use is this one:

        rpi-update 771a503cfc2a1130e2df2a4ddfc45ffa0f592b3f

        This didn't work for me, but I think the problem might be my noobness.

        I did not have a file called rpi-update in my /usr/bin directory. So i copied your script and put it in notepad++ and saved it without and extension. I had permission problems and errors about the file not existing, even though i could nano into the file and see that it looked normal.

        Basically, I got to where I was in the directory and attempting to run rpi-update 771a503cfc2a1130e2df2a4ddfc45ffa0f592b3f - it wouldn't work, i tried sudo rpi..., sudo ./usr/bin/rpi.. then finally I tried sudo sh rpi-update 771a503cfc2a1130e2df2a4ddfc45ffa0f592b3f and it didn't throw and error and it kicked me to the next line. I thought maybe it worked, but it didn't (was expecting some scrolling text if it were to finally work.

        Do you care to elaborate a little more on applying the rollback with your script? You're speaking a little above my level (and my even nerdier friend I had on the phone with me).

        trixter1981T 1 Reply Last reply Reply Quote 0
        • trixter1981T
          trixter1981 @pomme
          last edited by trixter1981

          @pomme

          sudo su -
          curl 'http://pastebin.com/download/e2ZKSMr1' -o 'patched_rpi-update.sh' -L -B
          cp patched_rpi-update.sh /usr/bin/rpi-update
          chmod +x /usr/bin/rpi-update
          /usr/bin/rpi-update 771a503cfc2a1130e2df2a4ddfc45ffa0f592b3f

          the script is not from me, this awesome guy created it but I had issues with the curl command (certificates?!?) https://github.com/Hexxeh/rpi-update

          if you want to upgrade to the latest firmware simply use:

          /usr/bin/rpi-update

          good luck! let me know how it goes

          UDb23U 1 Reply Last reply Reply Quote 0
          • R
            raelik
            last edited by raelik

            @trixter1981 your post is missing some necessary line breaks:

            sudo su -
            curl 'http://pastebin.com/raw/e2ZKSMr1' -o 'patched_rpi-update.sh' -L -B
            tr -d '\015' < patched_rpi-update.sh > /usr/bin/rpi-update
            chmod +x /usr/bin/rpi-update
            /usr/bin/rpi-update 771a503cfc2a1130e2df2a4ddfc45ffa0f592b3f
            rm ~/patched_rpi-update.sh
            exit
            
            N A 2 Replies Last reply Reply Quote 3
            • J
              JPL
              last edited by

              Sorry, but I'm having trouble getting the instructions above to work properly. I get this error after following them and running the rpi-update script:

              -bash: /usr/bin/rpi-update: /bin/bash^M: bad interpreter: No such file or directory

              I undid my work and followed the instructions again and got the same error.
              Is it reading an ^M character after the shell declaration on the top line? I tried re-typing that line with nano and vim and neither made a difference.

              R 1 Reply Last reply Reply Quote 0
              • R
                raelik @JPL
                last edited by

                @JPL I've edited my post to reflect how to fix that.

                J 1 Reply Last reply Reply Quote 0
                • J
                  JPL @raelik
                  last edited by

                  @raelik This works for me, thank you very much!

                  1 Reply Last reply Reply Quote 0
                  • pommeP
                    pomme
                    last edited by

                    Getting good results so far with most recent commands posted. Thanks you! This was driving me crazy!

                    1 Reply Last reply Reply Quote 0
                    • UDb23U
                      UDb23 @trixter1981
                      last edited by

                      @trixter1981 thanks for posting this downgrade script.
                      I'll try it to solve the Logitech controller not working issue after 3.8 update.

                      Did you report the kernel problem on Github ?
                      I would do it but I'm not skilled enough to technically explain this kernel problem.

                      1 Reply Last reply Reply Quote 0
                      • R
                        rossoe
                        last edited by rossoe

                        Can you please tell me what I'm doing wrong here with permissions?

                        First line works ok:

                        sudo curl 'http://pastebin.com/raw/e2ZKSMr1' -o 'patched_rpi-update.sh' -L -B
                        % Total % Received % Xferd Average Speed Time Time Time Current
                        Dload Upload Total Spent Left Speed
                        100 11038 0 11038 0 0 90959 0 --:--:-- --:--:-- --:--:-- 91983

                        Then I have trouble with:

                        sudo tr -d '\015' < patched_rpi-update.sh > /usr/bin/rpi-update

                        -bash: /usr/bin/rpi-update: Permission denied

                        which means I get the certificate errors carrying on with the further commands.

                        pommeP 1 Reply Last reply Reply Quote 0
                        • pommeP
                          pomme @rossoe
                          last edited by

                          @rossoe said in [Xbox360 wireless controllers - receiver connectivity issues]

                          -bash: /usr/bin/rpi-update: Permission denied
                          which means I get the certificate errors carrying on with the further commands.

                          I got this error too. Make sure you are logged in as root user. You may need to create a root user account.

                          R 1 Reply Last reply Reply Quote 0
                          • R
                            raelik @pomme
                            last edited by raelik

                            @pomme Yeah, I should have mentioned you should run sudo su - (to switch to root) before doing any of this. Fixed my post (again).

                            1 Reply Last reply Reply Quote 0
                            • R
                              rossoe
                              last edited by

                              worked perfectly thank you.

                              can we easily upgrade to the newly released 3.8.1 without the kernel jumping back up to the broken version?

                              1 Reply Last reply Reply Quote 0
                              • trixter1981T
                                trixter1981
                                last edited by

                                done the upgrade to 3.8.1, it's okay. The kernel is untouched.

                                1 Reply Last reply Reply Quote 0
                                • Z
                                  zanie420
                                  last edited by

                                  RPI 3
                                  Retropie 4.0-dev

                                  Having the same issues getting wireless 360 receiver to work consistently after fresh install and enabling xboxdrv via the script. Tearing my hair out! No output from jstest /dev/input/js0.

                                  However, I too can get it to work by logging into SSH as root and using:

                                  killall xboxdrv
                                  xboxdrv --trigger-as-button --id 0 --led 2 --deadzone 4000 --silent & sleep 1

                                  This didn't work until I blacklisted xpad and installed xboxdrv via apt-get

                                  Randomly the controller stops working and you have to redo it. Restarting puts you back a square one, but the workaround IS consistent it seems.....

                                  What the hell am I doing wrong?

                                  B 1 Reply Last reply Reply Quote 0
                                  • B
                                    backstander @zanie420
                                    last edited by

                                    @zanie420 if you read down below my post (trixter1981 & raelik posts), there is a workaround that will downgrade the kernel. The xboxdrv seams to work pretty consistently after this downgrade.

                                    1 Reply Last reply Reply Quote 0
                                    • A
                                      ataritoday
                                      last edited by

                                      Hi All,

                                      Apologies, another Newb.....

                                      I tried the script in above...sudo worked, curl worked and it downloaded something...

                                      hard to tell if tr-d worked or not.....

                                      same with chmod , did not seem to do much, but no error either....

                                      when I get to the line /usr/ line I get a syntax error.... is this suppose to be a continuation of the line above ? what does it do ?

                                      Apologies for the basic questions.

                                      Thx
                                      Jim

                                      1 Reply Last reply Reply Quote 0
                                      • M
                                        mazjohn
                                        last edited by mazjohn

                                        Another Newb when it comes to installing scripts and Linux Kernels, ..cannot get past the first part without errors so far... Attempting this on clean install of V3.81 , over an hour struggling... will keep trying.

                                        I would hope there would be an updated image release soon that officially addresses this??

                                        Update: I gave up. had to start over with a clean install of retropie V 3.6 which uses an older Kernel. Works fine now.... Hopefully there is an update soon that addresses out of box issues with 3.81.

                                        1 Reply Last reply Reply Quote 0
                                        • S
                                          sberrieman
                                          last edited by

                                          Hi,

                                          I'm getting a gzip error when running the final command and it performs the rollback - any ideas?

                                          1 Reply Last reply Reply Quote 0
                                          • N
                                            NizZ8 @raelik
                                            last edited by

                                            @raelik Thanks for posting, fixed the issue for me with a fresh install of 3.8.1

                                            1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.

                                            Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.