cosmarchy
Posts: 41
Joined: Fri Aug 23, 2013 5:29 pm

Wifi in Arch

Thu Jun 02, 2016 7:42 pm

Hello all,

I've installed Arch on my Raspberry PI and I have a Edimax EW-7711uac USB wifi adaptor connected. At first I had problems with it not saving the profile after I did
wifi-menu -o
I can now get it to save the profile (by using a different adaptor) but after a
netctl start wireless-home
it still wont connect. I get an error message of
Job for netctl@wireless\x2dhome.service failed. See 'systemctl status netctl@wireless\x2dhome.service' and 'journalctl -xn' for details.
Examining these files:
[root@alarmpi netctl]# [root@alarmpi netctl]# journalctl -xn
-- Logs begin at Thu 1970-01-01 00:00:03 UTC, end at Thu 2016-06-02 20:44:15 UTC. --
Jun 02 20:44:14 alarmpi network[410]: Successfully initialized wpa_supplicant
Jun 02 20:44:14 alarmpi network[410]: Line 5: Invalid passphrase length 0 (expected: 8..63) '"'.
Jun 02 20:44:14 alarmpi network[410]: Line 5: failed to parse psk '""'.
Jun 02 20:44:14 alarmpi network[410]: Line 7: failed to parse network block.
Jun 02 20:44:14 alarmpi network[410]: Failed to read or parse configuration '/run/network/wpa_supplicant_wlan0.c
Jun 02 20:44:15 alarmpi network[410]: The WPA supplicant did not start for interface 'wlan0'
Jun 02 20:44:15 alarmpi network[410]: Failed to bring the network up for profile 'wireless-home'
Jun 02 20:44:15 alarmpi systemd[1]: netctl@wireless\x2dhome.service: main process exited, code=exited, status=1/
Jun 02 20:44:15 alarmpi systemd[1]: Failed to start Networking for netctl profile wireless-home.
-- Subject: Unit netctl@wireless\x2dhome.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/li ... temd-devel
-- Documentation: http://www.freedesktop.org/wiki/Softwar ... e9d022f03d
--
-- Unit netctl@wireless\x2dhome.service has failed.
--
-- The result is failed.
Jun 02 20:44:15 alarmpi systemd[1]: Unit netctl@wireless\x2dhome.service entered failed state.
and
[root@alarmpi netctl]# systemctl status netctl@wireless\x2dhome.service
netctl@wirelessx2dhome.service - Networking for netctl profile wirelessx2dhome
Loaded: loaded (/usr/lib/systemd/system/netctl@.service; static)
Active: inactive (dead)
Docs: man:netctl.profile(5)
It looks like some corruption / mis-configuration in wpa_supplicant?????? I didn't think you had to edit this file when using netctl, is that correct?

Can anyone tell me where I am going wrong?

Thanks

pepedog
Posts: 1043
Joined: Fri Oct 07, 2011 9:55 am

Re: Wifi in Arch

Fri Jun 03, 2016 10:10 am

Edimax EW-7711uac, this uses wlan0, yes?
Make sure pkg wpa_actiond is installed, then-

Code: Select all

systemctl start netctl-auto@wlan0.service 
systemctl enable netctl-auto@wlan0.service 

cosmarchy
Posts: 41
Joined: Fri Aug 23, 2013 5:29 pm

Re: Wifi in Arch

Fri Jun 03, 2016 5:34 pm

pepedog wrote:Edimax EW-7711uac, this uses wlan0, yes?
Make sure pkg wpa_actiond is installed, then-

Code: Select all

systemctl start netctl-auto@wlan0.service 
systemctl enable netctl-auto@wlan0.service 
Hi, thanks for your reply. I tried your suggestion and this is the response I got:
[root@alarmpi ~]# systemctl start netctl-auto@wlan0.service
Job for netctl-auto@wlan0.service failed. See 'systemctl status netctl-auto@wlan0.service' and 'journalctl -xn' for details.
[root@alarmpi ~]# journalctl -xn
-- Logs begin at Thu 1970-01-01 00:00:03 UTC, end at Fri 2016-06-03 17:28:28 UTC. --
Jun 03 17:28:26 alarmpi systemd[1]: Starting Automatic wireless network connection using netctl profiles...
-- Subject: Unit netctl-auto@wlan0.service has begun with start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/li ... temd-devel
--
-- Unit netctl-auto@wlan0.service has begun starting up.
Jun 03 17:28:27 alarmpi netctl-auto[265]: Included profile 'wireless-home'
Jun 03 17:28:27 alarmpi netctl-auto[265]: Successfully initialized wpa_supplicant
Jun 03 17:28:27 alarmpi netctl-auto[265]: Line 5: Invalid passphrase length 0 (expected: 8..63) '"'.
Jun 03 17:28:27 alarmpi netctl-auto[265]: Line 5: failed to parse psk '""'.
Jun 03 17:28:27 alarmpi netctl-auto[265]: Line 8: failed to parse network block.
Jun 03 17:28:27 alarmpi netctl-auto[265]: Failed to read or parse configuration '/run/network/wpa_supplicant_wla
Jun 03 17:28:28 alarmpi systemd[1]: netctl-auto@wlan0.service: control process exited, code=exited status=1
Jun 03 17:28:28 alarmpi systemd[1]: Failed to start Automatic wireless network connection using netctl profiles.
-- Subject: Unit netctl-auto@wlan0.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/li ... temd-devel
-- Documentation: http://www.freedesktop.org/wiki/Softwar ... e9d022f03d
--
-- Unit netctl-auto@wlan0.service has failed.
--
-- The result is failed.
Jun 03 17:28:28 alarmpi systemd[1]: Unit netctl-auto@wlan0.service entered failed state.
I'm not 100% sure but this looks to me like like it's saying /etc/wpa_supplicant/wpa_supplicant.conf is corrupt on lines 5 & 8 but when I look in this conf file, lines 5 and 8 are part of the comments section at the beginning of the file.

pepedog
Posts: 1043
Joined: Fri Oct 07, 2011 9:55 am

Re: Wifi in Arch

Sat Jun 04, 2016 9:30 am

Have any files been edited in Windows?
Maybe uninstall wpa_supplicant, delete file and install again.

cosmarchy
Posts: 41
Joined: Fri Aug 23, 2013 5:29 pm

Re: Wifi in Arch

Sat Jun 04, 2016 6:40 pm

In the end I started again from scratch. I believe I put everything back in and in the same order and this time it worked. Well, I say worked, I still had errors but it cleared up this one!!

Wifi is now connected and working; Arch linux seems quite a funny beast to get right with regards to wifi :lol:

Return to “Arch”