[ThinkPad E520] Wireless always softblocked

Bug #836865 reported by Marc Legris
16
This bug affects 2 people
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Triaged
Medium
Ike Panhc
Oneiric
New
Undecided
Unassigned
Precise
Triaged
Medium
Ike Panhc

Bug Description

The wireless module on this system always seems to be softblocked. Using the hotkey or 'rfkill unblock all' does not seem to remove this block. Neither does enabling and disabling wireless through Network manager. Network manager also does not show the wired connection (shows as unmanaged), but the wired connection itself functions normally.

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

ProblemType: Bug
DistroRelease: Ubuntu 11.04
Package: linux-image-2.6.38-11-generic-pae 2.6.38-11.48
ProcVersionSignature: Ubuntu 2.6.38-11.48-generic-pae 2.6.38.8
Uname: Linux 2.6.38-11-generic-pae i686
NonfreeKernelModules: wl
AlsaVersion: Advanced Linux Sound Architecture Driver Version 1.0.23.
Architecture: i386
ArecordDevices:
 **** List of CAPTURE Hardware Devices ****
 card 0: PCH [HDA Intel PCH], device 0: CONEXANT Analog [CONEXANT Analog]
   Subdevices: 1/1
   Subdevice #0: subdevice #0
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC0: ubuntu 1279 F.... pulseaudio
CRDA: Error: [Errno 2] No such file or directory
Card0.Amixer.info:
 Card hw:0 'PCH'/'HDA Intel PCH at 0x92600000 irq 43'
   Mixer name : 'Intel CougarPoint HDMI'
   Components : 'HDA:14f1506e,17aa21e2,00100000 HDA:80862805,80860101,00100000'
   Controls : 12
   Simple ctrls : 6
Card29.Amixer.info:
 Card hw:29 'ThinkPadEC'/'ThinkPad Console Audio Control at EC reg 0x30, fw unknown'
   Mixer name : 'ThinkPad EC (unknown)'
   Components : ''
   Controls : 1
   Simple ctrls : 1
Card29.Amixer.values:
 Simple mixer control 'Console',0
   Capabilities: pswitch pswitch-joined penum
   Playback channels: Mono
   Mono: Playback [on]
Date: Mon Aug 29 13:32:25 2011
HibernationDevice: RESUME=UUID=a6b46085-81aa-4133-aaed-b705db9d8314
InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Release i386 (20110427.1)
Lsusb:
 Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
 Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
 Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
 Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
MachineType: LENOVO 114320U
ProcEnviron:
 LANGUAGE=en_US:en
 LANG=en_US.UTF-8
 SHELL=/bin/bash
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-2.6.38-11-generic-pae root=UUID=bca28698-ce5c-42fc-aa7a-baa441e0ce50 ro quiet splash initcall_debug vt.handoff=7
RelatedPackageVersions:
 linux-restricted-modules-2.6.38-11-generic-pae N/A
 linux-backports-modules-2.6.38-11-generic-pae N/A
 linux-firmware 1.52
SourcePackage: linux
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 03/17/2011
dmi.bios.vendor: LENOVO
dmi.bios.version: 8HET26WW(1.08)
dmi.board.asset.tag: Not Available
dmi.board.name: 114320U
dmi.board.vendor: LENOVO
dmi.board.version: Not Available
dmi.chassis.asset.tag: No Asset Information
dmi.chassis.type: 10
dmi.chassis.vendor: LENOVO
dmi.chassis.version: Not Available
dmi.modalias: dmi:bvnLENOVO:bvr8HET26WW(1.08):bd03/17/2011:svnLENOVO:pn114320U:pvrThinkPadE520:rvnLENOVO:rn114320U:rvrNotAvailable:cvnLENOVO:ct10:cvrNotAvailable:
dmi.product.name: 114320U
dmi.product.version: ThinkPad E520
dmi.sys.vendor: LENOVO

Revision history for this message
Marc Legris (maaarc-deactivatedaccount-deactivatedaccount-deactivatedaccount-deactivatedaccount-deactivatedaccount) wrote :
Changed in linux (Ubuntu):
assignee: nobody → Chris Van Hoof (vanhoof)
Brad Figg (brad-figg)
Changed in linux (Ubuntu):
status: New → Confirmed
Chris Van Hoof (vanhoof)
Changed in linux (Ubuntu):
assignee: Chris Van Hoof (vanhoof) → Ike Panhc (ikepanhc)
importance: Undecided → Medium
Revision history for this message
Ike Panhc (ikepanhc) wrote :

According to the output of `rfkill list`. This is an acer-wmi problem.

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

Revision history for this message
Ike Panhc (ikepanhc) wrote :

