USB Mode ButtonThis small app adds a button to your installed applications list to toggle USB host mode on and off. Based on a script from the Openmoko wiki, the app enables / disables USB host mode, the USB0 network interface and power delivery.
|
Rating: 0 Rate:
|
||||||||||||
|
Commentsiknowjoseph wrote: (2008-12-11 11:32:57)
Thanks gecco :-)
Pander wrote: (2009-01-03 15:07:30)
Thank you for this time saving app. Could you please use an icon that is 80x80? The current icon is not so sharp because it is zoomed in. Thanks.
Pander wrote: (2009-02-12 01:19:45)
On SHR, this does not work. How can this be fixed?
Michael Tansella wrote: (2009-02-18 18:27:47)
The path of the new kernels is different:
just change /usr/bin/usb.sh to: #!/bin/sh grep -q 'host' /sys/devices/platform/s3c2410-ohci/usb_mode if [ $? -eq 0 ] then echo "0" > /sys/class/i2c-adapter/i2c-0/0-0073/neo1973-pm-host.0/hostmode echo "device" > /sys/devices/platform/s3c2410-ohci/usb_mode echo "0" > /sys/class/leds/gta02-power\\:blue/brightness ifconfig usb0 up echo USB-Port is in device-mode now. else ifconfig usb0 down echo "host" > /sys/devices/platform/s3c2410-ohci/usb_mode echo "1" > /sys/class/i2c-adapter/i2c-0/0-0073/neo1973-pm-host.0/hostmode echo "1" > /sys/class/leds/gta02-power\\:blue/brightness lsusb echo USB-Port is in host-mode now. fi Michael Tansella wrote: (2009-02-18 17:15:43)
Be careful the Escape sequences (some backslashes) are wrong in my last post. I notified the webmaster.
Tobias wrote: (2009-02-18 18:28:20)
Fixed.
bpill wrote: (2009-03-22 16:26:31)
when uninstalled, the place where the icon was does not go away and clodding the desktop
BiggMatt wrote: (2009-05-14 16:20:27)
Does this app allow powered hosting?
robin paulson wrote: (2009-05-15 04:07:17)
@bigmatt:
yes, the host mode by default will provide power to any devices connected. robin paulson wrote: (2009-05-15 04:26:06)
i still don't think those escape sequences are right guys - there's one too many backslashes between 'power' and ':blue'. check out the address via the shell prompt, and you'll see
robin paulson wrote: (2009-05-15 05:07:58)
those sysfs paths are wrong too. 's3c2410-ohci' should be 's3c-ohci' in both instances
|








