Reply
Thread Tools
joerg_rw's Avatar
Posts: 2,222 | Thanked: 12,651 times | Joined on Mar 2010 @ SOL 3
#1041
...and after 16 months Lore got a brother. Doc Noonien Soong built Data.

We are about to ship an update for h-e-n. It comes with the age old massively improved booston script. For the indicator LED flashing pattern please take care about your mce.ini as attached to that post, or simply look into /usr/sbin/booston header where it's also mentioned, though no actual pattern definition included.

Enjoy
jOERG
__________________
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; 2012-05-20 at 20:12.
 

The Following 12 Users Say Thank You to joerg_rw For This Useful Post:
Posts: 2,154 | Thanked: 8,464 times | Joined on May 2010
#1042
@joerg_rw: did you looked at my bq2415x kernel driver? it also support boost mode with auto reset timer What about to use it instead booston script (host mode needs also stopping bme, so bq2415x driver can be loaded)?
 

The Following 12 Users Say Thank You to pali For This Useful Post:
joerg_rw's Avatar
Posts: 2,222 | Thanked: 12,651 times | Joined on Mar 2010 @ SOL 3
#1043
Originally Posted by pali View Post
@joerg_rw: did you looked at my bq2415x kernel driver? it also support boost mode with auto reset timer What about to use it instead booston script (host mode needs also stopping bme, so bq2415x driver can be loaded)?
Pali,
I think this driver is a brilliant approach, but not easily included to such a nobrainer "update".
We need to work out how to change h-e-n bits and pieces to make proper use of the bq2415x.ko driver, how to check dependencies etc pp.
TBH I haven't even touched KP50 yet.
I guess I'll look into it during the next weeks.

Anyway many thanks already :-) Much appreciated job you're doing there.
/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
 

The Following 6 Users Say Thank You to joerg_rw For This Useful Post:
Posts: 1,397 | Thanked: 2,126 times | Joined on Nov 2009 @ Dublin, Ireland
#1044
Great update, thank you joerg_rw and MAG.
 
Posts: 535 | Thanked: 598 times | Joined on Apr 2011 @ Republic of the Philippines
#1045
I think this update deserves more exposure so I'll give this a little bump.
Thanks for the update guys and gal(s)!
 
Posts: 189 | Thanked: 171 times | Joined on Jul 2011
#1046
I would like to add my 2 cents to this project by attaching my modified charge21.sh so that whenever charging with BME stopped (such as using a y-nested cable while hosting) not only the LED patterns work but the data in HAL is also updated (meaning the battery icon updates, for example ). Please some developer check I am not going to fry anyone's N900 with this, it is pretty much an unmodified charge21.sh.txt but with several lines for HAL value setting and MCE LED control added. It is pretty dirty so the bars on the battery will not match the original counting method but it works fine for me I also believe the CPU usage should be higher than the original but it is very late here, I will optimize it tomorrow

I thought as this is an awesome project and I wanted this feature so bad I added it to the original script (I hope all the work is of some use, hopefully it has not been done before). Hope someone finds it as useful as me run it as root and you should be good to go
Attached Files
File Type: txt charge21.sh.txt (11.4 KB, 147 views)
 

The Following 5 Users Say Thank You to pablocrossa For This Useful Post:
joerg_rw's Avatar
Posts: 2,222 | Thanked: 12,651 times | Joined on Mar 2010 @ SOL 3
#1047
nice! :-) Many thanks, pablocrossa!
One first remark: I doubt line 242 " echo 0 > /sys/devices/platform/musb_hdrc/connect" will work here, but then OTOH I also doubt it ever will get reached.

/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
 

The Following 4 Users Say Thank You to joerg_rw For This Useful Post:
Posts: 189 | Thanked: 171 times | Joined on Jul 2011
#1048
Originally Posted by joerg_rw View Post
nice! :-) Many thanks, pablocrossa!
One first remark: I doubt line 242 " echo 0 > /sys/devices/platform/musb_hdrc/connect" will work here, but then OTOH I also doubt it ever will get reached.

/j
It was included in the script so I left it unchanged It is good to know you found no big problems with it
 
Posts: 189 | Thanked: 171 times | Joined on Jul 2011
#1049
How can I know from the terminal if I am plugged into a PC?? How does the N900 know when to trigger the "PCsuite or mass storage" dialogue and when not to?? When I plug in with the y-nested cable to a PC so the PC supplies power it knows it is not a wall charger but it also does not query me with the dialogue, however when I plug it in with the normal cable to the PC it does.
What can I cat / command can I run to figure this out?? Thank you

EDIT: For future reference got it, while running charge script

if we are charging, if we are not plugged to the wall and if `cat /sys/devices/platform/musb_hdrc/mode` = b_idle
nested

if we are charging and if `cat /sys/devices/platform/musb_hdrc/mode` = b_peripheral
PC

if we are charging and if we are plugged to the wall
Wall Charger

Last edited by pablocrossa; 2012-05-22 at 15:03.
 
Posts: 189 | Thanked: 171 times | Joined on Jul 2011
#1050
Another question, is there a way to know if a USB cable is plugged in even if it is not plugged into a host (because it, for example, shorts pins 4 and 5)?? Thank you
 
Reply

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

Thread Tools

 
Forum Jump


All times are GMT. The time now is 10:57.