LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 09-01-2021, 10:55 AM   #1
pghvlaans
Member
 
Registered: Jan 2021
Distribution: Slackware64 {15.0,-current}, FreeBSD, stuff on QEMU
Posts: 451

Rep: Reputation: 363Reputation: 363Reputation: 363Reputation: 363
WiFi loss upon resume?


Since the latest round of upgrades (Tue Aug 31 20:58:13 UTC 2021), my laptop (Intel wireless controller AX200) has been losing connectivity after closing the lid and re-opening. It's been running -current since January, and I haven't seen this issue before.

Basically, after opening the lid, a process called "dhcpcd [Network Proxy]" didn't reappear, and all subsequent pings returned "temporary name resolution failure." This happened both under X and in tty.

I tried a number of things, including a firmware rollback, using the standard kernel and rebuilding dhcpcd, but the only working solution was to remove the dhcpcd user and group. Now the connection seems to be behaving normally. Has anyone else had this issue since the etc package upgrade?
 
Old 09-01-2021, 11:09 AM   #2
ctrlaltca
Member
 
Registered: May 2019
Location: Italy
Distribution: Slackware
Posts: 323

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
I am experiencing the same issue.

After a resume i see the following processes running:
Code:
dhcpcd    2993  0.0  0.0   3080  2580 ?        S    09:26   0:00 dhcpcd: wlan0 [ip4]
root      2998  0.0  0.0   3004  1968 ?        S    09:26   0:00 dhcpcd: [privileged actioneer] wlan0 [ip4]
dhcpcd    2999  0.0  0.0   2992   288 ?        S    09:26   0:00 dhcpcd: [control proxy] wlan0 [ip4]
dhcpcd   10199  0.0  0.0   3004   308 ?        S    18:02   0:00 dhcpcd: [BPF ARP] wlan0 192.168.1.104
dhcpcd   10200  0.0  0.0   3004   308 ?        S    18:02   0:00 dhcpcd: [BPF BOOTP] wlan0
Some of them are started at 09:26 (bootup time), some others at 18:02 (resume time).

The following messages are printed in syslog:
Code:
Sep  1 18:02:14 sprawl NetworkManager[1398]: <warn>  [1630512134.1552] device (wlan0): Activation: failed for connection 'offinf'
Sep  1 18:02:14 sprawl NetworkManager[1398]: <warn>  [1630512134.1587] dhcp-listener: dhcp-event: (pid 2993) unhandled DHCP event for interface wlan0
Sep  1 18:02:14 sprawl NetworkManager[1398]: <warn>  [1630512134.1621] dhcp-listener: dhcp-event: (pid 2993) unhandled DHCP event for interface wlan0
Sep  1 18:02:14 sprawl NetworkManager[1398]: <warn>  [1630512134.1679] dhcp-listener: dhcp-event: (pid 2993) unhandled DHCP event for interface wlan0
Sep  1 18:02:16 sprawl NetworkManager[1398]: <warn>  [1630512136.8853] dhcp-listener: dhcp-event: (pid 2993) unhandled DHCP event for interface wlan0
Sep  1 18:02:16 sprawl NetworkManager[1398]: <warn>  [1630512136.8905] dhcp-listener: dhcp-event: (pid 2993) unhandled DHCP event for interface wlan0
Sep  1 18:02:16 sprawl NetworkManager[1398]: <warn>  [1630512136.8956] dhcp-listener: dhcp-event: (pid 2993) unhandled DHCP event for interface wlan0
Sep  1 18:02:19 sprawl dhcpcd[2998]: ps_ctl_dispatch: cannot handle another client
EDIT: the last error seems caused by this line of code https://github.com/NetworkConfigurat...control.c#L142 , in a file containing functions related to privilege separation control.

In order to get it back working i have to:

Code:
/etc/rc.d/rc.networkmanager stop
killall -9 dhcpcd
/etc/rc.d/rc.networkmanager start

Last edited by ctrlaltca; 09-01-2021 at 11:14 AM.
 
3 members found this post helpful.
Old 09-01-2021, 11:25 AM   #3
marav
LQ Sage
 
Registered: Sep 2018
Location: Gironde
Distribution: Slackware
Posts: 5,355

Rep: Reputation: 4067Reputation: 4067Reputation: 4067Reputation: 4067Reputation: 4067Reputation: 4067Reputation: 4067Reputation: 4067Reputation: 4067Reputation: 4067Reputation: 4067
Quote:
Originally Posted by ctrlaltca View Post
I am experiencing the same issue.

After a resume i see the following processes running:
Code:
dhcpcd    2993  0.0  0.0   3080  2580 ?        S    09:26   0:00 dhcpcd: wlan0 [ip4]
root      2998  0.0  0.0   3004  1968 ?        S    09:26   0:00 dhcpcd: [privileged actioneer] wlan0 [ip4]
dhcpcd    2999  0.0  0.0   2992   288 ?        S    09:26   0:00 dhcpcd: [control proxy] wlan0 [ip4]
dhcpcd   10199  0.0  0.0   3004   308 ?        S    18:02   0:00 dhcpcd: [BPF ARP] wlan0 192.168.1.104
dhcpcd   10200  0.0  0.0   3004   308 ?        S    18:02   0:00 dhcpcd: [BPF BOOTP] wlan0
Some of them are started at 09:26 (bootup time), some others at 18:02 (resume time).

The following messages are printed in syslog:
Code:
Sep  1 18:02:14 sprawl NetworkManager[1398]: <warn>  [1630512134.1552] device (wlan0): Activation: failed for connection 'offinf'
Sep  1 18:02:14 sprawl NetworkManager[1398]: <warn>  [1630512134.1587] dhcp-listener: dhcp-event: (pid 2993) unhandled DHCP event for interface wlan0
Sep  1 18:02:14 sprawl NetworkManager[1398]: <warn>  [1630512134.1621] dhcp-listener: dhcp-event: (pid 2993) unhandled DHCP event for interface wlan0
Sep  1 18:02:14 sprawl NetworkManager[1398]: <warn>  [1630512134.1679] dhcp-listener: dhcp-event: (pid 2993) unhandled DHCP event for interface wlan0
Sep  1 18:02:16 sprawl NetworkManager[1398]: <warn>  [1630512136.8853] dhcp-listener: dhcp-event: (pid 2993) unhandled DHCP event for interface wlan0
Sep  1 18:02:16 sprawl NetworkManager[1398]: <warn>  [1630512136.8905] dhcp-listener: dhcp-event: (pid 2993) unhandled DHCP event for interface wlan0
Sep  1 18:02:16 sprawl NetworkManager[1398]: <warn>  [1630512136.8956] dhcp-listener: dhcp-event: (pid 2993) unhandled DHCP event for interface wlan0
Sep  1 18:02:19 sprawl dhcpcd[2998]: ps_ctl_dispatch: cannot handle another client
EDIT: the last error seems caused by this line of code https://github.com/NetworkConfigurat...control.c#L142 , in a file containing functions related to privilege separation control.

In order to get it back working i have to:

Code:
/etc/rc.d/rc.networkmanager stop
killall -9 dhcpcd
/etc/rc.d/rc.networkmanager start
I also observe this behavior
But only with the Xwayland session
No problem under X11 session

Last edited by marav; 09-01-2021 at 11:27 AM.
 
Old 09-01-2021, 11:30 AM   #4
pghvlaans
Member
 
Registered: Jan 2021
Distribution: Slackware64 {15.0,-current}, FreeBSD, stuff on QEMU
Posts: 451

Original Poster
Rep: Reputation: 363Reputation: 363Reputation: 363Reputation: 363
Quote:
Originally Posted by ctrlaltca View Post
In order to get it back working i have to:

Code:
/etc/rc.d/rc.networkmanager stop
killall -9 dhcpcd
/etc/rc.d/rc.networkmanager start
Ah, that seems to work. Thank you! I assume the addition of the new user was done for a reason, so I'll make that an alias for now.
 
1 members found this post helpful.
Old 09-01-2021, 11:36 AM   #5
ctrlaltca
Member
 
Registered: May 2019
Location: Italy
Distribution: Slackware
Posts: 323

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
It seems like networkmanager doesn't kill the old dhcpcd while suspending, and after resume it tried to start a new client that fails since another instance of dhcpcd is already rinning.
Changing the dhcp client used by networkmanager in /etc/NetworkManager/conf.d/00-dhcp-client.conf could workaround this, but i suppose that there's a root cause that needs proper fixing here.
It's not really solved yet.

EDIT: i can confirm that setting "dhcp=internal" in /etc/NetworkManager/conf.d/00-dhcp-client.conf is a workaround for the problem

Last edited by ctrlaltca; 09-01-2021 at 11:53 AM.
 
4 members found this post helpful.
Old 09-01-2021, 12:17 PM   #6
pghvlaans
Member
 
Registered: Jan 2021
Distribution: Slackware64 {15.0,-current}, FreeBSD, stuff on QEMU
Posts: 451

Original Poster
Rep: Reputation: 363Reputation: 363Reputation: 363Reputation: 363
"dhcp=internal" is working here as well.
 
Old 09-01-2021, 01:55 PM   #7
marnold
Member
 
Registered: Dec 2005
Distribution: Slackware64 15.0 Multilib
Posts: 313

Rep: Reputation: 52
Phew! Glad I'm not the only one. I ended up rebooting to get my network back. Rather...inelegant.

Quote:
Originally Posted by ctrlaltca View Post
EDIT: i can confirm that setting "dhcp=internal" in /etc/NetworkManager/conf.d/00-dhcp-client.conf is a workaround for the problem
Glad there's a temporary workaround! What is that line actually instructing NetworkManager to do? Will that be A Bad Thing when a patch is released?
 
Old 09-01-2021, 02:24 PM   #8
ctrlaltca
Member
 
Registered: May 2019
Location: Italy
Distribution: Slackware
Posts: 323

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
Network manager can use different methods to get an ip address using dhcp:
1. using the external program dhcpcd
2. using the external program dhclient
3. using an internal implementation in networkmanager

