Glasairman
Posts: 12
Joined: Fri Mar 16, 2012 9:55 am
Location: Munich, Germany

Re: WiFi ONLY works if Ethernet is plugged in

Sat Dec 23, 2017 10:06 pm

I found a simpler solution using systemd

In the file where the various interfaces are defined /etc/systemd/network , make sure the wlan0 file has a lower name that the eth0 file, as follows:

[email protected]:/etc/systemd/network$ ls 30-static-wireless.network 40-static.network 99-default.link

Now I don`t need the cable to start anymore!

SurferTim
Posts: 1767
Joined: Sat Sep 14, 2013 9:27 am
Location: Miramar Beach, Florida

Re: WiFi ONLY works if Ethernet is plugged in

Sat Dec 23, 2017 10:27 pm

I didn't need the cable any time. Wifi works with or without it.

rwe
Posts: 5
Joined: Sat Jan 06, 2018 4:16 pm

Re: WiFi ONLY works if Ethernet is plugged in

Tue Feb 06, 2018 11:01 am

I have also been fighting this problem, and I have found the last solution given seems to fix it for me.

Here are the details:

Modify the file /lib/systemd/system/wpa_supplicant.service using your editor of choice.

change the line:

ExecStart=/sbin/wpa_supplicant -u -s -O /run/wpa_supplicant

to include the -W option:

ExecStart=/sbin/wpa_supplicant -W -u -s -O /run/wpa_supplicant

This works for me and I no longer need an ethernet plugged in...

My system:

2017-11-29-raspbian-stretch.img
raspberry pi 2.

Have fun...

a-tibi
Posts: 13
Joined: Sun Jun 24, 2018 12:01 pm

Re: WiFi ONLY works if Ethernet is plugged in

Fri Oct 12, 2018 3:37 am

giupo wrote:
Wed Jun 28, 2017 10:03 am
If anyone still has this issue, try to remove the "ip" definition in the "/boot/cmdline.txt"

Just my 2 cents,
Giuseppe
Thanks so much it solved my problem

Return to “Troubleshooting”