| Prev |   9     10   11   12     13   | Next | Last
maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Nokia N900 (https://talk.maemo.org/forumdisplay.php?f=44)
-   -   High Battery Consumption in Standby (https://talk.maemo.org/showthread.php?t=70436)

vi_ 2011-11-30 10:35

Re: High Battery Consumption in Standby
 
You can stop now, we have located the problem.

With KP settings:

Code:

C#      | Ratio  | Avg/dura | Frequency | Ratio
--------+--------+----------+-----------+--------+
    C0 |  0.2% |          |  1150 MHz |  nan% |
    C1 |  0.0% |    0.3ms |
    C2 |  3.3% |    9.4ms |
    C3 |  4.2% |  104.3ms |
    C4 |  92.3% | 1730.5ms |

Code:

Power domain activity breakdown
Domain  | % of time spent in states
--------+---------+---------+---------+---------+----------
usbhost |OFF: 100%|RET:  0%|INA:  0%| ON:  0%| now:(OFF)
    sgx |OFF: 100%|RET:  0%|INA:  0%| ON:  0%| now:(OFF)
    per |OFF:  0%|RET:  0%|INA:  0%| ON: 100%| now:(ON)
    dss |OFF: 100%|RET:  0%|INA:  0%| ON:  0%| now:(OFF)
    cam |OFF: 100%|RET:  0%|INA:  0%| ON:  0%| now:(OFF)
  core |OFF:  0%|RET:  0%|INA:  0%| ON: 100%| now:(ON)
  neon |OFF:  92%|RET:  4%|INA:  3%| ON:  0%| now:(ON)
    mpu |OFF:  92%|RET:  4%|INA:  3%| ON:  0%| now:(ON)
  iva2 |OFF:  0%|RET:  0%|INA:  0%| ON: 100%| now:(ON)

Code:

Total wakeups  520,  17.3/s | IRQ  404,  13.5/s | Timers  116,  3.9/s
HW wakeups        3,  0.1/s |    Real gp_timers expired  54,  1.8/s

Without KP settings:

Code:

C#      | Ratio  | Avg/dura | Frequency | Ratio
--------+--------+----------+-----------+--------+
    C0 |  0.2% |          |  1150 MHz |  nan% |
    C1 |  0.0% |    0.2ms |
    C2 |  0.2% |    2.4ms |
    C3 |  2.9% |  215.9ms |
    C4 |  96.7% | 2903.8ms |

Code:

Power domain activity breakdown
Domain  | % of time spent in states
--------+---------+---------+---------+---------+----------
usbhost |OFF: 100%|RET:  0%|INA:  0%| ON:  0%| now:(OFF)
    sgx |OFF: 100%|RET:  0%|INA:  0%| ON:  0%| now:(OFF)
    per |OFF:  96%|RET:  3%|INA:  0%| ON:  0%| now:(ON)
    dss |OFF: 100%|RET:  0%|INA:  0%| ON:  0%| now:(OFF)
    cam |OFF: 100%|RET:  0%|INA:  0%| ON:  0%| now:(OFF)
  core |OFF:  90%|RET:  5%|INA:  0%| ON:  3%| now:(ON)
  neon |OFF:  91%|RET:  6%|INA:  1%| ON:  0%| now:(ON)
    mpu |OFF:  91%|RET:  6%|INA:  1%| ON:  0%| now:(ON)
  iva2 |OFF: 100%|RET:  0%|INA:  0%| ON:  0%| now:(OFF)

Code:

Total wakeups  276,  9.2/s | IRQ  225,  7.5/s | Timers  51,  1.7/s
HW wakeups      24,  0.8/s |    Real gp_timers expired  30,  1.0/s


You will notice while the results are not that significantly different, there is a shitload more DMA activity and IRQing going on when KP-settings is installed. While the CPU is not hammering some hardware on the n900 is. Notice the extra 100% ONs in the power domain table for with KP settings.

Also, 2900mS sleep? HOLY ****! ultimate power saving!

There is an ancient bug in KP settings. I had issues with KP settings since version 26. I never figured out why it caused all these wake ups I just know in some circumstances it does.

This is why I do not use KP settings. I have the script extracted from the deb so I can quickly load/unload settings but it does not do the whole startup thing, I do that from an Xsession script.

vi_ 2011-11-30 10:39

Re: High Battery Consumption in Standby
 
Quote:

Originally Posted by freemangordon (Post 1130961)
Will you give me some hint on how KPS correlate with the fact that:

# per |OFF: 0%|RET: 0%|INA: 0%| ON: 100%| now:(ON)
# core |OFF: 0%|RET: 0%|INA: 0%| ON: 100%| now:(ON)
# iva2 |OFF: 0%|RET: 0%|INA: 0%| ON: 100%| now:(ON)


WTF?

I have absolutely no idea why KP settings occasionally causes the n900 to spazz out like mongo-tard. I think it is something to do with the scripts it runs at startup.

Anyway the evidence is clear. Remove KP settings, problem goes away. Re-install KP settings and it may eventually sometime come back.

I mentioned it around 1 year ago, no one cared. I just stopped using KP settings and thought nothing more of it after that.

StocChr 2011-11-30 10:50

Re: High Battery Consumption in Standby
 
vi_ you are the man, big thanks !! you make me laugh with some of your explanations :)
"Also, 2900mS sleep? HOLY ****! ultimate power saving!" :D:D

i have some questions:
- do you use kernel power?
- what brings me kernel power without kernel settings for the device performance?
- is it possible to oc the device and do the smart reflex thing without settings?

btw. thanks man!

panjgoori 2011-11-30 10:55

Re: High Battery Consumption in Standby
 
yes kernel49 consumes battery more than power48. my phone dropped 7% battery in 8 hours. my phone was in stand by mode and also offline mode was activated. i haven't had any issue like this in kp48.

StocChr 2011-11-30 10:59

Re: High Battery Consumption in Standby
 
Quote:

Originally Posted by panjgoori (Post 1130975)
yes kernel49 consumes battery more than power48. my phone dropped 7% battery in 8 hours. my phone was in stand by mode and also offline mode was activated. i haven't had any issue like this in kp48.

my phone lost 100% in 9 hours, offline mode and standby !!

vi_ 2011-11-30 11:02

Re: High Battery Consumption in Standby
 
Quote:

Originally Posted by StocChr (Post 1130973)
vi_ you are the man, big thanks !! you make me laugh with some of your explanations :)
"Also, 2900mS sleep? HOLY ****! ultimate power saving!" :D:D

