Wifi Issues and the solutions I found for 0.14.0 #692
Draracos
started this conversation in
Show and tell
Replies: 2 comments
-
|
A couple notes, I needed to include "restart=on-failure" catches in wpa_supplicant and wpa-autoconnect due to timing issues, sometimes the services would run before wlan0 could be ready, and then it would fail to start, but manually starting after would work fine. |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
I also realize now that there was already a different way to configure the wifi... ah well, I guess this is just a different way to work around it. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, I have been struggling for a while with the latest version with wifi connection, and it looks like I've found a suitable solution. I'll try to go over the issue here, and then provide what exactly I changed to make it work.
If I recall correctly, there is a known issue with NetworkManager causing issues with the wifi, which made the fullpageos-wpa-supplicant.txt not work properly. In my troubleshooting I found this to be because NetworkManager is starting and controlling wlan0, but wpa_supplicant is what should be setting the SSID to connect to and such based on the info in the fullpageos-wpa-supplicant.txt fie, which is copied to a config file in systemd. wpa_supplicant then tries to start wlan0 to connect to this SSID, but NetworkManager is already managing it, and the command essentially fails. It took a bunch of modification, and a ton of hair-pulling, but I was able to finally get this to work while also gaining a better understanding of the system.
To start, just removing NetworkManager is the wrong move, it seems dhcpd is not in this system anymore, so removing NetworkManager kills all IP association and eth0 and wlan0 control...
The proper change is to remove NetworkManager's control of wlan0 with sudo nano /etc/NetworkManager/conf.d/unmanage-wifi.conf
then you modify wpa_supplicant with sudo systemctl edit wpa_supplicant to add
be sure to "sudo systemctl daemon-reload" and "sudo systemctl restart wpa_supplicant"
then add a new system file with "sudo nano /etc/systemd/system/wpa-autoconnect.service" and insert this code:
then, again, be sure to "sudo systemctl daemon-reload" and "sudo systemctl enable wpa-autoconnect" and "sudo systemctl restart wpa-autoconnect"
mind you, this only starts and connects to the wifi if no ethernet connection is observed unless you manually force it to connect.
Multiple restarts and checks look to confirm this is robust and reliable.
On top of all of that, I also had some issues with http and https. I was able to fix THIS by modifying the script located in /home/pi/scripts/start_chromium_browser
Now, I am using these for kiosks, not intending to have user interaction and so forth, so the first block for standard behavior has not been tested much, and I can't verify that it works, but hopefully this still helps some people. It may also still not quite work as well as it could in signage mode either, but it's good enough for me atm. Also keep in mind these are running on a controlled vlan without external network access, so security was also not an issue for me.
Beta Was this translation helpful? Give feedback.
All reactions