Skip to main content
Topic solved
This topic has been marked as solved and requires no further attention.
Topic: wpa_supplicant at login issue (Read 1725 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

wpa_supplicant at login issue

Hi to all,

On december i started a topic (Topic: wpa_supplicant spawning nl80211... at login) related to the issue i would like to solve definitly. I could not find on the internet a suitable information that helps me to solve the problem that i am explaining next.
Every time i start my laptop and after i'm prompted to login i see the following:

Code: [Select]
artix login: Successfully initialized wpa_supplicant
nl80211: send_and_recv->nl_recvmsgs failed: -33
nl80211: send_and_recv->nl_recvmsgs failed: -33
wlp2s0: SME: Trying to authenticate with...
.
.
.
bgscan simple: Failed to enable signal strenght monitoring


After that, when it connects i am able to login after hiting enter as usual

Code: [Select]
artix login:

I am using network manager.
The laptop boots because networkmanager conects to my wifi, but if not it spawns

Code: [Select]
artix login: Successfully initialized wpa_supplicant
nl80211: send_and_recv->nl_recvmsgs failed: -33
nl80211: send_and_recv->nl_recvmsgs failed: -33
nl80211: send_and_recv->nl_recvmsgs failed: -33
nl80211: send_and_recv->nl_recvmsgs failed: -33
nl80211: send_and_recv->nl_recvmsgs failed: -33
nl80211: send_and_recv->nl_recvmsgs failed: -33
.
.
.

indefinitly.
This a real problem because suppose that i am travelling i would not be able to login due to networkmanager being unable to connect to a new wifi network.

I've installed artix runit. Can someone help me with this issue, in order to login properly and that the networkmanager starts after i log in?

Thanks!


Re: wpa_supplicant at login issue

Reply #1
put here output from
Code: [Select]
sudo lspci -v
Code: [Select]
sudo dmesg

output from
Code: [Select]
 cat /var/log/errors.log


Re: wpa_supplicant at login issue

Reply #3
Replace by Iwd can be a solution...

The wpa_supplicant utility accepts a -q or -qq flag, which will make it less verbose. See man wpa_supplicant.

I found some pages with this problem on Internet, mostly bugzilla (problem began in 2014).some users helped this solution :

https://unix.stackexchange.com/questions/175745/wpa-supplicant-nl80211-hangs-linux-mint-frequently
https://bugs.launchpad.net/ubuntu/+source/wpa/+bug/1323089/comments/24

Re: wpa_supplicant at login issue

Reply #4
Shouldn't you just be able to switch to a different tty to login? I'm pretty sure the reason for all the messages is just that runit prints to tty1 by default and because its constantly failing, it tries to restart the daemon. That being said, the message happening in and of itself might be an issue.

Re: wpa_supplicant at login issue

Reply #5
put here output from
Code: [Select]
sudo lspci -v
Code: [Select]
sudo dmesg

output from
Code: [Select]
 cat /var/log/errors.log

requested outputs:


Code: [Select]
lspci -v output:

00:00.0 Host bridge: Intel Corporation Xeon E3-1200 v6/7th Gen Core Processor Host Bridge/DRAM Registers (rev
02)
Subsystem: Lenovo Device 3805
Flags: bus master, fast devsel, latency 0
Capabilities: [e0] Vendor Specific Information: Len=10 <?>
Kernel driver in use: skl_uncore

00:02.0 VGA compatible controller: Intel Corporation HD Graphics 620 (rev 02) (prog-if 00 [VGA controller])
Subsystem: Lenovo Device 3802
Flags: bus master, fast devsel, latency 0, IRQ 127
Memory at b0000000 (64-bit, non-prefetchable) [size=16M]
Memory at a0000000 (64-bit, prefetchable) [size=256M]
I/O ports at 5000 [size=64]
Expansion ROM at 000c0000 [virtual] [disabled] [size=128K]
Capabilities: [40] Vendor Specific Information: Len=0c <?>
Capabilities: [70] Express Root Complex Integrated Endpoint, MSI 00
Capabilities: [ac] MSI: Enable+ Count=1/1 Maskable- 64bit-
Capabilities: [d0] Power Management version 2
Capabilities: [100] Process Address Space ID (PASID)
Capabilities: [200] Address Translation Service (ATS)
Capabilities: [300] Page Request Interface (PRI)
Kernel driver in use: i915
Kernel modules: i915

00:14.0 USB controller: Intel Corporation Sunrise Point-LP USB 3.0 xHCI Controller (rev 21) (prog-if 30 [XHCI])
Subsystem: Lenovo Device 382e
Flags: bus master, medium devsel, latency 0, IRQ 124
Memory at b1200000 (64-bit, non-prefetchable) [size=64K]
Capabilities: [70] Power Management version 2
Capabilities: [80] MSI: Enable+ Count=1/8 Maskable- 64bit+
Kernel driver in use: xhci_hcd
Kernel modules: xhci_pci

00:14.2 Signal processing controller: Intel Corporation Sunrise Point-LP Thermal subsystem (rev 21)
Subsystem: Lenovo Device 381e
Flags: bus master, fast devsel, latency 0, IRQ 18
Memory at b122a000 (64-bit, non-prefetchable) [size=4K]
Capabilities: [50] Power Management version 3
Capabilities: [80] MSI: Enable- Count=1/1 Maskable- 64bit-
Kernel driver in use: intel_pch_thermal
Kernel modules: intel_pch_thermal

00:16.0 Communication controller: Intel Corporation Sunrise Point-LP CSME HECI #1 (rev 21)
Subsystem: Lenovo Device 382d
Flags: bus master, fast devsel, latency 0, IRQ 126
Memory at b122b000 (64-bit, non-prefetchable) [size=4K]
Capabilities: [50] Power Management version 3
Capabilities: [8c] MSI: Enable+ Count=1/1 Maskable- 64bit+
Kernel driver in use: mei_me
Kernel modules: mei_me

00:17.0 SATA controller: Intel Corporation Sunrise Point-LP SATA Controller [AHCI mode] (rev 21) (prog-if 01
[AHCI 1.0])
Subsystem: Lenovo Device 3829 Flags: bus master, 66MHz, medium devsel, latency 0, IRQ 125
Memory at b1228000 (32-bit, non-prefetchable) [size=8K]
Memory at b122e000 (32-bit, non-prefetchable) [size=256]
I/O ports at 5080 [size=8]
I/O ports at 5088 [size=4]
I/O ports at 5060 [size=32]
Memory at b122c000 (32-bit, non-prefetchable) [size=2K]
Capabilities: [80] MSI: Enable+ Count=1/1 Maskable- 64bit-
Capabilities: [70] Power Management version 3
Capabilities: [a8] SATA HBA v1.0
Kernel driver in use: ahci
Kernel modules: ahci

00:1c.0 PCI bridge: Intel Corporation Sunrise Point-LP PCI Express Root Port #5 (rev f1) (prog-if 00 [Normal
decode])
Flags: bus master, fast devsel, latency 0, IRQ 122
Bus: primary=00, secondary=01, subordinate=01, sec-latency=0
I/O behind bridge: 00004000-00004fff [size=4K]
Memory behind bridge: b1100000-b11fffff [size=1M]
Prefetchable memory behind bridge: [disabled]
Capabilities: [40] Express Root Port (Slot+), MSI 00
Capabilities: [80] MSI: Enable+ Count=1/1 Maskable- 64bit-
Capabilities: [90] Subsystem: Lenovo Device 3821
Capabilities: [a0] Power Management version 3
Capabilities: [100] Null
Capabilities: [140] Access Control Services
Capabilities: [220] Secondary PCI Express
Kernel driver in use: pcieport

00:1c.5 PCI bridge: Intel Corporation Sunrise Point-LP PCI Express Root Port #6 (rev f1) (prog-if 00 [Normal
decode])
Flags: bus master, fast devsel, latency 0, IRQ 123
Bus: primary=00, secondary=02, subordinate=02, sec-latency=0
I/O behind bridge: 00003000-00003fff [size=4K]
Memory behind bridge: b1000000-b10fffff [size=1M]
Prefetchable memory behind bridge: [disabled]
Capabilities: [40] Express Root Port (Slot+), MSI 00
Capabilities: [80] MSI: Enable+ Count=1/1 Maskable- 64bit-
Capabilities: [90] Subsystem: Lenovo Device 3815
Capabilities: [a0] Power Management version 3
Capabilities: [100] Null
Capabilities: [140] Access Control Services
Capabilities: [200] L1 PM Substates
Capabilities: [220] Secondary PCI Express
Kernel driver in use: pcieport

00:1f.0 ISA bridge: Intel Corporation Sunrise Point-LP LPC Controller (rev 21)
Subsystem: Lenovo Device 381b
Flags: bus master, medium devsel, latency 0

00:1f.2 Memory controller: Intel Corporation Sunrise Point-LP PMC (rev 21)
Subsystem: Lenovo Device 382c
Flags: bus master, fast devsel, latency 0
Memory at b1224000 (32-bit, non-prefetchable) [size=16K]
00:1f.3 Audio device: Intel Corporation Sunrise Point-LP HD Audio (rev 21)
Subsystem: Lenovo Device 382c
Flags: bus master, fast devsel, latency 32, IRQ 129
Memory at b1220000 (64-bit, non-prefetchable) [size=16K]
Memory at b1210000 (64-bit, non-prefetchable) [size=64K]
Capabilities: [50] Power Management version 3
Capabilities: [60] MSI: Enable+ Count=1/1 Maskable- 64bit+
Kernel driver in use: snd_hda_intel
Kernel modules: snd_hda_intel

