Active Topics

 


Reply
Thread Tools
Posts: 158 | Thanked: 340 times | Joined on Jul 2010 @ middle of nowhere
#911
Where can i download charger.sh, the download link seems dead.
 
Community Council | Posts: 683 | Thanked: 1,227 times | Joined on Sep 2010 @ Mbabane
#912
Latest charger.sh is here
http://enivax.net/jk/n900/charge21.sh.txt
just remove the .txt
 
5spdvl's Avatar
Posts: 220 | Thanked: 66 times | Joined on Aug 2010 @ Melbourne, Australia
#913
I've been trying the charger.sh script, however whenever I execute it, the mounted media is unmounted, and cannot be accessed unless I close h-e-n/xterm and start again.

Steps:
  • connect standard nokia micro USB data cable to N900, three-way cable to this, then flash drive to one prong, charger UNPLUGGED to the other
  • open h-en, mount flash drive as high speed (successfully, Sandisk 16Gb)
  • open xterm, as root run "sh charger.sh"
  • plug in ac adaptor
  • code runs, phone starts charging as per xterm output (which mathces with Conky's details, not sure if Conky's readout is inaccurate during h-e-n)

After charger.sh is executed, the media is unmounted. Any ideas?
 
joerg_rw's Avatar
Posts: 2,222 | Thanked: 12,651 times | Joined on Mar 2010 @ SOL 3
#914
Originally Posted by 5spdvl View Post
I've been trying the charger.sh script, however whenever I execute it, the mounted media is unmounted, and cannot be accessed unless I close h-e-n/xterm and start again.

Steps:
  • connect standard nokia micro USB data cable to N900, three-way cable to this, then flash drive to one prong, charger UNPLUGGED to the other
  • open h-en, mount flash drive as high speed (successfully, Sandisk 16Gb)
  • open xterm, as root run "sh charger.sh"
  • plug in ac adaptor
  • code runs, phone starts charging as per xterm output (which mathces with Conky's details, not sure if Conky's readout is inaccurate during h-e-n)

After charger.sh is executed, the media is unmounted. Any ideas?
yeah, please follow advice in the relevant post in this thread ( http://talk.maemo.org/showthread.php...203#post921203 )

When charger.sh runs and no charger is providing power - where is power from then? -> hostmode terminated

/j
__________________
Maemo Community Council member [2012-10, 2013-05, 2013-11, 2014-06 terms]
Hildon Foundation Council inaugural member.
MCe.V. foundation member

EX Hildon Foundation approved
Maemo Administration Coordinator (stepped down due to bullying 2014-04-05)
aka "techstaff" - the guys who keep your infra running - Devotion to Duty http://xkcd.com/705/

IRC(freenode): DocScrutinizer*
First USB hostmode fanatic, father of H-E-N

Last edited by joerg_rw; 2011-12-01 at 05:12.
 

The Following User Says Thank You to joerg_rw For This Useful Post:
5spdvl's Avatar
Posts: 220 | Thanked: 66 times | Joined on Aug 2010 @ Melbourne, Australia
#915
Ahh - I misinterpreted when to plug in the ac adaptor. Cheers joerg_rw.

Edit: just confirming that this now works.
  • connect all cables, excluding ac adaptor
  • mount media
  • connect ac adaptor to cables
  • as root, sh charger.sh
  • enjoy

Last edited by 5spdvl; 2011-12-01 at 06:40.
 

The Following User Says Thank You to 5spdvl For This Useful Post:
Estel's Avatar
Posts: 5,028 | Thanked: 8,613 times | Joined on Mar 2011
#916
Not mean to be "picky", but boostoff (before executing charge.sh) would be also useful Sure, it (probably) also works without doing so, but there is no point in keeping it, if You want power-saving, or charging as quickly as possible.
__________________
N900's aluminum backcover / body replacement
-
N900's HDMI-Out
-
Camera cover MOD
-
Measure battery's real capacity on-device
-
TrueCrypt 7.1 | ereswap | bnf
-
Hardware's mods research is costly. To support my work, please consider donating. Thank You!
 
5spdvl's Avatar
Posts: 220 | Thanked: 66 times | Joined on Aug 2010 @ Melbourne, Australia
#917
Managed to mount a 500Gb passport HDD today, that formerly wouldn't mount (insufficient power from the N900). Rather than use a powered hub to power the drive, and then a separate AC adaptor to charge my N900, I modified the AC adaptor to have three USB ports: original port, that will charge my N900 over the Y cable, and a pair of ports that act like a female-female adaptor for joining two male ends together. These pair of ports take +ve/-ve from the AC adaptor, so in one port you plug your media/peripheral to be powered, and the other port takes the data cable that goes to your N900 (the other part of the Y cable). See picture. Probably not the safest thing going, but I will be tidying it up.

 

The Following User Says Thank You to 5spdvl For This Useful Post:
5spdvl's Avatar
Posts: 220 | Thanked: 66 times | Joined on Aug 2010 @ Melbourne, Australia
#918
Completed.

 

The Following 3 Users Say Thank You to 5spdvl For This Useful Post:
Posts: 306 | Thanked: 566 times | Joined on Jan 2010 @ Romania
#919
until now ...
status area icon - ok . it is a stock icon, blue.
it is activated when an valid device is connected. tap on status area will show an text saying "Host mode active".
More informations and actions will be added later after the moment when the script is stable

switching ( guessing ) speed work almost well. it is based on dmesg output
there is multiple ways doing this but not all are reliable. after 300 tests...
first method
first starting as high speed then low then full.
reason :
most connected devices are usb sticks, on second place mouses or keyboards
for this method there is a problem for sensing low speed devices in high speed mode.
khubd daemon interfere with driver and is hard to put whole system in a stable state.
second method
started as full speed and watching dmesg messages switch the speed accordingly. the fastest method, only 2 steps
reason :
if an full speed device is connected it will work "instantly". high speed devices are detected also in full speed mode and dmesg output is useful
but there is a problem with low speed device in full speed mode and khubd go crazy. this will add 20 s for a stable state. more tests are needed in this mode
third method
start as low speed then full then high. the most stable method
reason:
low speed devices are detected "instantly"
high or full speed devices are detected well. so continuing as full speed, the "full"devices will work and "high" devices are properly signalized

khubd and g_file_storage make a lot of problems.
for khubd there is an workaround flushing all configs but add 20 s for each khubd error.
g_file_storage need a patch because in high speed mode when a low speed device is attached it will trigger "mass storage" "Pc suite" selection. this can be ignored but is annoying.

a preference can be set in the script for first tested speed

later or tomorrow an alpha variant will be posted

Last edited by blue_led; 2011-12-04 at 22:34.
 

The Following 4 Users Say Thank You to blue_led For This Useful Post:
Posts: 2,154 | Thanked: 8,464 times | Joined on May 2010
#920
@blue_led:
why is problem with autodetection usb speed? and it is possible to check if host usb device or charger is connected?
 

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

Tags
bada rox, detection, h-e-n, hostmode, speed, usb host


 
Forum Jump


All times are GMT. The time now is 16:12.