Artix Linux Forum

Init systems => dinit => Topic started by: tzuebmwo on 12 July 2024, 10:32:13

Title: wpa_supplicant fails to start with dinitctl but runs manually
Post by: tzuebmwo on 12 July 2024, 10:32:13
I just installed the dinit version of artix and I'm trying to setup a wireless connection. Manually works just fine:
Code: [Select]
wpa_supplicant -i wlan0 -c /etc/wpa_supplicant/wpa_supplicant.conf
But if I try to start the service, it fails. The log has these messages:
Code: [Select]
Successfully initialized wpa_supplicant
Could not read interface wlan0 flags: No such device
nl80211: Driver does not support authentication/association or connect commands
This issue is very similar to this issue in s6 (https://forum.artixlinux.org/index.php/topic,2986.0.html), but it seems that his issue was just a variable with the wrong name. In my case the environment file contains:
Code: [Select]
WPA_INTERFACE="wlan0"
Help please?
Title: Re: wpa_supplicant fails to start with dinitctl but runs manually
Post by: davmac on 19 July 2024, 06:12:01
If your environment file was as you said, I think the error message should have been:

Code: [Select]
Could not read interface "wlan0" flags: No such device

... i.e. with quotes around 'wlan0'. That's the giveaway I think, the quotes should not be there (in the environment file).

Remember to run "dinitctl reload wpa_supplicant" after editing the file.

Do you actually have a wlan0 interface? If not that would also be a problem. (I.e. does the kernel recognise your wifi adapter? Is the right module loaded? etc).