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)

StocChr 2011-11-30 14:36

Re: High Battery Consumption in Standby
 
do you mean, set the values in /etc/pmconfig with a script or edit the file once?
what is the advantage to set the max+min scalling and the smartreflex in /etc/pmconfig?

what do you mean, i can set everything from pmconfig?

aren't the voltage for the system frequencies stored in /sys/power/vdd1_opps_vsel??

in the dsp file they set [Freuq]:[Volt],[DSP] ( 250:38,180 ), i think these Voltages were stored in vdd1_opps_vsel?

vi_ 2011-11-30 14:58

Re: High Battery Consumption in Standby
 
Quote:

Originally Posted by StocChr (Post 1131102)
do you mean, set the values in /etc/pmconfig with a script or edit the file once?
what is the advantage to set the max+min scalling and the smartreflex in /etc/pmconfig?

what do you mean, i can set everything from pmconfig?

aren't the voltage for the system frequencies stored in /sys/power/vdd1_opps_vsel??

in the dsp file they set [Freuq]:[Volt],[DSP] ( 250:38,180 ), i think these Voltages were stored in vdd1_opps_vsel?

It is advantageous because there is already a mechanism in place to load max+min+SR values in pmconfig.

Yes. That is where the voltages are set, however with smart reflex enabled you no longer need to set the voltages by hand. So why bother? Just let it boot with stock voltages then let SR take care of the rest.

So set everything you can in pmconfig then set the rest from your script.

StocChr 2011-11-30 15:14

Re: High Battery Consumption in Standby
 
ok i understand!!
it's strange, i set min+max+sr ind pmconfig (250+850+1) but conky only shows max. 600 MHz ... i am freaking out !!

vi_ 2011-11-30 15:21

Re: High Battery Consumption in Standby
 
well assuming you have not broken pmconfig and it is just running default values somthing else is changing your max-min freqs.

What sh|t have you installed?

connect to net and as root enter:

pastebinit /etc/pmconfig
pastebinit /etc/X11/Xsession.post/the name of your file
pastebinit /the/name/of/your/script

StocChr 2011-11-30 15:38

Re: High Battery Consumption in Standby
 
/etc/pmconfig http://pastebin.com/2za54hCx
script: http://pastebin.com/9WfmamET

at the moment no file in Xsession.post

vi_ 2011-11-30 15:45

Re: High Battery Consumption in Standby
 
Quote:

Originally Posted by StocChr (Post 1131144)
/etc/pmconfig http://pastebin.com/2za54hCx
script: http://pastebin.com/9WfmamET

at the moment no file in Xsession.post

Well for a start you are missing:

Code:

#!/bin/sh
from the start of the script.

oopz. no xsession script.

Well I literally have no idea wtf you have done. By setting values in pmconfig they are set at startup.

Code:

# Power management configuration file
enable_off_mode 1
sleep_while_idle 1
sr_vdd1_autocomp 1
sr_vdd2_autocomp 1
clocks_off_while_idle 1
voltage_off_while_idle 1
scaling_governor ondemand
scaling_max_freq 720000
scaling_min_freq 250000
sleep_ind 1

Here is my pmconfig.

Either you have installed/scripted something else to mess around with your freqs or you have somehow broken pmconfig.

StocChr 2011-11-30 15:50

Re: High Battery Consumption in Standby
 
thanks, at the moment i test the script as an .sh script
./kernel-config.sh

and what is your opinion about the codes?

vi_ 2011-11-30 15:54

Re: High Battery Consumption in Standby
 
Quote:

Originally Posted by StocChr (Post 1131152)
thanks, at the moment i test the script as an .sh script
./kernel-config.sh

and what is your opinion about the codes?

It looks fine.

StocChr 2011-11-30 15:59

Re: High Battery Consumption in Standby
 
thanks dude!! don't know why pmconfig don't have an effect at the frequencies :/

StocChr 2011-11-30 18:39

Re: High Battery Consumption in Standby
 
the only method to get my commands executed on start up is via /etc/event.d
is this ok or is this a sh*t way

see file content: http://pastebin.com/WF1yU5AY

vi_ 2011-11-30 20:57

Re: High Battery Consumption in Standby
 
Quote:

Originally Posted by StocChr (Post 1131236)
the only method to get my commands executed on start up is via /etc/event.d
is this ok or is this a sh*t way

see file content: http://pastebin.com/WF1yU5AY

eh? There is nothing wrong with xsession.

event.d? Your in a world of hurt and on your own son.

StocChr 2011-11-30 21:17

Re: High Battery Consumption in Standby
 
when i put these code in the xsessions.post, the commands will not be executed. i dont know why man, i tried everything...

#!bin/sh

commands with sudo, without sudo
command to start a external .sh script

i have no idea why the commands will not start with xsession

vi_ 2011-11-30 21:50

Re: High Battery Consumption in Standby
 
Quote:

Originally Posted by StocChr (Post 1131292)
when i put these code in the xsessions.post, the commands will not be executed. i dont know why man, i tried everything...

#!bin/sh

commands with sudo, without sudo
command to start a external .sh script

i have no idea why the commands will not start with xsession

in xsession.post/50_your_script_here put

#!/bin/sh
sudo /path/to/your/script


Your script has to be executable and be a normal script.

StocChr 2011-12-01 06:25

Re: High Battery Consumption in Standby
 
sorry vi_

#!/bin/sh
sudo /home/user/kernel-power.sh

wont work on my device the only thing to get the commands on my device started is via event.d script :/

dont blame me, i dont know why i have this issue

raverpol 2011-12-01 20:57

Re: High Battery Consumption in Standby
 
1 Attachment(s)
guys
any clue what's wrong?? after new KP 49 the wifi connection disconects itself and the battery goes crazy
first and last part of the graph shows that

insanelysexy 2013-08-04 08:31

Re: High Battery Consumption in Standby
 
hi.. i hav ethe same problem of having my phone in c0 state for average 98% and c4 at average 1 percent.. this is the conditon even after i have formated the phone. please help


All times are GMT. The time now is 18:18.

vBulletin® Version 3.8.8