Reply
Thread Tools
Posts: 306 | Thanked: 38 times | Joined on Dec 2009 @ Austria
#111
ok, i do it on my own risk
kernel-config is normaly stored in /usr/sbin
should i save it to .../bin or .../sbin?
 
Posts: 1,680 | Thanked: 3,685 times | Joined on Jan 2011
#112
If it is normally in /usr/sbin you should copy the new version (after uninstallation) to /usr/sbin.
__________________
N900: One of God's own prototypes. A high-powered mutant of some kind never even considered for mass production. Too weird to live, and too rare to die.
 

The Following User Says Thank You to vi_ For This Useful Post:
Posts: 1,680 | Thanked: 3,685 times | Joined on Jan 2011
#113
also make sure /etc/X11/Xsession.post/80kernel_config is executable...
__________________
N900: One of God's own prototypes. A high-powered mutant of some kind never even considered for mass production. Too weird to live, and too rare to die.
 

The Following User Says Thank You to vi_ For This Useful Post:
Posts: 306 | Thanked: 38 times | Joined on Dec 2009 @ Austria
#114
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
 
Posts: 1,680 | Thanked: 3,685 times | Joined on Jan 2011
#115
And KP settings is DEFINITELY uninstalled?

Um, wait, wtf?

Why when you are doing the procedure is fmtxd and mv running?
__________________
N900: One of God's own prototypes. A high-powered mutant of some kind never even considered for mass production. Too weird to live, and too rare to die.

Last edited by vi_; 2011-11-30 at 13:15.
 
Posts: 306 | Thanked: 38 times | Joined on Dec 2009 @ Austria
#116
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
 
Posts: 306 | Thanked: 38 times | Joined on Dec 2009 @ Austria
#117
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
 
Posts: 1,680 | Thanked: 3,685 times | Joined on Jan 2011
#118
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.
__________________
N900: One of God's own prototypes. A high-powered mutant of some kind never even considered for mass production. Too weird to live, and too rare to die.
 
Posts: 306 | Thanked: 38 times | Joined on Dec 2009 @ Austria
#119
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

Last edited by StocChr; 2011-11-30 at 14:27.
 
Posts: 1,680 | Thanked: 3,685 times | Joined on Jan 2011
#120
Originally Posted by StocChr View Post
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.
__________________
N900: One of God's own prototypes. A high-powered mutant of some kind never even considered for mass production. Too weird to live, and too rare to die.
 
Reply

Thread Tools

 
Forum Jump


All times are GMT. The time now is 08:16.