[STAGING] rt2860sta drops out when running on battery power, worked in Lucid

Bug #661682 reported by Thomas Horsten
24
This bug affects 4 people
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

I have an Asus Eee 1000HE with a RaLink RT2860 wireless controller. In Lucid Lynx, I could reliably connect to my 802.11g access point using WPA (it has never worked on my 802.11n access point and this bug is documented elsewhere).

However after upgrading to Maverick, the wireless connection usually drops out when I unplug the AC adapter and run on battery. NetworkManager tries to reconnect but is unsuccesful, after a while no wireless networks show up in the scan result. The following is recorded in the syslog when this happens:

Oct 16 12:30:32 eee kernel: [30073.089686] ===>rt_ioctl_giwscan. 2(2) BSS returned, data->length = 292
Oct 16 12:31:12 eee kernel: [30113.089214] ===>rt_ioctl_giwscan. 2(2) BSS returned, data->length = 292
Oct 16 12:32:12 eee kernel: [30173.089239] ===>rt_ioctl_giwscan. 2(2) BSS returned, data->length = 292
Oct 16 12:33:32 eee kernel: [30253.093475] ===>rt_ioctl_giwscan. 2(2) BSS returned, data->length = 292
Oct 16 12:33:54 eee kernel: [30275.870643] lo: Disabled Privacy Extensions
Oct 16 12:35:12 eee kernel: [30353.089276] ===>rt_ioctl_giwscan. 2(2) BSS returned, data->length = 292
Oct 16 12:37:12 eee kernel: [30473.084281] ===>rt_ioctl_giwscan. 2(2) BSS returned, data->length = 292

After restoring AC power, these error messages stop and NetworkManager is able to reconnect to the network.

ProblemType: Bug
DistroRelease: Ubuntu 10.10
Package: linux-image-2.6.35-22-generic 2.6.35-22.34
Regression: Yes
Reproducible: Yes
ProcVersionSignature: Ubuntu 2.6.35-22.34-generic 2.6.35.4
Uname: Linux 2.6.35-22-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: 0/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: th 1609 F.... pulseaudio
 /dev/snd/pcmC0D0p: th 1609 F...m pulseaudio
CRDA: Error: [Errno 2] No such file or directory
Card0.Amixer.info:
 Card hw:0 'Intel'/'HDA Intel at 0xf7eb8000 irq 44'
   Mixer name : 'Realtek ALC269'
   Components : 'HDA:10ec0269,1043834a,00100004'
   Controls : 10
   Simple ctrls : 6
Date: Sat Oct 16 12:33:02 2010
HibernationDevice: RESUME=UUID=d6f0635d-0cc6-4f12-86f2-4222d8f48101
InstallationMedia: Ubuntu 10.04 LTS "Lucid Lynx" - Release i386 (20100427.1)
MachineType: ASUSTeK Computer INC. 1000HE
ProcCmdLine: BOOT_IMAGE=/vmlinuz-2.6.35-22-generic root=/dev/mapper/hostname-root ro acpi_osi=Linux acpi_backlight=vendor quiet splash
ProcEnviron:
 PATH=(custom, user)
 LANG=en_GB.utf8
 SHELL=/bin/bash
RelatedPackageVersions: linux-firmware 1.38
SourcePackage: linux
StagingDrivers: rt2860sta
Title: [STAGING]
dmi.bios.date: 10/14/2009
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: 1104
dmi.board.asset.tag: To Be Filled By O.E.M.
dmi.board.name: 1000HE
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.:bvr1104:bd10/14/2009:svnASUSTeKComputerINC.:pn1000HE:pvrx.x:rvnASUSTeKComputerINC.:rn1000HE:rvrx.xx:cvnASUSTekComputerINC.:ct10:cvrx.x:
dmi.product.name: 1000HE
dmi.product.version: x.x
dmi.sys.vendor: ASUSTeK Computer INC.

Revision history for this message
Thomas Horsten (thomas-horsten) wrote :
Revision history for this message
Thomas Horsten (thomas-horsten) wrote :

Installed the Windows driver with ndiswrapper, and it works without issues on battery. Even with my 802.11n access point.

Revision history for this message
Wolfgang Kufner (wolfgangkufner) wrote :

Hi TH

It would be great if you could run a few tests so that we can support your hardware out of the box in natty.

from your lspci.txt:
>Kernel driver in use: rt2860
>Kernel modules: rt2860sta, rt2800pci

