LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook
User Name
Password
Linux - Laptop and Netbook Having a problem installing or configuring Linux on your laptop? Need help running Linux on your netbook? This forum is for you. This forum is for any topics relating to Linux and either traditional laptops or netbooks (such as the Asus EEE PC, Everex CloudBook or MSI Wind).

Notices


Reply
  Search this Thread
Old 02-05-2021, 06:13 AM   #1
blackbirdsr71
LQ Newbie
 
Registered: Jun 2015
Posts: 15

Rep: Reputation: Disabled
wpa_supplicant at login issue


Hi to all,

I could not find on the internet a suitable information that helps me to solve the problem that i am explaining next.
First of all i use artixlinux-runit and dwm as window manager. Every time i start my laptop and after i'm prompted to login i see the following:


Code:
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:
artix login:
I am using networkmanager.
The laptop boots because networkmanager conects to my wifi, but if not it spawns


Code:
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.

Can someone help me with this issue, in order to login properly and that the networkmanager starts after i log in?

Thanks!
 
Old 02-05-2021, 11:21 AM   #2
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,673

Rep: Reputation: Disabled
OK, I'm stabbing totally in dark and can only tell from my Gentoo experience. In Gentoo we can have similar trouble when wpa_supplicant is started by init system and then NetworkManager is started and attempts to start wpa_supplicant in its own, causing a conflict. So my advice is to double-check your init scripts, perhaps wpa_supplicant is started from there and it shouldn't.
 
Old 02-13-2021, 04:02 PM   #3
blackbirdsr71
LQ Newbie
 
Registered: Jun 2015
Posts: 15

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Emerson View Post
... So my advice is to double-check your init scripts, perhaps wpa_supplicant is started from there and it shouldn't.
Thanks for your kind answer, Emerson, i am not so experienced in order to double check init scripts, i am afraid to make a big mistake, is any guide to do that?
 
Old 02-13-2021, 09:02 PM   #4
Brains
Senior Member
 
Registered: Apr 2009
Distribution: All OS except Apple
Posts: 1,591

Rep: Reputation: 389Reputation: 389Reputation: 389Reputation: 389
Quote:
Originally Posted by blackbirdsr71 View Post
Every time i start my laptop and after i'm prompted to login i see the following:
The behaviour you describe is more consistent with bringing up the laptop out of Suspend or Hibernation rather than booting it up after it was properly shutdown. If this is the case, might be a good idea to review power management settings regarding the handling of wireless networks in these modes.
 
Old 02-14-2021, 03:08 AM   #5
u666sa
LQ Newbie
 
Registered: Mar 2020
Posts: 7

Rep: Reputation: Disabled
Quote:
Originally Posted by blackbirdsr71 View Post
Can someone help me with this issue, in order to login properly and that the networkmanager starts after i log in?
Do you have iwd installed? If so -

systemctl stop iwd.service
systemctl disable iwd.service
sudo pacman -R iwd (or whatever you use there to uninstall)

Then reboot see if it works.

Suck suggestion because I just had problems with NetworkManager and iwd on Arch -- network simply would not connect, only removing iwd solved my issues.
 
Old 02-19-2021, 07:38 AM   #6
blackbirdsr71
LQ Newbie
 
Registered: Jun 2015
Posts: 15

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Brains View Post
The behaviour you describe is more consistent with bringing up the laptop out of Suspend or Hibernation rather than booting it up after it was properly shutdown. If this is the case, might be a good idea to review power management settings regarding the handling of wireless networks in these modes.
Thanks for your answer. Indeed this happens since the beginings of time i installed Artix. Installing iwd solved partally the issue but not the hanging i describe above. I will check your suggestion.
 
Old 02-19-2021, 07:43 AM   #7
blackbirdsr71
LQ Newbie
 
Registered: Jun 2015
Posts: 15

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by u666sa View Post
Do you have iwd installed? If so -

systemctl stop iwd.service
systemctl disable iwd.service
sudo pacman -R iwd (or whatever you use there to uninstall)

Then reboot see if it works.

Suck suggestion because I just had problems with NetworkManager and iwd on Arch -- network simply would not connect, only removing iwd solved my issues.
Thanks for the answer u666sa, indeed iwd helped to avoid the fact that if there is no known network i could not login at all. The thing is that it is very anoying that login stops untill i hit enter and then i may login properly.
 
Old 02-19-2021, 05:52 PM   #8
Brains
Senior Member
 
Registered: Apr 2009
Distribution: All OS except Apple
Posts: 1,591

Rep: Reputation: 389Reputation: 389Reputation: 389Reputation: 389
Something I mentioned in another thread recently, can't find it so might of been another forum. I noticed when you click the X in the upper right of the GUI to close it, it don't actually close it gets minimized to the tray. Qbittorent used to do that to me where it's always running in the background eating up my bandwidth seeding because it's never closed and always resumes after reboot.
If you right click the little antenna in the top left of the wpa-sup GUI and select close it will again be minimized to the tray.
If you select File/close or quit I forget, now it will actually be closed and not minimized to tray.
If you right click on it's icon in the tray which looks like the wireless icon and select quit, it will close. When properly closed it don't come up after reboot.
 
Old 03-03-2021, 02:06 AM   #9
calliealbert
LQ Newbie
 
Registered: Jan 2021
Posts: 17

Rep: Reputation: 1
Can you run wpa-passphrase "essid" "password" > ~/wpa_new.conf and see if that works with wpa_supplicant.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to configure wpa_supplicant configuration to handle multiple USB WIiFi devices with single wpa_supplicant configuration file with system chetuneve Linux - Wireless Networking 1 11-18-2020 04:07 PM
[SOLVED] Fast login via ssh / Slow login via login manager with machine in AD-domain c01d Linux - Server 2 03-01-2016 01:52 AM
how to disable "last login log" & disable "last login message" when start login. hocheetiong Linux - Newbie 4 02-08-2011 05:35 AM
Suse issues: glx, kde login, wpa_supplicant test02 SUSE / openSUSE 2 02-01-2007 09:41 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook

All times are GMT -5. The time now is 08:59 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration