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

    rpi3 ps4 dualshock 2 controller

    Scheduled Pinned Locked Moved Help and Support
    9 Posts 3 Posters 3.2k 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.
    • B
      bmac6996
      last edited by

      Hi.

      Got a rpi3 and using a dualshock2 controller.

      Using the instructions here:

      https://github.com/retropie/retropie-setup/wiki/Setting-up-a-PS4-controller

      I was able to get the controller working, but only as player 2. I cannot get the controller working as player 1. Is there a setting in Retropie for that? Keyboard is for whatever reason player 1.

      When I comment out the line "/usr/local/bin/ds4drv --hidraw --led 000008 &" out of the rc.local file, the controller doesn't work via bluetooth but only as wired through USB and is then recognized as player 1.

      I also tried this on a fresh install on a rpi2 and still same results.

      Any thoughts?

      Thanks

      1 Reply Last reply Reply Quote 0
      • B
        bmac6996
        last edited by

        bump anyone?

        1 Reply Last reply Reply Quote -1
        • TheDutyPaidT
          TheDutyPaid
          last edited by

          So you followed the setup for a PS4 DualShock 4 working,

          Did you use a dongle or the on board Bluetooth?

          Do you have a keyboard plugged in as well? I have found that can take "player 1" if using Bluetooth.

          Try unplugging any other keyboards or controllers and and turning on, keeping an eye out for Bluetooth services started and press the PS button.

          1 Reply Last reply Reply Quote 0
          • B
            bmac6996
            last edited by

            I tried both. Built in bluetooth, disabled that, and then tried my dongle. Same thing.

            Tried keeping the keyboard off and remove the RF dongle. Same think. Once i get to the emulstation, I hit the PS button and can move around but when i enter a game, I would be player 2 and couldn't control much of anything because it require a player 1 to input.

            TheDutyPaidT 1 Reply Last reply Reply Quote 0
            • TheDutyPaidT
              TheDutyPaid @bmac6996
              last edited by

              @bmac6996 Well it is working in the sense of you can move around the main menu.
              Have you tried doing the the controller input settings again for the menu?

              Also what emulator are you using?

              1 Reply Last reply Reply Quote 0
              • B
                bmac6996
                last edited by

                I did.. just to be sure the buttons are working as is.. and they do.. I can move and buttons work, just i'm on player 2.

                Emulator.. the default ones.. i tried SNES and a few games there.. SF2T and Super Mario All Star

                TheDutyPaidT 1 Reply Last reply Reply Quote 0
                • TheDutyPaidT
                  TheDutyPaid @bmac6996
                  last edited by

                  @bmac6996
                  I found this on a reddit sub page, reading that it worked for people.

                  It must be in a file named "Sony-PlayStation4-DualShock4-Controller.cfg". It should be placed in /opt/retroarch/configs/all/retroarch-joypads

                  If you have installed all the joypad config files from the retro-arch setup menu, this should replace the file of the same name. In any case, you should delete the file that was automatically generated by emulation station (named "Sony_Computer_Entertainment_Wireless_Controller.cfg")

                  Contents below:

                  input_device = "Sony Computer Entertainment Wireless Controller"
                  
                  input_driver = "udev"
                  
                  input_vendor_id = 1356
                  
                  input_product_id = 1476
                  
                  input_b_btn = "1"
                  
                  input_reset_btn = "1"
                  
                  input_y_btn = "0"
                  
                  input_select_btn = "8"
                  
                  input_enable_hotkey_btn = "8"
                  
                  input_start_btn = "9"
                  
                  input_exit_emulator_btn = "9"
                  
                  input_up_btn = "h0up"
                  
                  input_down_btn = "h0down"
                  
                  input_left_btn = "h0left"
                  
                  input_state_slot_decrease = "h0left"
                  
                  input_right_btn = "h0right"
                  
                  input_state_slot_increase = "h0right"
                  
                  input_a_btn = "2"
                  
                  input_x_btn = "3"
                  
                  input_l_btn = "4"
                  
                  input_r_btn = "5"
                  
                  input_l2_btn = "6"
                  
                  input_load_state_btn = "6"
                  
                  input_r2_btn = "7"
                  
                  input_save_state_btn = "7"
                  
                  input_l3_btn = "10"
                  
                  input_r3_btn = "11"
                  
                  input_l_x_plus_axis = "+0"
                  
                  input_l_x_minus_axis = "-0"
                  
                  input_l_y_plus_axis = "+1"
                  
                  input_l_y_minus_axis = "-1"
                  
                  input_r_x_plus_axis = "+2"
                  
                  input_r_x_minus_axis = "-2"
                  
                  input_r_y_plus_axis = "+5"
                  
                  input_r_y_minus_axis = "-5"
                  
                  input_menu_toggle_btn = "12"
                  
                  input_b_btn_label = "Cross"
                  
                  input_y_btn_label = "Square"
                  
                  input_select_btn_label = "Share"
                  
                  input_start_btn_label = "Options"
                  
                  input_up_btn_label = "D-Pad Up"
                  
                  input_down_btn_label = "D-Pad Down"
                  
                  input_left_btn_label = "D-Pad Left"
                  
                  input_right_btn_label = "D-Pad Right"
                  
                  input_a_btn_label = "Circle"
                  
                  input_x_btn_label = "Triangle"
                  
                  input_l_btn_label = "L1"
                  
                  input_r_btn_label = "R1"
                  
                  input_l2_btn_label = "L2"
                  
                  input_r2_btn_label = "R2"
                  
                  input_l3_btn_label = "L3"
                  
                  input_r3_btn_label = "R3"
                  
                  input_l_x_plus_axis_label = "Left Analog Right"
                  
                  input_l_x_minus_axis_label = "Left Analog Left"
                  
                  input_l_y_plus_axis_label = "Left Analog Down"
                  
                  input_l_y_minus_axis_label = "Left Analog Up"
                  
                  input_r_x_plus_axis_label = "Right Analog Right"
                  
                  input_r_x_minus_axis_label = "Right Analog Left"
                  
                  input_r_y_plus_axis_label = "Right Analog Down"
                  
                  input_r_y_minus_axis_label = "Right Analog Up"
                  
                  input_menu_toggle_btn_label = "PS"
                  
                  1 Reply Last reply Reply Quote 0
                  • B
                    bmac6996
                    last edited by

                    Thanks i'll give it a shot.. Hopefully that will do the trick.

                    1 Reply Last reply Reply Quote 0
                    • dankcushionsD
                      dankcushions Global Moderator
                      last edited by

                      I wouldn't use Mario all stars as your test - it has a very specific issue that might be making you think you have a wide problem: https://github.com/RetroPie/RetroPie-Setup/wiki/FAQ#does-super-mario-all-stars-work

                      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.