Dualshock 4 not connecting on boot.
What version of retropie are you running? And what happens when you try to pair the controller, does it just continue blinking?
w3ss last edited by w3ss
I have the exact same problem running retropie 4.1 without hidraw.
Can connect both remotes when starting the script manually but when rebooting in retropie noting is detected.
Maybe the script isn't starting in rc.local?
michaelconsorti last edited by michaelconsorti
You can find out if it is running. After startup, you'll need to ssh into your raspberry pi and run the following command. Paste the output here.
ps ax | grep python3
pi@retropie:~ $ ps ax | grep python3
1024 pts/0 S+ 0:00 grep --color=auto python3
that is what i get when i type in "ps ax | grep python3"
Naroth last edited by BuZz
#!/bin/sh -e # # rc.local # # This script is executed at the end of each multiuser runlevel. # Make sure that the script will "exit 0" on success or any other # value on error. # # In order to enable or disable this script just change the execution # bits. # By default this script does nothing. /usr/local/bin/ds4drv --led 000008 & exit 0
and thats how my local file looks..
Based on the output of the of the command you ran, the script is not running. However, I'm not sure why it isn't running as your rc.local looks correct.
If you cd to
The script is there correct?
what do you mean cd? :P
It's a unix command to change directory.
ssh back into your retropie and type in
pi@retropie:/usr/local/bin $ ls -lrta
drwxrwsr-x 10 root staff 4096 Sep 23 02:20 ..
-rwxr-xr-x 1 root staff 217 Jan 7 15:13 ds4drv
drwxrwsr-x 2 root staff 4096 Jan 7 15:13 .
Everything looks OK there too. Does your rc.local file have '#' symbols before some of the lines. i.e.
#This script is executed at the end of each multiuser runlevel.
yes, the only lines that doesnt have it is
Anyone got any idea?
if it's not launching from
/etc/rc.localthen you will probably find it is failing in some way. Run it manually from terminal with
and see if you get any errors.
@BuZz it works if i run it manually.
/var/log/syslogfor errors. make sure /etc/rc.local has executable permissions too. you could output errors to a log
/usr/local/bin/ds4drv 2>/var/log/ds4drv.log &and then check that
@BuZz will do when i get home. don't know how to check if it /etc/rc/local has persmissions though, so new at this. lol
ls -l /etc/rc.local
this is what i get when running those commands
pi@retropie:~ $ ls -l /etc/rc.local
-rwxr-xr-x 1 root root 333 Jan 11 22:16 /etc/rc.local
pi@retropie:~ $ /var/log/syslog
-bash: /var/log/syslog: Permission denied
pi@retropie:~ $ /usr/local/bin/ds4drv 2>/var/log/ds4drv.log &
pi@retropie:~ $ -bash: /var/log/ds4drv.log: Permission denied
@Naroth Format your posts as I have already detailed.
I didn't say to type the other things. The line
/usr/local/bin/ds4drv 2>/var/log/ds4drv.log &is supposed to be in
You can then check the log by typing
Recommend you do some reading on using the terminal. some info here - https://github.com/retropie/retropie-setup/wiki/ssh and lots of tutorials online.