This bug report is based on Natty release. Does anyone know if the soft block works fine with Maverick release? If so, I just need to check every commit from .35 to .38

Changed in linux (Ubuntu):
status: Confirmed → In Progress
Revision history for this message
Marc Legris (maaarc-deactivatedaccount-deactivatedaccount-deactivatedaccount-deactivatedaccount-deactivatedaccount) wrote :

Soft block did not work with Maverick, looks like James Ferguson fixed it in an enablement system on 10.10. Not sure if the patch made it upstream.

Revision history for this message
Ike Panhc (ikepanhc) wrote :

I remember that. Once he says that acer-wmi blocking wifi with thinkpad E420, looks its the same situation. I told him the most simple way to solve this is to block acer-wmi.

Ok. So far what I know is that there are several exception rfkill handling in acer-wmi, I will try to put them in dkms format and see if they works.

Revision history for this message
Ike Panhc (ikepanhc) wrote :
Revision history for this message
Ike Panhc (ikepanhc) wrote :
Revision history for this message
Ike Panhc (ikepanhc) wrote :
Revision history for this message
Ike Panhc (ikepanhc) wrote :

Please try above three debs and see if one of them can solve the problem.

This will try all the rfkill exceptions of lastest acer-wmi.c

Revision history for this message
Marc Legris (maaarc-deactivatedaccount-deactivatedaccount-deactivatedaccount-deactivatedaccount-deactivatedaccount) wrote :

Installed each package and then rebooted, still seeing the softblock in place. nm-applet always seems to have wireless unchecked as well on each boot, even though I enable it each time.

Revision history for this message
Ike Panhc (ikepanhc) wrote :

Thanks for the testing.

If the softblock is still there and no way to disable is. It would be more difficult to solve it. I will try to find out if there are any hint to get real status of rfkill in acer-wmi

Revision history for this message
Ike Panhc (ikepanhc) wrote :

Plan to use tools from http://code.google.com/p/aceracpi/wiki/EmbeddedController

Let me read the script and tell how to use it correctly.

Revision history for this message
Ike Panhc (ikepanhc) wrote :

Hi,

Please download the acer_ec.pl attached and run command:

    sudo watch -n 1 perl acer_ec.pl regs

and push the rfkill hotkey several times, try to find out which register tells us the *real* rfkill status.

Thanks a lot.

Ref: http://<email address hidden>/msg01940.html

Revision history for this message
Marc Legris (maaarc-deactivatedaccount-deactivatedaccount-deactivatedaccount-deactivatedaccount-deactivatedaccount) wrote :

I'm not seeing any value in the registers change consistently to the rfkill hotkey.

Revision history for this message
Ike Panhc (ikepanhc) wrote :

That's bad news. Looks like the only way to fix this is to blacklist acer-wmi. I will check discussions on platform-x86 and see what's the proper way to blacklist.

Revision history for this message
Ike Panhc (ikepanhc) wrote :

http://people.canonical.com/~ikepanhc/lp/836865/

Please test the kernel in the above link and see if it fix the problem. If it works, I will send to upstream for review.

Ike Panhc (ikepanhc)
Changed in linux (Ubuntu):
status: In Progress → Incomplete
Revision history for this message
Marc Legris (maaarc-deactivatedaccount-deactivatedaccount-deactivatedaccount-deactivatedaccount-deactivatedaccount) wrote :

Ike, the kernel does not seem to have solved the issue.