i have some questions:
- do you use kernel power?
- what brings me kernel power without kernel settings for the device performance?
- is it possible to oc the device and do the smart reflex thing without settings?

btw. thanks man!

- do you use kernel power?

Of course, the things pali and freeman have achieved recently make it essential for me.

- what brings me kernel power without kernel settings for the device performance?

If you copy the kernel power kernel-config script. For example copy kernel-config to a file called kernel in /usr/bin or something (be extremely careful or you will braek everything!) then un-install KP-settings you will still have kernel-config (now called kernel) available. The difference is it will not load at boot time.

PROCEED WITH CAUTION!

Only do the following if you KNOW your OC settings will not crash your device or you may endup with a boot-loop!

edit /etc/pmconfig. Here you can set your max/min clock speed and SR. As for setting allowed freqs and DSP freqs you need to stick a script in either event.d or Xsession that echos the appropriate values to the appropriate places. I used xsession, however you could just hi-jack an event.d script like the non gui swappolube event.

- is it possible to oc the device and do the smart reflex thing without settings?

See above.


However I must add none of this is compatible with anything else that muddles with your kernel settings (i.e. battery patch script and speed patch script).

vi_ 2011-11-30 11:10

Re: High Battery Consumption in Standby
 
Quote:

Originally Posted by panjgoori (Post 1130975)
yes kernel49 consumes battery more than power48. my phone dropped 7% battery in 8 hours. my phone was in stand by mode and also offline mode was activated. i haven't had any issue like this in kp48.

No it doesn't. KP49 is to the n900 as glass tables are to coprophagia.

HELLASISGREECE 2011-11-30 11:30

Re: High Battery Consumption in Standby
 
Quote:

Originally Posted by StocChr (Post 1130910)
and what was your solution?

removed kp49

must get kp48

StocChr 2011-11-30 11:45

Re: High Battery Consumption in Standby
 
i extracted "kernel-config" and "dsp" from the kernel-power-settings_0.13_armel.deb

i copied kernel-config and dsp to my device, ok!

and how must look my event.d file or the xsession file ( didn't do this before ) to load "kernel-config" and "dsp" on start up?

vi_ 2011-11-30 12:02

Re: High Battery Consumption in Standby
 
I AM IN NO WAY RESPONSIBLE FOR ANYTHING THAT OCCURS BY YOU FOLLOWING THESE INSTRUCTIONS! AT YOUR OWN RISK.

Well if you have extracted 'kernel-config' make a copy of it somwhere then uninstall KP-settings. Then copy kernel-config to /usr/bin.

Check kernel-config still works after uninstalling KP settings.
Check Your device can handle your 'dsp' profile ( no reboots etc).

If that works then as root enter this:

Code:

echo "#!/bin/sh" > /etc/X11/Xsession.post/80kernel-config
echo "sudo kernel-config load dsp" >> /etc/X11/Xsession.post/80kernel-config

Now reboot and cross your fingers. dsp profile should be loaded after boot.


| Prev |   9     10   11   12     13   | Next | Last
All times are GMT. The time now is 20:19.

vBulletin® Version 3.8.8