The networkmanager guys recommend using option 3, but Slackware defaults to option 1 since it's the same dhcp used by rc init scripts.
Since the problem here seems to be interaction between networkmanager and dhcpcd, switching to the internal implementation avoids the problem.
If you switch to using option 3, even if the main problem gets a patch in Slackware, you won't probably notice.
 
2 members found this post helpful.
Old 09-02-2021, 03:41 AM   #9
jostber
Member
 
Registered: Jul 2001
Location: Skien, Norway
Distribution: Slackware Current 64-bit
Posts: 543

Rep: Reputation: 178Reputation: 178
I had the same problem at the Aug 31 update. Thanks for the dhcp=internal solution.
 
Old 09-02-2021, 05:41 AM   #10
alex14641
Member
 
Registered: Feb 2016
Distribution: Slackware64_14.2, Slackware 15.0, Slackware64_current
Posts: 321

Rep: Reputation: Disabled
Just out of curiosity: when this problem occurs, do all the name servers in your /etc/resolv.conf have IPv6 addresses?
 
Old 09-02-2021, 10:30 AM   #11
pghvlaans
Member
 
Registered: Jan 2021
Distribution: Slackware64 {15.0,-current}, FreeBSD, stuff on QEMU
Posts: 451

Original Poster
Rep: Reputation: 363Reputation: 363Reputation: 363Reputation: 363
Mine just disappeared, but I didn't have anything IPv6 to begin with.
 
Old 09-02-2021, 11:22 AM   #12
Chuck56
Member
 
Registered: Dec 2006
Location: Colorado, USA
Distribution: Slackware
Posts: 930

Rep: Reputation: 479Reputation: 479Reputation: 479Reputation: 479Reputation: 479
Good thread! I think I have a related challenge. I have the same syslog error messages on a remote gateway running -current.

It started July 20th after a full run with slackpkg over an openvpn connection. Based on the logs it looks like I rebooted the gateway then a couple hours later NetworkManager lost connectivity with an error "wlan0: failed to renew DHCP". The interface cascades multiple errors then fails with a loss of network. I've been physically at the location a couple times & have to hard boot the gateway to regain functionality. The error process starts over again and is currently not responding remotely.

The gateway manages eth0 with an inet1.conf static IP. NM ignores eth0 using the unmanaged-devices setting in NetworkManager.conf. It also has an on demand tun0 when the openvpn connection is activated. Both of those interfaces seem to run as expected.

I'm going to try the dhcp=internal setting to see if that corrects the NM dhcp error messages and stabilizes wlan0 over the weekend.

Fingers crossed!
 
Old 09-03-2021, 10:11 AM   #13
chrisretusn
Senior Member
 
Registered: Dec 2005
Location: Philippines
Distribution: Slackware64-current
Posts: 2,969

Rep: Reputation: 1548Reputation: 1548Reputation: 1548Reputation: 1548Reputation: 1548Reputation: 1548Reputation: 1548Reputation: 1548Reputation: 1548Reputation: 1548Reputation: 1548
Well glad to hear I'm not the lone stranger. Had this issue with my laptop that I hibernate. I tried the dhcp=internal setting, it does not work for me. I still have to reboot or:
Code:
/etc/rc.d/rc.networkmanager stop
killall -9 dhcpcd
/etc/rc.d/rc.networkmanager start
 
1 members found this post helpful.
Old 09-03-2021, 04:17 PM   #14
Chuck56
Member
 
Registered: Dec 2006
Location: Colorado, USA
Distribution: Slackware
Posts: 930

Rep: Reputation: 479Reputation: 479Reputation: 479Reputation: 479Reputation: 479
Quote:
Originally Posted by Chuck56 View Post
...I'm going to try the dhcp=internal setting to see if that corrects the NM dhcp error messages and stabilizes wlan0 over the weekend...
Happy to report it's working for my remote gateway. I'll continue to monitor just in case.
 
Old 09-05-2021, 04:10 AM   #15
brobr
Member
 
Registered: Oct 2003
Location: uk
Distribution: Slackware
Posts: 974

Rep: Reputation: 238Reputation: 238Reputation: 238
Hi, got this as well the other day; seems not have changed by setting "dhcp=internal".
After recompiling the NetworkManager modules from SBo I had for various vpn methods, the wifi can connect again after resume on my box. Maybe I am not the only one forgetting to recompile such modules after an upgrade even it might be the obvious thing to do.

EDIT: red herring; sorry. Resume still cannot restore wifi irrespective of dhcp= setting.

Last edited by brobr; 09-05-2021 at 03:47 PM.
 
  


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
#WIFI IP Loss - #Ubuntu #Zesty fails to obtain #IP when logged to #Router via WIFI tarant8l Linux - Wireless Networking 1 10-05-2017 08:07 AM
Loss Of Network Connection After Power Loss etpoole60 Linux - Networking 4 11-02-2014 07:55 PM
Loss Of Network Connection After Power Loss etpoole60 Linux - Virtualization and Cloud 2 10-27-2014 03:14 PM
Network Connection Loss And USB Connection Loss. Novatian Linux - Desktop 1 11-07-2008 02:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 08:40 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