View Single Post
seiichiro0185's Avatar
Posts: 270 | Thanked: 610 times | Joined on Nov 2007 @ Leipzig/Germany
#2648
at first, a big thanks to titan and letho for their great work. I'm running titans latest maemo22 kernel at the "ideal" voltages with 500-900, and I have to say it really is a big difference to the stock clocks! Also all seems stable so it looks like I might have gotten a "good" chip.

A few pages back there was the idea of a "reboot-loop prevention" by checking the time of last reboot and not applying the overclocking if the last reboot was shortly before the current one. I have adjusted the upstart script posted earlier to do just that. It will not apply the overclocking if the last reboot was less then 5 minutes before the current one. 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.
Also YOU ARE RESPONSIBLE FOR CHECKING THE VALUES AND THEIR SAFETY. IF THIS BREAKS YOUR DEVICE I CAN NOT BE HELD RESPONSIBLE.

So here is the script:
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
save this to /etc/event.d/overclock and reboot (or run "start overclock" as root to apply the values without rebooting)
__________________
N800 -> N810 -> N900 -> N9 -> Jolla & TOHKBD -> Jolla C -> Xperia X -> XA2 Plus Dual Sim

http://www.seiichiro0185.org

Last edited by seiichiro0185; 2010-04-13 at 20:07.
 

The Following 4 Users Say Thank You to seiichiro0185 For This Useful Post: