• Recent
  • Tags
  • Popular
  • Home
  • Docs
  • Register
  • Login
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

PS4 controller, right analogue stick wont work at all

Scheduled Pinned Locked Moved Help and Support
ps4 controllersbluetooth
25 Posts 5 Posters 11.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.
  • D
    darthlink @backstander
    last edited by 11 May 2017, 16:18

    @backstander said in PS4 controller, right analogue stick wont work at all:

    input_player1_analog_dpad_mode = "0"
    input_player2_analog_dpad_mode = "0"
    input_player3_analog_dpad_mode = "0"
    input_player4_analog_dpad_mode = "0"

    Thank you for the reply, i will try that as soon as possible. I would like to know what are the "0" for please ? and why for 4 player ?

    D 1 Reply Last reply 11 May 2017, 16:20 Reply Quote 0
    • D
      DarkWolf @darthlink
      last edited by 11 May 2017, 16:20

      @darthlink
      You can set the dpad mode to 4 different states:
      0 = unset
      1 = disabled
      2 = left stick
      3 = right stick

      You can also set these in the Configuration editor in the retropie menu
      benefits: gui and no keyboard needed

      System: Raspberry 3 Model B, RetroPie 4.2.1
      Storage: 16gb Micro SD, 64gb USB Drive
      Theme: Updated NBBA

      Documentation solves many problems: https://retropie.org.uk/docs/

      D 1 Reply Last reply 11 May 2017, 16:50 Reply Quote 0
      • D
        darthlink @DarkWolf
        last edited by 11 May 2017, 16:50

        @DarkWolf said in PS4 controller, right analogue stick wont work at all:

        @darthlink
        You can set the dpad mode to 4 different states:
        0 = unset
        1 = disabled
        2 = left stick
        3 = right stick

        You can also set these in the Configuration editor in the retropie menu
        benefits: gui and no keyboard needed

        Thanks for the number information. As for the retropie GUI, that is where i had set it up and also where i had switch between dpad to analog by choosing analogue up instead of dpad up for example. That work fine but i could still not have the right analog stick working.

        The input player1 to player4, is it for 4 controller config ? In any case, i will revert the controller config to normal as dpad to dpad and analog to analog and change the controller type in here: https://retropie.org.uk/docs/Playstation-1/#analog-controller-type i hope it will work.

        I also saw that there is a driver for the ps3 controller in the retropie_setup_script.sh, could that work for the ps4 controller as it is pretty much the same thing ?

        D 1 Reply Last reply 11 May 2017, 16:56 Reply Quote 0
        • D
          DarkWolf @darthlink
          last edited by DarkWolf 5 Nov 2017, 18:20 11 May 2017, 16:56

          @darthlink

          I also saw that there is a driver for the ps3 controller in the retropie_setup_script.sh, could that work for the ps4 controller as it is pretty much the same thing ?

          Actually there is a driver for ps4 controllers called ds4drv

          sudo apt-get update && sudo apt-get install python3 && sudo apt-get install python-dev && sudo apt-get install python3-dev && sudo apt-get install python-pip && sudo pip install ds4drv && wget https://raw.githubusercontent.com/chrippa/ds4drv/master/udev/50-ds4drv.rules && sudo mv 50-ds4drv.rules /etc/udev/rules.d/ && sudo udevadm control --reload-rules && sudo udevadm trigger && ds4drv --led 000008
          

          This downloads the ds4drv and the required packages to install it... If it finishes without errors it is waiting for connections, so set your controller into pairing mode and see if it connects... If it does press ctrl+c to exit this
          Than execute:

          sudo nano /etc/rc.local
          

          and add this line before the exit 0:

          /usr/local/bin/ds4drv --led 0000ff &
          

          than press ctrl+x, than y and enter
          reboot your pi afterwards... Now it will look for ps4 controllers while es loads up...
          EDIT: NOTE YOu have to set the controller into pairing mode on startup

          EDIT2: You can change the ps4 led color by editing the rgb color code after --led

          You could give this a try

          System: Raspberry 3 Model B, RetroPie 4.2.1
          Storage: 16gb Micro SD, 64gb USB Drive
          Theme: Updated NBBA

          Documentation solves many problems: https://retropie.org.uk/docs/

          D 2 Replies Last reply 11 May 2017, 17:18 Reply Quote 1
          • D
            darthlink @DarkWolf
            last edited by 11 May 2017, 17:18

            @DarkWolf

            Thank you very much, i will try this this evening as i am at work right now and connected to my PI through ssh loll ( dont tell my boss ) loll so i will let you know later if it did work or not.

            Thanks again ;)

            1 Reply Last reply Reply Quote 0
            • D
              darthlink @DarkWolf
              last edited by 11 May 2017, 23:55

              @DarkWolf

              I had just did everything you said and i did not get any error installing the driver and it did pair in a pink flash color loll. But somehow it got worst, quake2 does not even start anymore now!! It is not the emulator because i can lauch Final Fantasy 8 with no problem. I still cant test if the left analog stick works because i cant start quake2 anymore right now. What can i do please ?

              1 Reply Last reply Reply Quote 0
              • D
                darthlink
                last edited by 12 May 2017, 00:25

                Now it got even worst, my controller does not stay pair, it pair for 5 seconds then it unpair automatically :(

                I have to go to bluetooth in retropie to select: pair all registered devices and that used to always work but now it does it for a few seconds then the controller shutdown or get unpaired !!! What is going on ?????

                D 1 Reply Last reply 12 May 2017, 03:56 Reply Quote 0
                • D
                  DarkWolf @darthlink
                  last edited by DarkWolf 5 Dec 2017, 05:00 12 May 2017, 03:56

                  @darthlink That's realy wierd I have to say, that never happens to me though.. I had no problems after installation...

                  it did pair in a pink flash color

                  It should have been blue (if you didn't change it)

                  you can still uninstal it with

                  sudo pip uninstall ds4drv
                  

                  and remove the added line in /etc/rc.local

                  System: Raspberry 3 Model B, RetroPie 4.2.1
                  Storage: 16gb Micro SD, 64gb USB Drive
                  Theme: Updated NBBA

                  Documentation solves many problems: https://retropie.org.uk/docs/

                  D 1 Reply Last reply 12 May 2017, 12:11 Reply Quote 0
                  • D
                    darthlink @DarkWolf
                    last edited by 12 May 2017, 12:11

                    @DarkWolf said in PS4 controller, right analogue stick wont work at all:

                    @darthlink That's realy wierd I have to say, that never happens to me though.. I had no problems after installation...

                    it did pair in a pink flash color

                    It should have been blue (if you didn't change it)

                    you can still uninstal it with

                    sudo pip uninstall ds4drv
                    

                    and remove the added line in /etc/rc.local

                    thats weird because it really did flash pink ish for a second when it paired loll And the controller could pair back to my ps4 so its broken or anything. I will try again later this evening but some how i thought it had worked but then like i said it could not keep the pairing.

                    Could it be because after all i did was to change the code color to 003300 wich should be dark green but do you think that may have caused the problem ? I will put it back to 0000ff this evening and see if somehow it stay paired.

                    D 1 Reply Last reply 12 May 2017, 12:12 Reply Quote 0
                    • D
                      DarkWolf @darthlink
                      last edited by 12 May 2017, 12:12

                      @darthlink if you did it correctly the color change isn't a problem here.

                      System: Raspberry 3 Model B, RetroPie 4.2.1
                      Storage: 16gb Micro SD, 64gb USB Drive
                      Theme: Updated NBBA

                      Documentation solves many problems: https://retropie.org.uk/docs/

                      1 Reply Last reply Reply Quote 0
                      • D
                        darthlink @backstander
                        last edited by 12 May 2017, 12:22

                        @backstander

                        I did change the controller type to analog but still not working unfortunately.

                        1 Reply Last reply Reply Quote 0
                        • D
                          darthlink
                          last edited by 15 May 2017, 15:19

                          The ds4drv is now uninstalled because it ( somehow ) meesed up the bluettoth communication in the case that i would not stay connected to bluetooth. Without the ds4drv, the bluetooth between the PI3 and my controller works perfectly.

                          The controller still with with every games with every emulators also. The probleme that remains is the fact that only the left analog stick works fine. Either by switching the D-pad to analog or in retroarch to switch d-pad to analog then it work but i only get one stick working at the time.

                          If in retroarch i select the right stick in ( d-pad to analog ) then the right stick work fine but not the left stick.

                          How can i have both analog stick to work at the same time please ?

                          S 1 Reply Last reply 30 May 2017, 00:57 Reply Quote 0
                          • D
                            darthlink
                            last edited by 29 May 2017, 02:51

                            I still would need help please for that issue, does anyone use a ps4 controller over bluetooth and without a bluetooth dongle ? Does it work and if yes, how please ?

                            D 1 Reply Last reply 31 May 2017, 05:38 Reply Quote 0
                            • S
                              Sheldon25 @darthlink
                              last edited by 30 May 2017, 00:57

                              @darthlink As far as the controller not staying connected, did you remember to execute this command?

                              sudo nano /etc/rc.local
                              and add this line before the exit 0:

                              /usr/local/bin/ds4drv --led 0000ff & exit

                              A few notes from my observation in using ds4drv. I use both ps3 and ps4 controllers on my pi using the built in bluetooth on the latest firmware. I followed this guide (https://github.com/retropie/retropie-setup/wiki/PS4-Controller)
                              Since this script starts upon boot, it auto assigns/reserves the slot for ps4 controller as player 1. It could create issues if you want to use one controller over another. I notice that the ps4 controller has a slight lag to it. When installing the service and testing the connection I notice that ds4drv shows low signal and ranges from 10-30 reports a second.

                              D 1 Reply Last reply 30 May 2017, 16:50 Reply Quote 0
                              • D
                                darthlink @Sheldon25
                                last edited by 30 May 2017, 16:50

                                @Sheldon25 said in PS4 controller, right analogue stick wont work at all:

                                @darthlink As far as the controller not staying connected, did you remember to execute this command?

                                sudo nano /etc/rc.local
                                and add this line before the exit 0:

                                /usr/local/bin/ds4drv --led 0000ff & exit

                                A few notes from my observation in using ds4drv. I use both ps3 and ps4 controllers on my pi using the built in bluetooth on the latest firmware. I followed this guide (https://github.com/retropie/retropie-setup/wiki/PS4-Controller)
                                Since this script starts upon boot, it auto assigns/reserves the slot for ps4 controller as player 1. It could create issues if you want to use one controller over another. I notice that the ps4 controller has a slight lag to it. When installing the service and testing the connection I notice that ds4drv shows low signal and ranges from 10-30 reports a second.

                                Thank you very much, i will try that.

                                As for the right analog stick, does yours work ok ?

                                1 Reply Last reply Reply Quote 0
                                • D
                                  DarkWolf @darthlink
                                  last edited by 31 May 2017, 05:38

                                  @darthlink All my ps4 controllers are working out of the box (with the latest kernel!), connection is stable (ds4drv is very unstable) and the inputs are correct (no ghost inputs, ds4drv has ghost inputs)...
                                  So, I expirienced that ds4drv is a really bad implementation of drivers for ps4 cotrollers.

                                  System: Raspberry 3 Model B, RetroPie 4.2.1
                                  Storage: 16gb Micro SD, 64gb USB Drive
                                  Theme: Updated NBBA

                                  Documentation solves many problems: https://retropie.org.uk/docs/

                                  D S 2 Replies Last reply 1 Jun 2017, 12:19 Reply Quote 0
                                  • D
                                    darthlink @DarkWolf
                                    last edited by 1 Jun 2017, 12:19

                                    @DarkWolf said in PS4 controller, right analogue stick wont work at all:

                                    @darthlink All my ps4 controllers are working out of the box (with the latest kernel!), connection is stable (ds4drv is very unstable) and the inputs are correct (no ghost inputs, ds4drv has ghost inputs)...
                                    So, I expirienced that ds4drv is a really bad implementation of drivers for ps4 cotrollers.

                                    Ok thanks but how did you experience that ds4drv is a bad implementation of ps4 controller driver if for you everything works fine ?

                                    I guest i was unlocky enough to get the controllers that do not works ok with the ds4drv but i will give it another try this evening .

                                    as of now, everytime i want to connect the controller with bluetooth, i have to delete the registered device then re-register it. If i dont do that, it just never connect.

                                    Also there is still the right analog stick probleme that as is own mind and have decided to not work any how so far.

                                    I wonder if i buy the usb/bluetooth dongle for ps4 controller, do you think it may work better ?? I would not want to buy it and end up having the same issue loll

                                    1 Reply Last reply Reply Quote 0
                                    • S
                                      Sheldon25 @DarkWolf
                                      last edited by 1 Jun 2017, 23:49

                                      @DarkWolf To clarify, your PS4 controllers able to connect via the Bluetooth menu flawlessly? I will have to try since I just updated to the latest kernel. Prior, they would not connect unless I installed ds4drv.

                                      @darthlink I am able to map the right analog stick properly and use it without issue other that input lag.

                                      D 1 Reply Last reply 2 Jun 2017, 01:30 Reply Quote 0
                                      • D
                                        darthlink @Sheldon25
                                        last edited by 2 Jun 2017, 01:30

                                        @Sheldon25 said in PS4 controller, right analogue stick wont work at all:

                                        @darthlink I am able to map the right analog stick properly and use it without issue other that input lag.

                                        I am able to map the hole controller in the input setting for the controller within emulationstation settings but it still wont work for any games at all. I can always only have one of them working. If i set the right analog stick as if it was the left in the input settings, then only the rigth analog work but not the left. It is weird but that is what actually happens. I can, with one or the other also, set them as if they were the D-Pad and it does work but i am still with the same issue where i cant have both analog stick to work at same time. For 2D games i dont really care because it is not needed but for games like quake 2, i am screwed !!

                                        S 1 Reply Last reply 3 Jun 2017, 02:12 Reply Quote 0
                                        • S
                                          Sheldon25 @darthlink
                                          last edited by 3 Jun 2017, 02:12

                                          @darthlink If you adjust the mappings in emulation station differently than how the controller is supposed to be set up, the emulator will not read the controls correctly and it will make it more difficult to figure out why the controller is not working correctly.
                                          Another poster asked, and is still awaiting an answer. What emulator are you using to play quake 2 and soul reaver?
                                          Do you have a ps3 or xbox controller to test and make sure that it is not related to your settings being messed up?

                                          My ps4 controller was mapped via the emulation station input set up and both analog sticks work on n64 games, kodi, moonlight.

                                          D 1 Reply Last reply 6 Jun 2017, 12:16 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.

                                            This community forum collects and processes your personal information.
                                            consent.not_received