Author Topic: Usb Recover Accross Suspend Resume ??  (Read 9497 times)

dansawyer

  • Sr. Member
  • ****
  • Posts: 293
    • View Profile
    • http://
Usb Recover Accross Suspend Resume ??
« on: January 01, 2005, 01:23:17 am »
All,

usb suspend resume appears to be hanging up - again. The only way to re-ling accross the usb is after a re-boot. It comes up well.

I tried the sa1100 scripts that used to work for 3.5.1 but  to  no avail. Is there a fix or patch for this??

thanks,
Dan

grog

  • Hero Member
  • *****
  • Posts: 692
    • View Profile
    • http://
Usb Recover Accross Suspend Resume ??
« Reply #1 on: January 01, 2005, 01:45:31 pm »
mmm, actually I was just trying to figure this our myself. So that's two!
GROG!

dansawyer

  • Sr. Member
  • ****
  • Posts: 293
    • View Profile
    • http://
Usb Recover Accross Suspend Resume ??
« Reply #2 on: January 01, 2005, 06:09:11 pm »
Umm. Well the origenal post was a failior of the 'host' machine to restore usb after a suspend resume cycle. This was new; frequently it is the Z that will not pick up the usb interface. I will experiment and post. That said, is there anyway to 'test' the usb? When it is dead it is dead on both sides.

Dan

grog

  • Hero Member
  • *****
  • Posts: 692
    • View Profile
    • http://
Usb Recover Accross Suspend Resume ??
« Reply #3 on: January 02, 2005, 11:56:46 am »
Just to qualify my own problem, my winxp pc comes up with the error 'USB device not recognized' when I plug my Z (back) in until I reboot the *Z* (not the pc), then it works fine until the next time I unplug then replug the Z back in. HTH
GROG!

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Usb Recover Accross Suspend Resume ??
« Reply #4 on: January 02, 2005, 05:28:05 pm »
As a temporary work-around...

If you rmmod then insmod the usb/net_fd related modules it should fix it.

I was told on IRC that you should be able to modprobe usbd-control (not sure about the name, but something like that, and just the one module), rather than having to remove/add each module by hand.


Si
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva

Hrw

  • Hero Member
  • *****
  • Posts: 1366
    • View Profile
Usb Recover Accross Suspend Resume ??
« Reply #5 on: January 03, 2005, 01:04:09 pm »
modprobe usbdmonitor?
OpenZaurus 3.5.4x Release Manager
OpenEmbedded, Ångström, Poky developer
My website

Misc embedded hardware.

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Usb Recover Accross Suspend Resume ??
« Reply #6 on: January 03, 2005, 01:09:43 pm »
That sounds like the one :-), I've not tried it (yet) mind you as I can just run my start_net.sh script.

Si
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva

Pyrates

  • Full Member
  • ***
  • Posts: 198
    • View Profile
    • http://www.pipsfrank.de
Usb Recover Accross Suspend Resume ??
« Reply #7 on: January 03, 2005, 03:19:31 pm »
Hey lardman, would you mind providing that start_net.sh script?

Cheers
Philipp
\" ... and the Vogon will do things to you that you wish you\'d never been born, or, if you\'re a clearer minded thinker, that the Vogon had never been born.\"

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Usb Recover Accross Suspend Resume ??
« Reply #8 on: January 03, 2005, 05:53:13 pm »
Note the differences depending on your processor type (SA or PXA):

https://www.oesf.org/forums/inde...rt_net\.sh

Modified to just reload the net module, rather than looking at the storage stuff.

For SA:

#!/bin/sh
/sbin/rmmod sa1100_bi
/sbin/rmmod net_fd
/sbin/rmmod usbdcore
/sbin/insmod /lib/modules/2.4.18-rmk7-pxa3-embedix/kernel/drivers/usb/device/usbdcore.o
/sbin/insmod /lib/modules/2.4.18-rmk7-pxa3-embedix/kernel/drivers/usb/device/net_fd/net_fd.o
/sbin/insmod /lib/modules/2.4.18-rmk7-pxa3-embedix/kernel/drivers/usb/device/bi/sa1100_bi.o

or for PXA:

#!/bin/sh
/sbin/rmmod pxa_bi
/sbin/rmmod net_fd
/sbin/rmmod usbdcore
/sbin/insmod /lib/modules/2.4.18-rmk7-pxa3-embedix/kernel/drivers/usb/device/usbdcore.o
/sbin/insmod /lib/modules/2.4.18-rmk7-pxa3-embedix/kernel/drivers/usb/device/net_fd/net_fd.o
/sbin/insmod /lib/modules/2.4.18-rmk7-pxa3-embedix/kernel/drivers/usb/device/bi/pxa_bi.o


Si
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva

Pyrates

  • Full Member
  • ***
  • Posts: 198
    • View Profile
    • http://www.pipsfrank.de
Usb Recover Accross Suspend Resume ??
« Reply #9 on: January 03, 2005, 06:08:48 pm »
Ahh, so it does just what you mentioned above. Thanks

Cheers
Philipp
\" ... and the Vogon will do things to you that you wish you\'d never been born, or, if you\'re a clearer minded thinker, that the Vogon had never been born.\"

grog

  • Hero Member
  • *****
  • Posts: 692
    • View Profile
    • http://
Usb Recover Accross Suspend Resume ??
« Reply #10 on: January 03, 2005, 08:34:01 pm »
Thanks lardman. Works for me too!!
GROG!

CoreDump

  • Hero Member
  • *****
  • Posts: 713
    • View Profile
    • http://www.hentges.net
Usb Recover Accross Suspend Resume ??
« Reply #11 on: January 04, 2005, 12:06:47 pm »
Did anyone here try to add this script to the APM resume scripts?
If so, did it work as expected?
Webmaster of hentges.net & Embedded Linux Developer.

Hrw

  • Hero Member
  • *****
  • Posts: 1366
    • View Profile
Usb Recover Accross Suspend Resume ??
« Reply #12 on: January 04, 2005, 12:17:56 pm »
I 'love' you guys... those hacks around... but does ANY of you tried to modprobe usbdmonitor and try how does it work with STANDARD OpenZaurus 3.5.x hotplug?

When noone confirm does it work (it works for me) I won't set this as default as usbdmonitor is nasty thing sometimes.
OpenZaurus 3.5.4x Release Manager
OpenEmbedded, Ångström, Poky developer
My website

Misc embedded hardware.

CoreDump

  • Hero Member
  • *****
  • Posts: 713
    • View Profile
    • http://www.hentges.net
Usb Recover Accross Suspend Resume ??
« Reply #13 on: January 04, 2005, 12:56:18 pm »
Quote
I 'love' you guys... those hacks around... but does ANY of you tried to modprobe usbdmonitor and try how does it work with STANDARD OpenZaurus 3.5.x hotplug?

When noone confirm does it work (it works for me) I won't set this as default as usbdmonitor is nasty thing sometimes.
I tried usbmonitor w/ OZ 3.5.1 (IIRC) at one time.
Didn't help w/ the borked USB resume on my Collie.
Will try again tonight.
Webmaster of hentges.net & Embedded Linux Developer.

grog

  • Hero Member
  • *****
  • Posts: 692
    • View Profile
    • http://
Usb Recover Accross Suspend Resume ??
« Reply #14 on: January 04, 2005, 01:29:45 pm »
Quote
I 'love' you guys... those hacks around... but does ANY of you tried to modprobe usbdmonitor and try how does it work with STANDARD OpenZaurus 3.5.x hotplug?

When noone confirm does it work (it works for me) I won't set this as default as usbdmonitor is nasty thing sometimes.
ok, then what exactly is the command I need to do? I tried
Code: [Select]
# /sbin/modprobe /lib/modules/2.4.18-rmk7-pxa3-embedix/kernel/drivers/usb/device/usbdmonitor.oand all I get is an error that it cannot find the module.
GROG!