Homepage Forums RetroPie Project Everything else related to the RetroPie Project Tutorial to get wiimotes with classic controllers to work with RetroPie Reply To: Tutorial to get wiimotes with classic controllers to work with RetroPie

#89215
brainfrz
Participant

Just a quick add for reference, i found the attachwii.sh script started too fast on my rpi2. 9 out of 10 times the bluetooth dongle wasn’t initialized before it ran, so it gave me the “Blue-tooth adapter not present!” notification. After starting it manually it worked fine. So i added a simple “sleep 1” in the script so it would wait a second. After that, i haven’t had this problem again.

#!/bin/bash
sleep 1
hcitool dev | grep hci >/dev/null
if test $? -eq 0 ; then
	wminput -d -c  /home/pi/mywminput 00:19:1D:92:90:38 &
	wminput -d -c  /home/pi/mywminput 00:19:1D:84:EF:33 &
else
	echo "Blue-tooth adapter not present!"
fi