You are not logged in.

#1 2015-12-23 20:23:28

5donuts
Member
From: The Internet
Registered: 2014-11-06
Posts: 24

netctl-auto doesn't work, but netctl does

I'm trying to set up a new arch installation on a laptop with netctl-auto, but have been encountering difficulties.

If the netctl-auto@wlp4s0.service is running, then I get the following error message when I attempt to use wifi-menu to connect to a wireless profile (note: this connection is to a profile that already exists, but one which for some reason netctl-auto has NOT started, because the output of ping -c3 google.com is unknown host: google.com):

Scanning for networks... Failed to initialize control interface '/run/wpa_supplicant'.
You may have another wpa_supplicant process already running or the file was
left by an unclean termination of wpa_supplicant in which case you will need
to manually remove this file before starting wpa_supplicant again

failed
No networks found

Checking systemctl status wpa_supplicant, I see the following:

wpa_supplicant.service - WPA supplicant
    Loaded:   loaded (/usr/lib/systemd/system/wpa_supplicant.service; disabled; vendor present: disabled)
    Active:   inactive (dead)

Interestingly, if I stop and disable the netctl-auto@wlp4s0.service, then I can connect to a wireless profile with the following message (with this method, I can successfully ping google.com):

Scanning for networks... Could not read interface p2p-dev-wlp4s0 flags: No such device

Despite this message, however, I am able to get into the wifi-menu screen, select a network profile, and successfully connect to the internet.

I don't mind manually switching profiles with netctl, but I would like to know why netctl-auto is behaving so strangely.


The trouble with having an open mind, of course, is that people will insist on coming along and trying to put things in it. --Terry Pratchett

Offline

#2 2015-12-23 21:00:21

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 9,003
Website

Re: netctl-auto doesn't work, but netctl does

You cannot use netctl-auto in combination with the profile-specific (non-auto) version.

I recommend sticking to one connection method and de-bugging why the profile isn't activated by netctl-auto instead.

Probably useful to post the output of:

systemctl list-unit-files|grep enabled

So we can see what's going on.


Jin, Jîyan, Azadî

Offline

Board footer

Powered by FluxBB