00:1f.4 SMBus: Intel Corporation Sunrise Point-LP SMBus (rev 21)
Subsystem: Lenovo Device 382c
Flags: medium devsel, IRQ 16
Memory at b122d000 (64-bit, non-prefetchable) [size=256]
I/O ports at 5040 [size=32]
Kernel driver in use: i801_smbus
Kernel modules: i2c_i801

01:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet
Controller (rev 10)
Subsystem: Lenovo Device 384c
Flags: bus master, fast devsel, latency 0, IRQ 16
I/O ports at 4000 [size=256]
Memory at b1104000 (64-bit, non-prefetchable) [size=4K]
Memory at b1100000 (64-bit, non-prefetchable) [size=16K]
Capabilities: [40] Power Management version 3
Capabilities: [50] MSI: Enable- Count=1/1 Maskable- 64bit+
Capabilities: [70] Express Endpoint, MSI 01
Capabilities: [b0] MSI-X: Enable+ Count=4 Masked-
Capabilities: [d0] Vital Product Data
Capabilities: [100] Advanced Error Reporting
Capabilities: [140] Virtual Channel
Capabilities: [160] Device Serial Number 01-00-00-00-68-4c-e0-00
Capabilities: [170] Latency Tolerance Reporting
Capabilities: [178] L1 PM Substates
Kernel driver in use: r8169
Kernel modules: r8169

02:00.0 Network controller: Realtek Semiconductor Co., Ltd. RTL8821AE 802.11ac PCIe Wireless Network Adapter
Subsystem: Lenovo Device a814
Flags: bus master, fast devsel, latency 0, IRQ 130
I/O ports at 3000 [size=256]
Memory at b1000000 (64-bit, non-prefetchable) [size=16K]
Capabilities: [40] Power Management version 3
Capabilities: [50] MSI: Enable+ Count=1/1 Maskable- 64bit+
Capabilities: [70] Express Endpoint, MSI 00
Capabilities: [100] Advanced Error Reporting
Capabilities: [140] Device Serial Number 00-e0-4c-ff-fe-87-2b-01
Capabilities: [150] Latency Tolerance Reporting
Capabilities: [158] L1 PM Substates
Kernel driver in use: rtl8821ae
Kernel modules: rtl8821ae


