Active Topics

 


Reply
Thread Tools
joerg_rw's Avatar
Posts: 2,222 | Thanked: 12,651 times | Joined on Mar 2010 @ SOL 3
#821
here an intermediate version of booston, that replaces original file and has some small goodies - a direct uncleaned copy of what's on my hostmode devel device. You might want to edit /etc/mce/mce.ini to define a new pattern "PatternVboost" signalling device is in boostmode (attached my mce.ini for an example).
Of course you may want to keep permissions and owner of original booston, and maybe you need to change the hardcoded path to ic2set in this script (the line "i2cset=/usr/local/sbin/i2cset") to your result of `which i2cset`

This is no official update but just a teaser, as I'm feeling sad with all of you while this is collecting dust on my t900.

Bear with me, a better version is about to include charging and slowly matures here...

/j

Code:
#replaced - due to having some typos - by an improved version, see http://talk.maemo.org/showpost.php?p=1086598&postcount=857
http://talk.maemo.org/showpost.php?p...&postcount=857
Attached Files
File Type: txt mce.ini.txt (18.4 KB, 143 views)
__________________
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-02-27 at 06:19.
 

The Following 10 Users Say Thank You to joerg_rw For This Useful Post:
Posts: 2,153 | Thanked: 8,462 times | Joined on May 2010
#822
@joerg_rw:

Why not to implement charging into kernel (using standard power_supply interface) instead user space daemon?
 
joerg_rw's Avatar
Posts: 2,222 | Thanked: 12,651 times | Joined on Mar 2010 @ SOL 3
#823
Originally Posted by pali View Post
@joerg_rw:

Why not to implement charging into kernel (using standard power_supply interface) instead user space daemon?
As elaborated in a previous post, that's what *now* I think should be done, but alas it's not compatible to how maemo works right now, so you couldn't use bme and all the things that depend on it anymore.
A working such concept had to take care about quite a bit more than Just Replacing BME :-S - otherwise no more battery applet, no proper charging from PC, no correct battery-low warnings and shutdown, etc etc

On http://maemo.cloud-7.de/bq24150-sysnode.spec.txt you find a half done spec for such a kernel charging API, I stopped finishing it when it came apparent nobody is interested in implementing it due to the reasons mentioned above.

/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-06-06 at 16:52.
 

The Following 6 Users Say Thank You to joerg_rw For This Useful Post:
Estel's Avatar
Posts: 5,028 | Thanked: 8,613 times | Joined on Mar 2011
#824
Maybe this is trivial and obvious, but i don't get one thing.

When i use hostmode (without new boston that joerg_rw provided, doesn't have time yet to integrate it) and i want to charge my N900 in the same time, the only thing i need to do is use charge.sh. No messing with booston/boostoff - i must tell that one time i just forget to do other steps, but still, everything is working fine. So, I enable hostmode, setting speed, enumerating etc... Check if my USB device is happy and running, then execute charge.sh and everything is still working like charm + N900 charging (checked by current - it is huge "-" value, and battery voltage is really higher with time, so it's definitely charging. Also charger.sh output is correct).

I'm doing something wrong, that may cause bad consequences for me, or it's just supposed to work like that now and i missed something?
 
Posts: 2,153 | Thanked: 8,462 times | Joined on May 2010
#825
Originally Posted by joerg_rw View Post
As elaborated in a previous post, that's what *now* I think should be done, but alas it's not compatible to how maemo works right now, so you couldn't use bme and all the things that depend on it anymore.
A working such concept had to take care about quite a bit more than Just Replacing BME :-S - otherwise no more battery applet, no proper charging from PC, no correct battery-low warnings and shutdown, etc etc

On http://maemo.cloud-7.de/bq24150-sysnode.spec.txt you find a half done spec for such a kernel charging API, I stopped finishing it when it came apparent nobody is interested in implementing it due to the reasons mentioned above.

/j
So it is true, that this API (which will be used by kernel module) will replace userspace daemon BME?

As you wrote, problem will be battery applet, charging from PC, battery-low warnings...

1. In CSSU git repository is initial code for open source battery applet (so this problem is maybe solved):
http://gitorious.org/community-ssu/s...applet-battery

2. What do you mean with charging from PC?

3. Warnings/Notification (as battery low, battery charging, ...) is in open source applet too, see: http://gitorious.org/community-ssu/s...tery.c#line147

4. And shutdown when battery is empty may be done too in battery applet (call dsme functions for it) or can be added new dsme plugin for battery...

I found that something for battery charger is implemented in android n900 kernel: http://gitorious.org/android-n900/ke...8f6d248929d26c
 

The Following 2 Users Say Thank You to pali For This Useful Post:
Estel's Avatar
Posts: 5,028 | Thanked: 8,613 times | Joined on Mar 2011
#826
Originally Posted by pali View Post
2. What do you mean with charging from PC?
Probably charging N900 (as guest) when connected to PC, via USB. Now AFAIK it negotiate 500 mA current, while "dumb" peripherials (non-negotiating) can use only 100 mA. Something tell me that negotiating part is hardcoded into bme, so charging from PC would take ~13 hours, as opposite to ~160 minutes now, and ~80 minutes using capable d+d- shorted charger.
 

The Following 2 Users Say Thank You to Estel For This Useful Post:
Posts: 915 | Thanked: 57 times | Joined on Jun 2011
#827
i cant connect mouse..i installed hen and bt hid scripts 2..but doesnt connect mouse.i also installed mouse cursor.i followed youtube but the mouse is not moving..plz need help
 
Estel's Avatar
Posts: 5,028 | Thanked: 8,613 times | Joined on Mar 2011
#828
First of all, this is not correct topic for such a question. Please use appropriate second topic for discussing problems with hostmode not directly related to HEN package.

Anyway, it would be much better to provide more technical info about output errors - but, again, do it in correct topic please. Joerg_rw mentioned what should and what shouldn't be discussed here in his first post (first post on this topic).
 
Posts: 8 | Thanked: 0 times | Joined on Jun 2011
#829
Hi,
something funny happened today: it seemed as if the N900 tried to connect "to itself" as a device. I did the following:
1.) Connect the N900 to the upstream port of a hub and usb mouse and keyboard to the downstream side of the hub. The hub is a powered hub, but I forgot to plug it into the wall socket, so it was NOT POWERED
2.) Start h-e-n
3.) High Speed hostmode
4.) VBUS boost on

Then it happend, I got the popup that asked me about mass-storage mode or pc-suite mode. Just as if you connect the device to a PC.
However, this happened only one time, I could not reproduce this behaviour.
Did this happen to anybody else?
 
joerg_rw's Avatar
Posts: 2,222 | Thanked: 12,651 times | Joined on Mar 2010 @ SOL 3
#830
Originally Posted by GluonBall View Post
Then it happend, I got the popup that asked me about mass-storage mode or pc-suite mode. Just as if you connect the device to a PC.
However, this happened only one time, I could not reproduce this behaviour.
Did this happen to anybody else?
I got this popup a few times on plug in of wallcharger. Not at all related to H-E-N. So I guess it's some maemo hickup, probably a race between detection of VBUS and some other message telling "that's not a host"

You don't - by any chance - have my augmented vboost script installed? It possibly might have shown you a warning about VBUS overload and powering down VBUS now.

Anyway thanks for reporting, please keep an eye on it, shouldn't usually happen

cheers
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; 2011-06-19 at 19:29.
 

The Following 3 Users Say Thank You to joerg_rw 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 14:49.