User Tools

Site Tools


doc:appunti:hardware:raspberrypi_wpa_supplicant_problem

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
doc:appunti:hardware:raspberrypi_wpa_supplicant_problem [2018/02/17 10:06] – created niccolodoc:appunti:hardware:raspberrypi_wpa_supplicant_problem [2020/08/14 10:17] (current) niccolo
Line 1: Line 1:
-====== Rapsberry Pi problem: dhcpcd not starting wpa_supplicant ======+====== Raspberry Pi problem: dhcpcd not starting wpa_supplicant ======
  
 I got a problem with a **Realtek RTL8188EUS** UBS WiFi dongle, into a **Raspberry Pi Model A+**, running **Rasbpian 2017-11-29 Stretch Lite** (based on Debian 9.1). I got a problem with a **Realtek RTL8188EUS** UBS WiFi dongle, into a **Raspberry Pi Model A+**, running **Rasbpian 2017-11-29 Stretch Lite** (based on Debian 9.1).
Line 45: Line 45:
 wpa_supplicant -B -c/etc/wpa_supplicant/wpa_supplicant.conf -iwlan0 -Dnl80211,wext wpa_supplicant -B -c/etc/wpa_supplicant/wpa_supplicant.conf -iwlan0 -Dnl80211,wext
 </code> </code>
 +
 +Notice that the configuration file used is **/etc/wpa_supplicant/wpa_supplicant.conf**, but if one named **wpa_supplicant-wlan0.conf** exists, it will be preferred.
 +
 +===== Alternative: wpa_supplicant started by systemd =====
 +
 +The default is to start **wpa_supplicant** via **dhcpcd**, as seen above. But if you want, you can force **systemd** to start the service independently.
 +
 +You have to start the //interface-specific// service against the name **wlan0**, so make the following:
 +
 +<code>
 +mv /etc/wpa_supplicant/wpa_supplicant.conf /etc/wpa_supplicant/wpa_supplicant-wlan0.conf
 +systemctl enable wpa_supplicant@wlan0.service
 +</code>
 +
 +After a reboot you should see the wpa_supplicant process running, and dhcpcd will configure wlan0 happily.
 +===== Web References =====
 +
 +  * [[https://www.raspberrypi.org/forums/viewtopic.php?t=191061|Raspbian Stretch: Wifi not starting on boot]]
doc/appunti/hardware/raspberrypi_wpa_supplicant_problem.1518858373.txt.gz · Last modified: 2018/02/17 10:06 by niccolo