You are not logged in.

#1 2015-12-12 15:07:09

Ruli
Member
Registered: 2011-10-08
Posts: 14

Intel Wireless 7265 (ThinkPad T450s) not working

Hello,

I recently bought a ThinkPad T450s, but I am having difficulty connecting through WiFi -- it worked fine using Windows 8.1/10, so it's definitely not a hardware problem.

When I run lspci -v, it shows up, but no kernel module is loaded:

03:00.0 Network controller: Intel Corporation Wireless 7265 (rev 59)
        Subsystem: Intel Corporation Dual Band Wireless-AC 7265
        Flags: bus master, fast devsel, latency 0, IRQ 9
        Memory at e1000000 (64-bit, non-prefetchable) [size=8K]
        Capabilities: [c8] Power Management version 3
        Capabilities: [d0] MSI: Enable- Count=1/1 Maskable- 64bit+
        Capabilities: [40] Express Endpoint, MSI 00
        Capabilities: [100] Advanced Error Reporting
        Capabilities: [140] Device Serial Number 60-57-18-ff-ff-80-f0-11
        Capabilities: [14c] Latency Tolerance Reporting
        Capabilities: [154] L1 PM Substates

When I run lsmod | grep iwlwifi I get nothing.

It doesn't show up in the network interfaces when I run ip link:

1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default 
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: enp0s25: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP mode DEFAULT group default qlen 1000
    link/ether 68:f7:28:7f:67:6c brd ff:ff:ff:ff:ff:ff

I read on this Ubuntu forum post here: http://ubuntuforums.org/showthread.php? … st13360069 that the problem is because the subsystem ID 8086:5212 is not yet covered in iwlwifi. I confirm that my device has this subsystem ID. How can I fix this on Arch Linux?

Any help would be greatly appreciated! Thanks in advance.

Last edited by Ruli (2015-12-12 15:09:39)

Offline

#2 2015-12-12 15:14:42

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,442
Website

Re: Intel Wireless 7265 (ThinkPad T450s) not working

The link on the ubuntu page shows a working solution.  Just make a PKGBUILD for that patched dropbox source, and it should work.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#3 2015-12-12 18:08:45

Ruli
Member
Registered: 2011-10-08
Posts: 14

Re: Intel Wireless 7265 (ThinkPad T450s) not working

Hello Trillby,

Thanks for the reply. I'm a complete newbie at creating packages... I was originally going to put my query in the Newbie section but I thought putting it here would be more appropriate. Serves me right :-)

Anyway, I've just been reading up on creating packages, and my understanding is that to follow your suggestion (i.e. "Just make a PKGBUILD for that patched dropbox source, and it should work.") in order to solve my problem, I need to:

  1. Download the backports source on DropBox

  2. Edit the appropriate source file (drv.c)

  3. Compile the patched iwlwifi driver (make clean, make defconfig-iwlwifi, make)

  4. Install the patched iwlwifi driver (make install)

  5. Create a PKGBUILD file and install the resulting package using pacman. Is that correct?

I've just tried steps 1-3 and seem to have made good progress -- there were some warnings during compilation but the process seems to have completed properly. So I'm at the stage where I can now run make install.

My newbie-ish questions are as follows:

  1. Is there a way to find out what files will be affected if I run make install above, so that I can "undo" the installation? If it replaces existing files for the iwlwifi driver, how will I be able to recover the previous files?

  2. Will using that backports source work, given that it was designed for Ubuntu/Debian? Is there a more appropriate Arch source that I should be working from instead? Please excuse my ignorance.

I'm really sorry for the newbie-ish questions... I'd like to get this right :-)

Many thanks in advance!!

Last edited by Ruli (2015-12-12 18:10:02)

Offline

#4 2015-12-12 18:24:01

jeremy31
Member
Registered: 2015-11-01
Posts: 149

Re: Intel Wireless 7265 (ThinkPad T450s) not working

Post the result of

dmesg | grep iwl; rfkill list all; lspci -nnk | grep -iA2 net

If the backports cause any issue it can be reversed by changing into the backports directory and

sudo make uninstall

The backports should make compat.ko, mac80211.ko, cfg80211.ko, and iwlwifi.ko when using defconfig-iwlwifi if I remember correctly and it affects only the current running kernel

Offline

#5 2015-12-12 18:27:53

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,442
Website

Re: Intel Wireless 7265 (ThinkPad T450s) not working

No, your steps are not quite right.

First, note that the dropbox source has already been patched (read the rest of the ubuntu thread) - so all you need to do is download and build it, you do not need to edit drv.c.

Also you do not build and install from source, then write a PKGBUILD to package it.  A PKGBUILD is a script to instruct makepkg to build and install.

For your first question, there is no universal way to undo a `make install` (some software will have a make uninstall target, but even this is not a good method).  This is why different distros have package managers just for this purpose: to manage installed packages.

