View Single Post
Posts: 3 | Thanked: 1 time | Joined on May 2008
#40
workaround to avoid reboots.

what works for me is to put everything into a script.
my N800 is default in USB OTG mode.
At the beginning of the script i put the N800 in HOST mode
then i execute the gphoto2 commands
and at the end of the script i put the N800 back in the default OTG mode

i then start the script with sh <scriptname>

i currently use it to take a 5 shot HDR sequence, the full script i use takes over 30 seconds from start to finish and havent had a reboot yet. ( in contrast, if a do a single capture from the command line my N800 hangs and reboots)

so make script like this :

---------
echo host > /sys/devices/platform/musb_hdrc/mode
sleep 1

<put your gphoto2 commands here>

echo otg > /sys/devices/platform/musb_hdrc/mode
sleep 1
----------

P.S. my EEEPC is moving to a closet
 

The Following User Says Thank You to bk227865 For This Useful Post: