Mint 18.1 Kabylake Intel 8265 Wifi - Lenovo legion Y520 - not wifi option at all

Questions about Wi-Fi and other network devices, file sharing, firewalls, connection sharing etc
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
ruthan

Mint 18.1 Kabylake Intel 8265 Wifi - Lenovo legion Y520 - not wifi option at all

Post by ruthan »

Hello,
im trying to use Intel 8265 wifi with Mint 18.1, i have kernel 4.4.0.53 stable, i have tried 4.8 kernel, but its not working, hang on some unknonw controller (3) message, maybe because notebook has PCIE SSD, but Linux is installed on second HDD in no EFI mod.

Regarding of intel install there is something about kernel 4.6 with driver, i have copied firmware from intel site to right folder, but nothing changed.

Intel site info:
http://www.intel.com/content/www/us/en/ ... 05511.html
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
JeremyB
Level 21
Level 21
Posts: 13851
Joined: Fri Feb 21, 2014 8:17 am

Re: Mint 18.1 Kabylake Intel 8265 Wifi - Lenovo legion Y520 - not wifi option at all

Post by JeremyB »

Try

Code: Select all

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

Re: Mint 18.1 Kabylake Intel 8265 Wifi - Lenovo legion Y520 - not wifi option at all

Post by ruthan »

JeremyB wrote:Try

Code: Select all

echo "blacklist ideapad-laptop" | sudo tee /etc/modprobe.d/ideapad-blacklist.conf
Reboot
It didnt help.
ruthan

Re: Mint 18.1 Kabylake Intel 8265 Wifi - Lenovo legion Y520 - not wifi option at all

Post by ruthan »

There are other people with same problem:
https://ubuntuforums.org/showthread.php ... 679&page=2

Maybe the way is make kernel 4.8 working.
Last edited by ruthan on Tue Mar 07, 2017 10:29 am, edited 1 time in total.
JeremyB
Level 21
Level 21
Posts: 13851
Joined: Fri Feb 21, 2014 8:17 am

Re: Mint 18.1 Kabylake Intel 8265 Wifi - Lenovo legion Y520 - not wifi option at all

Post by JeremyB »

Post results for

Code: Select all

lspci -nnk | grep -iA2 net; lshw -c net
ruthan

Re: Mint 18.1 Kabylake Intel 8265 Wifi - Lenovo legion Y520 - not wifi option at all

Post by ruthan »

Code: Select all

03:00.0 Network controller [0280]: Intel Corporation Device [8086:24fd] (rev 78)
	Subsystem: Intel Corporation Device [8086:1010]
04:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [10ec:8168] (rev 10)
	Subsystem: Lenovo RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [17aa:3884]
	Kernel driver in use: r8169
	Kernel modules: r8169
WARNING: you should run this program as super-user.
  *-network UNCLAIMED     
       description: Network controller
       product: Intel Corporation
       vendor: Intel Corporation
       physical id: 0
       bus info: pci@0000:03:00.0
       version: 78
       width: 64 bits
       clock: 33MHz
       capabilities: cap_list
       configuration: latency=0
       resources: memory:a4100000-a4101fff
  *-network
       description: Ethernet interface
       product: RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
       vendor: Realtek Semiconductor Co., Ltd.
       physical id: 0
       bus info: pci@0000:04:00.0
       logical name: eth1
       version: 10
       serial: c8:5b:76:d8:df:0b
       size: 1Gbit/s
       capacity: 1Gbit/s
       width: 64 bits
       clock: 33MHz
       capabilities: bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd 1000bt 1000bt-fd autonegotiation
       configuration: autonegotiation=on broadcast=yes driver=r8169 driverversion=2.3LK-NAPI duplex=full firmware=rtl8168g-3_0.0.1 04/23/13 ip=192.168.0.57 latency=0 link=yes multicast=yes port=MII speed=1Gbit/s
       resources: irq:320 ioport:3000(size=256) memory:a4004000-a4004fff memory:a4000000-a4003fff
WARNING: output may be incomplete or inaccurate, you should run this program as super-user.
JeremyB
Level 21
Level 21
Posts: 13851
Joined: Fri Feb 21, 2014 8:17 am

Re: Mint 18.1 Kabylake Intel 8265 Wifi - Lenovo legion Y520 - not wifi option at all

Post by JeremyB »

The 4.8 kernel should work if you have the firmware. I know the 4.4 kernel doesn't have the coding to support it
ruthan

Re: Mint 18.1 Kabylake Intel 8265 Wifi - Lenovo legion Y520 - not wifi option at all

Post by ruthan »

Problem is that kernel 4.8 doesnt boot at all - it ends in busybox or hang on during boot, i have tried 2 different versions.

Yes i have copied firmware into right folder.
Backpacker

Re: Mint 18.1 Kabylake Intel 8265 Wifi - Lenovo legion Y520 - not wifi option at all

Post by Backpacker »

Identical system and problem. Blacklist didn't work for me either. I am a semi noob at this, is there a way to find out if something is in the pipe to fix or further diagnose? I suspect since the blacklist doesn't work that it might be a new problem, but keying in y520 does not turn up a bug report. My system seems to work fine in Mint except for the wireless.
JeremyB
Level 21
Level 21
Posts: 13851
Joined: Fri Feb 21, 2014 8:17 am

Re: Mint 18.1 Kabylake Intel 8265 Wifi - Lenovo legion Y520 - not wifi option at all

Post by JeremyB »

If you have working ethernet, you can attempt to install the Intel backports

Code: Select all

sudo apt-get update && sudo apt-get install git build-essential linux-headers-generic

Code: Select all

git clone https://git.kernel.org/pub/scm/linux/kernel/git/iwlwifi/backport-iwlwifi.git -b release/LinuxCore28

Code: Select all

cd backport-iwlwifi

Code: Select all

make defconfig-iwlwifi-public

Code: Select all

sed -i 's/CPTCFG_IWLMVM_VENDOR_CMDS=y/# CPTCFG_IWLMVM_VENDOR_CMDS is not set/' .config

Code: Select all

make -j4

Code: Select all

sudo make install
Reboot and if it doesn't work, post results for

Code: Select all

dmesg | grep iwl
pgreenfield

Re: Mint 18.1 Kabylake Intel 8265 Wifi - Lenovo legion Y520 - not wifi option at all

Post by pgreenfield »

I just tried this sequence of steps for backporting but when I got to this step:

Code: Select all

 ~/backport-iwlwifi $ sudo make defconfig-iwlwifi-public
/-------------- 
| Your kernel headers are incomplete/not installed.
| Please install kernel headers, including a .config
| file or use the KLIB/KLIB_BUILD make variables to
| set the kernel to build against, e.g.
|   make KLIB=/lib/modules/3.1.7/
| to compile/install for the installed kernel 3.1.7
| (that isn't currently running.)
\--
Makefile:40: recipe for target 'defconfig-iwlwifi-public' failed
make: *** [defconfig-iwlwifi-public] Error 1
Any suggestions?

Thanks
JeremyB
Level 21
Level 21
Posts: 13851
Joined: Fri Feb 21, 2014 8:17 am

Re: Mint 18.1 Kabylake Intel 8265 Wifi - Lenovo legion Y520 - not wifi option at all

Post by JeremyB »

pgreenfield wrote:I just tried this sequence of steps for backporting but when I got to this step:

Code: Select all

 ~/backport-iwlwifi $ sudo make defconfig-iwlwifi-public
/-------------- 
| Your kernel headers are incomplete/not installed.
| Please install kernel headers, including a .config
| file or use the KLIB/KLIB_BUILD make variables to
| set the kernel to build against, e.g.
|   make KLIB=/lib/modules/3.1.7/
| to compile/install for the installed kernel 3.1.7
| (that isn't currently running.)
\--
Makefile:40: recipe for target 'defconfig-iwlwifi-public' failed
make: *** [defconfig-iwlwifi-public] Error 1
Any suggestions?

Thanks
Try

Code: Select all

sudo apt-get update && sudo apt-get install linux-headers-$(uname -r)
And only use sudo when instructed or it is necessary, if the backport files are in your home directory sudo is only needed for the install command
pgreenfield

Re: Mint 18.1 Kabylake Intel 8265 Wifi - Lenovo legion Y520 - not wifi option at all

Post by pgreenfield »

Progress, but not all the way there. Now the backport appears to build and install properly (though there were a couple error messages on the extra install step you provided at the very end; it wasn't clear if they were important or not. Everything after that had no problems. On reboot the wireless interface was seen, and local wireless networks appeared in the networking list. When I chose the couple available to me, it prompts for the network password, and after continuing, appears to disappear; wifi does not work. On bringing up network settings, when trying to connect that way, it keeps coming back to the authorization dialog presumably since it thinks the password is incorrect. But it is correct. It seems as though we are close, but something is preventing it from authenticating.

As for sudo, yes, but I only tried that when the first form failed in case there was some permission oddity.

Thanks
Backpacker

Re: Mint 18.1 Kabylake Intel 8265 Wifi - Lenovo legion Y520 - not wifi option at all

Post by Backpacker »

Jeremy: I reformatted and reinstalled ( and updated ) Mint, ran your instructions, that gave me a phyo: wireless, then blacklisted ideapad-laptop, and for me, it is now working. Thanks! I have spent hours on the Internet trying to figure this out (and still don't totally understand it) but it is sure nice to have a functional wireless. If anyone else is interested in a Lenovo Legion Y250 dual boot installation, I found this tutorial quite helpful for the installation phase. viewtopic.php?f=42&t=163126 which gets you working except for wireless which Jeremy's instructions took care of for me.
pgreenfield

Re: Mint 18.1 Kabylake Intel 8265 Wifi - Lenovo legion Y520 - not wifi option at all

Post by pgreenfield »

I also tried the blacklist command, and also checked the firmware; that version is already there. Here is the output I get for the diagnostic:
$ dmesg | grep iwl
[ 7.712326] Loading modules backported from iwlwifi
[ 7.712327] iwlwifi-stack-public:release/LinuxCore28:6131:a2368e43
[ 7.726802] iwlwifi 0000:03:00.0: Direct firmware load for iwl-dbg-cfg.ini failed with error -2
[ 7.726926] iwlwifi 0000:03:00.0: Direct firmware load for iwlwifi-8265-31.ucode failed with error -2
[ 7.726934] iwlwifi 0000:03:00.0: Direct firmware load for iwlwifi-8265-30.ucode failed with error -2
[ 7.726940] iwlwifi 0000:03:00.0: Direct firmware load for iwlwifi-8265-29.ucode failed with error -2
[ 7.726946] iwlwifi 0000:03:00.0: Direct firmware load for iwlwifi-8265-28.ucode failed with error -2
[ 7.726952] iwlwifi 0000:03:00.0: Direct firmware load for iwlwifi-8265-27.ucode failed with error -2
[ 7.726959] iwlwifi 0000:03:00.0: Direct firmware load for iwlwifi-8265-26.ucode failed with error -2
[ 7.726965] iwlwifi 0000:03:00.0: Direct firmware load for iwlwifi-8265-25.ucode failed with error -2
[ 7.726972] iwlwifi 0000:03:00.0: Direct firmware load for iwlwifi-8265-24.ucode failed with error -2
[ 7.726979] iwlwifi 0000:03:00.0: Direct firmware load for iwlwifi-8265-23.ucode failed with error -2
[ 7.729393] iwlwifi 0000:03:00.0: loaded firmware version 22.361476.0 op_mode iwlmvm
[ 7.736313] iwlwifi 0000:03:00.0: Detected Intel(R) Dual Band Wireless AC 8265, REV=0x230
[ 7.738702] iwlwifi 0000:03:00.0: L1 Enabled - LTR Enabled
[ 7.739656] iwlwifi 0000:03:00.0: L1 Enabled - LTR Enabled
[ 7.859787] ieee80211 phy0: Selected rate control algorithm 'iwl-mvm-rs'
[ 7.862332] iwlwifi 0000:03:00.0 wlp3s0: renamed from wlan0
[ 15.771815] iwlwifi 0000:03:00.0: L1 Enabled - LTR Enabled
[ 15.772152] iwlwifi 0000:03:00.0: L1 Enabled - LTR Enabled
[ 15.892699] iwlwifi 0000:03:00.0: L1 Enabled - LTR Enabled
[ 15.893039] iwlwifi 0000:03:00.0: L1
sulyab

Re: Mint 18.1 Kabylake Intel 8265 Wifi - Lenovo legion Y520 - not wifi option at all

Post by sulyab »

I have the same problem with the same laptop. I tried installing Linux kernel 4.10:
uname -a

Linux silverdoe 4.10.0-21-generic #23~16.04.1-Ubuntu SMP Tue May 2 12:57:17 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
I tried the backport thing but this happened :
make defconfig-lwlwifi-public
Generating local configuration database from kernel ... done.
cc -Wall -Wmissing-prototypes -Wstrict-prototypes -O2 -fomit-frame-pointer -c -o conf.o conf.c
cc -Wall -Wmissing-prototypes -Wstrict-prototypes -O2 -fomit-frame-pointer -c -o zconf.tab.o zconf.tab.c
cc conf.o zconf.tab.o -o conf
***
*** Can't find default configuration "defconfigs/lwlwifi-public"!
***
Makefile.real:53: recipe for target 'defconfig-lwlwifi-public' failed
make[1]: *** [defconfig-lwlwifi-public] Error 1
Makefile:40: recipe for target 'defconfig-lwlwifi-public' failed
make: *** [defconfig-lwlwifi-public] Error 2
Please help.

Update : damn, the issue was that i typed lwlwifi instead of iwlwifi. So much for not copy pasting.

@mod, pls remove this post
Last edited by sulyab on Thu Jun 01, 2017 7:42 am, edited 1 time in total.
JeremyB
Level 21
Level 21
Posts: 13851
Joined: Fri Feb 21, 2014 8:17 am

Re: Mint 18.1 Kabylake Intel 8265 Wifi - Lenovo legion Y520 - not wifi option at all

Post by JeremyB »

With kernel 4.10 post results for

Code: Select all

dmesg | grep iwl
IvanChe

Re: Mint 18.1 Kabylake Intel 8265 Wifi - Lenovo legion Y520 - not wifi option at all

Post by IvanChe »

Hi guys, I have the same problem but with my ubuntu, I've tried to figured out this for many ways, but nothing happens.
When I run the command make install, it show me this:

Code: Select all

  Building modules, stage 2.
  MODPOST 6 modules
  INSTALL /home/ivan/backport-iwlwifi/compat/compat.ko
At main.c:158:
- SSL error:02001002:system library:fopen:No such file or directory: bss_file.c:175
- SSL error:2006D080:BIO routines:BIO_new_file:no such file: bss_file.c:178
sign-file: certs/signing_key.pem: No such file or directory
  INSTALL /home/ivan/backport-iwlwifi/drivers/net/wireless/intel/iwlwifi/iwlwifi.ko
At main.c:158:
- SSL error:02001002:system library:fopen:No such file or directory: bss_file.c:175
- SSL error:2006D080:BIO routines:BIO_new_file:no such file: bss_file.c:178
sign-file: certs/signing_key.pem: No such file or directory
  INSTALL /home/ivan/backport-iwlwifi/drivers/net/wireless/intel/iwlwifi/mvm/iwlmvm.ko
At main.c:158:
- SSL error:02001002:system library:fopen:No such file or directory: bss_file.c:175
- SSL error:2006D080:BIO routines:BIO_new_file:no such file: bss_file.c:178
sign-file: certs/signing_key.pem: No such file or directory
  INSTALL /home/ivan/backport-iwlwifi/drivers/net/wireless/intel/iwlwifi/xvt/iwlxvt.ko
At main.c:158:
- SSL error:02001002:system library:fopen:No such file or directory: bss_file.c:175
- SSL error:2006D080:BIO routines:BIO_new_file:no such file: bss_file.c:178
sign-file: certs/signing_key.pem: No such file or directory
  INSTALL /home/ivan/backport-iwlwifi/net/mac80211/mac80211.ko
At main.c:158:
- SSL error:02001002:system library:fopen:No such file or directory: bss_file.c:175
- SSL error:2006D080:BIO routines:BIO_new_file:no such file: bss_file.c:178
sign-file: certs/signing_key.pem: No such file or directory
  INSTALL /home/ivan/backport-iwlwifi/net/wireless/cfg80211.ko
At main.c:158:
- SSL error:02001002:system library:fopen:No such file or directory: bss_file.c:175
- SSL error:2006D080:BIO routines:BIO_new_file:no such file: bss_file.c:178
sign-file: certs/signing_key.pem: No such file or directory
  DEPMOD  4.8.0-54-generic
depmod will prefer updates/ over kernel/ -- OK!
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'
("Ubuntu") tag for your distribution to avoid this warning.

Your backported driver modules should be installed now.
Reboot.
Also the result of dmesg | grep iwl is:

Code: Select all

[    7.973902] Loading modules backported from iwlwifi
[    7.973902] iwlwifi-stack-public:release/LinuxCore28:6132:597f7f92
[    9.560876] iwlwifi 0000:03:00.0: Direct firmware load for iwl-dbg-cfg.ini failed with error -2
[    9.561186] iwlwifi 0000:03:00.0: Direct firmware load for iwlwifi-8265-31.ucode failed with error -2
[    9.561419] iwlwifi 0000:03:00.0: Direct firmware load for iwlwifi-8265-30.ucode failed with error -2
[    9.561427] iwlwifi 0000:03:00.0: Direct firmware load for iwlwifi-8265-29.ucode failed with error -2
[    9.561432] iwlwifi 0000:03:00.0: Direct firmware load for iwlwifi-8265-28.ucode failed with error -2
[    9.561437] iwlwifi 0000:03:00.0: Direct firmware load for iwlwifi-8265-27.ucode failed with error -2
[    9.561587] iwlwifi 0000:03:00.0: Direct firmware load for iwlwifi-8265-26.ucode failed with error -2
[    9.561868] iwlwifi 0000:03:00.0: Direct firmware load for iwlwifi-8265-25.ucode failed with error -2
[    9.562100] iwlwifi 0000:03:00.0: Direct firmware load for iwlwifi-8265-24.ucode failed with error -2
[    9.562105] iwlwifi 0000:03:00.0: Direct firmware load for iwlwifi-8265-23.ucode failed with error -2
[   10.236418] iwlwifi 0000:03:00.0: loaded firmware version 22.391740.0 op_mode iwlmvm
[   10.440592] iwlwifi 0000:03:00.0: Detected Intel(R) Dual Band Wireless AC 8265, REV=0x230
[   10.442604] iwlwifi 0000:03:00.0: L1 Enabled - LTR Enabled
[   10.443529] iwlwifi 0000:03:00.0: L1 Enabled - LTR Enabled
[   10.569657] ieee80211 phy0: Selected rate control algorithm 'iwl-mvm-rs'
[   10.633718] iwlwifi 0000:03:00.0 wlp3s0: renamed from wlan0
[   19.260059] iwlwifi 0000:03:00.0: L1 Enabled - LTR Enabled
[   19.260417] iwlwifi 0000:03:00.0: L1 Enabled - LTR Enabled
[   19.381582] iwlwifi 0000:03:00.0: L1 Enabled - LTR Enabled
[   19.382101] iwlwifi 0000:03:00.0: L1 Enabled - LTR Enabled
Please help me.
JeremyB
Level 21
Level 21
Posts: 13851
Joined: Fri Feb 21, 2014 8:17 am

Re: Mint 18.1 Kabylake Intel 8265 Wifi - Lenovo legion Y520 - not wifi option at all

Post by JeremyB »

IvanChe, I would ask this question at ubuntuforums.org or askubuntu.com since you are using Ubuntu.

I know the errrors from compiling the backports is normal since Ubuntu started using the secure boot enforcement in the kernel.

See the sticky post at ubuntu forums https://ubuntuforums.org/showthread.php?t=370108 and include that in the topic there
IvanChe

Re: Mint 18.1 Kabylake Intel 8265 Wifi - Lenovo legion Y520 - not wifi option at all

Post by IvanChe »

Thanks JeremyB I will do that.
Locked

Return to “Networking”