Bug 18756

Summary: Wi-Fi does not work in Asus X302U Notebook
Product: Mageia Reporter: Bjarne Thomsen <bjarne.thomsen>
Component: RPM PackagesAssignee: Kernel and Drivers maintainers <kernel>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Normal CC: bjarne.thomsen, marja11, pterjan, thierry.vignaud, tmb
Version: Cauldron   
Target Milestone: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Source RPM: kernel? CVE:
Status comment:
Attachments: journalctl -xb > journalctl-xb.txt
Output from lspcidrake -v
Output from ifup wlp3s0
dmesg for Asus X302U
dmidecode >x302u-dmidecode.txt

Description Bjarne Thomsen 2016-06-21 23:43:48 CEST
Description of problem:
KDE is installed using a cable
After the first re-boot the ethernet cable works,
but the Wi-Fi does not work.

Version-Release number of selected component (if applicable):
The net-install ISO from June 12th.


How reproducible:


Steps to Reproduce:
1.
2.
3.
Comment 1 Bjarne Thomsen 2016-06-21 23:47:07 CEST
Created attachment 8043 [details]
journalctl -xb > journalctl-xb.txt

Maybe it can tell why the Wi-Fi does not work.

CC: (none) => bjarne.thomsen

Comment 2 Thierry Vignaud 2016-06-22 03:43:24 CEST
Did it worked previously?
Please attach (not paste) the /tmp/pci.txt file resulting from running the following command:
lspcidrake -v>/tmp/pci.txt

From what I saw, you just need to enable wifi (look at rfkill messages)

Keywords: (none) => NEEDINFO
CC: (none) => thierry.vignaud, tmb
Source RPM: (none) => kernel?

Comment 3 Bjarne Thomsen 2016-06-22 10:01:56 CEST
Created attachment 8050 [details]
Output from lspcidrake -v

As requested.
Comment 4 Bjarne Thomsen 2016-06-22 10:12:05 CEST
Created attachment 8051 [details]
Output from ifup wlp3s0

What does it mean to be associated?
I did try to configure Wi-Fi from the MCC:
Please select your network: "blank spaces"
It did not show any of my 2 access points.
Would this have been an "association", if it had worked?

Another thing: the network applet does not show my IP-address.
It only shows: net_applet.

Finally: after the latest updates I cannot start MCC from the menue.
The Wi-Fi and the applet used to work.
Comment 5 Marja Van Waes 2016-06-23 09:32:15 CEST




