ds4drv stuck?
-
I'm trying to help a friend out with his Raspberry Pi 3. I am unsure of what version he has etc., but he is trying to get his PS4 controllers working. They didn't work with just normal Bluetooth, so he did the ds4drv instructions from the wiki. He boots up, but now it just hangs at the ds4drv screen he says, waiting to connect controllers. It will connect his controllers, but it won't go past that screen he said. Anyone else have this problem, or know how to bypass it?
-
I am having the same issue. I followed all the steps on github and ds4drv starts during the startup of retropie and even pairs to both controllers and shows their battery percentage. The problem is it doesn't progress past that and start emulation station, it just hangs there and gives me battery percentage. I cant stop the process or do anything at that point. Can anyone help?
The only thing I can think is that when I edited the startup file to have ds4drv run on startup, I may not have put an & symbol after the command to run ds4drv. Would that do what I am seeing?
-
@samforce yes. The & makes it run in the background.
-
The person who originally did it, said there was some other things in listed in the file. I deleted what was in there, and just put what was it stated in on the wiki and it seemed to work. The other stuff listed in there was something about IP address, so hopefully it didn't mess anything up lol.
-
@Dominus the ip address stuff just prints the current pi ip - raspbian include that by default. No harm to remove or leave.
-
Blam, solved it. So everything was stuck in the "your device only wants to pair with ds4s forever and not let you do shit" mode because I forgot the & sign like Buzz mentioned. Sidenote, I have LOVED learning this stuff as I go and I am stoked to have somewhere to tell this story. Anyway, I realized I was fucked by any mortal means because I was running Raspberian without NOOBS, therefore no "hold shift" startup mode to get me to a shell prompt. Crap.
So I looked around and found an awesome suggestion to just pop out my SD card and put it into my Mac via a usb reader. Once in the comp, just open up the boot volume by double clicking it, open the file called cmdline.txt and edit it with the following code AT THE END of the file. At the end part is important:
init=/bin/sh
This will load only the core system shell and none of the services. Only to my luck, it still has nano which is vital.
OK, then put the SD card back in, load into the shell prompt and try to do:
sudo nano /etc/rc.local
Then edit the file so it is not fucked, in my case adding the & at the end of the line. Then save. YOU CANT! read only FUUUUUUUU~!!!!! But not to worry, I figured this one out too! The command to remount a filesystem as read/write is:
-o remount, rw
After this, I was able to use sudo nano and edit the file as needed. Saved, rebooted and lo and behold, I have two working Dual Shock 4 controllers on my RetroPie build and they work like a champ! I was so excited I woke up my wife, told her I loved learning about linux computers and made sweet love to her. No lie. She is probably pregnant right now. -
@samforce Can you help me? When I try to do the mount command it says it can't find the file, and when I first boot the Pi up, it says this
/bin/sh: 0: can't access tty; job control turned off
Does it have something to do with it?
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.