You are not logged in.

#1 2021-09-25 09:13:35

papa6
Member
Registered: 2013-02-26
Posts: 26

[solved] NetworkManager seems to disable wifi, even with rfkill use

Hello everybody smile !

I've been working for months or years on a regular wifi network, using NetworkManager.
But yesterday, suddenly, the wifi was soft blocked, as rfkill shows.

As mentioned in an old post https://bbs.archlinux.org/viewtopic.php … 0#p1324810 hp_wmi was already blacklisted on my computer.
I "rfkill unblock all", rebooted, checked that wifi was unblocked (and it was), and then I started NM:

sudo systemctl start NetworkManager

(In order to find what's going wrong, I've disabled NM at the start, and I launch it manually)
The NM status shows me NM started and running. But wifi network was unavailaible.

$ sudo systemctl status NetworkManager

● NetworkManager.service - Network Manager
     Loaded: loaded (/usr/lib/systemd/system/NetworkManager.service; disabled; vendor preset: disabled)
    Drop-In: /usr/lib/systemd/system/NetworkManager.service.d
             └─NetworkManager-ovs.conf
     Active: active (running) since Sat 2021-09-25 09:32:14 +03; 1min 23s ago
       Docs: man:NetworkManager(8)
   Main PID: 753 (NetworkManager)
      Tasks: 3 (limit: 4654)
     Memory: 3.6M
        CPU: 133ms
     CGroup: /system.slice/NetworkManager.service
             └─753 /usr/bin/NetworkManager --no-daemon

When I check with rfkill, wifi (wlp2s0) is again blocked.
Bluetooth is always unblocked but I don't use it.

$ rfkill
ID TYPE      DEVICE     SOFT     HARD
 0 bluetooth hci0   débloqué débloqué
 1 wlan      phy0     bloqué débloqué

Here are the journalctl lines (reverse order) between the moment when wifi was enabled and the moment, when NW disabled it.

sept. 25 09:25:51 monordi NetworkManager[630]: <info>  [1632551151.2306] manager: startup complete
sept. 25 09:25:49 monordi kernel: audit: type=1131 audit(1632551149.605:71): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-rfkill comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
sept. 25 09:25:49 monordi kernel: kauditd_printk_skb: 2 callbacks suppressed
sept. 25 09:25:49 monordi audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-rfkill comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
sept. 25 09:25:49 monordi systemd[1]: systemd-rfkill.service: Deactivated successfully.
sept. 25 09:25:45 monordi NetworkManager[630]: <info>  [1632551145.3194] agent-manager: agent[88f3ac6140292174,:1.12/org.freedesktop.nm-applet/1000]: agent registered
sept. 25 09:25:45 monordi dbus-daemon[318]: [system] Activation via systemd failed for unit 'dbus-org.freedesktop.nm-dispatcher.service': Unit dbus-org.freedesktop.nm-dispatcher.service not found.
sept. 25 09:25:45 monordi dbus-daemon[318]: [system] Activating via systemd: service name='org.freedesktop.nm_dispatcher' unit='dbus-org.freedesktop.nm-dispatcher.service' requested by ':1.19' (uid=0 pid=630 comm="/usr/bin/NetworkManager --no-daemon ")
sept. 25 09:25:45 monordi NetworkManager[630]: <info>  [1632551145.2846] ovsdb: disconnected from ovsdb
sept. 25 09:25:45 monordi NetworkManager[630]: <info>  [1632551145.2846] ovsdb: Impossible de se connecter : Aucun fichier ou dossier de ce type
sept. 25 09:25:45 monordi NetworkManager[630]: <info>  [1632551145.2780] manager: rfkill: Wi-Fi now disabled by radio killswitch
sept. 25 09:25:45 monordi NetworkManager[630]: <info>  [1632551145.2469] device (wlp2s0): set-hw-addr: set MAC address to 02:E7:5F:D3:37:CA (scanning)
sept. 25 09:25:45 monordi NetworkManager[630]: <info>  [1632551145.2448] device (wlp2s0): state change: unmanaged -> unavailable (reason 'managed', sys-iface-state: 'external')
sept. 25 09:25:45 monordi NetworkManager[630]: <info>  [1632551145.2425] manager: (wlp2s0): new 802.11 Wi-Fi device (/org/freedesktop/NetworkManager/Devices/3)
sept. 25 09:25:45 monordi kernel: r8169 0000:03:00.0 enp3s0: Link is Down
sept. 25 09:25:45 monordi kernel: RTL8211B Gigabit Ethernet r8169-0-300:00: attached PHY driver (mii_bus:phy_addr=r8169-0-300:00, irq=MAC)
sept. 25 09:25:45 monordi NetworkManager[630]: <info>  [1632551145.1567] device (enp3s0): state change: unmanaged -> unavailable (reason 'managed', sys-iface-state: 'external')
sept. 25 09:25:45 monordi NetworkManager[630]: <info>  [1632551145.1542] settings: (enp3s0): created default wired connection 'Connexion filaire 1'
sept. 25 09:25:45 monordi NetworkManager[630]: <info>  [1632551145.1208] manager: (enp3s0): new Ethernet device (/org/freedesktop/NetworkManager/Devices/2)
sept. 25 09:25:45 monordi NetworkManager[630]: <info>  [1632551145.1166] manager: (lo): new Generic device (/org/freedesktop/NetworkManager/Devices/1)
sept. 25 09:25:45 monordi NetworkManager[630]: <info>  [1632551145.1161] device (lo): carrier: link connected
sept. 25 09:25:44 monordi dbus-daemon[318]: [system] Activation via systemd failed for unit 'dbus-org.freedesktop.nm-dispatcher.service': Unit dbus-org.freedesktop.nm-dispatcher.service not found.
sept. 25 09:25:44 monordi dbus-daemon[318]: [system] Activating via systemd: service name='org.freedesktop.nm_dispatcher' unit='dbus-org.freedesktop.nm-dispatcher.service' requested by ':1.19' (uid=0 pid=630 comm="/usr/bin/NetworkManager --no-daemon ")
sept. 25 09:25:44 monordi NetworkManager[630]: <info>  [1632551144.7587] settings: Loaded settings plugin: keyfile (internal)
sept. 25 09:25:44 monordi NetworkManager[630]: <info>  [1632551144.7471] dhcp-init: Using DHCP client 'internal'
sept. 25 09:25:44 monordi NetworkManager[630]: <info>  [1632551144.6967] manager: Networking is enabled by state file
sept. 25 09:25:44 monordi NetworkManager[630]: <info>  [1632551144.6954] manager: rfkill: WWAN enabled by radio killswitch; enabled by state file
sept. 25 09:25:44 monordi NetworkManager[630]: <info>  [1632551144.6947] manager: rfkill: Wi-Fi enabled by radio killswitch; disabled by state file
sept. 25 09:25:44 monordi NetworkManager[630]: <info>  [1632551144.6935] Loaded device plugin: NMBluezManager (/usr/lib/NetworkManager/1.32.10-1/libnm-device-plugin-bluetooth.so)
sept. 25 09:25:44 monordi NetworkManager[630]: <info>  [1632551144.6570] Loaded device plugin: NMAtmManager (/usr/lib/NetworkManager/1.32.10-1/libnm-device-plugin-adsl.so)
sept. 25 09:25:44 monordi NetworkManager[630]: <info>  [1632551144.6405] Loaded device plugin: NMTeamFactory (/usr/lib/NetworkManager/1.32.10-1/libnm-device-plugin-team.so)
sept. 25 09:25:44 monordi NetworkManager[630]: <info>  [1632551144.5463] Loaded device plugin: NMOvsFactory (/usr/lib/NetworkManager/1.32.10-1/libnm-device-plugin-ovs.so)
sept. 25 09:25:44 monordi NetworkManager[630]: <info>  [1632551144.5077] Loaded device plugin: NMWwanFactory (/usr/lib/NetworkManager/1.32.10-1/libnm-device-plugin-wwan.so)
sept. 25 09:25:44 monordi NetworkManager[630]: <info>  [1632551144.4755] Loaded device plugin: NMWifiFactory (/usr/lib/NetworkManager/1.32.10-1/libnm-device-plugin-wifi.so)
sept. 25 09:25:44 monordi systemd[1]: Started Load/Save RF Kill Switch Status.
sept. 25 09:25:44 monordi audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-rfkill comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
sept. 25 09:25:44 monordi systemd[1]: Starting Load/Save RF Kill Switch Status...
sept. 25 09:25:44 monordi NetworkManager[630]: <info>  [1632551144.3843] manager[0x55ad487650c0]: rfkill: WWAN hardware radio set enabled
sept. 25 09:25:44 monordi NetworkManager[630]: <info>  [1632551144.3843] manager[0x55ad487650c0]: rfkill: Wi-Fi hardware radio set disabled
sept. 25 09:25:44 monordi NetworkManager[630]: <info>  [1632551144.3838] rfkill1: found Wi-Fi radio killswitch (at /sys/devices/pci0000:00/0000:00:1c.0/0000:02:00.0/ieee80211/phy0/rfkill1) (driver iwlwifi)
sept. 25 09:25:44 monordi NetworkManager[630]: <info>  [1632551144.3825] dns-mgr[0x55ad48746270]: init: dns=dnsmasq,systemd-resolved rc-manager=symlink, plugin=dnsmasq
sept. 25 09:25:44 monordi NetworkManager[630]: <info>  [1632551144.3820] hostname: hostname changed from (none) to "monordi"
sept. 25 09:25:44 monordi NetworkManager[630]: <info>  [1632551144.3820] hostname: hostname: using hostnamed
sept. 25 09:25:44 monordi systemd[1]: Started Hostname Service.
sept. 25 09:25:44 monordi audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-hostnamed comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
sept. 25 09:25:44 monordi dbus-daemon[318]: [system] Successfully activated service 'org.freedesktop.hostname1'
sept. 25 09:25:44 monordi systemd[1]: Starting Hostname Service...
sept. 25 09:25:44 monordi NetworkManager[630]: <info>  [1632551144.1824] manager[0x55ad487650c0]: monitoring kernel firmware directory '/lib/firmware'.
sept. 25 09:25:44 monordi systemd[1]: Reached target Network.

