Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WiFi Connection Issues #14

Open
ProjectMoon opened this issue Jan 30, 2020 · 13 comments
Open

WiFi Connection Issues #14

ProjectMoon opened this issue Jan 30, 2020 · 13 comments

Comments

@ProjectMoon
Copy link

I've encountered an issue where I'm unable to connect to WiFi networks anymore. I am not exactly sure what happened, but I was previously able to connect just fine, and then now I cannot connect to any. No connection seems to work, and all Sailfish says is that there was an error connecting. Forgetting the network and reconnecting does not work, neither does rebooting.

Presumably there's somewhere I can dig into the log files for internet connectivity. Where to start looking?

@ProjectMoon
Copy link
Author

So I managed to fix this by turning of Connman's DNS proxy. I noticed that the phone had no DNS, By creating a file at /var/lib/environment/connman/nodnsproxy.conf with the contents:

CONNMAN_ARGS="--nodnsproxy"

The phone falls back to normal DHCP in /etc/resolv.conf and then DNS (and internet) work just fine.

@ProjectMoon
Copy link
Author

ProjectMoon commented Jan 30, 2020

More info on the inability to connect to wifi, from the system logs (journalctl):

wpa_supplicant[2664]: wlan0: Trying to associate with xx:xx:xx:xx:xx:xx (SSID='abc123') freq=2457 MHz)
wpa_supplicant[2664]: wlan0: Association request to the driver failed.
wpa_supplicant[2664]: wlan0: CTRL-EVENT-SSID-TEMP-DISABLED id=0 ssid="abc123" auth_failures=1 duration=10 reason=CONN_FAILED

Edit: Also seeing this exact same error on Ubuntu Touch, with similar connectivity issues. So it's not at the higher levels at all. Same symptoms... can't see any networks, much less connect to them. Some very basic connectivity worked only a few times.

@DylanVanAssche
Copy link
Contributor

For some reason, I cannot reproduce this... Can you maybe explain a bit your network setup?

@ProjectMoon
Copy link
Author

ProjectMoon commented Feb 2, 2020

It is a mesh network, using Orbi routers. I suspect this issue is at the driver level, as I see similar results and the exact same logs in the syslog on Ubuntu Touch.

Are there any log levels to turn up in dmesg/syslog that could produce more useful output?

I should note the phone is rather stable with my Android phone's wifi tethering. I think the driver doesn't play nicely with repeaters/meshes. I see similar issues on my work network.

The phone also refuses to connect to any other wifi network once disconnecting from another.

@DylanVanAssche
Copy link
Contributor

The driver of the WiFi/BT chip is not great at the moment. A better driver is in the works I heard.
So I guess we should wait until the better driver comes into play (with power management!)

@piggz
Copy link
Contributor

piggz commented Mar 24, 2020

@ProjectMoon can you confirm this is still an issue with the latest release?

@ProjectMoon
Copy link
Author

I tried Sailfish OS the other day, and the WiFi seems much more stable than it was in the beginning. Instead of dropping completely and never turning back on, it often gets very slow, sometimes disconnects (especially after screen off), and usually comes back. It did die once though.

But I suspect this is a driver issue for the PinePhone, less so than SFOS.

@ProjectMoon
Copy link
Author

Current versions of the image have extremely unstable WiFI when I test them. More unstable than it used to be even. Is anyone else experiencing this?

@simonschmeisser
Copy link
Contributor

Yes, same here. It often disconnects, sometimes I can "restart" it by toggling the button but sometimes then it doesn't want to re-connect at all

@DylanVanAssche
Copy link
Contributor

WiFi is not very great on the dev phone I have (1.0).
But I think this happens on other OSes too? Can anyone please test if other OSes are suffering from the same issue?

@ProjectMoon
Copy link
Author

All signs point to it being related to the wifi driver, yes. When I first opened this, it was January and Sailfish OS is the one I tested first.

There are specifically problems related to mesh networks.

But I do think distros like Ubuntu Touch have fairly reliable wifi, at least after a warm reboot. Is the SFOS port using the latest Pinephone wifi driver?

@piggz
Copy link
Contributor

piggz commented Aug 10, 2020

We are using the new driver iirc

@Qiangong2
Copy link

Still having the wifi issue. I can connect to open networks, but not WPA2 networks. I can connect to WPA2 networks on UBPorts

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants