Bug 674353 - NetworkManager can't connect to wireless networks while acer_wmi module loaded
Summary: NetworkManager can't connect to wireless networks while acer_wmi module loaded
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: kernel
Version: 15
Hardware: i686
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Kernel Maintainer List
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 742716 750669 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-02-01 15:36 UTC by gerfert
Modified: 2013-01-10 08:16 UTC (History)
12 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-06-04 15:37:05 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
dmesg (68.40 KB, text/plain)
2011-08-24 16:17 UTC, gerfert
no flags Details
rfkill list all (192 bytes, text/plain)
2011-08-25 14:38 UTC, gerfert
no flags Details
acpidump (149.31 KB, application/octet-stream)
2011-08-25 14:38 UTC, gerfert
no flags Details
NetworkManager --no-daemon (8.03 KB, application/octet-stream)
2011-08-25 15:07 UTC, gerfert
no flags Details
dmidecode on lenovo b450 (10.88 KB, application/octet-stream)
2011-11-06 17:48 UTC, gerfert
no flags Details
0001-acer-wmi-Add-wireless-quirk-for-Lenovo-B450.patch (1.14 KB, patch)
2011-11-07 04:14 UTC, jlee
no flags Details | Diff
acer-wmi-lenovo-E520.patch (5.85 KB, patch)
2011-11-09 06:43 UTC, jlee
no flags Details | Diff
acer-wmi.tar.bz2 (42.52 KB, application/x-bzip)
2011-11-15 09:19 UTC, jlee
no flags Details
acer-wmi.ko.tar.bz2 (111.14 KB, application/x-bzip)
2011-11-16 03:30 UTC, jlee
no flags Details
log files for patch test "acer-wmi" (21.26 KB, application/x-gzip)
2011-11-17 13:27 UTC, mr.kobzar
no flags Details

Description gerfert 2011-02-01 15:36:09 UTC
Description of problem:
On my Lenovo B450 4TK-B NetworkManager's 'Wireless Networks' can't start if module acer_wmi is loaded. 

Version-Release number of selected component (if applicable):


How reproducible:
install fedora 14 with gnome desktop

Steps to Reproduce:
1. Turn on lenovo b450 laptop
2. Login
3. Try to connect to wireless network
  
Actual results:
The checkbox tip doesn't appear if i try to turn 'Wireless Networks' on.

Expected results:
The checkbox tip appears, and wi-fi works

Additional info:
`rmmod acer_wmi` and adding it to blacklist solves the problem

Comment 1 Chuck Ebbert 2011-02-02 00:31:30 UTC
I don't think acer_wmi is supposed to load on a Lenovo machine.

