maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Maemo 5 / Fremantle (https://talk.maemo.org/forumdisplay.php?f=40)
-   -   [PATCH] Dynamic CPU Scaling + [720p UPDATE] Effective Power Saving When Device Is Active/Idle -720p Update- (https://talk.maemo.org/showthread.php?t=76303)

GigaByte 2011-09-04 12:39

[PATCH] Dynamic CPU Scaling + [720p UPDATE] Effective Power Saving When Device Is Active/Idle -720p Update-
 
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 :D. 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.

F2thaK 2011-09-04 12:49

Re: Did something intelligent using dbus-scripts, need a lil help and it will be here
 
shite. lol.

cool, hope you can sort it out, Id like this

GigaByte 2011-09-04 12:59

Re: Did something intelligent using dbus-scripts, need a lil help and it will be here
 
Quote:

Originally Posted by F2thaK (Post 1081711)
shite. lol.

cool, hope you can sort it out, Id like this

Yea, I decided to use shite instead shed if requesting information, let's make it a meme, certainly better than smell you later instead of see you later. :)

GigaByte 2011-09-04 13:22

Re: Did something intelligent using dbus-scripts, need a lil help and it will be here
 
Bumpo bumpo
yea i'm bumping this thread...

Seker_94 2011-09-04 13:22

Re: Did something intelligent using dbus-scripts, need a lil help and it will be here
 
@GigaByte
you can pm karam
he made batterypatch depending on dbus-scripts i think he will help
he is one of the kind that doesn't ignore p messages

F2thaK 2011-09-04 13:23

Re: Did something intelligent using dbus-scripts, need a lil help and it will be here
 
how bout you pm vi_

Seker_94 2011-09-04 13:36

Re: Did something intelligent using dbus-scripts, need a lil help and it will be here
 
it doesn't matter who you Pm
i just suggested karam because he has made a patch using the same method
which was very recently

Mohammad 2011-09-04 13:37

Re: Did something intelligent using dbus-scripts, need a lil help and it will be here
 
lol PM fight :p
i say PM both

Android_808 2011-09-04 13:38

Re: Did something intelligent using dbus-scripts, need a lil help and it will be here
 
you could just download the deb for speedpatch and unpack it and examine the scripts.

GigaByte 2011-09-04 13:39

Re: Did something intelligent using dbus-scripts, need a lil help and it will be here
 
What is the first impression you have when seeing a PM from a 77 posts poster user?
Fsck him right?
:o


All times are GMT. The time now is 06:07.

vBulletin® Version 3.8.8