168c:001c Wlan pci card hotplug doesn't work

Bug #727204 reported by shoo_ash
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Expired
Low
Unassigned

Bug Description

When switching wlan on with hotkey on eeepc 900ha the wifi doesn't work. Catches "unable to wake up" message. Previously in maverick this was solved by adding pciehp.pciehp_force=1 and pciehp.pciehp_poll=1 to boot params. Doesn't help anymore, seems like pciehp module doesn't work as it did.

WORKAROUND: To turn wifi on, after Fn+F2 enables the device, you just need to force pci rescan:

# echo 1 > /sys/bus/pci/rescan

and then load ath5k module

#modprobe ath5k

When the device gets turned off by Fn+f2 key I have to manually remove it from kernel. Otherwise it won't let to reload itself.

##first remove ath5k module, as it gets kernel panic when pci device is removed:
#modprobe -r ath5k
##remove the wlan device
#echo 1 > /sys/bus/pci/devices/0000:02:00.0/remove
##rescan pci-bus
#echo 1 > /sys/bus/pci/rescan

So I had to make rules for acpid event 0x10 - and it seems to work fine. Also it doesn't need forced pciehp anymore.

ProblemType: Bug
DistroRelease: Ubuntu 11.04
Package: linux-image-2.6.38-5-generic 2.6.38-5.32
Regression: Yes
Reproducible: Yes
ProcVersionSignature: Ubuntu 2.6.38-5.32-generic 2.6.38-rc6
Uname: Linux 2.6.38-5-generic i686
AlsaVersion: Advanced Linux Sound Architecture Driver Version 1.0.23.
AplayDevices:
 **** List of PLAYBACK Hardware Devices ****
 card 0: Intel [HDA Intel], device 0: ALC269 Analog [ALC269 Analog]
   Subdevices: 1/1
   Subdevice #0: subdevice #0
Architecture: i386
ArecordDevices:
 **** List of CAPTURE Hardware Devices ****
 card 0: Intel [HDA Intel], device 0: ALC269 Analog [ALC269 Analog]
   Subdevices: 1/1
   Subdevice #0: subdevice #0
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC0: andrey 1342 F.... pulseaudio
CRDA: Error: [Errno 2] No such file or directory
Card0.Amixer.info:
 Card hw:0 'Intel'/'HDA Intel at 0xf3db8000 irq 44'
   Mixer name : 'Realtek ALC269'
   Components : 'HDA:10ec0269,10438330,00100004'
   Controls : 11
   Simple ctrls : 7
Date: Tue Mar 1 17:38:48 2011
HibernationDevice: RESUME=UUID=218dee04-7163-4395-907b-dce63224f512
InstallationMedia: Kubuntu 11.04 "Natty Narwhal" - Alpha i386 (20110202)
MachineType: ASUSTeK Computer INC. 900HA
ProcEnviron:
 LANGUAGE=
 LANG=en_US.UTF-8
 SHELL=/bin/bash
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-2.6.38-5-generic root=UUID=09023328-c158-4d6b-932a-02005da159c2 ro pciehp_force=1 pciehp_poll_mode=1 pciehp.pciehp_force=1 pciehp.pciehp_poll_mode=1 pciehp.pciehp_poll=1 quiet splash vt.handoff=7
RelatedPackageVersions:
 linux-restricted-modules-2.6.38-5-generic N/A
 linux-backports-modules-2.6.38-5-generic N/A
 linux-firmware 1.47
SourcePackage: linux
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 11/25/2009
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: 1201
dmi.board.asset.tag: To Be Filled By O.E.M.
dmi.board.name: 900HA
dmi.board.vendor: ASUSTeK Computer INC.
dmi.board.version: x.xx
dmi.chassis.asset.tag: 0x00000000
dmi.chassis.type: 10
dmi.chassis.vendor: ASUSTek Computer INC.
dmi.chassis.version: x.x
dmi.modalias: dmi:bvnAmericanMegatrendsInc.:bvr1201:bd11/25/2009:svnASUSTeKComputerINC.:pn900HA:pvrx.x:rvnASUSTeKComputerINC.:rn900HA:rvrx.xx:cvnASUSTekComputerINC.:ct10:cvrx.x:
dmi.product.name: 900HA
dmi.product.version: x.x
dmi.sys.vendor: ASUSTeK Computer INC.