Read the PKGBUILD page on the wiki.  This should be about the easiest possible PKGBUILD to write.  1) Grab a template PKGBUILD, 2) put the dropbox url into the source, 3) put the build commands in the build function, 4) put the install command in the package function.

Feel free to post a draft of a PKGBUILD if you get one together.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#6 2015-12-12 19:06:26

Ruli
Member
Registered: 2011-10-08
Posts: 14

Re: Intel Wireless 7265 (ThinkPad T450s) not working

Well, I went ahead and ran sudo make install  and rebooted. It installed the patched modules, but there doesn't seem to be any difference. The iwlwifi module is still not being loaded.

jeremy31 wrote:

Post the result of

dmesg | grep iwl; rfkill list all; lspci -nnk | grep -iA2 net

This is the output, still no kernel driver in use for the 7265:

[maruli@jura ~]$ dmesg | grep iwl; rfkill list all; lspci -nnk | grep -iA2 net
0: tpacpi_bluetooth_sw: Bluetooth
        Soft blocked: no
        Hard blocked: no
1: hci0: Bluetooth
        Soft blocked: no
        Hard blocked: no
00:19.0 Ethernet controller [0200]: Intel Corporation Ethernet Connection (3) I218-LM [8086:15a2] (rev 03)
        Subsystem: Lenovo Device [17aa:2226]
        Kernel driver in use: e1000e
--
03:00.0 Network controller [0280]: Intel Corporation Wireless 7265 [8086:095b] (rev 59)
        Subsystem: Intel Corporation Dual Band Wireless-AC 7265 [8086:5212]

After make install, there was the following message:

Note:
You may or may not need to update your initramfs, you should if
any of the modules installed are part of your initramfs. To add
support for your distribution to do this automatically send a
patch against "update-initramfs.sh". If your distribution does not
require this send a patch with the '/usr/bin/lsb_release -i -s'
("Arch Linux") tag for your distribution to avoid this warning.

...is there something I should do about this?

Offline

#7 2015-12-12 19:09:25

Ruli
Member
Registered: 2011-10-08
Posts: 14

Re: Intel Wireless 7265 (ThinkPad T450s) not working

Trilby wrote:

No, your steps are not quite right.

Ah, OK got it, thanks for clearing that up. Hmm, but for now I think I will try to use the make install and patch the module manually that way... if I can get it working then I'll try to revert the process and then build the PKGBUILD, so I can learn how to create a package... thanks again!

Offline

#8 2015-12-12 19:10:39

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,442
Website

Re: Intel Wireless 7265 (ThinkPad T450s) not working

Ah, so you jumped ahead and did what I specifically suggested not to do?  Sorry, I can no longer help.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#9 2015-12-12 19:13:14

Ruli
Member
Registered: 2011-10-08
Posts: 14

Re: Intel Wireless 7265 (ThinkPad T450s) not working

Ruli wrote:
03:00.0 Network controller [0280]: Intel Corporation Wireless 7265 [8086:095b] (rev 59)
        Subsystem: Intel Corporation Dual Band Wireless-AC 7265 [8086:5212]

Oh! I think I just realized something.. the drv.c is patched for 95a, and my device is 95b!
Let me just try to fix this and recompile...
Fingers crossed!

EDIT: after fixing the subsystem ID in drv.c to 095b and 5212, I recompiled and after reinstalling and rebooting it works now! Thanks jeremy31 for providing the backports and information both on the Ubuntu forums and over here.

Last edited by Ruli (2015-12-12 19:42:01)

Offline

#10 2015-12-12 19:50:09

Ruli
Member
Registered: 2011-10-08
Posts: 14

Re: Intel Wireless 7265 (ThinkPad T450s) not working

Trilby wrote:

Ah, so you jumped ahead and did what I specifically suggested not to do?  Sorry, I can no longer help.

Actually, after reading the Wiki page that you instructed me to read, the section at https://wiki.archlinux.org/index.php/Cr … stallation specifically suggests one to do so ("This is a good time to make sure the program is working correctly.")

Sure enough, the patched source from the Dropbox link didn't work.

Moreover, the post from jeremy31 above indicated that I could do a make uninstall.

So now that I've made sure the WiFi adapter indeed works, I'm keen to try building the package and then installing it again using pacman. But now I'm wondering how I can apply the patch to the drv.c (095a to 095b) in the PKGBUILD...

Thanks again for your help!

Offline

#11 2015-12-12 20:58:14

jeremy31
Member
Registered: 2015-11-01
Posts: 149

Re: Intel Wireless 7265 (ThinkPad T450s) not working

Redownload from the dropbox site and see if it is fixed

Last edited by jeremy31 (2015-12-12 20:58:31)

Offline

Board footer

Powered by FluxBB