View Single Post
Posts: 144 | Thanked: 68 times | Joined on Mar 2011 @ a spot
#1
So yesterday I was thinking about OCing using KP v48, but I didn't quite like the fact that my device uses high frequencies when it's idle, i.e. I set my limits to 600 1150, and making the device sit at 600MHz while idle is pointless, so I started tempering with dbus-scripts.

NEW
Thanks a tonne ammyt for making this to work, it is really a handy script for me, thanks for joining in and shiteing light on us . karam should look into this patch.

How to and everything: post by ammyt:
http://talk.maemo.org/showpost.php?p...1&postcount=14

OLD
Here is what I did:
1. apt-get install dbus-scripts
2. leafpad /etc/dbus-scripts.d/lock
Code:
/usr/local/bin/rest * * com.nokia.mce.signal tklock_mode_ind locked
3. leafpad /etc/dbus-scripts.d/unlock
Code:
/usr/local/bin/jump * * com.nokia.mce.signal tklock_mode_ind unlocked
4. Created corresponding rest and jump files using leafpad:
= /usr/local/bin/rest contained:
Code:
#!/bin/sh
kernel-config load starving
kernel-config limits 250 500
= /usr/local/bin/jump contained:
Code:
#!/bin/sh
kernel-config load ideal
kernel-config limits 600 1150
5. I chmod +x both rest and jump
6. rebooted, frequency was 250 600 :'( until I sh /etc/dbus-scripts.d/unlock frequencies were as I set 600 1150

I don't think that when I lock the device either the frequencies from the rest config are being set, is there anyway to make this automatic?

Oh and for non-experienced users reading this, what I was trying to do is setting the device at a certain frequency and voltages while locked and higher ones while the device is unlocked. This can save lots of battery and increase performance.

vi_ you're the king of scripts, hope you can shite some light on my situation.

Last edited by GigaByte; 2011-10-04 at 13:11.
 

The Following 7 Users Say Thank You to GigaByte For This Useful Post: