NetworkManager do not work with iwlwifi / Intel Wireless 8265 / 8275

Hello,

I cannot use wifi on my Lenovo Miix 720 Laptop. After boot wifi is disabled and if I enable wifi it scan inside yast but not in NetworkManager-Applet. Outside of yast I can not use wifi. I have the suspicion that it is maybe a root/user-problem (permission). But /usr/sbin/iwlist scan works great without root-access.

Here any terminal stuff:


➜  ~ inxi -n             
Resuming in non X mode: xdpyinfo not found. For package install advice run: inxi --recommends
Network:   Card: Intel Wireless 8265 / 8275 driver: iwlwifi
           IF: wlp59s0 state: down mac: 06:51:ed:f7:57:e7
➜  ~ dmesg | grep iwlwifi     
   93.463990] iwlwifi 0000:3b:00.0: enabling device (0000 -> 0002)
   93.471169] iwlwifi 0000:3b:00.0: loaded firmware version 36.e91976c0.0 op_mode iwlmvm
   93.538096] iwlwifi 0000:3b:00.0: Detected Intel(R) Dual Band Wireless AC 8265, REV=0x230
   93.596173] iwlwifi 0000:3b:00.0: base HW address: 00:28:f8:5c:45:fe
   93.698065] iwlwifi 0000:3b:00.0 wlp59s0: renamed from wlan0
➜  ~ /usr/sbin/iwconfig                     
lo        no wireless extensions.

docker0   no wireless extensions.

wlp59s0   IEEE 802.11  ESSID:off/any  
          Mode:Managed  Access Point: Not-Associated   Tx-Power=0 dBm   
          Retry short limit:7   RTS thr:off   Fragment thr:off
          Power Management:on
          
➜  ~ sudo /usr/sbin/iwlist scan    
[sudo] Passwort für root: 
lo        Interface doesn't support scanning.

docker0   Interface doesn't support scanning.

wlp59s0   Interface doesn't support scanning : Network is down

➜  ~ sudo ip link set wlp59s0 up            
➜  ~ sudo /usr/sbin/iwlist scan 
lo        Interface doesn't support scanning.

docker0   Interface doesn't support scanning.

wlp59s0   No scan results

➜  ~ ls /lib/firmware/iwlwifi*         
/lib/firmware/iwlwifi-1000-3.ucode   /lib/firmware/iwlwifi-3945-2.ucode     /lib/firmware/iwlwifi-7260-8.ucode    /lib/firmware/iwlwifi-8000C-16.ucode
/lib/firmware/iwlwifi-1000-5.ucode   /lib/firmware/iwlwifi-4965-2.ucode     /lib/firmware/iwlwifi-7260-9.ucode    /lib/firmware/iwlwifi-8000C-21.ucode
/lib/firmware/iwlwifi-100-5.ucode    /lib/firmware/iwlwifi-5000-1.ucode     /lib/firmware/iwlwifi-7265-10.ucode   /lib/firmware/iwlwifi-8000C-22.ucode
/lib/firmware/iwlwifi-105-6.ucode    /lib/firmware/iwlwifi-5000-2.ucode     /lib/firmware/iwlwifi-7265-12.ucode   /lib/firmware/iwlwifi-8000C-27.ucode
/lib/firmware/iwlwifi-135-6.ucode    /lib/firmware/iwlwifi-5000-5.ucode     /lib/firmware/iwlwifi-7265-13.ucode   /lib/firmware/iwlwifi-8000C-31.ucode
/lib/firmware/iwlwifi-2000-6.ucode   /lib/firmware/iwlwifi-5150-2.ucode     /lib/firmware/iwlwifi-7265-16.ucode   /lib/firmware/iwlwifi-8000C-34.ucode
/lib/firmware/iwlwifi-2030-6.ucode   /lib/firmware/iwlwifi-6000-4.ucode     /lib/firmware/iwlwifi-7265-17.ucode   /lib/firmware/iwlwifi-8000C-36.ucode
/lib/firmware/iwlwifi-3160-10.ucode  /lib/firmware/iwlwifi-6000g2a-5.ucode  /lib/firmware/iwlwifi-7265-8.ucode    /lib/firmware/iwlwifi-8265-21.ucode
/lib/firmware/iwlwifi-3160-12.ucode  /lib/firmware/iwlwifi-6000g2a-6.ucode  /lib/firmware/iwlwifi-7265-9.ucode    /lib/firmware/iwlwifi-8265-22.ucode
/lib/firmware/iwlwifi-3160-13.ucode  /lib/firmware/iwlwifi-6000g2b-5.ucode  /lib/firmware/iwlwifi-7265D-10.ucode  /lib/firmware/iwlwifi-8265-27.ucode
/lib/firmware/iwlwifi-3160-16.ucode  /lib/firmware/iwlwifi-6000g2b-6.ucode  /lib/firmware/iwlwifi-7265D-12.ucode  /lib/firmware/iwlwifi-8265-31.ucode
/lib/firmware/iwlwifi-3160-17.ucode  /lib/firmware/iwlwifi-6050-4.ucode     /lib/firmware/iwlwifi-7265D-13.ucode  /lib/firmware/iwlwifi-8265-34.ucode
/lib/firmware/iwlwifi-3160-7.ucode   /lib/firmware/iwlwifi-6050-5.ucode     /lib/firmware/iwlwifi-7265D-16.ucode  /lib/firmware/iwlwifi-8265-36.ucode
/lib/firmware/iwlwifi-3160-8.ucode   /lib/firmware/iwlwifi-7260-10.ucode    /lib/firmware/iwlwifi-7265D-17.ucode  /lib/firmware/iwlwifi-9000-pu-b0-jf-b0-33.ucode
/lib/firmware/iwlwifi-3160-9.ucode   /lib/firmware/iwlwifi-7260-12.ucode    /lib/firmware/iwlwifi-7265D-21.ucode  /lib/firmware/iwlwifi-9000-pu-b0-jf-b0-34.ucode
/lib/firmware/iwlwifi-3168-21.ucode  /lib/firmware/iwlwifi-7260-13.ucode    /lib/firmware/iwlwifi-7265D-22.ucode  /lib/firmware/iwlwifi-9000-pu-b0-jf-b0-38.ucode
/lib/firmware/iwlwifi-3168-22.ucode  /lib/firmware/iwlwifi-7260-16.ucode    /lib/firmware/iwlwifi-7265D-27.ucode  /lib/firmware/iwlwifi-9260-th-b0-jf-b0-33.ucode
/lib/firmware/iwlwifi-3168-27.ucode  /lib/firmware/iwlwifi-7260-17.ucode    /lib/firmware/iwlwifi-7265D-29.ucode  /lib/firmware/iwlwifi-9260-th-b0-jf-b0-34.ucode
/lib/firmware/iwlwifi-3168-29.ucode  /lib/firmware/iwlwifi-7260-7.ucode     /lib/firmware/iwlwifi-8000C-13.ucode  /lib/firmware/iwlwifi-9260-th-b0-jf-b0-38.ucode
➜  ~ /usr/sbin/iwlist scan 
enp0s20f0u3u1i5  Interface doesn't support scanning.

lo        Interface doesn't support scanning.

docker0   Interface doesn't support scanning.

wlp59s0   Scan completed :
          Cell 01 - Address: 5C:50:15:36:59:E0
                    Channel:11
                    Frequency:2.462 GHz (Channel 11)
                    Quality=30/70  Signal level=-80 dBm  
                    Encryption key:off
...
...
...
➜  ~ sudo zypper search kernel-firmware
Repository-Daten werden geladen...
Installierte Pakete werden gelesen...

S | Name            | Zusammenfassung             | Typ  
--+-----------------+-----------------------------+------
i | kernel-firmware | Linux kernel firmware files | Paket

What can I do now?

Thanks in advance,
Björn

For a better handle on this report back with the output of the following…

nmcli d
nmcli g
nmcli dev wifi list

Check that the wpa_suuplicant service is active (no errors?)

systemctl status wpa_supplicant

Here ths outputs:


