You are not logged in.

#1 2017-10-10 14:49:13

abdullahalam
Member
Registered: 2017-07-04
Posts: 11

WiFi Freezes System Upon Disconnection

A week back, my shutdown froze up mid-way, at the stop job for disconnecting from WiFi.

A stop job is running for Networking for netctl profile wlp3s0-alam (29s / 1min 31s)_

At first I thought it was a systemd issue, so I tried manually disconnecting from WiFi, via nm-applet as well as nmtui. Hanged up my entire system.

Then I figured it must be a Networkmanager issue. Uninstalled it, used barebones netctl. Same issue persists.

Then I figured I must've messed up some config files leading to weird conflicts. Deleted all my cache and configs. Issue persists.

Then, begrudgingly, I re installed Arch. (Kept my home partition). Surprisingly, the problem still persisted.

After that, I wiped every single file on my home partition that wasn't personal data. Every .folder, every .file. Wiped the root, made an absolute fresh install.

The only packages installed are:

base base-devel dialog wpa_supplicant

So now, an absolute barebones installation.

Without connecting to any network, running ip link shows the wifi interface to be DOWN as expected.

Then, I connect to my home network using

wifi-menu

ping google.com retrieves data as expected, internet is fine. Interestingly, the wifi interface's state is now DORMANT.

#ip link
3: wlp3s0: <BROADCAST, MULTICAST, UP, LOWER_UP> mtu 1500 qdisc wq state UP mode DORMANT group default qlen 1000

Now, attempting to disable the profile, to disconnect from the WiFi, or even the set the state of the WiFi interface to DOWN, hangs up the system. No errors. It just sits there frozen.

#netctl stop-all

I can Ctrl+C out of it, but everything becomes unstable. The keyboard randomly becomes unresponsive. It's weird.

Final call. Could be a hardware issue. I switch to Windows. Everything works fine. Connecting, disconnecting from WiFi, turning it on/off, shutdown/startup, it works perfectly.

I googled, looked around, even checked Arch's news for known changes or bugs. Can't seem to find anything.

EDIT: Added code blocks for outputs instead of images.

Last edited by abdullahalam (2017-10-10 16:11:07)

Offline

#2 2017-10-10 15:08:39

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: WiFi Freezes System Upon Disconnection

Don't post screenshots of text output, paste the actual text: https://wiki.archlinux.org/index.php/Co … s_and_code


Connect manually and that should produce more interesting output. Also, include details of your card and driver (and kernel), including version numbers.



Moving to NC...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2017-10-10 16:28:04

seth
Member
Registered: 2012-09-03
Posts: 49,977

Re: WiFi Freezes System Upon Disconnection

https://bugs.archlinux.org/task/55645

Semi related:
* Don't use multiple network managing services at the same time (pick netctl XOR networkmanager XOR wicd XOR whatever) and
* REINSTALLATION FIXES NOTHING ON A DETERMINISTIC SYSTEM!
   You now write this down 1000 times (and don't you dare to copy and paste) and think what that means for systems where re-installation can fix things ... tongue

Online

#4 2017-10-10 17:02:47

abdullahalam
Member
Registered: 2017-07-04
Posts: 11

Re: WiFi Freezes System Upon Disconnection

Right, as per suggestions, I used wpa_supplicant to manually connect to my network:

# wpa_supplicant -B -i interface -c <(wpa_passphrase ssid passphrase)
Successfully initialized wpa_supplicant

#dhcpcd wlp3s0
---
wlp3s0: soliciting an IPv6 router
wlp3s0: rebinding lease of 192.168.0.102
wlp3s0: probing address 192.168.0.102/24
wlp3s0: leased 192.168.0.102 for 7200 seconds
wlp3s0: adding route to 192.168.0.102/24
wlp3s0: adding default route via 192.168.0.1
forked to background, child pid 381
#

Again, internet works after this. Still, when I shutdown, it hangs up.

A stop job is running for Session c1 of user root (12s / 1min 30s)_

Offline

#5 2017-10-10 17:04:47

seth
Member
Registered: 2012-09-03
Posts: 49,977

Re: WiFi Freezes System Upon Disconnection

Did you see the linked bug? Does it work with eg. the lts kernel?

Online

#6 2017-10-10 17:06:32

abdullahalam
Member
Registered: 2017-07-04
Posts: 11

Re: WiFi Freezes System Upon Disconnection

seth wrote:

Don't use multiple network managing services at the same time (pick netctl XOR networkmanager XOR wicd XOR whatever)

I am aware of this. It's the first thing I made sure to check.

seth wrote:

REINSTALLATION FIXES NOTHING ON A DETERMINISTIC SYSTEM!

Haha... I reinstalled so that any stupid packages I may have installed, or unneeded units that I might have left enabled get reset. You are absolutely right though; reinstalling arch was a stupid move.

Offline

#7 2017-10-10 17:09:30

abdullahalam
Member
Registered: 2017-07-04
Posts: 11

Re: WiFi Freezes System Upon Disconnection

seth wrote:

Did you see the linked bug? Does it work with eg. the lts kernel?

No, I did not. The bug seems unrelated... It's not the shutdown itself hanging up, it's the inability of WiFi to disconnect. The shutdown hanging up is just a symptom of this problem.

EDIT: I did check it out... I meant I did not try the lts kernel.

Last edited by abdullahalam (2017-10-10 17:10:07)

Offline

#8 2017-10-10 17:13:54

seth
Member
Registered: 2012-09-03
Posts: 49,977

Re: WiFi Freezes System Upon Disconnection

This is about failing network deactivation - see eg. https://bbs.archlinux.org/viewtopic.php?id=230433

Online

Board footer

Powered by FluxBB