Changed in linux (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
Marc Legris (maaarc-deactivatedaccount-deactivatedaccount-deactivatedaccount-deactivatedaccount-deactivatedaccount) wrote :

blacklisting the module manually has fixed the issue

Revision history for this message
Ike Panhc (ikepanhc) wrote :

hmm, looks like I need to revise the patch, thanks for the test.

Revision history for this message
Ike Panhc (ikepanhc) wrote :

The patch looks ObviouslyCorrect(tm) :(

After install the kernel and reboot, could you please attach output of `dmesg`, `lsmod`, `rfkill list`, `cat /sys/class/dmi/id/board_vendor` and `cat /sys/class/dmi/id/product_name`.

Thanks a lot.

Ike Panhc (ikepanhc)
Changed in linux (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
Marc Legris (maaarc-deactivatedaccount-deactivatedaccount-deactivatedaccount-deactivatedaccount-deactivatedaccount) wrote :
Revision history for this message
Marc Legris (maaarc-deactivatedaccount-deactivatedaccount-deactivatedaccount-deactivatedaccount-deactivatedaccount) wrote :
Revision history for this message
Marc Legris (maaarc-deactivatedaccount-deactivatedaccount-deactivatedaccount-deactivatedaccount-deactivatedaccount) wrote :
Revision history for this message
Marc Legris (maaarc-deactivatedaccount-deactivatedaccount-deactivatedaccount-deactivatedaccount-deactivatedaccount) wrote :
Revision history for this message
Marc Legris (maaarc-deactivatedaccount-deactivatedaccount-deactivatedaccount-deactivatedaccount-deactivatedaccount) wrote :
Changed in linux (Ubuntu):
status: Incomplete → Confirmed
Ike Panhc (ikepanhc)
Changed in linux (Ubuntu):
status: Confirmed → In Progress
Revision history for this message
Ike Panhc (ikepanhc) wrote :

Hi Marc,

Could you try the kernel in below link and let me know if the kernel fix this issue.

  http://people.canonical.com/~ikepanhc/lp/836865-1/

and please attach the output of `dmesg` no matter its ok or not.

Thanks a lot.

Changed in linux (Ubuntu):
status: In Progress → Incomplete
Revision history for this message
Ike Panhc (ikepanhc) wrote :

... and output of `rfkill list` too

Revision history for this message
Marc Legris (maaarc-deactivatedaccount-deactivatedaccount-deactivatedaccount-deactivatedaccount-deactivatedaccount) wrote :

Still no go on the wireless functionality

Revision history for this message
Marc Legris (maaarc-deactivatedaccount-deactivatedaccount-deactivatedaccount-deactivatedaccount-deactivatedaccount) wrote :
Changed in linux (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
Ike Panhc (ikepanhc) wrote :

Hi Marc

Checked the dmesg. It seems you are still using distro kernel.
Can you press left-shift when booting for grub prompt and make sure you select the test kernel please?

Revision history for this message
Marc Legris (maaarc-deactivatedaccount-deactivatedaccount-deactivatedaccount-deactivatedaccount-deactivatedaccount) wrote :

Ike,

New kernel is working, I cam able to connect to wireless APs now:
rfkill list
0: brcmwl-0: Wireless LAN
 Soft blocked: no
 Hard blocked: no

Revision history for this message
Ike Panhc (ikepanhc) wrote :

Noted that bug 826784 shall be duplicated one with Oneiric release

Revision history for this message
Ike Panhc (ikepanhc) wrote :

Patch sent to upstream mailing list for review.

http://<email address hidden>/msg02474.html

Changed in linux (Ubuntu):
status: Confirmed → In Progress
Revision history for this message
Ike Panhc (ikepanhc) wrote :

Acked from upstream maintainer, waiting for merge

http://<email address hidden>/msg02503.html

Ara Pulido (ara)
tags: added: blocks-hwcert-enablement
Revision history for this message
Ike Panhc (ikepanhc) wrote :

Hi Marc,

After upstream review, the patch is revised and use another method to prevent rfkill being registered. Please test the kernel at following URL and no matter it works fine or not, please attach output of `dmesg`

http://kernel.ubuntu.com/~ikepanhc/lp/836865-2/

Thanks a lot.

Revision history for this message
Ike Panhc (ikepanhc) wrote :

... and the output of `rfkill list` as well.

Thanks a lot.

Ike Panhc (ikepanhc)
Changed in linux (Ubuntu):
status: In Progress → Incomplete
Chris Van Hoof (vanhoof)
Changed in linux (Ubuntu):
assignee: Ike Panhc (ikepanhc) → Marc Legris (maaarc)
Ike Panhc (ikepanhc)
tags: added: acer-wmi-rfkill
Revision history for this message
Ike Panhc (ikepanhc) wrote :

find out needs to cherry-pick another commit.

Rebuild the kernel deb and put them at

 http://people.canonical.com/~ikepanhc/lp/836865-3/

Thanks a lot

Revision history for this message
Ike Panhc (ikepanhc) wrote :
Revision history for this message
Marc Legris (maaarc-deactivatedaccount-deactivatedaccount-deactivatedaccount-deactivatedaccount-deactivatedaccount) wrote :

Ike,

I'm not seeing the kernel (836865-3) resolve the issue. 2.6.38-13.52 is the kernel in use though, while your kernel is 2.6.38-12.51. Is the installed kernel the correct one?

Changed in linux (Ubuntu):
status: Incomplete → Confirmed
Changed in linux (Ubuntu):
assignee: Marc Legris (maaarc) → Ike Panhc (ikepanhc)
Revision history for this message
Ike Panhc (ikepanhc) wrote :

Looks like the installation failed because there is newer kernel landed at Nov-28th.

I will build another kernel based on 2.6.38-13.52

Changed in linux (Ubuntu):
status: Confirmed → In Progress
Revision history for this message
Ike Panhc (ikepanhc) wrote :

Hi Marc,

I rebuild the kernel based on lastest update tag (Ubuntu-2.6.38-13.53)

You may find the kernel debs at http://people.canonical.com/~ikepanhc/lp/836865-5/

Please help me with the test:

  1. Have a clean install Ubuntu natty
  2. Install broadcom driver through jockey
  3. Install kernel debs at above link
  4. Reboot to use the new kernel deb
  5. Test and see if the wifi works
  6. Attach the output of `dmesg` and `rfkill list`

If the wifi does not work, Please blacklist acer-wmi and repeat 4-6 again.

Thanks a lot.

Changed in linux (Ubuntu):
status: In Progress → Incomplete
assignee: Ike Panhc (ikepanhc) → Marc Legris (maaarc)
Revision history for this message
Marc Legris (maaarc-deactivatedaccount-deactivatedaccount-deactivatedaccount-deactivatedaccount-deactivatedaccount) wrote :

Hi Ike,

Wifi did not work the first time, or after blacklisting acer_wmi. rfkill list was blank (no output) each time as well.

Changed in linux (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
Marc Legris (maaarc-deactivatedaccount-deactivatedaccount-deactivatedaccount-deactivatedaccount-deactivatedaccount) wrote :
Changed in linux (Ubuntu):
assignee: Marc Legris (maaarc) → Ike Panhc (ikepanhc)
Revision history for this message
Ike Panhc (ikepanhc) wrote :

Thanks Marc,

Looks like this approach also introduces regression.. bad

I will report this to mainainers and seek for other way to fix this.

Ike Panhc (ikepanhc)
Changed in linux (Ubuntu):
status: Confirmed → In Progress
Revision history for this message
Ike Panhc (ikepanhc) wrote :

Hi,

The last approach introduce regressions, so I am thinking an alternative approach. Since most of the report is on ideapads or thinkpads, and we have rfkill registered in ideapad-laptop, I think it will be fine not to register acer-wmi rfkill if we find ideapad/thinkpad device in DSDT.

Ref: http://<email address hidden>/msg02788.html

I have made the patch and built the test kernel, but I have no machine to check, could you help me check if this kernel fix this issue?

You can find the kernel at
   http://people.canonical.com/~ikepanhc/lp/lp836865-6/

This kernel is built as natty i386

Thanks a lot.

Changed in linux (Ubuntu):
status: In Progress → Incomplete
assignee: Ike Panhc (ikepanhc) → Marc Legris (maaarc)
Revision history for this message
Marc Legris (maaarc-deactivatedaccount-deactivatedaccount-deactivatedaccount-deactivatedaccount-deactivatedaccount) wrote :

Installed the kernel, rfkill show acer-wireless being softblocked.

Changed in linux (Ubuntu):
assignee: Marc Legris (maaarc) → Ike Panhc (ikepanhc)
status: Incomplete → Confirmed
Revision history for this message
Ike Panhc (ikepanhc) wrote :

Thanks for testing.

I found the problem, forget to cherry-pick another commit

commit 1709adab0773616da7a8190f2762e599afb0a295
Author: Lee, Chun-Yi <email address hidden>
Date: Thu Aug 18 18:47:33 2011 +0800

    acer-wmi: check wireless capability flag before register rfkill

    There will be better to check the wireless capability flag
    (ACER_CAP_WIRELESS) before register wireless rfkill because maybe
    the machine doesn't have wifi module or the module removed by user.

    Tested on Acer Travelmate 8572
    Tested on Acer Aspire 4739Z

Will rebuild the test kernel.

Changed in linux (Ubuntu):
status: Confirmed → In Progress
Revision history for this message
Ike Panhc (ikepanhc) wrote :

Ok, the updated kernel debs are ready at

  http://people.canonical.com/~ikepanhc/lp/836865-7/

Thanks a lot.

Changed in linux (Ubuntu):
status: In Progress → Incomplete
assignee: Ike Panhc (ikepanhc) → Marc Legris (maaarc)
Revision history for this message
Marc Legris (maaarc-deactivatedaccount-deactivatedaccount-deactivatedaccount-deactivatedaccount-deactivatedaccount) wrote :

Ike,

Still no luck with the latest kernel. Rfkill is still not showing anything, and blacklisting acer_wmi has no effect.

Changed in linux (Ubuntu):
status: Incomplete → Confirmed
assignee: Marc Legris (maaarc) → Ike Panhc (ikepanhc)
Changed in linux (Ubuntu Precise):
status: Confirmed → In Progress
Revision history for this message
Ike Panhc (ikepanhc) wrote :

I think it will better that we works on one bug (bug 826784) until we have the fix accepted by upstream maintainer.

Changed in linux (Ubuntu Precise):
status: In Progress → Triaged
To post a comment you must log in.