Notices


Reply
Thread Tools
Posts: 234 | Thanked: 40 times | Joined on Nov 2007 @ Cincinnati, Ohio USA
#381
Nice, even easier. If someone wants to change directories they can copy past somewhere else first to edit.

To create OTG host buttons:

1. Launch x-term
2. cat >/home/user/MyDocs/Otg.sh
2.a. paste code
Code:
#!/bin/sh
# usb otg mode script
# use gainroot to become root and relaunch itself
if [ `id -u` != 0 ] ; then
# if not already root, call itself as root
sudo gainroot <<EOF
$0 $*
EOF
exit
fi
echo otg > /sys/devices/platform/musb_hdrc/mode
2.b. press Ctrl and enter a lowercase d.
3. chmod +x /home/user/MyDocs/Otg.sh

repeat for cat >/home/user/MyDocs/Host.sh with this code:
Code:
#!/bin/sh
# usb host mode script
# use gainroot to become root and relaunch itself
if [ `id -u` != 0 ] ; then
#if not already root, call itself as root
sudo gainroot <<EOF
$0 $*
EOF
exit
fi
echo host > /sys/devices/platform/musb_hdrc/mode
From this point you can use Status Bar mentioned below, personal toolbar and/or continue to make an Icon.

1. Launch x-term
2. sudo gainroot
3. cat >/usr/share/applications/hildon/otg.desktop
3.a. paste the following code
Code:
[Desktop Entry]
Version=0.1
Encoding=UTF-8
Name=USB Otg
Type=Application
Comment=USB On the go mode
Exec=/home/user/MyDocs/Otg.sh
X-Osso-Type=application/x-executable
3.b. press Ctrl and enter a lowercase d.

again, repeat for cat >/usr/share/applications/hildon/host.desktop
Code:
[Desktop Entry]
Version=0.1
Encoding=UTF-8
Name=USB Host
Type=Application
Comment=USB host mode
Exec=/home/user/MyDocs/Host.sh
X-Osso-Type=application/x-executable

Last edited by TheGogmagog; 2008-05-30 at 05:01.
 
Texrat's Avatar
Posts: 11,700 | Thanked: 10,025 times | Joined on Jun 2006 @ North Texas, USA
#382
Originally Posted by mplawner View Post
Just use osso-statusbar-cpu and create custom commands calliing your two scripts. Be sure the 2 scripts are included in your /etc/sudoers file, of course.
How do I get the files into that folder? I don't see it in the File Manager.
__________________
Nokia Developer Champion
Different <> Wrong | Listen - Judgment = Progress | People + Trust = Success
My personal site: http://texrat.net
 
Posts: 4,030 | Thanked: 1,633 times | Joined on Jul 2007 @ nd usa
#383
Originally Posted by Texrat View Post
How do I get the files into that folder? I don't see it in the File Manager.


Originally Posted by mplawner View Post
Just use osso-statusbar-cpu and create custom commands calliing your two scripts. Be sure the 2 scripts are included in your /etc/sudoers file, of course.
File manager cannot see /etc/sudoers. You have to use emelfm2 or a different file manager.

bun
 
Posts: 4,030 | Thanked: 1,633 times | Joined on Jul 2007 @ nd usa
#384
 
Posts: 1 | Thanked: 0 times | Joined on Oct 2008
#385
 
Posts: 4,030 | Thanked: 1,633 times | Joined on Jul 2007 @ nd usa
#386
Originally Posted by NokiaBoy View Post
This one works too:
http://www.twstore.com/gcusbhost.html
That thing looked pretty, but the shipping is too deep, item is $9.99, s/h to NC is $10.23 makes the adapter total $20.22 for a jack, what a jack.

bun
 
Posts: 2 | Thanked: 0 times | Joined on Aug 2008
#387
Received the USB adaptor made available by Jolouis and plugged it into my N800, running under an unmodified OS2008 version 4.2008.36-5. Connected a standard Canon digital camera USB cable between the adoptor and the Canon. The N800 responds with a "USB device not Supported" message followed by a second msg stating " Unable to connect, no file system available" . Am I doing something wrong??
 
speculatrix's Avatar
Posts: 880 | Thanked: 264 times | Joined on Feb 2007 @ Cambridge, UK
#388
Originally Posted by benm View Post
The N800 responds with a "USB device not Supported" message followed by a second msg stating " Unable to connect, no file system available" . Am I doing something wrong??
canon digicams are not usually mass storage devices, see
http://wapedia.mobi/en/GPhoto
 
Texrat's Avatar
Posts: 11,700 | Thanked: 10,025 times | Joined on Jun 2006 @ North Texas, USA
#389
Also, I get that error with my thumb drives but they work anyway.
__________________
Nokia Developer Champion
Different <> Wrong | Listen - Judgment = Progress | People + Trust = Success
My personal site: http://texrat.net
 
Reply

Thread Tools

 
Forum Jump


All times are GMT. The time now is 20:45.