Comment 2 gerfert 2011-04-24 23:48:49 UTC
(In reply to comment #1)
> I don't think acer_wmi is supposed to load on a Lenovo machine.

Yep, but it's on out of the box.

Comment 3 avernos 2011-06-10 07:36:01 UTC
lenovo V460 with same problem, tested on fedora ubuntu and opensuse. on fedora i've installed the drivers rpmfusion, and managed to get it scanning with iwlist, but no luck with network manager. triggers rfkillswitch.

rmmod acer_wmi wont solve the problem

Comment 4 Josh Boyer 2011-08-24 15:18:57 UTC
Is this still a problem with the latest f14 kernel, and have you tried f15?

Comment 5 gerfert 2011-08-24 15:39:41 UTC
(In reply to comment #4)
> Is this still a problem with the latest f14 kernel, and have you tried f15?

Hi. I've been using Fedora 15 after it released (Russian Fedora Remix 15, to be honest). That problem still occurs after the fresh installation. And i still use that fix:

cat /etc/modprobe.d/blacklist-acer-wmi.conf 
blacklist acer_wmi

Comment 6 Josh Boyer 2011-08-24 15:55:54 UTC
Could you post the boot output from a f15 kernel without the blacklist in place?

Comment 7 gerfert 2011-08-24 16:17:04 UTC
Created attachment 519667 [details]
dmesg

Comment 8 Josh Boyer 2011-08-25 13:38:08 UTC
Can you provide the output of rfkill and acpidump?  It seems the acer-wmi module is either making a call that disables the wireless or falsely reporting it blocked.

Comment 9 gerfert 2011-08-25 14:38:16 UTC
Created attachment 519892 [details]
rfkill list all

Comment 10 gerfert 2011-08-25 14:38:46 UTC
Created attachment 519894 [details]
acpidump

Comment 11 gerfert 2011-08-25 14:48:03 UTC
Wicd works fine with wireless networks without blacklisting acer-wmi.

Comment 12 Matthew Garrett 2011-08-25 14:49:42 UTC
as root, can you run

rfkill unblock acer-wireless

and then do rfkill list again and attach the output?

Comment 13 gerfert 2011-08-25 15:03:24 UTC
# rfkill unblock acer-wireless
Bogus unblock argument 'acer-wireless'.

# rfkill list all
0: ideapad_wlan: Wireless LAN
	Soft blocked: no
	Hard blocked: no
1: phy0: Wireless LAN
	Soft blocked: no
	Hard blocked: no
2: acer-wireless: Wireless LAN
	Soft blocked: yes
	Hard blocked: no

Comment 14 Matthew Garrett 2011-08-25 15:07:00 UTC
Ah, sorry. Try

rfkill unblock 2

and then see what rfkill list says.

Comment 15 gerfert 2011-08-25 15:07:59 UTC
Created attachment 519901 [details]
NetworkManager --no-daemon

Comment 16 gerfert 2011-08-25 15:09:10 UTC
The same thing

# rfkill unblock 2
# rfkill list all
0: ideapad_wlan: Wireless LAN
	Soft blocked: no
	Hard blocked: no
1: phy0: Wireless LAN
	Soft blocked: no
	Hard blocked: no
2: acer-wireless: Wireless LAN
	Soft blocked: yes
	Hard blocked: no

Comment 17 Matthew Garrett 2011-08-25 15:12:42 UTC
Ok, so this is definitely a kernel bug. It's reporting that the device is soft blocked when it isn't.

Comment 18 mr.kobzar 2011-11-02 04:19:32 UTC
(In reply to comment #12)
> as root, can you run
> 
> rfkill unblock acer-wireless
> 
> and then do rfkill list again and attach the output?

This is what I get, on version 15:

0: acer-wireless: Wireless LAN
	Soft blocked: yes
	Hard blocked: no
1: phy0: Wireless LAN
	Soft blocked: no
	Hard blocked: no

Comment 19 mr.kobzar 2011-11-02 04:24:16 UTC
Basically, I have the same problem. I have lenovo E520. I have tested the live version of Fedora 16 beta, same results. I wish this would be fixed in version 16

Comment 20 mr.kobzar 2011-11-02 04:30:07 UTC
*** Bug 750669 has been marked as a duplicate of this bug. ***

Comment 21 jlee 2011-11-06 09:43:32 UTC
(In reply to comment #10)
> Created attachment 519894 [details]
> acpidump

Hi gerfert, 

I just check your DSDT from B450, I thought we can
try the wireless quirk type 2 (offset 0x71 in EC OperationRegion)!

Please provide dmidecode to me, just need attached on this bug, 
I will attach a patch, then please help to test my patch.

Comment 22 jlee 2011-11-06 09:47:33 UTC
(In reply to comment #3)
> lenovo V460 with same problem, tested on fedora ubuntu and opensuse. on fedora
> i've installed the drivers rpmfusion, and managed to get it scanning with
> iwlist, but no luck with network manager. triggers rfkillswitch.
> 
> rmmod acer_wmi wont solve the problem

Hi avernos, 

Please attach your acpidump and dmidecode from Lenovo V460 to me, just need:
   acpidump > acpidump.dat
   dmidecode > dmidecode.log

Then, please attach the above 2 files on bugzilla, let's check maybe we can find out a useful EC register reflect to wireless status.

Comment 23 jlee 2011-11-06 09:50:02 UTC
(In reply to comment #19)
> Basically, I have the same problem. I have lenovo E520. I have tested the live
> version of Fedora 16 beta, same results. I wish this would be fixed in version
> 16

About Lenovo E520, will accept a patch to kernel for add blacklist to acer-wmi because there have no any EC register reflect to WiFi status.

Comment 24 gerfert 2011-11-06 17:48:35 UTC
Created attachment 531940 [details]
dmidecode on lenovo b450

Comment 25 gerfert 2011-11-06 17:49:48 UTC
> (In reply to comment #10)
> > Created attachment 519894 [details]
> > acpidump
> 
> Hi gerfert, 
> 
> I just check your DSDT from B450, I thought we can
> try the wireless quirk type 2 (offset 0x71 in EC OperationRegion)!
> 
> Please provide dmidecode to me, just need attached on this bug, 
> I will attach a patch, then please help to test my patch.

Hi, jlee.
I need an explanation how to test you patch :)

Comment 26 mr.kobzar 2011-11-06 22:21:35 UTC
(In reply to comment #23)
> (In reply to comment #19)
> > Basically, I have the same problem. I have lenovo E520. I have tested the live
> > version of Fedora 16 beta, same results. I wish this would be fixed in version
> > 16
> 
> About Lenovo E520, will accept a patch to kernel for add blacklist to acer-wmi
> because there have no any EC register reflect to WiFi status.

Thanks

I ran:

rmmod acer_wmi

and then:
rfkill list

and got this time only:

1: phy0: Wireless LAN
 Soft blocked: no
 Hard blocked: no


Now it seems to work ok.

Comment 27 jlee 2011-11-07 04:14:28 UTC
Created attachment 531961 [details]
0001-acer-wmi-Add-wireless-quirk-for-Lenovo-B450.patch

gerfert, 

Please apply this patch and re-compiler acer-wmi for testing.

You should see the soft block status of acer-wireless changed when you press function key or wifi hardware switch:

acer-wireless: Wireless LAN
 Soft blocked: no            # here will change
 Hard blocked: no


If you need me help to build acer-wmi.ko, please give me your Fedora version and kernel package version.

Comment 28 jlee 2011-11-09 06:43:33 UTC
Created attachment 532466 [details]
acer-wmi-lenovo-E520.patch

(In reply to comment #26)
> 
> rmmod acer_wmi
> 
> and then:
> rfkill list
> 
> and got this time only:
> 
> 1: phy0: Wireless LAN
>  Soft blocked: no
>  Hard blocked: no
> 
> 
> Now it seems to work ok.

Hi mr.kobzar, 

Could you please help to test this patchset? Matthew give me a idea to check the wireless capability before create rfkill.
Please kindly apply this acer-wmi patch to test.

If you need me provide acer-wmi.ko file, please give me your OS version and kernel version.

Comment 29 mr.kobzar 2011-11-10 04:08:59 UTC
(In reply to comment #28)
jlee,

I would gladly help, but I need help please with everything that your asking. I'm not a computer pro lol, so I need help with finding the kernel version. OS version is Fedora 15, thinking to update to 16.

How do I do patchset? 

What is acer-wmi.ko and where and how do I use it?

Comment 30 jlee 2011-11-10 04:37:01 UTC
(In reply to comment #29)
> (In reply to comment #28)
> jlee,
> 
> I would gladly help, but I need help please with everything that your asking.
> I'm not a computer pro lol, so I need help with finding the kernel version. OS
> version is Fedora 15, thinking to update to 16.
> 

Please give me the Fedora package information, just run:
 rpm -qa | grep kernel

Then post the result to me.

> How do I do patchset? 
> 
> What is acer-wmi.ko and where and how do I use it?

OK!
I will build acer-wmi.ko to you, then just need:
 rmmod -r acer-wmi
 insmod acer-wmi.ko

To test the new driver.

Comment 31 mr.kobzar 2011-11-10 13:14:07 UTC
jlee,

rpm -qa | grep kernel
abrt-addon-kerneloops-2.0.3-1.fc15.i686
kernel-PAE-2.6.40.3-0.fc15.i686
kernel-PAE-2.6.38.8-35.fc15.i686
kernel-PAE-2.6.40.6-0.fc15.i686

Comment 32 jlee 2011-11-11 04:10:29 UTC
(In reply to comment #31)
> jlee,
> 
> rpm -qa | grep kernel
> abrt-addon-kerneloops-2.0.3-1.fc15.i686
> kernel-PAE-2.6.40.3-0.fc15.i686
> kernel-PAE-2.6.38.8-35.fc15.i686
> kernel-PAE-2.6.40.6-0.fc15.i686

You have 3 kernel package, please post which one you used.
Just need run:
  uname -r

Then paste the result.

Thank's!

Comment 33 mr.kobzar 2011-11-11 12:11:09 UTC
jlee

uname -r
3.1.0-7.fc16.i686.PAE

And just a question. Why would I need 3 kernel packages?
Thanks

Comment 34 jormones 2011-11-14 01:29:15 UTC
jlee, good day.
I have the same trouble, I have a Lenovo Z470 and my wireless card is an Intel Centrino N1000.
First I have FC15 then install FC16 (try to solve) but don't work.
I try with rfkill unblock all but don't work, can you help me

regards

Comment 35 mr.kobzar 2011-11-14 13:59:21 UTC
jlee,

I find out that in Fedora 16, after each restart I have to run rmmod acer_wmi in order for my wifi to work. I would appreciate a patch)))

Thank You very much!!!

Comment 36 jlee 2011-11-15 09:19:49 UTC
Created attachment 533714 [details]
acer-wmi.tar.bz2

Hi mr.kobzar, 

Please kindly help to test this driver, please:
 + kernel need update to 3.1.1-1.fc16.i686.PAE
   (sorry for I didn't find our kernel-devel on yum repo)
 + su root
 + cp acer-wmi.tar.bz2 /root
 + cd /root
 + tar -jxvf acer-wmi.tar.bz2
 + rmmod acer-wmi
 + insmod acer-wmi.ko
 + rfkill list
   (please "yum install rfkill.i686" if you didn't have rfkill tool )

You should see acer-wmi did NOT create acer-wireless.

Please help to dump the following message to me after you use new acer-wmi.ko:
 + rfkill list > rfkill-list.log
 + dmesg > dmesg.log
 + lsmod > lsmod.log

Thank's a lot!

Comment 37 jlee 2011-11-15 09:23:20 UTC
(In reply to comment #34)
> jlee, good day.
> I have the same trouble, I have a Lenovo Z470 and my wireless card is an Intel
> Centrino N1000.
> First I have FC15 then install FC16 (try to solve) but don't work.
> I try with rfkill unblock all but don't work, can you help me
> 
> regards

Please attach your rfkill list, acpidump and dmidecode on bugzilla.
Please:
   + rfkill list > rfkill-list.log
     (please "yum install rfkill.i686" if you didn't have rfkill tool )
   + acpidump > acpidump.dat
   + dmidecode > dmidecode.log

If you want, you also can try my acer-wmi.ko in Comment#36, please follow the steps in Comment#36

Thank's

Comment 38 mr.kobzar 2011-11-16 00:26:34 UTC
jlee,

Everything work ok until got to insmod acer-wmi.ko 
this is what it returns

# insmod acer-wmi.ko
insmod: can't read 'acer-wmi.ko': No such file or directory 

Thanks

Comment 39 jlee 2011-11-16 03:30:20 UTC
Created attachment 533886 [details]
acer-wmi.ko.tar.bz2

Hi mr.kobzar, 

Sorry for I attached a wrong tarball, please use this one.

 + tar -jxvf acer-wmi.ko.tar.bz2
 + insmod acer-wmi.ko

Thank's

Comment 40 mr.kobzar 2011-11-16 04:11:01 UTC
(In reply to comment #39)
> Created attachment 533886 [details]
> acer-wmi.ko.tar.bz2
> 
> Hi mr.kobzar, 
> 
> Sorry for I attached a wrong tarball, please use this one.
> 
>  + tar -jxvf acer-wmi.ko.tar.bz2
>  + insmod acer-wmi.ko
> 
> Thank'ss


jlee,

# rmmod acer-wmi
# rfkill list
1: phy0: Wireless LAN
	Soft blocked: no
	Hard blocked: no

# insmod acer-wmi.ko
# rfkill list
1: phy0: Wireless LAN
	Soft blocked: no
	Hard blocked: no
# rfkill list > dmesg.log
# dmesg > dmesg.log
# lsmod > lsmod.log

Where do I find log files? 

Thanks

Comment 41 jlee 2011-11-16 07:53:43 UTC
(In reply to comment #40)
> (In reply to comment #39)
> > Created attachment 533886 [details]
> > acer-wmi.ko.tar.bz2
> > 
> > Hi mr.kobzar, 
> > 
> > Sorry for I attached a wrong tarball, please use this one.
> > 
> >  + tar -jxvf acer-wmi.ko.tar.bz2
> >  + insmod acer-wmi.ko
> > 
> > Thank'ss
> 
> 
> jlee,
> 
> # rmmod acer-wmi
> # rfkill list
> 1: phy0: Wireless LAN
>  Soft blocked: no
>  Hard blocked: no
> 
> # insmod acer-wmi.ko
> # rfkill list
> 1: phy0: Wireless LAN
>  Soft blocked: no
>  Hard blocked: no

Good! looks like the acer-wmi didn't create wireless rfkill on your machine, now.
Does your issue fix with my acer-wmi.ko ?

> # rfkill list > dmesg.log

You should dump the log to rfkill-list.log:
 rfkill list > rfkill-list.log

> # dmesg > dmesg.log
> # lsmod > lsmod.log
> 
> Where do I find log files? 
> 
> Thanks

There must have 3 log files in your CURRENT path with acer-wmi.ko, please:
 # ls *.log

You should see rfkill-list.log, dmesg.log and lsmod.log from list.

Thank's

Comment 42 mr.kobzar 2011-11-17 13:27:55 UTC
Created attachment 534191 [details]
log files for patch test "acer-wmi"

Comment 43 mr.kobzar 2011-11-17 13:38:32 UTC
Jlee,

Attached are the log files.
My wifi still works the same, after each restart, when the airplane mode is off, I cannot turn of my wifi, I have to use rmmod acer_wmi.

# rfkill list
0: acer-wireless: Wireless LAN
	Soft blocked: yes
	Hard blocked: no
1: phy0: Wireless LAN
	Soft blocked: no
	Hard blocked: no
# rmmod acer_wmi
# rfkill list
1: phy0: Wireless LAN
	Soft blocked: no
	Hard blocked: no

Comment 44 jlee 2011-11-17 19:36:29 UTC
(In reply to comment #43)
> Jlee,
> 
> Attached are the log files.

Per your rfkill list log on Comment #42, acer-wmi.ko didn't create acer-wireless rfkill, now.

> My wifi still works the same, after each restart, when the airplane mode is
> off, I cannot turn of my wifi, I have to use rmmod acer_wmi.
> 
> # rfkill list
> 0: acer-wireless: Wireless LAN
>  Soft blocked: yes
>  Hard blocked: no
> 1: phy0: Wireless LAN
>  Soft blocked: no
>  Hard blocked: no
> # rmmod acer_wmi
> # rfkill list
> 1: phy0: Wireless LAN
>  Soft blocked: no
>  Hard blocked: no

Yes, this change doesn't keep if you reboot system, if you want, you can copy my acer-wmi.ko to /lib/modules/3.1.1-1.fc16.i686.PAE/kernel/drivers/platform/x86

 # su root
 # cp /lib/modules/3.1.1-1.fc16.i686.PAE/kernel/drivers/platform/x86/acer-wmi.ko /tmp  (you can backport original acer-wmi.ko to anywhere you want)
 # cp acer-wmi.ko /lib/modules/3.1.1-1.fc16.i686.PAE/kernel/drivers/platform/x86 (overwrite original acer-wmi.ko)
 # depmod
 # reboot

Comment 45 mr.kobzar 2011-11-18 03:22:14 UTC
Jlee,

Thanks!!! Now wifi seems to work good. So far so good! If anything will come up I will let you know.

Comment 46 jlee 2011-11-18 03:40:57 UTC
(In reply to comment #45)
> Jlee,
> 
> Thanks!!! Now wifi seems to work good. So far so good! If anything will come up
> I will let you know.

Good!
Thank's for your testing, it's important to me can send patches to upstream for review!

Comment 47 mr.kobzar 2011-11-21 03:23:40 UTC
Jlee,

Sorry to bother you again. I just restarted my laptop after several times restarting it, and now this time the acer_wmi was not blocked, I had to run rmmod acer_wmi inorder to get wifi working again. Don't know what happened.

Thanks

Comment 48 jlee 2011-11-21 03:52:30 UTC
(In reply to comment #47)
> Jlee,
> 
> Sorry to bother you again. I just restarted my laptop after several times
> restarting it, and now this time the acer_wmi was not blocked, I had to run

Can you paste rfkill list log?
Did you always reproduce it after system reboot?

> rmmod acer_wmi inorder to get wifi working again. Don't know what happened.
> 
> Thanks

Comment 49 mr.kobzar 2011-11-21 23:58:31 UTC
rfkill list
0: acer-wireless: Wireless LAN
	Soft blocked: yes
	Hard blocked: no
1: phy0: Wireless LAN
	Soft blocked: no
	Hard blocked: no



I think its after system update. It didn't reproduce after regular reboot.
 

rfkill list after rmmod acer_wmi

rfkill list
1: phy0: Wireless LAN
	Soft blocked: no
	Hard blocked: no

Comment 50 jlee 2011-11-22 01:18:21 UTC
(In reply to comment #49)
> rfkill list
> 0: acer-wireless: Wireless LAN
>  Soft blocked: yes
>  Hard blocked: no
> 1: phy0: Wireless LAN
>  Soft blocked: no
>  Hard blocked: no
> 
> 
> 
> I think its after system update. It didn't reproduce after regular reboot.
> 

OK, then I thought your kernel also updated, please post your "uname -r":

> 
> rfkill list after rmmod acer_wmi
> 
> rfkill list
> 1: phy0: Wireless LAN
>  Soft blocked: no
>  Hard blocked: no

I will send patch to kernel upstream, before upstream merge my patch, please put acer-wmi driver to your modprobe blacklist:
 
 # vi /etc/modprobe.d/blacklist.conf
 # please add the following statement to blacklist.conf file:
     blacklist acer-wmi
 # reboot

Comment 51 Josh Boyer 2012-02-27 18:10:47 UTC
This patch (which is a direct result of Chun-Yi's work here) should solve this issue:

http://article.gmane.org/gmane.linux.drivers.platform.x86.devel/2966

It's not quite in a tree yet, but I'll see if I can bring this back shortly.

Comment 52 Josh Boyer 2012-02-28 23:29:51 UTC
*** Bug 742716 has been marked as a duplicate of this bug. ***

Comment 53 Josh Boyer 2012-06-04 15:37:05 UTC
This should be fixed in the latest updates.


Note You need to log in before you can comment on or make changes to this bug.