dmesg output:


00:00.0 Host bridge: Intel Corporation Xeon E3-1200 v6/7th Gen Core Processor Host Bridge/DRAM Registers (rev
02)
Subsystem: Lenovo Device 3805
Flags: bus master, fast devsel, latency 0
Capabilities: [e0] Vendor Specific Information: Len=10 <?>
Kernel driver in use: skl_uncore

00:02.0 VGA compatible controller: Intel Corporation HD Graphics 620 (rev 02) (prog-if 00 [VGA controller])
Subsystem: Lenovo Device 3802
Flags: bus master, fast devsel, latency 0, IRQ 127
Memory at b0000000 (64-bit, non-prefetchable) [size=16M]
Memory at a0000000 (64-bit, prefetchable) [size=256M]
I/O ports at 5000 [size=64]
Expansion ROM at 000c0000 [virtual] [disabled] [size=128K]
Capabilities: [40] Vendor Specific Information: Len=0c <?>
Capabilities: [70] Express Root Complex Integrated Endpoint, MSI 00
Capabilities: [ac] MSI: Enable+ Count=1/1 Maskable- 64bit-
Capabilities: [d0] Power Management version 2
Capabilities: [100] Process Address Space ID (PASID)
Capabilities: [200] Address Translation Service (ATS)
Capabilities: [300] Page Request Interface (PRI)
Kernel driver in use: i915
Kernel modules: i915

00:14.0 USB controller: Intel Corporation Sunrise Point-LP USB 3.0 xHCI Controller (rev 21) (prog-if 30 [XHCI])
Subsystem: Lenovo Device 382e
Flags: bus master, medium devsel, latency 0, IRQ 124
Memory at b1200000 (64-bit, non-prefetchable) [size=64K]
Capabilities: [70] Power Management version 2
Capabilities: [80] MSI: Enable+ Count=1/8 Maskable- 64bit+
Kernel driver in use: xhci_hcd
Kernel modules: xhci_pci

00:14.2 Signal processing controller: Intel Corporation Sunrise Point-LP Thermal subsystem (rev 21)
Subsystem: Lenovo Device 381e
Flags: bus master, fast devsel, latency 0, IRQ 18
Memory at b122a000 (64-bit, non-prefetchable) [size=4K]
Capabilities: [50] Power Management version 3
Capabilities: [80] MSI: Enable- Count=1/1 Maskable- 64bit-
Kernel driver in use: intel_pch_thermal
Kernel modules: intel_pch_thermal

00:16.0 Communication controller: Intel Corporation Sunrise Point-LP CSME HECI #1 (rev 21)
Subsystem: Lenovo Device 382d
Flags: bus master, fast devsel, latency 0, IRQ 126
Memory at b122b000 (64-bit, non-prefetchable) [size=4K]
Capabilities: [50] Power Management version 3
Capabilities: [8c] MSI: Enable+ Count=1/1 Maskable- 64bit+
Kernel driver in use: mei_me
Kernel modules: mei_me

00:17.0 SATA controller: Intel Corporation Sunrise Point-LP SATA Controller [AHCI mode] (rev 21) (prog-if 01
[AHCI 1.0])
Subsystem: Lenovo Device 3829 Flags: bus master, 66MHz, medium devsel, latency 0, IRQ 125
Memory at b1228000 (32-bit, non-prefetchable) [size=8K]
Memory at b122e000 (32-bit, non-prefetchable) [size=256]
I/O ports at 5080 [size=8]
I/O ports at 5088 [size=4]
I/O ports at 5060 [size=32]
Memory at b122c000 (32-bit, non-prefetchable) [size=2K]
Capabilities: [80] MSI: Enable+ Count=1/1 Maskable- 64bit-
Capabilities: [70] Power Management version 3
Capabilities: [a8] SATA HBA v1.0
Kernel driver in use: ahci
Kernel modules: ahci

