maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Maemo 5 / Fremantle (https://talk.maemo.org/forumdisplay.php?f=40)
-   -   [Announce] kernel-power stable v50 in Extras (https://talk.maemo.org/showthread.php?t=83118)

reinob 2012-07-24 08:40

Re: [Announce] kernel-power stable v50 in Extras
 
Quote:

Originally Posted by Mentalist Traceur (Post 1241698)
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 :)

Quote:

Originally Posted by Mentalist Traceur (Post 1241698)
- 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).

reinob 2012-07-24 08:47

Re: [Announce] kernel-power stable v50 in Extras
 
Quote:

Originally Posted by Mentalist Traceur (Post 1241740)
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). ]

Estel 2012-07-29 01:55

Re: [Announce] kernel-power stable v50 in Extras
 
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

reinob 2012-07-30 07:44

Re: [Announce] kernel-power stable v50 in Extras
 
Quote:

Originally Posted by Estel (Post 1244340)
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.)

Estel 2012-07-31 04:16

Re: [Announce] kernel-power stable v50 in Extras
 
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

miroslav_s 2012-08-06 20:41

Re: [Announce] kernel-power stable v50 in Extras
 
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

Patroclo 2012-08-13 22:55

Re: [Announce] kernel-power stable v50 in Extras
 
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

Patroclo 2012-08-17 17:24

Re: [Announce] kernel-power stable v50 in Extras
 
No one can help? I think I am not the only one to have this problem.

marmistrz 2012-08-17 17:30

Re: [Announce] kernel-power stable v50 in Extras
 
Quote:

Originally Posted by Patroclo (Post 1251506)
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.

Patroclo 2012-08-17 19:38

Re: [Announce] kernel-power stable v50 in Extras
 
reboot command points to
/bin/busybox march 12 2010
Is that the right executable?


All times are GMT. The time now is 19:47.

vBulletin® Version 3.8.8