|
2010-04-13
, 20:41
|
Posts: 946 |
Thanked: 1,650 times |
Joined on Oct 2009
@ Germany
|
#2652
|
BTW: Is there still the same feature that after call 125MHz will be set to 250MHz? At least that happened to me
The Following User Says Thank You to titan For This Useful Post: | ||
|
2010-04-13
, 20:57
|
Posts: 946 |
Thanked: 1,650 times |
Joined on Oct 2009
@ Germany
|
#2653
|
With this script there is no need to modify /etc/pmconfig (actually it would defeat the purpose of the check).
The script will apply the setting as they were in the ideal xlv kernel as posted earlier by titan. Feel free to adjust them.
save this to /etc/event.d/overclock and reboot (or run "start overclock" as root to apply the values without rebooting)Code:start on started dsme stop on starting shutdown service console none script TDIFF=$(expr $(date +%s) - $(stat -t /etc/lastreboot |awk '{print $14}')) if [ $TDIFF -gt 300 ] then touch /etc/lastreboot echo 75 > /sys/devices/system/cpu/cpu0/cpufreq/ondemand/up_threshold echo 150000 > /sys/devices/system/cpu/cpu0/cpufreq/ondemand/sampling_rate echo "30 30 30 30 33 38 45 45 48 48 54 54 60 72 72" > /sys/power/vdd1_opps_vsel echo 500000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq echo 850000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq modprobe bq27x00_battery exit 0 else exit 1 fi end script
UP_THRESHOLD=75 SAMPLING_RATE=150000 VDD1_OPPS_VSEL= "30 30 30 30 33 38 45 45 48 48 54 54 60 72 72" DSP_OPPS_RATE= "90000000 90000000 180000000 360000000 400000000 430000000 430000000 430000000 430000000 500000000 500000000 500000000 500000000 520000000 520000000" MIN_FREQ=500000 MAX_FREQ=850000 SMARTREFLEX_VDD1=0 SMARTREFLEX_VDD2=0
The Following User Says Thank You to titan For This Useful Post: | ||
|
2010-04-13
, 20:59
|
Posts: 946 |
Thanked: 1,650 times |
Joined on Oct 2009
@ Germany
|
#2654
|
Do you have a patch (diff) for OC/LV changes only?
Because package source of maemo22 has huge changes unrelated with it.
(I work on some kernel changes but in testing I am limited by stock kernel module set and can't apply all changes).
The Following User Says Thank You to titan For This Useful Post: | ||
|
2010-04-13
, 21:08
|
Posts: 946 |
Thanked: 1,650 times |
Joined on Oct 2009
@ Germany
|
#2655
|
BTW, I'm in the middle of restoring my installed app, so I can reinstall the ideal kernel and upgrade via terminal to show you what's happening.
|
2010-04-13
, 21:11
|
|
Posts: 168 |
Thanked: 206 times |
Joined on Apr 2010
@ Finland
|
#2656
|
oh, stat does actually exist (I searched in the wrong dir)! this make things simpler.
does the script work for you? I had a reboot loop last time did modprobe in an earlier script due to a non-zero exit code.
|
2010-04-13
, 21:37
|
Posts: 170 |
Thanked: 27 times |
Joined on Feb 2010
@ reading, uk
|
#2657
|
The Following User Says Thank You to torres76 For This Useful Post: | ||
|
2010-04-13
, 21:40
|
Posts: 1,729 |
Thanked: 388 times |
Joined on Jan 2010
@ Canada
|
#2658
|
The Following User Says Thank You to gabby131 For This Useful Post: | ||
|
2010-04-13
, 21:44
|
Posts: 946 |
Thanked: 1,650 times |
Joined on Oct 2009
@ Germany
|
#2659
|
start on started dsme stop on starting shutdown service console none script test -f /etc/lastboot && TDIFF=$(expr $(date +%s) - $(stat -t /etc/lastboot |awk '{print $14}')) if test -z "$TDIFF" || test "$TDIFF" -gt 300; then touch /etc/lastboot #broken: modprobe bq27x00_battery test -f /etc/default/kernel || exit 0 source /etc/default/kernel test -n "$UP_THRESHOLD" && echo $UP_THRESHOLD > /sys/devices/system/cpu/cpu0/cpufreq/ondemand/up_threshold test -n "$SAMPLING_RATE" && echo $SAMPLING_RATE > /sys/devices/system/cpu/cpu0/cpufreq/ondemand/sampling_rate test -n "$MIN_FREQ" && echo $MIN_FREQ > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq test -n "$MAX_FREQ" && echo $MAX_FREQ > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq test -n "$VDD1_OPPS_VSEL" && echo $VDD1_OPPS_VSEL > /sys/power/vdd1_opps_vsel test -n "$DSP_OPPS_RATE" && echo $DSP_OPPS_RATE > /sys/power/dsp_opps_rate test -n "$SMARTREFLEX_VDD1" && echo $SMARTREFLEX_VDD1 > /sys/power/sr_vdd1_autocomp test -n "$SMARTREFLEX_VDD2" && echo $SMARTREFLEX_VDD2 > /sys/power/sr_vdd2_autocomp exit 0 else exit 1 fi end script
UP_THRESHOLD=75 SAMPLING_RATE=150000 VDD1_OPPS_VSEL="30 30 30 30 33 38 45 45 48 48 54 54 60 72 72" DSP_OPPS_RATE="90000000 90000000 180000000 360000000 400000000 430000000 430000000 430000000 430000000 500000000 500000000 500000000 500000000 520000000 520000000" MIN_FREQ=500000 MAX_FREQ=850000 SMARTREFLEX_VDD1=0 SMARTREFLEX_VDD2=0
The Following 3 Users Say Thank You to titan For This Useful Post: | ||
|
2010-04-13
, 21:53
|
Posts: 170 |
Thanked: 27 times |
Joined on Feb 2010
@ reading, uk
|
#2660
|
|
for example, from 250 will jump to 300 and 500 consecutively and then 550 to 800? or is there something like 250, 300, 450, 500, 550 and so on? and why are those gaps present? Just curious.... (i believe i see a post here answering my question but cant find it! )