Reply
Thread Tools
Posts: 1,808 | Thanked: 4,272 times | Joined on Feb 2011 @ Germany
#521
Originally Posted by Mentalist Traceur View Post
So I come to this thread to figure out why the kernel update is conflicting with the injection drivers package - only to see that daaaaamn things have progressed. Reinob's talking about actually possibly getting rid of BME as a practical possibility (one he's actually been doing right now).
I know. I'm sorry I'm hijacking the thread. But hey, it's all about the new kid in town: bq2415x_charger

Originally Posted by Mentalist Traceur View Post
- About replacing BME and the ACT-DEAD state -
..
I personally have nothing against act-dead. Problem was when I stopped (and later uninstalled) BME, the hal-addon-bme plugin was bugging me. Namely by syslog'ing all over the place, hence disturbing my syslog-reading.

So I removed it. But it had the systemui-actdead-ui or whatever it was called as a dependant. So it had to leave my N900 as well. But then ACTDEAD became so broken that I considered removing ACTDEAD for good.

Now at least I can reliably power off my N900 by teaching DSME to behave (= realize that the N900 is not charging, hence no need for ACTDEAD rebooting).

I can live with charging only when "Maemo" (so to speak) is up and running. But if the changes I've done to Maemo are to be more or less useful to other people, ACTDEAD will have to stay there.

I don't see though why ACTDEAD needs to load X only to blank the screen and sleep (it is even rumoured that the notorious dots continue to animate while blanked. Just the thought makes me shiver!

So I thought I'd replace ACTDEAD with something "lighter" and actually useful, like making it jump to the recovery console.. or better, to some program that actually does the "actdead" part (blank, sleep, flash leds) but if you stop it (ctrl-C) you drop to Pali's recovery console, or to bootmenu, or whatever.

Actually there should be an ACTDEAD entry in bootmenu. This way you remove all the logic from getbootstate, dsme and preinit, and let the user decide upon booting.

Have to think more about it (ideas welcome, of course).

Last edited by reinob; 2012-07-24 at 08:50. Reason: s/bq45/bq24/
 

The Following 3 Users Say Thank You to reinob For This Useful Post:
Posts: 1,808 | Thanked: 4,272 times | Joined on Feb 2011 @ Germany
#522
Originally Posted by Mentalist Traceur View Post
Okay, that's basically what I gathered, thanks for the confirm. I know in the past people like joerg have said that bq27x00 is a broken module in one way or another (a discussion that was always too technical for me to retain any of the details in the long-term): have the same disagreements been voiced with regards to this move?
Assuming that BME was only useful for charging, using bq2415x_charger *ONLY* is sufficient to replace it.

I still don't know what exactly bq27x00 does. Seems to collect data from i2c and give it to HAL. Given that (1) HAL is on my hitlist and (2) *we* can also collect data from i2c, I don't see the need for bq27x00

[ someone correct me/inform me if bq27x00 is useful for anything else ]

So with only bq2415x_charger you can normally charge the N900. For those who want a battery indicator, I'm using DCE for running a script which calls i2cget (actually the script is more flexible, will work directly with i2c or with hal depending on what's available), so there's no need for HAL reporting anything.

[ which leads me to the question to all: are there any programs that explicitly check the battery level? (thinking navigation and so), and if so, what's the standard way (if there is one). ]
 

The Following User Says Thank You to reinob For This Useful Post:
Estel's Avatar
Posts: 5,028 | Thanked: 8,613 times | Joined on Mar 2011
#523
Reportedly, BME is also useful for charging from a PC. I don't know if it's true, as I can easily access mass-storage mode with bme disabled, and then, modified version of charging script/module (that would draw no more than 500 mA from USB port) should be OK.

BME is also responsible for low battery warnings and shutting device down gently on low power (via rather complicated guess-working of "when voltage down spikes could piss of cellular modem", instead of some simple voltage threshold), but this could be re-written in kernel module.

/Estel
__________________
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!
 

The Following User Says Thank You to Estel For This Useful Post:
Posts: 1,808 | Thanked: 4,272 times | Joined on Feb 2011 @ Germany
#524
Originally Posted by Estel View Post
BME is also responsible for low battery warnings and shutting device down gently on low power (via rather complicated guess-working of "when voltage down spikes could piss of cellular modem", instead of some simple voltage threshold), but this could be re-written in kernel module.

/Estel
Yup. I left my spare N900 turned on, to see what would happen when the voltage gets too low.

Last time I checked was on saturday. I just had a look now it had turned off. Didn't turn on. Put it on the wall charger I got some quick-flashing in red, like every second or so. After a couple of minutes the led turned solid yellow/orange (more orange than yellow, I'd say). A couple of minutes later it did some quick-red flashes, and then again yellow/orange.