(In reply to Bjarne Thomsen from comment #4)
> Created attachment 8051 [details]
> Output from ifup wlp3s0
> 
> What does it mean to be associated?

That your network card has successfully authenticated with the desired access point.

> I did try to configure Wi-Fi from the MCC:
> Please select your network: "blank spaces"
> It did not show any of my 2 access points.

What Thierry most likely meant when he said (in comment #2)
> 
> From what I saw, you just need to enable wifi (look at rfkill messages)

is that you should try to unblock your wlan card, see:

https://wiki.mageia.org/en/Setup_wireless_networking#rfkill

Please follow the instructions there and report back here what you see and whether you manage to unblock the device.

CC: (none) => marja11

Comment 6 Bjarne Thomsen 2016-06-23 15:43:11 CEST
rfkill list:
0: asus-wlan: Wireless LAN
              Soft blocked: no
              Hard blocked: no
2: phy: Wireless LAN
        Soft blocked: no
        Hard Blocked: yes

It works with Windows 10.

I am confused at a higher level!
Are there 2 wireless devices? How can Windows use it?
There is NO switch on the outside of the Notebook.

Any ideas?
Comment 7 Marja Van Waes 2016-06-23 17:44:38 CEST
Seeing "two" devices is normal, for the rest I don't have a clue, especially not because it works in Windows 10.

Assigning to tmb

Assignee: bugsquad => tmb

Comment 8 Marja Van Waes 2016-06-23 17:46:17 CEST
Btw, does it still work with older Mga versions? (Assuming wlan worked with them before)
Comment 9 Bjarne Thomsen 2016-06-23 18:42:55 CEST
It is quite new. I have only had it for a few days. I have only installed
mga6 from cauldron. I am not sure that it worked before. I was occupied
solving another problem: I accidentally erased the Windows10 boot-loader
from the EFI partition. This has now been restored.
Comment 10 Bjarne Thomsen 2016-06-26 15:12:23 CEST
The Fedora24 installer tells me that WiFi is not available.
I looks as if Asus has made an anti-linux Notebook.
Apparently only an Asus driver works.
Comment 11 Bjarne Thomsen 2016-07-07 21:42:26 CEST
The E-handbook for X302U identifies the functioning of all Fn+Fx combinations
apart from Fn+F3 and Fn+F4. However, they have no apparent effect.
Fn+F2 flips between hard block and soft block of WiFi.
How can Windows-10 work? The driver has the same name in Windows and mga6:
rlt8723be
Maybe there is a driver option telling the driver to ignore the lock?
Comment 12 Bjarne Thomsen 2016-07-08 11:29:49 CEST
Created attachment 8141 [details]
dmesg for Asus X302U

I forgot to attach dmesg. Here it is.
rltwifi: Wireless switch is on.
So, which switch? Soft og hard?
Comment 13 Bjarne Thomsen 2016-07-08 22:07:02 CEST
Suddenly after a new netinstall from the ISO of July 7 the wireless hard blocked
was no, and Wi-Fi works! But why?
Comment 14 Bjarne Thomsen 2016-07-09 09:02:27 CEST
Not so fast. After a reboot the WiFi is again hardware blocked.
Comment 15 Bjarne Thomsen 2016-07-09 10:23:12 CEST
I tried to blacklist asus_nb_wmi in the mga-file for modprobe.
Now it produces a lot of errors, but Wi-Fi is no longer blocked.
There is also a asus_wmi driver that I did not blacklist.
This is probably not the right way to solv the problem, but it
might be an indication.
Comment 16 Bjarne Thomsen 2016-07-09 14:33:10 CEST
The solution seems to be: create the file /etc/modprobe.d/asus_nb_wmi.conf
with this single line
options asus_nb_wmi wapf=4

I found this prescription, but I have no idea why it works.
The many PCIe Bus Errors are stil there. They must be unrelated.
Comment 17 Marja Van Waes 2016-08-26 11:43:24 CEST
Mass-reassigning all bugs with "kernel" in the Source RPM field that are assigned to tmb, to the kernel packagers group, because tmb is currently MIA.

Assignee: tmb => kernel

Comment 18 Bjarne Thomsen 2016-08-28 09:32:13 CEST
Upgrade of Windows 10 had overwritten something, so I had to re-install mga6.
Wi-Fi did not work, and I had forgotten what I did. I had to look it up in this
bug-report.
/etc/modprobe.d/asus_nb_wmi.conf:
options asus_nb_wmi wapf=4
Comment 19 Bjarne Thomsen 2017-07-12 19:41:24 CEST
This fix still works.
Comment 20 Pascal Terjan 2017-07-12 21:26:36 CEST
I guess someone should write a patch similar to https://patchwork.kernel.org/patch/7113541/ with the right IDs for your model

CC: (none) => pterjan

Comment 21 Thomas Backlund 2017-07-12 23:23:53 CEST
please attach the output of dmidecode so we can match the hw
Comment 22 Bjarne Thomsen 2017-07-13 00:25:01 CEST
Created attachment 9488 [details]
dmidecode >x302u-dmidecode.txt

Output from dmidecode.
Comment 23 Thomas Backlund 2017-07-13 00:34:52 CEST
Ok, I hoped it was actually an X302UA (which the dmidecode confirms) wich alredy have a patch upstream merged a few months ago and backported that.

So there is now a kernel-4.9.37-1.mga6 (currently building) heading to updates_testing that should allow you to remove (or move away) the /etc/modprobe.d/asus_nb_wmi.conf and have it still working.

Noth that you should install microcode-0.20170707-1.mga6 from nonfree updates_testing before you install this kernel
Comment 24 Thomas Backlund 2017-07-13 00:37:20 CEST
Also, in order to properly test this fix, please remove/move away the /etc/modprobe.d/asus_nb_wmi.conf before installing the new kernel so it does not end up in the initrd.

Keywords: NEEDINFO => (none)

Comment 25 Rémi Verschelde 2017-07-13 08:07:59 CEST
Note that kernel-4.9.37-1.mga6 failed building tonight, so you'll need to wait a bit to test Thomas' suggested fix.
Comment 26 Bjarne Thomsen 2017-07-13 16:07:23 CEST
After having removed asus_nb_wmi.conf and installed
kernel-4.9.37-1.mga6 followed by a reboot,
Wi-Fi is now working.
Comment 27 Thomas Backlund 2017-07-30 20:41:36 CEST
An update for this issue has been pushed to the Mageia Updates repository.

http://advisories.mageia.org/MGASA-2017-0234.html

Status: NEW => RESOLVED
Resolution: (none) => FIXED