➜  ~ nmcli d                                   
DEVICE           TYPE      STATE            CONNECTION                  
enp0s20f0u3u1i5  ethernet  verbunden        Kabelgebundene Verbindung 1 
br-e93625ead822  bridge    verbunden        br-e93625ead822             
docker0          bridge    verbunden        docker0                     
wlp59s0          wifi      nicht verfügbar  --                          
lo               loopback  nicht verwaltet  --                          
➜  ~ nmcli g                                   
STATE      CONNECTIVITY  WIFI-HW    WIFI         WWAN-HW    WWAN      
verbunden  vollständig   aktiviert  deaktiviert  aktiviert  aktiviert 
➜  ~ nmcli dev wifi list                       
IN-USE  SSID  MODE  CHAN  RATE  SIGNAL  BARS  SECURITY 

Output of systemctl status wpa_supplicant:


● wpa_supplicant.service - WPA Supplicant daemon
   Loaded: loaded (/usr/lib/systemd/system/wpa_supplicant.service; disabled; vendor preset: disabled)
   Active: active (running) since Thu 2018-05-31 12:49:32 CEST; 5min ago
 Main PID: 1820 (wpa_supplicant)
    Tasks: 1 (limit: 4915)
   CGroup: /system.slice/wpa_supplicant.service
           └─1820 /usr/sbin/wpa_supplicant -c /etc/wpa_supplicant/wpa_supplicant.conf -u -f /var/log/wpa_supplicant.log


Post:

rfkill list all

➜  ~ sudo rfkill list all
0: ideapad_wlan: Wireless LAN
    Soft blocked: no
    Hard blocked: yes
1: ideapad_bluetooth: Bluetooth
    Soft blocked: yes
    Hard blocked: yes
2: phy0: Wireless LAN
    Soft blocked: no
    Hard blocked: no
6: hci0: Bluetooth
    Soft blocked: yes
    Hard blocked: no

Do you have a button to enable Wlan?

On the keyboard, I have a Airplane button.

I push the button and after that:


➜  ~ sudo rfkill list all
0: ideapad_wlan: Wireless LAN
    Soft blocked: yes
    Hard blocked: yes
1: ideapad_bluetooth: Bluetooth
    Soft blocked: yes
    Hard blocked: yes
2: phy0: Wireless LAN
    Soft blocked: yes
    Hard blocked: no
6: hci0: Bluetooth
    Soft blocked: yes
    Hard blocked: no

I push the button again:


➜  ~ sudo rfkill list all
0: ideapad_wlan: Wireless LAN
    Soft blocked: no
    Hard blocked: yes
1: ideapad_bluetooth: Bluetooth
    Soft blocked: no
    Hard blocked: yes
2: phy0: Wireless LAN
    Soft blocked: no
    Hard blocked: no
6: hci0: Bluetooth
    Soft blocked: no
    Hard blocked: no

Another hardware button is not available.

Reboot, goto Bios, reset the Bios to default, save and exit.

Not successful. Same output from rfkill.

Look in /etc/modprobe.d/

I assume this is using the iwlwifi module. If not, modify as needed.

There should be a file ending in iwlwifi.conf. Please post that.

Also, try pressing the airplane button as the laptop boots, but before opensuse starts to load. May have to try the reboot twice if the first press turns wireless off.

You can also try:


sudo rmmod -f iwlwifi
sudo rfkill unblock all
sudo modprobe iwlwifi

If none of that works post:


modinfo iwlwifi

I have blacklisted the module ideapad_laptop. Now wifi and bluetooth works. I don’t know for what is the usage for this module. In the description contains this: IdeaPad ACPI Extras

echo "blacklist ideapad-laptop" | sudo tee /etc/modprobe.d/ideapad-laptop.conf

Thanks at all

No, this module will be loaded at boot regardless of whether such a file exists. Configurations files in the /etc/modprobe.d/ directory are used to pass module particular module options when necessary to udev, (which uses modprobe to manage the loading of the modules at boot).

BTW, the rfkill utility can only control soft-blocking not hard-blocking. The latter implies that the hardware has been switched off or disabled a a system level (eg via a hardware switch or BIOS).

Good find. That module is to handle hotkeys for some Lenovo Ideapad laptops…

https://lwn.net/Articles/400033/

Thanks. Hotkeys works fine without this module, too.