Or shorter:

sept. 25 09:32:14 monordi NetworkManager[753]: <info>  [1632551534.7254] manager: (enp3s0): new Ethernet device (/org/freedesktop/NetworkManager/Devices/2)
sept. 25 09:32:14 monordi NetworkManager[753]: <info>  [1632551534.7271] device (enp3s0): state change: unmanaged -> unavailable (reason 'managed', sys-iface-state: 'external')
sept. 25 09:32:14 monordi NetworkManager[753]: <info>  [1632551534.7309] manager: (wlp2s0): new 802.11 Wi-Fi device (/org/freedesktop/NetworkManager/Devices/3)
sept. 25 09:32:14 monordi NetworkManager[753]: <info>  [1632551534.7324] device (wlp2s0): state change: unmanaged -> unavailable (reason 'managed', sys-iface-state: 'external')
sept. 25 09:32:14 monordi NetworkManager[753]: <info>  [1632551534.7333] device (wlp2s0): set-hw-addr: set MAC address to 66:B4:8F:2B:50:FB (scanning)
sept. 25 09:32:14 monordi NetworkManager[753]: <info>  [1632551534.7386] manager: rfkill: Wi-Fi now disabled by radio killswitch
sept. 25 09:32:14 monordi NetworkManager[753]: <info>  [1632551534.7915] agent-manager: agent[5b2b05793ce2e90e,:1.12/org.freedesktop.nm-applet/1000]: agent registered
sept. 25 09:32:14 monordi NetworkManager[753]: <info>  [1632551534.7916] ovsdb: Impossible de se connecter : Aucun fichier ou dossier de ce type
sept. 25 09:32:14 monordi NetworkManager[753]: <info>  [1632551534.7917] ovsdb: disconnected from ovsdb
sept. 25 09:32:20 monordi NetworkManager[753]: <info>  [1632551540.7323] manager: startup complete

