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

    Retropie Raspberry Pi Zero W cannot connect to another WiFi

    Scheduled Pinned Locked Moved Help and Support
    wi-fipi zero wwifikeyconnection prob
    9 Posts 2 Posters 1.4k 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.
    • T
      Terminatron
      last edited by

      My config: Raspberry Pi Zero in GPi Case and Retropie v4.6

      After installing Retropie and configuring the Wi-Fi with the wifikeyfile.txt for the first time, the Wi-Fi connection works fine, but if i replace the config file with new wlan id and password for another Wi-Fi, so it don't works. And i cannot go back to the old config, so i must reinstalling retropie to work with my Wi-Fi Network. Does anyone now, what happened? Bug?

      1 Reply Last reply Reply Quote 0
      • mituM
        mitu Global Moderator
        last edited by

        Did you try re-starting after re-importing the WiFi key file ?

        1 Reply Last reply Reply Quote 0
        • T
          Terminatron
          last edited by

          Yes, don't works. I've disconnected and removed WiFi Config. After Reboot imported the config file, nothing happened.

          mituM 1 Reply Last reply Reply Quote 0
          • mituM
            mitu Global Moderator @Terminatron
            last edited by

            @Terminatron No, I meant rebooting after importing the file.
            Can you check the contents of /etc/wpa_supplicant/wpa_supplicant.conf after you imported the file ? Does it have the right AP/Password info filled in ?

            1 Reply Last reply Reply Quote 0
            • T
              Terminatron
              last edited by

              I've checked it, it have correct AP/Password. But this entry are twice, is that correct?

              country=DE
              ctrl_interface=DIR=/var/run/wpa_supplicantGROUP=netdev
              update_config=1
              network={
              ssid="NETWORK"
              psk="PASSWORD"
              key_mgmt=WPA-PSK
              priority=1
              # RETROPIE CONFIG START
              network={
              	ssid="NETWORK"
              	psk="PASSWORD"
              }
              # RETROPIE CONFIG END
              
              1 Reply Last reply Reply Quote 0
              • mituM
                mitu Global Moderator
                last edited by

                The configuration file you posted doesn't look correct - the first network stanza is incomplete and the 2nd line should be

                ctrl_interface=DIR=/var/run/wpa_supplicant.conf GROUP=netdev
                

                Leave your wpa_supplicant.conf file with just

                country=DE
                ctrl_interface=DIR=/var/run/wpa_supplicant.conf GROUP=netdev
                

                and re-import your WiFi credentials - it should work. I tested by changing the AP with the credentials import and it looks fine - there's no problem to change the AP/credentials.

                1 Reply Last reply Reply Quote 0
                • T
                  Terminatron
                  last edited by

                  I've tested it, don't works. So I added the entry for the key management like this

                  network={
                  	ssid="NETWORK"
                  	psk="PASSWORD"
                  	key_mgmt=WPA-PSK
                  }
                  

                  And don't even works. :-(

                  I've edited the file on the SD-Card with a Linux VM-Machine. How can i check the status of the wlan0 interface. Maybe can it be deactivated?

                  mituM 1 Reply Last reply Reply Quote 0
                  • mituM
                    mitu Global Moderator @Terminatron
                    last edited by

                    @Terminatron said in Retropie Raspberry Pi Zero W cannot connect to another WiFi:

                    How can i check the status of the wlan0 interface. Maybe can it be deactivated?

                    Are you trying to stop the WiFi interface ? Then you can you rfkill to stop the radio. If you're trying to see the status, iw or iwconfig are the commands to look for.

                    As for the error in connecting with the configuration file, just try by adding the networks you want to it, without anything but the SSID and the passphrase.

                    country=DE
                    ctrl_interface=DIR=/var/run/wpa_supplicant.conf GROUP=netdev
                    
                    network {
                      ssid="ssid1"
                      psk="psk1"
                    }
                    
                    network {
                      ssid="ssid2"
                      psk="psk2"
                    }
                    
                    
                    1 Reply Last reply Reply Quote 0
                    • T
                      Terminatron
                      last edited by

                      I didn't it, because i won't dissamble the GPi to connect the keyboard. So i have restored the SD-Card from Backup-File to save time. Now the WiFi works fine. It's a pity that I still don't know what the cause is. I've opened the wpa_supplicant.conf file to see any difference.

                      country=DE^M
                      ctrl_interface=DIR=/var/run/wpa_supplicantGROUP=netdev^M
                      update_config=1^M
                      network={^M
                      ssid="NETWORK"^M
                      psk="PASSWORD"^M
                      key_mgmt=WPA-PSK^M
                      priority=1^M
                      # RETROPIE CONFIG START
                      network={
                      	ssid="NETWORK"
                      	psk="PASSWORD"
                      }
                      # RETROPIE CONFIG END
                      

                      It seems the same. But, it works. There must be another error.

                      1 Reply Last reply Reply Quote 0
                      • 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.