You are not logged in.

#1 2012-10-04 20:22:29

Hazzl
Member
From: Germany
Registered: 2012-10-04
Posts: 5

Unable to set up wlan with systemd

Hi there,

I'm trying to start wpa_supplicant automatically when starting multi-user.target without going through something fancy like netcfg or NetworkManager. So I have done

systemctl enable wpa_supplicant@wlan0

Unforutnately, this doesn't work. I get the following message in my journal

systemd[1]: Job sys-subsystem-net-devices-wlan0.device/start timed out.
systemd[1]: Timed out waiting for device sys-subsystem-net-devices-wlan0.device.
systemd[1]: Dependency failed for WPA supplicant daemon (interface-specific version).
systemd[1]: Job wpa_supplicant@wlan0.service/start failed with result 'dependency'.
systemd[1]: Job sys-subsystem-net-devices-wlan0.device/start failed with result 'timeout'.

However, listing the devices recognised through [tt]systemctl --all --type device[/tt] I get:

sys-devices-pci0000:00-0000:00:14.2-sound-card1.device                                   loaded active   plugged     SBx00 Azalia (Intel HDA)
sys-devices-pci0000:00-0000:00:15.1-0000:03:00.0-net-eth0.device                         loaded active   plugged     RTL8111/8168B PCI Express Gigabit Ethernet controller
sys-devices-pci0000:00-0000:00:15.2-0000:04:00.0-0000:05:01.0-net-wlan0.device           loaded active   plugged     AR5416 Wireless Network Adapter [AR5008 802.11(a)bgn]
sys-subsystem-net-devices-wlan0.device                                                   loaded inactive dead        sys-subsystem-net-devices-wlan0.device

SystemD seems to be unable to make the connection between the detected device and the subsystem. Can anybody tell me what I'm doing wrong?

Offline

#2 2012-10-04 20:57:29

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: Unable to set up wlan with systemd

Use sys-devices-pci0000:00-0000:00:15.2-0000:04:00.0-0000:05:01.0-net-wlan0.device in the service file instead of sys-subsystem-net-devices-wlan0.device.

Yes, I know, that doesn't tell you what's going wrong, it just gets you working.

FWIW, my laptop (with perfectly functioning wifi) does not have that sys-subsystem-net-devices-wlan0.device, so if I were to try what you're trying, I would have to use sys-devices-pci00....device as well. I use "fancy" netcfg, btw - you really should too. smile

Offline

#3 2012-10-06 10:26:09

Hazzl
Member
From: Germany
Registered: 2012-10-04
Posts: 5

Re: Unable to set up wlan with systemd

Thank you, tomk. That indeed solves the problem. It seems, that this is a known problem: https://bugs.freedesktop.org/show_bug.cgi?id=52580

Last edited by Hazzl (2012-10-06 10:34:52)

Offline

Board footer

Powered by FluxBB