Artix Linux Forum

Artix Linux => System => Topic started by: forged24 on 16 September 2021, 02:11:20

Title: Network Manager crashing after closing laptop (runit)
Post by: forged24 on 16 September 2021, 02:11:20
About one out of ten times I close my laptop, when I open it back up, no wireless networking is available. Instead of showing the networks around me, I just see "No Networks Available."

This is on Artix runit, tested on KDE and Cinnamon.

I tried running sv restart NetworkManager and it did nothing.
Title: Re: Network Manager crashing after closing laptop (runit)
Post by: bangy on 19 April 2024, 03:43:47
I am having this same issue whenever my laptop returns from sleep or hibernation. I'm running Runnit Artix Wayland KDE and Xserver KDE. Only reboot restores networking. Does anyone know of any other solutions?
Title: Re: Network Manager crashing after closing laptop (runit)
Post by: MorsMortium on 19 April 2024, 13:12:16
Did this happen after a recent upgrade? I am on openrc kde, and for me it started after an upgrade a day or so ago. I don't think the original poster had the same bug, if it occured after a recent upgrade. Also on openrc rc-service restart solves it, until next sleep
Title: Re: Network Manager crashing after closing laptop (runit)
Post by: forged24 on 19 April 2024, 15:21:27
Correct, like many Arch issues, this bug was squashed after waiting for a while. For the past year or so I didn't have any issues with this.

However, after upgrading to Wayland, I am having a similar issue. This one is different though. The Networks widget will open, but it won't show any networks...at all, and you can't toggle the on/off switch. The only fix I've found is to reboot. It only happens every once in a while, but still annoying enough to warrant a reply.
Title: Re: Network Manager crashing after closing laptop (runit)
Post by: statzitz on 19 April 2024, 16:02:02
Try to check Networkmanager log when the bug occurs, if it delete an interface, it maybe write it in the logs.

If you don't know how activate runit log for Networkmanager, you should make a new file `/etc/runit/sv/Networkmanager/log/run` add the exec permission to it, and put inside

Code: [Select]
#!/bin/sh
exec 2>&1; set -e

[ -d /var/log/Networkmanager ] || install -dm 755 /var/log/Networkmanager

exec svlogd -tt /var/log/Networkmanager

to do it.