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

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Usb Recover Accross Suspend Resume ??
« Reply #15 on: January 04, 2005, 03:44:28 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.

No it doesn't work (on my C750). It doesn't fail, but just seems to do nothing, and Windows still doesn't recogniase my Z until I run start_net.sh.


Si
« Last Edit: January 04, 2005, 03:45:25 pm by lardman »
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 #16 on: January 04, 2005, 04:21:26 pm »
Grog, your command is wrong. Try "modprobe usbdmonitor" or replace "modprobe" by "insmod" in the command you tried...

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 #17 on: January 04, 2005, 04:28:35 pm »
I did a straight 'modprobe usbdmonitor' and it didn't work.

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

grog

  • Hero Member
  • *****
  • Posts: 692
    • View Profile
    • http://
Usb Recover Accross Suspend Resume ??
« Reply #18 on: January 04, 2005, 09:33:46 pm »
Ok, I tried a straight 'modprobe usbdmonitor' (after fixing my PATH so that I could, it seems the default /etc/profile isn't set up correctly), and no error messages, no connection, no nothin'. Then I run the start_net.sh script and voila! Connected I am.
GROG!

grog

  • Hero Member
  • *****
  • Posts: 692
    • View Profile
    • http://
Usb Recover Accross Suspend Resume ??
« Reply #19 on: January 04, 2005, 09:45:18 pm »
Question - is there any way I can add an icon to run the start_net.sh script (or any script for that matter), and if so, how? thks
GROG!

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Usb Recover Accross Suspend Resume ??
« Reply #20 on: January 05, 2005, 07:04:13 am »
Yes, just create a .desktop file and change the binary it points to to one in /opt/QtPalmtop/bin (either move start_net.sh there, or create a symlink there).

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

grog

  • Hero Member
  • *****
  • Posts: 692
    • View Profile
    • http://
Usb Recover Accross Suspend Resume ??
« Reply #21 on: January 05, 2005, 07:38:25 am »
Quote
is there any way I can add an icon to run the start_net.sh script (or any script for that matter), and if so, how?
Quote
Yes, just create a .desktop file and change the binary it points to to one in /opt/QtPalmtop/bin (either move start_net.sh there, or create a symlink there).
Ok, I found the .desktop files, and they seem to be placed in an apps dir, but there's serveral apps dirs:

/home/QtPalmtop/apps
/home/opt/QtPalmtop/apps
/home/opt/QtPalmtop/share/apps
/root/.kde/share/apps
/root/kdepim/apps

Which is the 'correct' one to place my new files into? I'm guessing the /home/opt/QtPalmtop/apps, 'cause that seems to have all of my 'active' icons in it.


Looking at these files, some are pretty simple, like like the one for nethack:

root@poodle:/home/opt/QtPalmtop/apps/Games# cat nethack.desktop
[Desktop Entry]
Comment = Classic Dungeon Adventure Game
Exec = nethack
Icon = NetHack
Name = NetHack
Type = Games
CanFastload = 0

So the default bin path is /opt/QtPalmtop/bin as you mentioned, but where does it pull it's iocns from? There's no 'icon*' dir that I can see.

thanks for your help.
GROG!

samac

  • Full Member
  • ***
  • Posts: 124
    • View Profile
Usb Recover Accross Suspend Resume ??
« Reply #22 on: January 05, 2005, 09:09:27 am »
Quote
Yes, just create a .desktop file and change the binary it points to to one in /opt/QtPalmtop/bin (either move start_net.sh there, or create a symlink there).

Thanks for the script and the description how to get the desktop icon. All is now working great.

Quote
So the default bin path is /opt/QtPalmtop/bin as you mentioned, but where does it pull it's iocns from? There's no 'icon*' dir that I can see.

I used tab manager to edit the desktop entry, it has a pulldown menu of icons, and I chose the one from embedded-konqueror.

Samac
Zaurus SL5500
Hentges 1.0.x
64mb CF card
256mb SD card
Pocket-top Keyboard
Slackware 11.0 (2.6.17.13)

x86Daddy

  • Newbie
  • *
  • Posts: 44
    • View Profile
    • http://
Usb Recover Accross Suspend Resume ??
« Reply #23 on: January 05, 2005, 04:03:55 pm »
Quote
So the default bin path is /opt/QtPalmtop/bin as you mentioned, but where does it pull it's iocns from? There's no 'icon*' dir that I can see.

thanks for your help.
/opt/QtPalmtop/pics

... is where icons are stored.

/opt/QtPalmtop/apps

.... has subdirectories for the different tabs and their .desktop files.

Hope that helps.

grog

  • Hero Member
  • *****
  • Posts: 692
    • View Profile
    • http://
Usb Recover Accross Suspend Resume ??
« Reply #24 on: January 05, 2005, 10:26:51 pm »
Thanks for the help re: setting up .desktop files. Works like a charm. But just one more question (of course). I added a new tab called Utilities, but it has a question mark for it's icon (the default I presume). How do I specify an icon for a tab? thks
GROG!

x86Daddy

  • Newbie
  • *
  • Posts: 44
    • View Profile
    • http://
Usb Recover Accross Suspend Resume ??
« Reply #25 on: January 07, 2005, 02:57:26 pm »
In the apps subdirectories for each tab, there is a ".directory" file (hidden due to the leading dot)  Copy one of the others and edit it (it's text) to point at the icon of your choosing.

grog

  • Hero Member
  • *****
  • Posts: 692
    • View Profile
    • http://
Usb Recover Accross Suspend Resume ??
« Reply #26 on: January 07, 2005, 07:56:31 pm »
Quote
In the apps subdirectories for each tab, there is a ".directory" file (hidden due to the leading dot)  Copy one of the others and edit it (it's text) to point at the icon of your choosing.
oooh, cool. Now why didn't I think of looking for dot files? Thanks
GROG!

YoG

  • Jr. Member
  • **
  • Posts: 56
    • View Profile
Usb Recover Accross Suspend Resume ??
« Reply #27 on: December 12, 2005, 03:25:37 pm »
Hi...

I have the same problem (usb connection works fine... until Z suspended).

tried "modprob usbdmonitor":
"module usbdmonitor not found
failed to load module usbdmonitor"

so i tried lardman's start_net.sh script:
all the rmmod commands resulted with
"pxa_bi: No such file or directory" etc.

I dont have the path "/lib/modules/2.4.18-rmk7-pxa3-embedix/kernel/drivers/usb/device/" but i found the modules under "/home/root/modules/2.4.18-rmk7-pxa3-embdix/kernel/drivers/usb/device/"

did ismod with the same result:
"...No such file or directory".

I'm running kernel 2.6.11-3.5.3... maybe that has to do with it?

any suggestions?

Edit: BTW, I also tried it with the sa1100_bi with the same results

YoG.
« Last Edit: December 12, 2005, 05:38:26 pm by YoG »
C860 Autobuilt Angstrom (OPIE) & Zubuntu 9.04  dual boot using kexec
SanDisk SDHC 4GB, Agiwara Sys-Com CF 1GB, Sandisk CF 256MB, Socket BT, Linksys WCF12 Wifi card, RoyalTek RBT-1000 Bluetooth GPS
yogzlog.blogspot.com

Hrw

  • Hero Member
  • *****
  • Posts: 1366
    • View Profile
Usb Recover Accross Suspend Resume ??
« Reply #28 on: December 13, 2005, 02:42:06 am »
man... with 2.6 kernel on Zaurus all you need is loading "g_ether" module once - then you will have usb networking without reloading any modules. No more crap sharp 'drivers'.
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 #29 on: December 13, 2005, 05:25:43 am »
First of all, I fully agree with hrw, upgrade to one of the 2.6.x kernel images we have on oz.org.

Secondly:

Quote
I dont have the path "/lib/modules/2.4.18-rmk7-pxa3-embedix/kernel/drivers/usb/device/" but i found the modules under "/home/root/modules/2.4.18-rmk7-pxa3-embdix/kernel/drivers/usb/device/"

Why?

There's no reason I can think of for these modules to be here, unless you installed them  somewhere other than /

Even then, the pxa_bi module should still be installed to /

Are you definitely running an OpenZaurus image?


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