RetroPie forum home
    • Recent
    • Tags
    • Popular
    • Home
    • Docs
    • Register
    • Login
    Please do not post a support request without first reading and following the advice in https://retropie.org.uk/forum/topic/3/read-this-first

    wminput command with '&' on the end breaks WiFi

    Scheduled Pinned Locked Moved Help and Support
    wminputwifiwiimote
    4 Posts 3 Posters 1.6k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • trigger_deathT
      trigger_death
      last edited by

      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 it

      After 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?

      herb_fargusH 1 Reply Last reply Reply Quote 0
      • herb_fargusH
        herb_fargus administrators @trigger_death
        last edited by

        @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

        If you read the documentation it will answer 99% of your questions: https://retropie.org.uk/docs/

        Also if you want a solution to your problems read this first: https://retropie.org.uk/forum/topic/3/read-this-first

        1 Reply Last reply Reply Quote 0
        • trigger_deathT
          trigger_death
          last edited by

          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.

          1 Reply Last reply Reply Quote 0
          • Z
            zaysite
            last edited by

            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/71

            Using -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.

            1 Reply Last reply Reply Quote 1
            • First post
              Last post

            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.