You are not logged in.

#1 2012-02-27 21:57:42

Battus
Member
Registered: 2011-09-24
Posts: 37

[SOLVED] rt2500usb_set_device_state error

Hi,

I am trying to get a Ralink RT2570 USB wireless adapter to work with my recent Arch installation.

Immediately after invoking wpa_supplicant (which I do strictly following the instructions in the WPA supplicant wiki article),
I get the error mentioned in the title, i.e.

phy0 -> rt2500usb_set_device_state: Error - Device failed to enter state 3 (-16).
phy0 -> rt2x00lib_autowakeup: Error - device failed to wakeup.

These two errors continue to appear in a loop and I've found no way to interrupt them other than reboot (or shutdown).

A search of this forum finds nothing which seems relevant to this particular problem, as far as I can see.
A whole-web search shows it mentioned as a bug for certain releases of Ubuntu and OpenSUSE.

Funny thing is - when I use PCLInuxOS from a live CD on the same machine with the same wireless adapter - it seems to work OK!!!
(Though I haven't tried it for any length of time yet).

I'm not sure what information is relevant but here is rc.conf

# LOCALIZATION
# ------------
HARDWARECLOCK="UTC"
TIMEZONE="Europe/Amsterdam"
KEYMAP="us"
CONSOLEFONT=
CONSOLEMAP=
LOCALE=
DAEMON_LOCALE="yes"
USECOLOR="yes"

# HARDWARE
# --------
MODULES=()
USEDMRAID="no"
USEBTRFS="no"
USELVM="no"

# NETWORKING
# ----------
HOSTNAME="pdv"

interface=eth0
address=
netmask=
broadcast=
gateway=

NETWORK_PERSIST="no"

# DAEMONS
# -------
#
DAEMONS=(syslog-ng network crond dbus)

and wpa_supplicant.conf

ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=network
update_config=1

network={
	ssid="SummerNet"
	psk="Shh! Secret ;-)"
	proto=WPA
	key_mgmt=WPA-PSK
	pairwise=TKIP
	auth_alg=OPEN
}

I'd be happy to give more detailed information from my setup but I not sure yet, what would help...

Does anyone have any thoughts on this, please?

Last edited by Battus (2012-03-16 11:41:12)

Offline

#2 2012-03-06 17:04:41

Battus
Member
Registered: 2011-09-24
Posts: 37

Re: [SOLVED] rt2500usb_set_device_state error

Well, it appears there were not too many ideas on this issue, so I did a bit of searching of my own and eventually came up with a solution which seems to work OK up to now (I'm working over that wireless link now).

The solution was simple and gleaned from an apparently inactive forum which specialized in Ralink drivers up to about 2008 as far as I can make out.

The solution is to turn off the power management of the wireless adapter,
that's:

 iwconfig wlan0 power off

in my case.

It's a frustrating solution in a way since I don't know why it works but thanks anyway to Ivo van Doorn of Haarlem,
Netherlands for putting me on to it via that other forum.

Offline

#3 2012-03-07 19:42:51

Strike0
Member
From: Germany
Registered: 2011-09-05
Posts: 1,277

Re: [SOLVED] rt2500usb_set_device_state error

Great you found the work-around yourself. The reason it works will be just that the driver for the device has poorly implemented power management. A lot of wireless devices / drivers unfortunately exhibit that currently.
If it keeps solving your issue, add the output of lsusb for the card here. Most exact hardware information does help others to search for relevant threads.

Offline

#4 2012-03-16 11:54:12

Battus
Member
Registered: 2011-09-24
Posts: 37

Re: [SOLVED] rt2500usb_set_device_state error

Thanks for the encouraging words Strike0 smile (I find these DIY distros like Arch and Gentoo can sometimes get discouraging - for this n00b anyway)
I waited a bit with replying because I wanted to make sure this solution stayed stable - and it does seem OK...
What I still don't understand though, is that the same USB wireless adapter works perfectly under PCLinuxOS with power management left on...

Here's my lsusb output to better identify the device:

Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 002: ID 148f:2570 Ralink Technology, Corp. RT2570 Wireless Adapter
Bus 003 Device 002: ID 046d:c001 Logitech, Inc. N48/M-BB48 [FirstMouse Plus]
Bus 001 Device 004: ID 0930:6545 Toshiba Corp. Kingston DataTraveler 102 Flash Drive / HEMA Flash Drive 2 GB / PNY Attache 4GB Stick

Offline

#5 2012-03-16 18:14:30

Strike0
Member
From: Germany
Registered: 2011-09-05
Posts: 1,277

Re: [SOLVED] rt2500usb_set_device_state error

Battus wrote:

What I still don't understand though, is that the same USB wireless adapter works perfectly under PCLinuxOS with power management left on...

As of today PCLinuxOS is on kernel 2.6.38.8 apparently. That difference to the current kernel alone probably gives a fair room to speculate on why :-) I have an old card (VIA chip) somewhere that used to work fairly well with the older kernels but doesn't anymore at all...

Offline

#6 2013-01-10 00:50:53

misiu_mp
Member
Registered: 2010-10-05
Posts: 2

Re: [SOLVED] rt2500usb_set_device_state error

I have the same problem with a Belkin usb WiFi stick. Other than the driver message (failed to enter state 3, failed to wakup), the symptoms are very long, irregular ping times and thus really slow browsing.

Bus 002 Device 006: ID 050d:7050 Belkin Components F5D7050 Wireless G Adapter v1000/v2000 [Intersil ISL3887]

The workaround is effective, but it makes the device warm to touch:

iwconfig wlanX power off 

Running on Fedora 17 with kernel 3.6.7-4.

Offline

#7 2013-01-10 11:01:51

Battus
Member
Registered: 2011-09-24
Posts: 37

Re: [SOLVED] rt2500usb_set_device_state error

@misiu_mp: Pleased to hear the solution works for you too.
I am still successfully using the same USB Wireless Adapter as mentioned above under a recently re-installed Archlinux
(kernel: 3.6.11-1). In spite of the bang up-to-date system, the need to disable the device's power management is still there.

Funnily enough, it had never occurred to me to check the temperature.
I switched the old laptop on an hour or so ago and have done some web browsing.

While the device is definitely warmer to the touch than another one which is just lying on the shelf,
I cannot call it any where near hot. To try to compare our experiences without measuriing actual temperatures:
Does the adapter become too hot to touch comfortably?
Does the thing start to smell?
Does the wireless connection become unstable?

If the answers to these are negative I would assume you can continue to use the device under these conditions but perhaps
someone with with more knowledge about this hardware/software combination can help?

Offline

#8 2013-02-27 16:32:18

murphstein
Member
Registered: 2013-02-27
Posts: 1

Re: [SOLVED] rt2500usb_set_device_state error

FWIW, I just had the same problem installing Ubuntu 12.04.02 Server on an HP Pavilion P6000 desktop, affecting both the onboard WiFi (wlan0) and an old DLink USB WiFi plug-in module.

The DLink module:

murphstein@chicxulub:~$ lsusb
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 003: ID 0461:4d0f Primax Electronics, Ltd
Bus 001 Device 004: ID 04f2:0841 Chicony Electronics Co., Ltd
Bus 001 Device 005: ID 2001:3c00 D-Link Corp. AirPlus G DWL-G122 Wireless Adapter(rev.B1) [Ralink RT2500USB]
Bus 002 Device 003: ID 0bda:0151 Realtek Semiconductor Corp. Mass Storage Device (Multicard Reader)

The Linux kernel version:

Linux chicxulub 3.5.0-23-generic #35~precise1-Ubuntu SMP Fri Jan 25 17:13:26 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux

The solution given above (turning off power management using iwconfig) solved the problem.

Offline

Board footer

Powered by FluxBB