We can notice in this last code a line "manager: rfkill: Wi-Fi now disabled by radio killswitch".

If you have any idea, thank you very much !

Last edited by papa6 (2021-09-26 13:30:43)

Offline

#2 2021-09-25 21:04:34

leonavis
Member
From: Bremen, Germany
Registered: 2021-06-27
Posts: 70

Re: [solved] NetworkManager seems to disable wifi, even with rfkill use

Rather long shot, but is it mentioned in /etc/NetworkManager/NetworkManager.conf ?

I had that issue when I used my wifi as a hotspot, somehow the program put it in there and afterwards the wifi couldn't be used anymore. I don't think that's your problem, since

# echo "blacklist hp_wmi" > /etc/modprobe.d/hp.conf

shouldn't do that. Alternatively try with

# rfkill unblock 1

Although the "all" command should cover that...

Another idea would be to switch to the LTS-kernel. I have a problem on my laptop too with disabled wifi/bluetooth - HP as well - but it's quite different. Sometimes, after reboot, WLAN and bluetooth are just gone, dmesg shows they couldn't be started, seems with my issue the LTS-kernel doesn't have the problem, only the default one (with Zen-kernel having even more issues, weirdly enough).

Last edited by leonavis (2021-09-25 21:26:57)

Offline

#3 2021-09-26 08:18:09

papa6
Member
Registered: 2013-02-26
Posts: 26

Re: [solved] NetworkManager seems to disable wifi, even with rfkill use

Thank you Leonavis for your reply,
I tried what you mentioned, but hp_wmi was still blacklisted.
And the unblock 1, also as you wrote, was the same than unblock all.

The problem is with NetworkManager, because if I use systemd-networkd, I can access to the network.
I am on the arch rolling release (last kernel).

My NetworkManager release was the 1.32.10. I've launched an update. Now, NetworkManager is 1.32.12, but the problem still goes on…
Because of the update issue, I thing there is a wrong value or a wrong command written on my system by NetworkManager. But which one ? ?

Offline

#4 2021-09-26 13:29:12

papa6
Member
Registered: 2013-02-26
Posts: 26

Re: [solved] NetworkManager seems to disable wifi, even with rfkill use

Yes!
The problem was about NM, and as I've seen in the log journal, a message about radio and wifi. I don't know what kind of radio, but whatever…

On the wikipage NetworkManager, it's written:

Turn off wifi:
$ nmcli radio wifi off

So, I've tried:

$ nmcli radio wifi on

Problem solved! smile

Offline

#5 2022-09-03 07:07:31

amixra
Member
Registered: 2022-01-24
Posts: 25

Re: [solved] NetworkManager seems to disable wifi, even with rfkill use

Sorry I know bumping isn't good but I am not asking problems. Today I solved few problems occuring with my arch and just want to store them on my profile. So I am making a reply here.
Thanks!

$ nmcli dev wifi list
was listing top flags but wasn't able to scan
$ ip link
showed status DOWN which is supposed to be UP
$ rfkill list
says wifi is soft blocked
$ rfkill unblock all
$ sudo ifconfig wlp2s0 up
turns status to UNKNOWN
$ nmcli dev wifi list
still not able to list scan
$ nmcli radio all
lists WIFI as disabled
$ nmcli radio wifi on
$ nmcli dev wifi list
YAHOO! scan done


Do experiment at-least.

Offline

Board footer

Powered by FluxBB