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 12:15

Re: High Battery Consumption in Standby
 
ok, i do it on my own risk :)
kernel-config is normaly stored in /usr/sbin
should i save it to .../bin or .../sbin?

vi_ 2011-11-30 12:17

Re: High Battery Consumption in Standby
 
If it is normally in /usr/sbin you should copy the new version (after uninstallation) to /usr/sbin.

vi_ 2011-11-30 12:22

Re: High Battery Consumption in Standby
 
also make sure /etc/X11/Xsession.post/80kernel_config is executable...

StocChr 2011-11-30 12:45

Re: High Battery Consumption in Standby
 
i saved the kernel-config file to /usr/sbin
chmod +rwx /usr/sbin/kernel-config

i saved the the frequency schemes to /usr/share/kernel-power-settings

and then i executed:

Code:

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

loading kernel-config with dsp profile works flawless on startup
but the problem with the ON things are still there

see... http://pastebin.com/6bUbe13X

vi_ 2011-11-30 13:10

Re: High Battery Consumption in Standby
 
And KP settings is DEFINITELY uninstalled?

Um, wait, wtf?

Why when you are doing the procedure is fmtxd and mv running?

StocChr 2011-11-30 13:14

Re: High Battery Consumption in Standby
 
i didn't install KP settings since i uninstalled it today for the powertop things.

i downloaded the .deb file from meamo packages and extracted the kernel-config file and the frequency scheme!
it seems that kernel-config alone is responsible for the ON things

StocChr 2011-11-30 13:38

Re: High Battery Consumption in Standby
 
is it possible to overclock by editing the /etc/pmconfig and loading a frequency scheme from kernel-power?

or is it possible to edit the /etc/default/kernel-power file as i like

vi_ 2011-11-30 13:44

Re: High Battery Consumption in Standby
 
I have this in a script that is triggered by /etc/X11/Xsession.post/. Just modify your xsession.post/50kernel_config to launch this script.

Obviously alter the script to reflect your own needs.

Code:

#!/bin/sh
echo "550000 850000 950000 1000000 1100000 1150000" > /sys/devices/system/cpu/cpu0/cpufreq/ondemand/avoid_frequencies
echo 150000 > /sys/devices/system/cpu/cpu0/cpufreq/ondemand/sampling_rate
#echo "90 90 180 360 400 430 430 430 430 500 500 500 500 520 520" > /sys/power/dsp_opps_rate
echo "1" > /sys/devices/system/cpu/cpu0/cpufreq/ondemand/ignore_nice_load
echo "87" > /sys/devices/system/cpu/cpu0/cpufreq/ondemand/up_threshold

#Camera button through lock screen
echo 0 > /sys/devices/platform/gpio-switch/cam_focus/disable
chmod 444 /sys/devices/platform/gpio-switch/cam_focus/disable

No you cannot just add random sh|te to /etc/pmconfig.

StocChr 2011-11-30 14:15

Re: High Battery Consumption in Standby
 
hey vi_ i build my own Xsession Script, maybe you can proofreading it for me before i will test it on my device?!

i tried to put all things from the kernel-settings dsp profile in the xsession script:

Code:

echo "250000" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq

echo "805000" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq

echo "125000" > /sys/devices/system/cpu/cpu0/cpufreq/ondemand/avoid_frequencies

echo "0 125000 250000 500000 550000 600000 720000 805000 850000 900000 950000 1000000 1100000 1150000" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_frequencies

echo "30 30 38 48 54 60 60 60 60 60 60 60 72 72" > /sys/power/vdd1_opps_vsel

echo "90 90 180 360 400 430 520 600 600 600 600 600 600 600" > /sys/power/dsp_opps_rate

echo "1" > /sys/power/sr_vdd1_autocomp

echo "1" > /sys/power/sr_vdd2_autocomp

echo "ondemand" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor

echo "95" > /sys/devices/system/cpu/cpu0/cpufreq/ondemand/up_threshold

echo "300000" > /sys/devices/system/cpu/cpu0/cpufreq/ondemand/sampling_rate

echo "0" > /sys/devices/system/cpu/cpu0/cpufreq/ondemand/ignore_nice_load

echo "0" > /sys/devices/system/cpu/cpu0/cpufreq/ondemand/powersave_bias

analog you can look at the dsp code:

Code:

MINFREQ=250
MAXFREQ=805
FREQS="0:30,90 125:30,90 250:38,180 500:48,360 550:54,400 600:60,430 720:60,520 805:60,600 850:60,600 900:60,600 950:60,600 1000:60,600 1100:72,600 1150:72,600"
SMARTREFLEX_VDD1=1
SMARTREFLEX_VDD2=1
GOVERNOR=ondemand
UP_THRESHOLD=95
SAMPLING_RATE=300000
IGNORE_NICE_LOAD=0
POWERSAVE_BIAS=0


vi_ 2011-11-30 14:27

Re: High Battery Consumption in Standby
 
Quote:

Originally Posted by StocChr (Post 1131087)
hey vi_ i build my own Xsession Script, maybe you can proofreading it for me before i will test it on my device?!

i tried to put all things from the kernel-settings dsp profile in the xsession script:

Code:

echo "125000" > /sys/devices/system/cpu/cpu0/cpufreq/ondemand/avoid_frequencies

echo "30 30 38 48 54 60 60 60 60 60 60 60 72 72" > /sys/power/vdd1_opps_vsel

echo "90 90 180 360 400 430 520 600 600 600 600 600 600 600" > /sys/power/dsp_opps_rate

echo "ondemand" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor

echo "95" > /sys/devices/system/cpu/cpu0/cpufreq/ondemand/up_threshold

echo "300000" > /sys/devices/system/cpu/cpu0/cpufreq/ondemand/sampling_rate

echo "0" > /sys/devices/system/cpu/cpu0/cpufreq/ondemand/ignore_nice_load

echo "0" > /sys/devices/system/cpu/cpu0/cpufreq/ondemand/powersave_bias


Set max+min scalling speeds in /etc/pmconfig.
Set smartreflex in /etc/pmconfig.

Other wise it is fine.

You can set almost everything from pmconfig. You no longer need to set voltage values as SR will do it for you.

Just make sure the script runs with no errors before you set it to start automatically from xsession.post.

Also, just use xsession to start your script. Stick you script elsewhere.


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

vBulletin® Version 3.8.8