Your RaLink RT2860 [1814:0781] should run with rt2800pci in maverick. However it seems that it uses rt2860 (from staging) instead. Could you try whether it works with rt2800pci (by blacklisting rt2860sta or even temporarily renaming the rt2860sta module).

Thanks

Revision history for this message
Thomas Horsten (thomas-horsten) wrote :

Hi Wolfgang,

It doesn't work with rt2800pci:

th@eee:~/src/radio/fl$ sudo rmmod ndiswrapper
th@eee:~/src/radio/fl$ sudo modprobe rt2800pci
th@eee:~/src/radio/fl$ dmesg
....
[295358.839789] ndiswrapper: device wlan0 removed
[295358.844588] ndiswrapper 0000:01:00.0: PCI INT A disabled
[295358.846641] usbcore: deregistering interface driver ndiswrapper
[295358.847684] ndiswrapper (ntoskernel_exit:2621): Windows driver didn't free all MDLs; freeing them now
[295363.171855] rt2800pci 0000:01:00.0: PCI INT A -> GSI 19 (level, low) -> IRQ 19
[295363.171876] rt2800pci 0000:01:00.0: setting latency timer to 64
[295363.519282] phy0: Selected rate control algorithm 'minstrel'
[295363.521648] Registered led device: rt2800pci-phy0::radio
[295363.522251] Registered led device: rt2800pci-phy0::assoc
[295363.522569] Registered led device: rt2800pci-phy0::quality

th@eee:~/src/radio/fl$ sudo ifconfig wlan0 up
SIOCSIFFLAGS: Operation not possible due to RF-kill

This is in spite of WLAN being turned on. If the WLAN switch is off wlan0 disappears completely. With rt2860sta or ndiswrapper, this works.

Let me know if you want me to do anything else although it may be a day or two before I can do it.

Thomas

Revision history for this message
Wolfgang Kufner (wolfgangkufner) wrote :

Hi Thomas,

this rfkill problem is new to me so I googled around a bit and it seems there are problems of varying severity somewhere between rfkill and platform drivers like eeepc_laptop and some WLAN drivers.

Could you try the workaround from https://bbs.archlinux.org/viewtopic.php?id=102428 :
sudo apt-get install rfkill
sudo rfkill list
sudo rfkill unblock all
sudo ifconfig wlan0 up
and see how the rt2800pci performs then?

A next step might be to try without the platform drivers like eeepc_laptop and eeepc_wmi to find out if they really have something to do with this.

Thanks,
Wolfgang

Revision history for this message
Wolfgang Kufner (wolfgangkufner) wrote :

Hi Thomas,

those platform drivers look like the prime suspect. I have found a very good explanation by the
Project Maintainer for ACPI4Asus, Corentin Chary from november 28 2010:
http://xf.iksaif.net/blog/index.php?tag/eeepc-laptop
(Your bug report indeed shows that you have acpi_osi=Linux and both platform modules are loaded.)

So that means it would be great if you could test with a current kernel (without acpi_osi and with only eeepc_wmi loaded) whether this resolves your rfkill issue and whether rt2x00 then works.
( http://kernel.ubuntu.com/~kernel-ppa/mainline/ )

Thanks,
Wolfgang

Revision history for this message
Wolfgang Kufner (wolfgangkufner) wrote :

If dropping out on battery is also an issue with the rt2800pci try:
sudo touch /etc/pm/power.d/wireless
which is the recommended way (according to man pm-powersave) to disable a powersave script (wireless in this case).

Brad Figg (brad-figg)
Changed in linux (Ubuntu):
status: New → Confirmed
Revision history for this message
Wolfgang Kufner (wolfgangkufner) wrote :

Hi Thomas,

it has been quite a few month. Do you still see this issue?

As far as the wlan driver is concerned your hardware should now definitely work with the rt2800pci driver. I do not know about the status of the platform driver issue.

Please install the most up to date version of firmware for the rt2800pci driver from:
http://people.canonical.com/~sforshee/lp762987/linux-firmware_1.52~lp762987v201106061858_all.deb
as long as the task of updating the linux-firmware in your ubuntu version to this new firmware is not "fix released" (see bug 762987).

For natty I recommend to use the kernel still in natty-proposed.
For maverick and lucid I recommend to use the newest available linux-backports-modules-compat-wireless.

You may have to blacklist the rt2860sta staging driver if it interferes with the operation of the rt2800pci. Let me know if you have to do this.

Let me know whether or not everything works for you with those new rt2800pci drivers and firmware.

Changed in linux (Ubuntu):
status: Confirmed → Incomplete
tags: added: rt2800pci
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.