Author Topic: Cacko: Slow Usb Hotplug  (Read 1529 times)

ldrolez

  • Jr. Member
  • **
  • Posts: 69
    • View Profile
    • http://zaurus.palmopensource.com
Cacko: Slow Usb Hotplug
« on: August 30, 2006, 05:43:17 pm »
Hi!
I use a cacko 1.23 rom, and when running 'top' after inserting an usb device (a BT key for example), i've found 4 instances of usb.agent taking all cpu during 20 seconds.
By adding some debug messages I've found that keventd invokes usb.agent one time for device 0000/0000 and 3 times for the usb key !
Because of this the usb device init is slow and could be 4 times faster.

Anyone has a fixed usb.agent file ?
cheers,
  Ludo.

PS: also usb.agent is slow because the usb device map is read one line at a time in the shell script ! Maybe doing a grep before would speed up everything :-)
- ludo
http://zaurus.palmopensource.com - the Zaurus Open Source Portal
http://www.drolez.com/software/zaurus - Misc Zaurus stuff (wifi drivers, hacks and more)