I'll leave it like that and see if/when U-boot shows up (should it turn on automatically when the emergency charging is done?).

Anyway, we definitely need some way of gently informing the user and then turning off the N900 if bme is removed.

Add.: wow. eventually I got a dimmed U-boot, which presumably lead to ACTDEAD mode. I then booted and i2c reported 2831mV (!). Shortly after that the value is around 2930mV.

Question: can the battery (or the N900!) be physically damaged if you let the voltage go down so low? (I realize that an instant shutdown due to insufficient voltage/power may lead to file system corruption. That's another issue which doesn't worry me.)

Last edited by reinob; 2012-07-30 at 07:55.
 
Estel's Avatar
Posts: 5,028 | Thanked: 8,613 times | Joined on Mar 2011
#525
No worries, down to 2,5V is absolutely safe, and N900 "lose consciousness" at ~2,8V, due to not enough power for anything.

Just be sure to not leave battery in such state for long unused, as it will easily discharge itself below that level, and even to absolute 0 (which, in turn, is very lethal for LiIon). At below 3V charge inside is very low, and it takes really quick to self-discharge.

/Estel
__________________
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!
 

The Following 4 Users Say Thank You to Estel For This Useful Post:
Posts: 101 | Thanked: 15 times | Joined on Jul 2011
#526
hello,
I got a problem when trying to download Linux kernel for power user ( linux kernel updater (kernel power 2.6.28.10)). The reason is conflict with : linux-backports-modules-power (1:2.6.28.10-power50). Can somebody instruct me what to do. Thanks in advanceä
Best regards to you all
 
Posts: 275 | Thanked: 46 times | Joined on Feb 2010
#527
hi folks, since when 2 days ago I installed kernel power 50 I have problems with reboot. The following procedure doesn't work:
sudo gainroot
reboot
The n900 switches off and just starts rebooting (just the screen with Nokia apperars), but soon after switches off permanently. In order to switch it on, I have to press the button.
Same thing happens if I try to reboot with Healthcheck or CleaN900.
If someone has a solution please say to me. Thank you

Last edited by Patroclo; 2012-08-13 at 23:03.
 

The Following User Says Thank You to Patroclo For This Useful Post:
Posts: 275 | Thanked: 46 times | Joined on Feb 2010
#528
No one can help? I think I am not the only one to have this problem.
 
Posts: 3,328 | Thanked: 4,476 times | Joined on May 2011 @ Poland
#529
Originally Posted by Patroclo View Post
hi folks, since when 2 days ago I installed kernel power 50 I have problems with reboot. The following procedure doesn't work:
sudo gainroot
reboot
The n900 switches off and just starts rebooting (just the screen with Nokia apperars), but soon after switches off permanently. In order to switch it on, I have to press the button.
Same thing happens if I try to reboot with Healthcheck or CleaN900.
If someone has a solution please say to me. Thank you
I had the same problem. With kp 49 too (and maybe even 42) U have to switch off and power on manually. I don't know any solution for reboot working.
__________________
If you want to support my work, you can donate by PayPal or Flattr

Projects no longer actively developed: here
 
Posts: 275 | Thanked: 46 times | Joined on Feb 2010
#530
reboot command points to
/bin/busybox march 12 2010
Is that the right executable?
 
Reply

Tags
battery test, i <3 fmg, i <3 pali, igottaboner, kernel, kernel-power, viva fmg, viva pali


 
Forum Jump


All times are GMT. The time now is 09:49.