Retropie Raspberry Pi Zero W cannot connect to another WiFi
-
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? -
Did you try re-starting after re-importing the WiFi key file ?
-
Yes, don't works. I've disconnected and removed WiFi Config. After Reboot imported the config file, nothing happened.
-
@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 ? -
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
-
The configuration file you posted doesn't look correct - the first
network
stanza is incomplete and the 2nd line should bectrl_interface=DIR=/var/run/wpa_supplicant.conf GROUP=netdev
Leave your
wpa_supplicant.conf
file with justcountry=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.
-
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?
-
@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
oriwconfig
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" }
-
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.
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.