00:1c.0 PCI bridge: Intel Corporation Sunrise Point-LP PCI Express Root Port #5 (rev f1) (prog-if 00 [Normal
decode])
Flags: bus master, fast devsel, latency 0, IRQ 122
Bus: primary=00, secondary=01, subordinate=01, sec-latency=0
I/O behind bridge: 00004000-00004fff [size=4K]
Memory behind bridge: b1100000-b11fffff [size=1M]
Prefetchable memory behind bridge: [disabled]
Capabilities: [40] Express Root Port (Slot+), MSI 00
Capabilities: [80] MSI: Enable+ Count=1/1 Maskable- 64bit-
Capabilities: [90] Subsystem: Lenovo Device 3821
Capabilities: [a0] Power Management version 3
Capabilities: [100] Null
Capabilities: [140] Access Control Services
Capabilities: [220] Secondary PCI Express
Kernel driver in use: pcieport

00:1c.5 PCI bridge: Intel Corporation Sunrise Point-LP PCI Express Root Port #6 (rev f1) (prog-if 00 [Normal
decode])
Flags: bus master, fast devsel, latency 0, IRQ 123
Bus: primary=00, secondary=02, subordinate=02, sec-latency=0
I/O behind bridge: 00003000-00003fff [size=4K]
Memory behind bridge: b1000000-b10fffff [size=1M]
Prefetchable memory behind bridge: [disabled]
Capabilities: [40] Express Root Port (Slot+), MSI 00
Capabilities: [80] MSI: Enable+ Count=1/1 Maskable- 64bit-
Capabilities: [90] Subsystem: Lenovo Device 3815
Capabilities: [a0] Power Management version 3
Capabilities: [100] Null
Capabilities: [140] Access Control Services
Capabilities: [200] L1 PM Substates
Capabilities: [220] Secondary PCI Express
Kernel driver in use: pcieport

00:1f.0 ISA bridge: Intel Corporation Sunrise Point-LP LPC Controller (rev 21)
Subsystem: Lenovo Device 381b
Flags: bus master, medium devsel, latency 0

00:1f.2 Memory controller: Intel Corporation Sunrise Point-LP PMC (rev 21)
Subsystem: Lenovo Device 382c
Flags: bus master, fast devsel, latency 0
Memory at b1224000 (32-bit, non-prefetchable) [size=16K]
00:1f.3 Audio device: Intel Corporation Sunrise Point-LP HD Audio (rev 21)
Subsystem: Lenovo Device 382c
Flags: bus master, fast devsel, latency 32, IRQ 129
Memory at b1220000 (64-bit, non-prefetchable) [size=16K]
Memory at b1210000 (64-bit, non-prefetchable) [size=64K]
Capabilities: [50] Power Management version 3
Capabilities: [60] MSI: Enable+ Count=1/1 Maskable- 64bit+
Kernel driver in use: snd_hda_intel
Kernel modules: snd_hda_intel

00:1f.4 SMBus: Intel Corporation Sunrise Point-LP SMBus (rev 21)
Subsystem: Lenovo Device 382c
Flags: medium devsel, IRQ 16
Memory at b122d000 (64-bit, non-prefetchable) [size=256]
I/O ports at 5040 [size=32]
Kernel driver in use: i801_smbus
Kernel modules: i2c_i801

01:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet
Controller (rev 10)
Subsystem: Lenovo Device 384c
Flags: bus master, fast devsel, latency 0, IRQ 16
I/O ports at 4000 [size=256]
Memory at b1104000 (64-bit, non-prefetchable) [size=4K]
Memory at b1100000 (64-bit, non-prefetchable) [size=16K]
Capabilities: [40] Power Management version 3
Capabilities: [50] MSI: Enable- Count=1/1 Maskable- 64bit+
Capabilities: [70] Express Endpoint, MSI 01
Capabilities: [b0] MSI-X: Enable+ Count=4 Masked-
Capabilities: [d0] Vital Product Data
Capabilities: [100] Advanced Error Reporting
Capabilities: [140] Virtual Channel
Capabilities: [160] Device Serial Number 01-00-00-00-68-4c-e0-00
Capabilities: [170] Latency Tolerance Reporting
Capabilities: [178] L1 PM Substates
Kernel driver in use: r8169
Kernel modules: r8169

02:00.0 Network controller: Realtek Semiconductor Co., Ltd. RTL8821AE 802.11ac PCIe Wireless Network Adapter
Subsystem: Lenovo Device a814
Flags: bus master, fast devsel, latency 0, IRQ 130
I/O ports at 3000 [size=256]
Memory at b1000000 (64-bit, non-prefetchable) [size=16K]
Capabilities: [40] Power Management version 3
Capabilities: [50] MSI: Enable+ Count=1/1 Maskable- 64bit+
Capabilities: [70] Express Endpoint, MSI 00
Capabilities: [100] Advanced Error Reporting
Capabilities: [140] Device Serial Number 00-e0-4c-ff-fe-87-2b-01
Capabilities: [150] Latency Tolerance Reporting
Capabilities: [158] L1 PM Substates
Kernel driver in use: rtl8821ae
Kernel modules: rtl8821ae

and


cat: /var/log/errors.log: The file or directory does not exist




Re: wpa_supplicant at login issue

Reply #6

Interesting. But since i use runit (and Arch wiki explains i guess for systemd), where should i configuere Networkmanager in order to create the configurattion file to enable iwd  backend?
Or if i install iwd and iwd-runit and after that the aur package networkmanager-iwd may it work?

Re: wpa_supplicant at login issue

Reply #7
Interesting. But since i use runit (and Arch wiki explains i guess for systemd), where should i configuere Networkmanager in order to create the configurattion file to enable iwd  backend?
Or if i install iwd and iwd-runit and after that the aur package networkmanager-iwd may it work?
did you search it before you asked ?  8)  try pacman -Ss iwd

Re: wpa_supplicant at login issue

Reply #8
did you search it before you asked ?  8)  try pacman -Ss iwd

Yes i searched, but maybe i have not made a right question. Nevermind, the think is that i installed iwd and iwd-runit. Started the service and made the configuration file to use iwd backend with networkmanger:

Code: [Select]
/etc/NetworkManager/conf.d/wifi_backend.conf
[device]
wifi.backend=iwd

After  reboot this messages appear during reboot:



Code: [Select]
artix login: Wireless daemon version 1.11
Failed to initialize D-Bus
Wireless daemon version 1.11
station: Network configuration is disabled.
rfkill id 0 can't be matched to a wiphy
Wiphy: 0, Name: phy0
                  Permanent Address:60:...........
                  Bands: 2.4 GHz 5 GHz
                  Ciphers: CCMP ..........
                  Supported iftypes: ad-hoc station ap p2p-client .....
Wiphy phi0 will only usse the default interface
Error bringing interface 3 up: Operation not possible due to RFkill
rfkill id 0 not found in a RFKILL_OP_CHANGE event
hardware_rekey not supported

After hitting return i get

Code: [Select]
artix login: 

and i am able to login.

How can i solve this annoying behavior? I can't find similar issues in the internet.



Re: wpa_supplicant at login issue

Reply #9
Hi, i guess there is no solution for the issue. It's a pitty. I am still struggling and can't  find how to resolve the issue. Thanks for your help.

 

Re: wpa_supplicant at login issue

Reply #10
I found the solution just go to
Code: [Select]
/usr/share/dbus-1/system-services/fi.w1.wpa_supplicant1.service

and add -s option to the exec line
or add other suitable options to keep it from logging into the screen