[Solved] Unable to configure WiFi

Kernels & Hardware, configuring network, installing services

[Solved] Unable to configure WiFi

Postby dpc25 » 2018-12-21 12:53

Hi all,

I'm trying to set up WiFi on my laptop (running Debian 9.6) and just can't seem to make any progress. I've come across a fair number of similar threads across the Internet but none of the methods described are working for me.
I installed Debian using the non-free/cd-including-firmware image, so that I could find the firmware for my particular WiFi adapter, but that doesn't seem to have helped.

So, some (hopefully) relevant info:
The hardware is 'GIGABIT LAN & WIRELESS INTEL® AC-9260 M.2 (1.73Gbps, 802.11AC) +BT 5.0'

Code: Select all
lspci | tail -3
01:00.0 Network controller: Intel Corporation Device 2526 (rev 29)
02:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTL8411B PCI Express Card Reader (rev 01)
02:00.1 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 12)


I downloaded the driver from Realtek (0012-r8168-8.046.00), ran the autorun shell script, which seemed to complete successfully.
Various sources online stated a need to blacklist r8169, which I have done using
Code: Select all
sudo sh -c 'echo blacklist r8169 >> /etc/modprobe.d/blacklist.conf'


Some more things:
Code: Select all
lsmod | grep r8168
r8168                 487424  0


Code: Select all
sudo iwconfig
lo        no wireless extensions.

enp2s0f1  no wireless extensions.


Code: Select all
sudo ethtool -i enp2s0f1
driver: r8168
version: 8.043.02-NAPI
firmware-version:
expansion-rom-version:
bus-info: 0000:02:00.1
supports-statistics: yes
supports-test: no
supports-eeprom-access: no
supports-register-dump: yes
supports-priv-flags: no


I don't even have a Wireless Connection option in the Network settings.
At this point I just don't know how to proceed, so any help would be appreciated.

Cheers!
Last edited by dpc25 on 2018-12-24 15:50, edited 1 time in total.
dpc25
 
Posts: 8
Joined: 2018-12-21 11:43

Re: Unable to configure WiFi

Postby arochester » 2018-12-21 13:13

I downloaded the driver from Realtek


That's the Ethernet.

The wifi is
Network controller: Intel Corporation Device 2526 (rev 29)


Install firmware-iwlwifi.
arochester
 
Posts: 1367
Joined: 2010-12-07 19:55

Re: Unable to configure WiFi

Postby dpc25 » 2018-12-21 13:51

arochester wrote:
I downloaded the driver from Realtek


That's the Ethernet.

The wifi is
Network controller: Intel Corporation Device 2526 (rev 29)


Install firmware-iwlwifi.


OK, thanks for pointing that out.
I've installed firmware-iwlwifi, rebooted, still can't make any progress though.

'ip a' lists two devices: lo and enp2s0f1. Should there not be wlan0?
dpc25
 
Posts: 8
Joined: 2018-12-21 11:43

Re: Unable to configure WiFi

Postby bw123 » 2018-12-21 14:13

Lokks like 9260 firmware isn't in stretch, it's in stretch-backports. See if this is the right one? You might need the newer kernel too?

Let people know, thanks!
https://packages.debian.org/stretch-bac ... re-iwlwifi
Code: Select all
* Intel Wireless 9260 firmware, version 34.ba501b11.0
   (iwlwifi-9260-th-b0-jf-b0-34.ucode)
 * Intel Wireless 9260 firmware, version 38.c0e03d94.0
   (iwlwifi-9260-th-b0-jf-b0-38.ucode)

https://backports.debian.org/Instructions/
User avatar
bw123
 
Posts: 3678
Joined: 2011-05-09 06:02
Location: TN_USA

Re: Unable to configure WiFi

Postby dpc25 » 2018-12-21 14:41

bw123 wrote:Lokks like 9260 firmware isn't in stretch, it's in stretch-backports. See if this is the right one? You might need the newer kernel too?

Let people know, thanks!
https://packages.debian.org/stretch-bac ... re-iwlwifi
Code: Select all
* Intel Wireless 9260 firmware, version 34.ba501b11.0
   (iwlwifi-9260-th-b0-jf-b0-34.ucode)
 * Intel Wireless 9260 firmware, version 38.c0e03d94.0
   (iwlwifi-9260-th-b0-jf-b0-38.ucode)

https://backports.debian.org/Instructions/


Thanks for the suggestion. I've followed the instructions to install the backport package firmware-iwlwifi, but it doesn't seem to have helped.

My kernel version is 4.9.0-8-amd64
dpc25
 
Posts: 8
Joined: 2018-12-21 11:43

Re: Unable to configure WiFi

Postby bw123 » 2018-12-21 14:51

you can look in /lib/firmware and confirm the right files are present. Use dmesg to see that is loaded or if kernel is asking for another file, use apt policy to confirm the right pkg is installed.

my device uses different firmware, and I only need one file so I don;t use the whole pkg.

example:
Code: Select all
$ ls /lib/firmware/iwlwifi-5*
/lib/firmware/iwlwifi-5000-5.ucode
# dmesg | grep -i firmware
[140861.571639] (NULL device *): firmware: direct-loading firmware iwlwifi-5000-5.ucode
$ apt policy firmware-iwlwifi
firmware-iwlwifi:
  Installed: (none)
  Candidate: (none)
  Version table:
User avatar
bw123
 
Posts: 3678
Joined: 2011-05-09 06:02
Location: TN_USA

Re: Unable to configure WiFi

Postby dpc25 » 2018-12-21 15:24

bw123 wrote:you can look in /lib/firmware and confirm the right files are present. Use dmesg to see that is loaded or if kernel is asking for another file, use apt policy to confirm the right pkg is installed.

my device uses different firmware, and I only need one file so I don;t use the whole pkg.

example:
Code: Select all
$ ls /lib/firmware/iwlwifi-5*
/lib/firmware/iwlwifi-5000-5.ucode
# dmesg | grep -i firmware
[140861.571639] (NULL device *): firmware: direct-loading firmware iwlwifi-5000-5.ucode
$ apt policy firmware-iwlwifi
firmware-iwlwifi:
  Installed: (none)
  Candidate: (none)
  Version table:


Thanks - that's useful to know. Here's what it returned for me:
Code: Select all
ls /lib/firmware/iwlwifi-92* -l
-rw-r--r-- 1 root root 2678092 Sep 13 11:27 /lib/firmware/iwlwifi-9260-th-b0-jf-b0-34.ucode
-rw-r--r-- 1 root root 2521412 Sep 13 11:27 /lib/firmware/iwlwifi-9260-th-b0-jf-b0-38.ucode


So the firmware is there, but doesn't seem to be doing anything.

Code: Select all
apt policy firmware-iwlwifi
firmware-iwlwifi:
  Installed: 20180825+dfsg-1~bpo9+1
  Candidate: 20180825+dfsg-1~bpo9+1
  Version table:
 *** 20180825+dfsg-1~bpo9+1 100
        100 http://ftp.uk.debian.org/debian stretch-backports/non-free amd64 Packages
        100 /var/lib/dpkg/status
     20161130-4 500
        500 http://ftp.uk.debian.org/debian stretch/non-free amd64 Packages


And then
Code: Select all
dmesg | grep -i firmware
[    0.048414] Spectre V2 : Enabling Restricted Speculation for firmware calls
[    2.919959] i915 0000:00:02.0: firmware: failed to load i915/kbl_dmc_ver1_01.bin (-2)
[    2.919963] i915 0000:00:02.0: Direct firmware load for i915/kbl_dmc_ver1_01.bin failed with error -2
[    2.919965] i915 0000:00:02.0: Failed to load DMC firmware [https://01.org/linuxgraphics/intel-linux-graphics-firmwares], disabling runtime power management.
[    2.926867] [drm] GuC firmware load skipped

Doesn't seem to contain anything relevant.
dpc25
 
Posts: 8
Joined: 2018-12-21 11:43

Re: Unable to configure WiFi

Postby bw123 » 2018-12-21 15:31

yeah it looks like the module in stable kernel does not support that, try the backported kernel whatever the latest is.
Code: Select all
# modinfo iwlwifi | grep 'iwlwifi-9'
firmware:       iwlwifi-9000-pu-a0-lc-a0--26.ucode
firmware:       iwlwifi-9260-th-a0-jf-a0--26.ucode
firmware:       iwlwifi-9000-pu-a0-jf-a0--26.ucode
# uname -a
Linux debian 4.9.0-8-amd64 #1 SMP Debian 4.9.130-2 (2018-10-27) x86_64 GNU/Linux


When you get it working can you post the hex id string so people can find it later with a search? Thank, smoething like this will get it.

Code: Select all
$ lspci -nn | grep Network
.
User avatar
bw123
 
Posts: 3678
Joined: 2011-05-09 06:02
Location: TN_USA

Re: Unable to configure WiFi

Postby dpc25 » 2018-12-21 16:16

bw123 wrote:yeah it looks like the module in stable kernel does not support that, try the backported kernel whatever the latest is.
Code: Select all
# modinfo iwlwifi | grep 'iwlwifi-9'
firmware:       iwlwifi-9000-pu-a0-lc-a0--26.ucode
firmware:       iwlwifi-9260-th-a0-jf-a0--26.ucode
firmware:       iwlwifi-9000-pu-a0-jf-a0--26.ucode
# uname -a
Linux debian 4.9.0-8-amd64 #1 SMP Debian 4.9.130-2 (2018-10-27) x86_64 GNU/Linux


Ran 'apt-get -t stretch-backports install kernel-package', all completed successfully, rebooted, still no luck...

Ugh.

Alternatively - I have a TL-WN823N USB network adapter which says 'Linux supported' on the box. When I plug it in I can see wireless networks, and attempt to connect to mine. Despite entering the correct WPA key, it always fails to connect (I also set my phone as a portable hotspot without a password and it still failed to connect). I've tried adding
Code: Select all
[device]
wifi.scan-rand-mac-address=no

to /etc/NetworkManager/NetworkManager.conf as has been suggested elsewhere, but it hasn't solved the problem.
Any ideas?
dpc25
 
Posts: 8
Joined: 2018-12-21 11:43

Re: Unable to configure WiFi

Postby bw123 » 2018-12-21 19:00

kernel-package isn't what you think, you probably want the backport of linux-image-amd64, but do some searches. Get the intel device working, if possible. Don't rush to get wireless, spend this time in the shell, using terminal an exploring things. Network-manager has issues, but it can be pretty reliable. Some people hate it, so they might tell you to explore other ways of connecting.

Take your time, I know it's frustrating but this is how you get your feet wet. I went to a lot of unnecessary trouble with wireless when I got on debian, but you know, it paid off anyway.
User avatar
bw123
 
Posts: 3678
Joined: 2011-05-09 06:02
Location: TN_USA

Re: Unable to configure WiFi

Postby stevepusser » 2018-12-21 19:48

Yes...you really need the newer linux-image (kernel) for that adapter and firmware, but you probably also need a newer graphics driver stack (Mesa libraries) from backports, along with other backports.

We just released the Stretch-based MX 18 Linux with all these backports installed by default to support the newer hardware, if you'd like to run the Live session to confirm that those will fix the issue on standard Debian:

https://archive.org/details/MX18X64

My upload, but I'm an MX Linux developer.
The MX Linux repositories: Backports galore! If we don't have something, just ask and we'll try--we like challenges. New packages: Flightgear 2018.2.2, 4.19.13 kernel, wine-staging 4.0~rc4, Stellarium 0.18.3, VLC 3.0.5, Midori 7.0
User avatar
stevepusser
 
Posts: 10433
Joined: 2009-10-06 05:53

Re: Unable to configure WiFi

Postby dpc25 » 2018-12-22 09:30

OK, so I did a quick install of Ubuntu (4.15.0-43-generic) to check that I could actually connect to WiFi. Lo and behold, I could.

Code: Select all
$ ls /lib/firmware/iwlwifi-92*
/lib/firmware/iwlwifi-9260-th-b0-jf-b0-33.ucode  /lib/firmware/iwlwifi-9260-th-b0-jf-b0-38.ucode
/lib/firmware/iwlwifi-9260-th-b0-jf-b0-34.ucode


Code: Select all
$ dmesg | grep -i firmware
[    0.028000] Spectre V2 : Enabling Restricted Speculation for firmware calls
[    1.916716] [drm] Finished loading DMC firmware i915/kbl_dmc_ver1_01.bin (v1.1)
[    4.279449] Bluetooth: hci0: Minimum firmware build 1 week 10 2014
[    4.283724] Bluetooth: hci0: Found device firmware: intel/ibt-18-16-1.sfi
[    4.303779] iwlwifi 0000:01:00.0: loaded firmware version 34.0.0 op_mode iwlmvm
[    5.529491] Bluetooth: hci0: Waiting for firmware download to complete
[    5.530409] Bluetooth: hci0: Firmware loaded in 1224801 usecs


So, does this suggest that if I install, say,
linux-image-amd64 (4.18+100~bpo9+1)
Linux for 64-bit PCs (meta-package),
with a backport containing iwlwifi-9260-th-b0-jf-b0-34.ucode that it should work?

And thanks for the suggestion stevepusser - I'll give that a try.
dpc25
 
Posts: 8
Joined: 2018-12-21 11:43

Re: Unable to configure WiFi

Postby stevepusser » 2018-12-22 22:11

Yes, but your other newer hardware may also need other packages from backports. But we don't know what you have.
The MX Linux repositories: Backports galore! If we don't have something, just ask and we'll try--we like challenges. New packages: Flightgear 2018.2.2, 4.19.13 kernel, wine-staging 4.0~rc4, Stellarium 0.18.3, VLC 3.0.5, Midori 7.0
User avatar
stevepusser
 
Posts: 10433
Joined: 2009-10-06 05:53

Re: Unable to configure WiFi

Postby dpc25 » 2018-12-24 15:50

OK, so after some time to let frustration subside, I tried again, installing backports linux-image-4.18...-amd64, then firmware-iwlwifi.
The thing I missed before was going to the advanced start-up menu to choose the kernel I wanted to boot.

Seems simple (and maybe even obvious) once you've done it successfully, but when you're used to your OS just doing seemingly basic stuff for you it seems a daunting task.
But yeah, cheers for the help guys!
dpc25
 
Posts: 8
Joined: 2018-12-21 11:43

Re: [Solved] Unable to configure WiFi

Postby stevepusser » 2018-12-24 21:02

If you install inxi and provide the output of

Code: Select all
inxi -Fxz


as a regular user, in code tags like above, we'll be able to see from the output what hardware you have, and how well it's working with the other Stretch libraries.
The MX Linux repositories: Backports galore! If we don't have something, just ask and we'll try--we like challenges. New packages: Flightgear 2018.2.2, 4.19.13 kernel, wine-staging 4.0~rc4, Stellarium 0.18.3, VLC 3.0.5, Midori 7.0
User avatar
stevepusser
 
Posts: 10433
Joined: 2009-10-06 05:53

Next

Return to System configuration

Who is online

Users browsing this forum: No registered users and 7 guests

fashionable