Revision history for this message
shoo_ash (ash-mail) wrote :
Revision history for this message
shoo_ash (ash-mail) wrote :

So a proper dmesg. Turned wlan off and on via keyboard.

Revision history for this message
shoo_ash (ash-mail) wrote :
Revision history for this message
shoo_ash (ash-mail) wrote :
tags: added: regression-release
removed: regression-update
Revision history for this message
shoo_ash (ash-mail) wrote :

Found a solution (not a fix) for 900ha with kernel 2.6.38+.
To turn wifi on, after Fn+F2 enables the device, you just need to force pci rescan:

# echo 1 > /sys/bus/pci/rescan

and then load ath5k module

#modprobe ath5k

When the device gets turned off by Fn+f2 key I have to manually remove it from kernel. Otherwise it won't let to reload itself.

##first remove ath5k module, as it gets kernel panic when pci device is removed:
#modprobe -r ath5k
##remove the wlan device
#echo 1 > /sys/bus/pci/devices/0000:02:00.0/remove
##rescan pci-bus
#echo 1 > /sys/bus/pci/rescan

So I had to make rules for acpid event 0x10 - and it seems to work fine. Also it doesn't need forced pciehp anymore.

Revision history for this message
shoo_ash (ash-mail) wrote :
Brad Figg (brad-figg)
Changed in linux (Ubuntu):
status: New → Confirmed
Revision history for this message
Paul Miki (kazu-doi) wrote :

I have same experience on my EeePC 900A and Ubuntu11.04.
Thank you for the scripts.
It worked, and fixed the problem on my EeePC, even if it's 900A, not 900HA.
Thanks for shoo_ash.

Revision history for this message
Gursel Mutlu (gurselm) wrote :

Same problem when using an external WLAN pcie module. Removing card and replacing back doesn't trigger rescan as it did previously(ubuntu 10.10...) by pcie_force boot option.

Workaround is calling:
echo 1 | sudo tee /sys/bus/pci/devices/0000\:03\:00.0/remove > /dev/null
echo 1 | sudo tee /sys/bus/pci/rescan > /dev/null

Where 0000:03.. is pci listing for related wlan card in lspci.

Revision history for this message
penalvch (penalvch) wrote :

shoo_ash, this bug was reported a while ago and there hasn't been any activity in it recently. We were wondering if this is still an issue? Can you try with the latest development release of Ubuntu? ISO CD images are available from http://cdimage.ubuntu.com/releases/ .

If it remains an issue, could you run the following command in the development release from a Terminal (Applications->Accessories->Terminal). It will automatically gather and attach updated debug information to this report.

apport-collect -p linux <replace-with-bug-number>

Also, if you could test the latest upstream kernel available that would be great. It will allow additional upstream developers to examine the issue. Refer to https://wiki.ubuntu.com/KernelMainlineBuilds . Please do not test the kernel in the daily folder, but the one all the way at the bottom. Once you've tested the upstream kernel, please remove the 'needs-upstream-testing' tag. This can be done by clicking on the yellow pencil icon next to the tag located at the bottom of the bug description and deleting the 'needs-upstream-testing' text. As well, please comment on which kernel version specifically you tested.

If this bug is fixed in the mainline kernel, please add the following tag 'kernel-fixed-upstream'.

If the mainline kernel does not fix this bug, please add the tag: 'kernel-bug-exists-upstream'.

If you are unable to test the mainline kernel, for example it will not boot, please add the tag: 'kernel-unable-to-test-upstream', and comment as to why specifically you were unable to test it.

Please let us know your results. Thanks in advance.

Helpful Bug Reporting Links:
https://help.ubuntu.com/community/ReportingBugs#Bug_Reporting_Etiquette
https://help.ubuntu.com/community/ReportingBugs#A3._Make_sure_the_bug_hasn.27t_already_been_reported
https://help.ubuntu.com/community/ReportingBugs#Adding_Apport_Debug_Information_to_an_Existing_Launchpad_Bug
https://help.ubuntu.com/community/ReportingBugs#Adding_Additional_Attachments_to_an_Existing_Launchpad_Bug

summary: - Wlan pci card hotplug doesn't work
+ 168c:001c Wlan pci card hotplug doesn't work
description: updated
Changed in linux (Ubuntu):
importance: Undecided → Low
status: Confirmed → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for linux (Ubuntu) because there has been no activity for 60 days.]

Changed in linux (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.