You are not logged in.

#26 2021-07-06 11:25:27

seth
Member
Registered: 2012-09-03
Posts: 51,316

Re: KDE, wireless is deactivated

Still same issue. I'd bet your right arm that there's a hibernating windows…

The kernel module is auto-added w/ the system starting up and crashes, try

#!/bin/sh

# NAME: /lib/systemd/system-sleep/iwlwifi-reset
# DESC: Resets Intel WiFi which can be flakey after a long suspend.
# DATE: Apr 1, 2017. Modified August 30, 2017 & July 2021
# https://bbs.archlinux.org/viewtopic.php?pid=1981280

MYNAME=$0

stop_wifi() {
    /usr/bin/logger $MYNAME 'restart_wifi BEGIN'
    /usr/bin/systemctl stop NetworkManager.service
    /sbin/modprobe -v -r iwldvm # This removes iwlwifi too
}

start_wifi() {
    /sbin/modprobe -v -r iwldvm # This removes iwlwifi too <==== this line is new ===================
    /sbin/modprobe -v iwlwifi   # This starts iwldvm too
    /usr/bin/systemctl start NetworkManager.service
    /usr/bin/logger 'systemctl restart NetworkManager.service (SUPPRESSED)'
    /usr/bin/logger $MYNAME 'restart_wifi END'
}

/usr/bin/logger $MYNAME 'case=[' ${1}' ]'
case "${1}/${2}" in
    hibernate|suspend|pre*)
      stop_wifi;;
    resume|thaw|post*)
      start_wifi;;
esac

Offline

Board footer

Powered by FluxBB