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.9k 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
      last edited by

      Hi, so here is the thing, the ps4 controller work perfectly with any console emulator and also with the psx. The probleme is that every other emulation dont need to have 2 analogue stick to play the games, only the psx. I also need to mention that in the retropi controller configuration, i swith the setting from the D-Pad to the left analogue stick because i rather move through the menu with the analogue stick then the d-pad. My problem is that i can ONLY get 1 analogue stick to work and it does not matter if it is the left or right analogue, only one work at the time. With games that need only 1 stick to work, it is ok but unfortunatelly, i cant play quake2 or soul reaver with only 1 analogue stick, i need both.

      Even if i let the normal controller configuration ( d-pad on d-pad and analogue stick properly ) the in retroarch a select d-pad to analogue and select either the left or right stick, it work but only for 1 stick, i still cant get bot analogue stick to work.

      What can i do to have both analogue stick to work on psx emulator games please ?

      B mediamogulM 2 Replies Last reply Reply Quote 0
      • B
        backstander @darthlink
        last edited by backstander

        @darthlink

        i cant play quake2 or soul reaver with only 1 analogue stick, i need both.

        I assume you're playing the PSX versions of Quake 2 and Soul Reaver? ;-)

        i swith the setting from the D-Pad to the left analogue stick

        When this is set for the PSX RetroArch emulator (lr-pcsx-rearmed), it makes the games think you don't have any analogue sticks and the left analogue stick is just the same as the D-Pad which is fine for the older PSX games that didn't use the analogue sticks but will cause the issues you're having for games that look for the analogue sticks.

        You'll need to set the controller type to analog:
        https://retropie.org.uk/docs/Playstation-1/#analog-controller-type

        Also to enable analog sticks (disable use analog stick as d-pad) for PSX you can edit /opt/retropie/configs/psx/retroarch.cfg with these values:

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

        You might have to experiment with these settings.

        D 2 Replies Last reply Reply Quote 0
        • DarkWolfD
          DarkWolf
          last edited by DarkWolf

          This post is deleted!
          1 Reply Last reply Reply Quote 0
          • mediamogulM
            mediamogul Global Moderator @darthlink
            last edited by

            @darthlink

            Moved to 'Help and Support'.

            RetroPie v4.5 • RPi3 Model B • 5.1V 2.5A PSU • 16GB SanDisk microSD • 512GB External Drive

            1 Reply Last reply Reply Quote 1
            • D
              darthlink @backstander
              last edited by

              @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 ?

              DarkWolfD 1 Reply Last reply Reply Quote 0
              • DarkWolfD
                DarkWolf @darthlink
                last edited by

                @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

                D 1 Reply Last reply Reply Quote 0
                • D
                  darthlink @DarkWolf
                  last edited by

                  @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 ?

                  DarkWolfD 1 Reply Last reply Reply Quote 0
                  • DarkWolfD
                    DarkWolf @darthlink
                    last edited by DarkWolf

                    @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

                    D 2 Replies Last reply Reply Quote 1
                    • D
                      darthlink @DarkWolf
                      last edited by

                      @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

                        @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

                          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 ?????

                          DarkWolfD 1 Reply Last reply Reply Quote 0
                          • DarkWolfD
                            DarkWolf @darthlink
                            last edited by DarkWolf

                            @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

                            D 1 Reply Last reply Reply Quote 0
                            • D
                              darthlink @DarkWolf
                              last edited by

                              @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.

                              DarkWolfD 1 Reply Last reply Reply Quote 0
                              • DarkWolfD
                                DarkWolf @darthlink
                                last edited by

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

                                1 Reply Last reply Reply Quote 0
                                • D
                                  darthlink @backstander
                                  last edited by

                                  @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

                                    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 Reply Quote 0
                                    • D
                                      darthlink
                                      last edited by

                                      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 ?

                                      DarkWolfD 1 Reply Last reply Reply Quote 0
                                      • S
                                        Sheldon25 @darthlink
                                        last edited by

                                        @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 Reply Quote 0
                                        • D
                                          darthlink @Sheldon25
                                          last edited by

                                          @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
                                          • DarkWolfD
                                            DarkWolf @darthlink
                                            last edited by

                                            @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.

                                            D S 2 Replies 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.