Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
NetworkManager will not accept USE="iwd"
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Decibels
Veteran
Veteran


Joined: 16 Aug 2002
Posts: 1620
Location: U.S.A.

PostPosted: Sat Dec 28, 2019 1:45 am    Post subject: NetworkManager will not accept USE="iwd" Reply with quote

Trying to USE 'iwd', already have it emerged. NetworkManager has a use flag for 'iwd'. Nothing I seem to do makes it accept it. So I must be doing something wrong.
It does have (-iwd), so does that mean forced off?

Have tried mulitiple things. This is after figured might work if unmerged wpa_supplicant. But that didn't help.
Found this in there after, so guess it will always emerge wpa_supplicant:
Code:
Ebuild:# wpa_supplicant-0.7.3-r3 is needed due to bug 359271


Code:
# USE="wifi iwd" emerge --ask -N networkmanager

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  N     ] net-wireless/wpa_supplicant-2.9-r1  USE="dbus fils hs2-0 qt5 readline -ap -bindist -eap-sim -eapol_test -fasteap -libressl -macsec -p2p -privsep (-ps3) (-selinux) -smartcard -tdls -uncommon-eap-types (-wimax) -wps"
[ebuild  N     ] net-misc/networkmanager-1.18.4-r1  USE="bluetooth consolekit dhclient introspection modemmanager ncurses nss (policykit) ppp wext wifi -audit -connection-sharing -dhcpcd -elogind -gnutls (-iwd) -json -ofono -ovs -resolvconf (-selinux) -systemd -teamd -test -vala" ABI_X86="(64) -32 (-x32)"


Another attempt.
Code:

# USE="iwd" emerge --ask -N networkmanager

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  N     ] net-wireless/wpa_supplicant-2.9-r1  USE="dbus fils hs2-0 qt5 readline -ap -bindist -eap-sim -eapol_test -fasteap -libressl -macsec -p2p -privsep (-ps3) (-selinux) -smartcard -tdls -uncommon-eap-types (-wimax) -wps"
[ebuild  N     ] net-misc/networkmanager-1.18.4-r1  USE="bluetooth consolekit dhclient introspection modemmanager ncurses nss (policykit) ppp wext wifi -audit -connection-sharing -dhcpcd -elogind -gnutls (-iwd) -json -ofono -ovs -resolvconf (-selinux) -systemd -teamd -test -vala" ABI_X86="(64) -32 (-x32)"

Would you like to merge these packages? [Yes/No]


So this is what I got when emerged this one:
Code:
[I] net-misc/networkmanager
     Available versions:  1.18.4-r1^t {audit bluetooth connection-sharing consolekit +dhclient dhcpcd elogind gnutls +introspection iwd json +modemmanager ncurses +nss ofono ovs policykit +ppp resolvconf selinux systemd teamd test vala +wext +wifi ABI_MIPS="n32 n64 o32" ABI_RISCV="lp64 lp64d" ABI_S390="32 64" ABI_X86="32 64 x32" KERNEL="linux"}
     Installed versions:  1.18.4-r1^t(19:34:36 12/27/19)(bluetooth consolekit dhclient introspection modemmanager ncurses nss policykit ppp wext wifi -audit -connection-sharing -dhcpcd -elogind -gnutls -iwd -json -ofono -ovs -resolvconf -selinux -systemd -teamd -test -vala ABI_MIPS="-n32 -n64 -o32" ABI_RISCV="-lp64 -lp64d" ABI_S390="-32 -64" ABI_X86="64 -32 -x32" KERNEL="linux")


According to the wiki:
Quote:
USE FLAG: iwd : Use net-wireless/iwd instead of net-wireless/wpa_supplicant for wifi support by default


I don't understand the ebuilds that well, but all could find was:
Code:
REQUIRED_USE="
        bluetooth? ( modemmanager )
        iwd? ( wifi )
        vala? ( introspection )
        wext? ( wifi )
        || ( nss gnutls )
        ?? ( consolekit elogind systemd )
"

Code:
"
RDEPEND="${COMMON_DEPEND}
        acct-group/plugdev
        || (
                net-misc/iputils[arping(+)]
                net-analyzer/arping
        )
        wifi? (
                !iwd? ( >=net-wireless/wpa_supplicant-0.7.3-r3[dbus] )
                iwd? ( net-wireless/iwd )
        )
"

Code:
(multilib_native_use_with wifi iwd)


Sure looks like it built it without IWD and that bug is old. Haven't seen where anyone else has even mentioned this.

Update: I've managed finally after messing with other setups to get it connected with just 'iwd' and dhcpcd. Disconnected the wired connection and using the wireless to type this in. Had to use command line. So will see if setup holds. Would be nice to get working with NetworkManager, but that might be a false hope.
Even the Wiki on this is not accurate, ie there is no /etc/iwd/main/main.conf file or even folder. Only thing in /etc is in /etc/init.d/ .
_________________
Support bacteria – they’re the only culture some people have.”

– Steven Wright
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 7576
Location: almost Mile High in the USA

PostPosted: Sat Dec 28, 2019 3:22 am    Post subject: Reply with quote

Indeed, USE=iwd appears to be use-masked in your profile, the devs have deemed it unstable. You'll need to unmask it manually in /etc/portage/profile/use.mask ...
_________________
Intel Core i7 2700K@ 4.1GHz/HD3000 graphics/8GB DDR3/180GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
Decibels
Veteran
Veteran


Joined: 16 Aug 2002
Posts: 1620
Location: U.S.A.

PostPosted: Sat Dec 28, 2019 4:18 am    Post subject: Reply with quote

Hmmm, I guess don't need NetworkManager anyway. Just rebooted and still working. Well, maybe others that try it will see this when they see the wiki isn't accurate anymore. Then know iwd just works. At least for Intel Corporation Dual Band Wireless-AC 3168NGW [Stone Peak].

Thanks, I actually didn't know about the file in /etc/portage/profile/use.mask .

I'll leave it alone for now and unmerge NetworkManager and anything else that don't need anymore.

Oh, for anyone else trying to use iwd. Did:
Changed the necessary items in the kernel, like cryptographic (you'll see when emerging iwd if don't have it all) , linux-firmware (iwlwifi kernel module and firmware,.. from the iwlwifi wiki).
You won't find a /etc/iwd/main.conf, looks like everything is kept in /var/lib/iwd: .know_network.freq & NetworkName.psk are the only two files found with anything relevant.
This is for WAP2-PSK at least.

Update: The Gentoo Wiki didn't say you needed to create the /etc/iwd/main.conf file but the arch wiki does so just create it.
Good resource for the main.conf: /usr/share/man/man5/iwd.config.5.bz2

Thanks for the Reply.
_________________
Support bacteria – they’re the only culture some people have.”

– Steven Wright
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum