wminput command with '&' on the end breaks WiFi
-
Pi Model: Raspberry Pi 3 - Model B
Power Supply: CanaKit 5V 2.5A Raspberry Pi 3 Power Supply / Adapter / Charger
RetroPie Version: 4.1
Built From: Pre made SD image. (Boots on Micro SD, filesystem is on Flash Drive)
USB Devices: Keyboard, Flash Drive with filesystem on itAfter following the wiimote connection guide I discovered that the following command in "/home/pi/bin/attachwii.sh" breaks WiFi.
wminput -d -q -c /home/pi/mywminput 00:1C:BE:F2:D8:64 > /dev/null 2>&1 &
(The address specified in the command is irrelevant)
The perpetrator is the '&' at the end of the command. However, if I remove the '&' and let "/home/pi/bin/attachwii.sh" run on startup like normal then the Raspberry Pi never finishes booting. (The reason I'm able to confirm that it's the '&' is because if I run the command from the terminal after startup, the WiFi will only break if the '&' is present.)
How would I get the wminput command to run without breaking WiFi?
-
@trigger_death perhaps you can use a sleep perameter to tell it to wait so many seconds to boot until the wifi is up and running
-
The problem is the '&' symbol at the end still causes the WiFi to break even after the WiFi is up and running. I've run the command in the terminal after using the WiFi and afterwords I can't connect anymore.
-
Hello,
I have this same issue and after some research i have determined that it is a problem with how wminput uses the blue-tooth adapter.
Here is an old Ticket for wminput that explains the problem a little better.
http://abstrakraft.org/cwiid/ticket/71Using -d appears to be what causes the issue.
When I remove the -d flag I can ssh into my raspberry pi however with -d enabled I cannot.
HOWEVER:
By removing -d you cannot add a wiimote after the system has started.
You can connect them when the retropie screen appears by pressing 1 and 2.
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.