PS4 controller, right analogue stick wont work at all
-
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-typeAlso 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.
-
This post is deleted! -
Moved to 'Help and Support'.
-
@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 ?
-
@darthlink
You can set the dpad mode to 4 different states:
0 = unset
1 = disabled
2 = left stick
3 = right stickYou can also set these in the
Configuration editor
in the retropie menu
benefits: gui and no keyboard needed -
@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 stickYou can also set these in the
Configuration editor
in the retropie menu
benefits: gui and no keyboard neededThanks 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 ?
-
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
, thany
andenter
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 startupEDIT2: You can change the ps4 led color by editing the rgb color code after
--led
You could give this a try
-
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 ;)
-
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 ?
-
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 ?????
-
@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
-
@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.
-
@darthlink if you did it correctly the color change isn't a problem here.
-
I did change the controller type to analog but still not working unfortunately.
-
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 ?
-
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 ?
-
@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. -
@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 ?
-
@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. -
@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
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.