yucemahmut / android-on-freerunner

Automatically exported from code.google.com/p/android-on-freerunner
0 stars 0 forks source link

USB networking is not established if the phone was suspended #91

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Configure the phone not to suspend while charging (Setting ->
Applications -> Development)
2. Disconnect the USB cable and allow the phone to suspend
3. Connect the powered USB cable.
4. Observe the phone waking up, but no USB connection is established.

What is the expected output? What do you see instead?
The USB network connection should be established after the phone wakes up
from suspend. Currently I have to take out the USB cable, wait a sec and
put it back for the USB networking to work.

What version of the product are you using? On what operating system?
android-on-freerunner-cupcake-daily-20091216.tar.bz2

Please provide any additional information below.
If I wake the phone before plugging in the USB, then the USB networking is
established on the first try.

Original issue reported on code.google.com by skliarie@gmail.com on 21 Dec 2009 at 8:45

GoogleCodeExporter commented 9 years ago
Sometimes when I plug in the USB cable, the suspended phone is not waking up at 
all.

In case the USB connection is not established the sent packets are represented 
in
errors field of ifconfig.

On my ubuntu 9.10 the usb connection always appears on a different ethX device 
(where
X>0). I don't know how to fix that with udev, so I wrote a script that is 
launched
from cron each 5 minutes to autodetect and configure the network card. It might 
be
useful for someone, so attaching is here.

Original comment by skliarie@gmail.com on 21 Dec 2009 at 9:20

Attachments: