maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Maemo 5 / Fremantle (https://talk.maemo.org/forumdisplay.php?f=40)
-   -   [ANOUNCE] CPU Power Control - PyGTK (https://talk.maemo.org/showthread.php?t=78589)

ammyt 2011-10-07 11:32

[ANOUNCE] CPU Power Control - PyGTK
 
1 Attachment(s)
This is basially a continuation of the past Dynamic CPU Scaling patch.

This is an official app now, it is heading to the repos soon!

Features:
*Building your own KP profile, configuring frequencies, voltages, and dsp rates, up threshold values, smart reflex, sampling rate... all by a GUI.
*Using ready made profiles "Optimum...HD Blood Kain...Life Doubler" see post #6
*Using your own profile!
*And of course, using all of these with the classical Dynamic CPU Scaling patch and effective battery saving patches!

Screenshots:
http://i.imgur.com/Kfwqe.png
http://i.imgur.com/4nja7.png
http://i.imgur.com/eXFJn.png
http://i.imgur.com/IWd4g.png
http://i.imgur.com/oQDWV.png
http://i.imgur.com/FJtPc.png
http://i.imgur.com/bMAPO.png
http://i.imgur.com/HsZMA.png
http://i.imgur.com/yoxLE.png

The package requires:
Code:

apt-get install dbus-scripts zenity python python-osso python-gtk2
Feedback is welcomed!

neboja 2011-10-07 11:42

Re: [ANNOUNCE] CPUTweak w/ Configurator Program & Effective Battery Saving
 
great man! is it in repos or just to download and install it from here???
btw, could you describe more these profiles, or they are described in program (help/info) itself???

disappear 2011-10-07 12:04

Re: [ANNOUNCE] CPUTweak w/ Configurator Program & Effective Battery Saving
 
Hi ammyt.Does this mean each profile includes also dsp overclocing or not

Boemien 2011-10-07 12:07

Re: [ANNOUNCE] CPUTweak w/ Configurator Program & Effective Battery Saving
 
Neboja is right, we need more explanations! but it's a good app by the way! I'm sick of charging my N900 every nights!!! :D

mesho123 2011-10-07 12:18

Re: [ANNOUNCE] CPUTweak w/ Configurator Program & Effective Battery Saving
 
what is all this meaning ?


1. Optimum
2. Blood Kain
3. Life Doubler
4. HD-Optimum
5. HD-Blood Kain
6. HD-Life Doubler

ammyt 2011-10-07 12:27

Re: [ANNOUNCE] CPUTweak w/ Configurator Program & Effective Battery Saving
 
1. Optimum:
Best in terms of regular usage performance versus battery saving.
Usage: Ideal profile
Max: 805MHz
Min: 500MHz
Idle: 0 - 500 MHz Starving
SR VDD 1: Enabled
SR VDD 2: Enabled

2. Blood Kain
Performance boosted beyond limits, with much effort put in to issue reasonable usage of battery juice.
Usage: ULV
Max: 1150
Min: 500
Idle: 0 - 500 Starving
SR VDD 1: Disabled
SR VDD 2: Enabled

3. Life Doubler
Best in terms of power saving. Day-to-day performance is very good too.
Usage: ULV
Max: 750
Min: 500
Idle: 0 - 500 Starving
SR VDD 1: Enabled
SR VDD 2: Enabled

4. HD-Optimum:
Best choice if your using 720p DSP libraried installed, I personally use this.
Usage: Custom
Max: 900
Min: 500
Idle: 0 - 500 Starving
DSP: 600MHz
SR VDD 1: Disabled
SR VDD 2: Enabled

5. HD-Blood Kain
Turns your N900 to a Nuclear Power Plant.
Usage: Custom
Max: 1150
Min: 500
Idle: 0 - 500 Starving
DSP: 600MHz
SR VDD 1: Disabled
SR VDD 2: Enabled

6. HD-Life Doubler
Even though playing HD videos requires lots of power, this profile manages to get the most out of your battery.
Usage: Custom
Max: 805
Min: 500
Idle: 0 - 500 Starving
DSP: 600MHz
SR VDD 1: Enabled
SR VDD 2: Enabled

In all of these profiles, the vfs_cache_pressure is set to 10 when the device is idle and 100 when it is in use. The processer is also set to an ultra low power state (starving), and the usage of process SIGSTOP pauses greed processes when idle such as trackerd to drastically improve battery usage.

ammyt 2011-10-07 12:31

Re: [ANNOUNCE] CPUTweak w/ Configurator Program & Effective Battery Saving
 
Just download the attachment and install it.
Optimum parameters will be automatically set. Run the program from the menu to change settings.

The package needs dbus-scripts:
apt-get install dbus-scripts

I will add dbus-scripts as a dependency once it is confirmed to work.

ammyt 2011-10-07 12:39

Re: [ANNOUNCE] CPUTweak w/ Configurator Program & Effective Battery Saving
 
Quote:

Originally Posted by Boemien (Post 1104655)
Neboja is right, we need more explanations! but it's a good app by the way! I'm sick of charging my N900 every nights!!! :D

That's why I posted info about the profiles in post #6.

neboja 2011-10-07 12:41

Re: [ANNOUNCE] CPUTweak w/ Configurator Program & Effective Battery Saving
 
great stuff ammyt. thx for explanation ;)

visN900 2011-10-07 12:49

Re: [ANNOUNCE] CPUTweak w/ Configurator Program & Effective Battery Saving
 
Quote:

Originally Posted by ammyt (Post 1104639)
This is basially a continuation of the past Dynamic CPU Scaling patch.

Install CPUTweak.deb, all default parameters will be set. On your Application menu, you should find the CPUTweak Configurator. It allows you to choose between 6 profiles:
1. Optimum
2. Blood Kain
3. Life Doubler
4. HD-Optimum
5. HD-Blood Kain
6. HD-Life Doubler
The configurator app is very user-friendly, you will know what to do directly.
More info about the profiles in post #6

Download and install the .deb package, optimum values will be set. If you wish to load different profiles, run the program from your apps menu.

The package depends on dbus-scripts which you will have to manually install for now:
apt-get install dbus-scripts

I will add dbus-scripts as a dependency later so tha you won't need to apt-get anything, but just when I get confirmation that the program is working.


tks for this man.. u rock!!! i was also thinking of this.. but u did it.. great work man!!

knobby 2011-10-07 12:52

Re: [ANNOUNCE] CPUTweak w/ Configurator Program & Effective Battery Saving
 
@ammyt...
lots of reboots.. :(

is there something to do with vdd1 and vdd2 or the voltages are not sufficient for my n900...? thanks

disappear 2011-10-07 12:55

Re: [ANNOUNCE] CPUTweak w/ Configurator Program & Effective Battery Saving
 
Just a one word BEAUTY

ammyt 2011-10-07 13:19

Re: [ANNOUNCE] CPUTweak w/ Configurator Program & Effective Battery Saving
 
Thanks for all those who tried the program out.
@knobby
When exactly do you get the reboots? Using which profile?
Does your phone reboot when locking it?

knobby 2011-10-07 13:25

Re: [ANNOUNCE] CPUTweak w/ Configurator Program & Effective Battery Saving
 
Quote:

Originally Posted by ammyt (Post 1104696)
Thanks for all those who tried the program out.
@knobby
When exactly do you get the reboots? Using which profile?
Does your phone reboot when locking it?

it is rebooting at reg profile...each time i load settings, the phone reboots...
i tried raising voltages but of no use...but when vdd1 and vdd2 are 0...no reboots at reg profile...
or when cpu freq is 750 MHz then no reboot occur even when vdd1 and vdd2 are = 1

any idea...?

mr_pingu 2011-10-07 13:27

Re: [ANNOUNCE] CPUTweak w/ Configurator Program & Effective Battery Saving
 
Nice application although I tought when I read the threadtitle it would allow us to change voltages from GUI also but too bad it wasn't. It was just for switching profiles and I think that can be done from x-term in a fast way too :P

I'm sure some will like this for sure and find it useful, so you get your thanks =D
Thanks for the effort

Boemien 2011-10-07 13:58

Re: [ANNOUNCE] CPUTweak w/ Configurator Program & Effective Battery Saving
 
loool! why don't you use simple terms instead of Blood Kain and following?? Just a suggestion, no offense!!

knobby 2011-10-07 14:08

Re: [ANNOUNCE] CPUTweak w/ Configurator Program & Effective Battery Saving
 
@ammyt...
sorry but i had to remove it ... so many reboots...

even when phone is locked...starving profile also don't work for me...

sorry buddy.. my n900 seems not to like it.. :p just kiddin...

ammyt 2011-10-07 14:13

Re: [ANNOUNCE] CPUTweak w/ Configurator Program & Effective Battery Saving
 
Quote:

Originally Posted by mr_pingu (Post 1104699)
Nice application although I tought when I read the threadtitle it would allow us to change voltages from GUI also but too bad it wasn't. It was just for switching profiles and I think that can be done from x-term in a fast way too :P

I'm sure some will like this for sure and find it useful, so you get your thanks =D
Thanks for the effort

Well that's not all.
Have you seen the other thread about dynamic CPU Scaling?
This installs the same old patch, i.e. letting the phone scale between 0 --> 500 only and bump it to whatever profile you set when the phone is unlocked. It also pauses battery consuming processes when idle and resumes them when the phone is unlocked, and sers the vfs_cache_pressure to 10 when idle and back to 100 when on usage.

ammyt 2011-10-07 14:15

Re: [ANNOUNCE] CPUTweak w/ Configurator Program & Effective Battery Saving
 
Quote:

Originally Posted by Boemien (Post 1104724)
loool! why don't you use simple terms instead of Blood Kain and following?? Just a suggestion, no offense!!

For triisha02 reasons, don't want to discuss that O:)

fahadj2003 2011-10-07 14:18

Re: [ANNOUNCE] CPUTweak w/ Configurator Program & Effective Battery Saving
 
can i use my own profile with my own voltage settings?
i dun wanna install it yet coz it took me a while to config the voltage settings etc..

mr_pingu 2011-10-07 14:36

Re: [ANNOUNCE] CPUTweak w/ Configurator Program & Effective Battery Saving
 
Quote:

Originally Posted by ammyt (Post 1104739)
Well that's not all.
Have you seen the other thread about dynamic CPU Scaling?
This installs the same old patch, i.e. letting the phone scale between 0 --> 500 only and bump it to whatever profile you set when the phone is unlocked. It also pauses battery consuming processes when idle and resumes them when the phone is unlocked, and sers the vfs_cache_pressure to 10 when idle and back to 100 when on usage.

As I don't like installing any GUI's for this, I want my menu clean I will look into this :D Thanks

fahadj2003 2011-10-07 14:39

Re: [ANNOUNCE] CPUTweak w/ Configurator Program & Effective Battery Saving
 
Quote:

Originally Posted by mr_pingu (Post 1104753)
As I don't like installing any GUI's for this, I want my menu clean I will look into this :D Thanks

you might wanna look into an app named "categorize"

Straycat 2011-10-07 14:56

Re: [ANNOUNCE] CPUTweak w/ Configurator Program & Effective Battery Saving
 
Do I need some specific kernel to attach the thing?? I'm on KP48, is it enough?

Thanks for the .deb!

MetalGearSolid 2011-10-07 14:58

Re: [ANNOUNCE] CPUTweak w/ Configurator Program & Effective Battery Saving
 
Is it compatible with Karam's Speedpatch/Batterypatch ?

ammyt 2011-10-07 15:04

Re: [ANNOUNCE] CPUTweak w/ Configurator Program & Effective Battery Saving
 
@fahad
Yes, of course you can, rename the profile you made to reg, and there ya go.

petur 2011-10-07 15:17

Re: [ANNOUNCE] CPUTweak w/ Configurator Program & Effective Battery Saving
 
Quote:

Originally Posted by knobby (Post 1104698)
it is rebooting at reg profile...each time i load settings, the phone reboots...
i tried raising voltages but of no use...but when vdd1 and vdd2 are 0...no reboots at reg profile...
or when cpu freq is 750 MHz then no reboot occur even when vdd1 and vdd2 are = 1

any idea...?

I'm pretty sure that vdd1 and vdd2 are the culprit. I'm not using this tool but overclocking manually, and if I enable either vdd1 or vdd2 (smartreflex), my phone gets unstable as hell. Disable it, and it is rock-stable (incidentally, at 500-805 using ideal profile)

trisha02 2011-10-07 15:17

Re: [ANNOUNCE] CPUTweak w/ Configurator Program & Effective Battery Saving
 
i tried to install it via dpkg -i and it gave me the errors:

dpkg: error processing CPUTweak.deb (--install)
trying to overwrite '/etc/event.d/dbus-scripts-session', which is also in package batterypatch
Errors where encountered while processing: CPUTweak.deb

i hav battery patch and speedpatch installed. what to do?

knobby 2011-10-07 15:34

Re: [ANNOUNCE] CPUTweak w/ Configurator Program & Effective Battery Saving
 
Quote:

Originally Posted by trisha02 (Post 1104779)
i tried to install it via dpkg -i and it gave me the errors:

dpkg: error processing CPUTweak.deb (--install)
trying to overwrite '/etc/event.d/dbus-scripts-session', which is also in package batterypatch
Errors where encountered while processing: CPUTweak.deb

i hav battery patch and speedpatch installed. what to do?

Listen carefully......

this patch combines the feature of karam's patches as well as adds some enhanced profiles for easy playback of HD videos using freemangordon's codecs....

i u wanna install this...there is no need of karam's patches...

i hope this is enough 4 u... :p

knobby 2011-10-07 15:37

Re: [ANNOUNCE] CPUTweak w/ Configurator Program & Effective Battery Saving
 
Quote:

Originally Posted by petur (Post 1104778)
I'm pretty sure that vdd1 and vdd2 are the culprit. I'm not using this tool but overclocking manually, and if I enable either vdd1 or vdd2 (smartreflex), my phone gets unstable as hell. Disable it, and it is rock-stable (incidentally, at 500-805 using ideal profile)

thanks 4 sharing dude...
ya i was also thinking smartreflex s culprit...

Disabling it makes my n900 stable at 1000 MHz... :D

knobby 2011-10-07 15:43

Re: [ANNOUNCE] CPUTweak w/ Configurator Program & Effective Battery Saving
 
@ammyt...

what's the basic use of smart reflex (vdd1 vdd2).. ?

wanna hear ur expert views...thanku

br1zer 2011-10-07 16:05

Re: [ANNOUNCE] CPUTweak w/ Configurator Program & Effective Battery Saving
 
I'm running Blood Kain and have seen a noticable difference in performance...for the better! :-)

Thanks bud!

bipinbn 2011-10-07 16:15

Re: [ANNOUNCE] CPUTweak w/ Configurator Program & Effective Battery Saving
 
Quote:

Originally Posted by ammyt (Post 1104639)
This is basially a continuation of the past Dynamic CPU Scaling patch.

Install CPUTweak.deb, all default parameters will be set. On your Application menu, you should find the CPUTweak Configurator. It allows you to choose between 6 profiles:
1. Optimum
2. Blood Kain
3. Life Doubler
4. HD-Optimum
5. HD-Blood Kain
6. HD-Life Doubler
The configurator app is very user-friendly, you will know what to do directly.
More info about the profiles in post #6

Download and install the .deb package, optimum values will be set. If you wish to load different profiles, run the program from your apps menu.

The package depends on dbus-scripts which you will have to manually install for now:
apt-get install dbus-scripts

I will add dbus-scripts as a dependency later so tha you won't need to apt-get anything, but just when I get confirmation that the program is working.

@ammyt ..awesome dude..the rate at which you cook nice debs..fantastic effort. i would love to learn from you or assist you in any way..I am a coder myself...thanks again..

prankster 2011-10-07 16:32

Re: [ANNOUNCE] CPUTweak w/ Configurator Program & Effective Battery Saving
 
i do have some question as i have not tried this yet ,so here they are
do i need to remove karam's battery patch ?
which profile among all these is the best one ? any recommendation ?
so i simply need to install the 720p deb by ammyt and there is no need to install freemangordon patches for HD video from here http://talk.maemo.org/showpost.php?p...63&postcount=1 and here http://talk.maemo.org/showthread.php?t=78537 ?
Great work ammyt ,you are another saviour of this maemo planet.thank you !

ammyt 2011-10-07 18:17

Re: [ANNOUNCE] CPUTweak w/ Configurator Program & Effective Battery Saving
 
Karam actually took my batterypatch, just to clear something.
@trisha02, rm /etc/event.d/dbus-scripts-session then install the deb
@prankster, you need to have freemangordon's patch first.

I may not be replying quickly to queries because I am building a GUI, with sliders and everything :D.

sr00t 2011-10-07 21:10

Re: [ANNOUNCE] CPUTweak w/ Configurator Program & Effective Battery Saving
 
Quote:

Originally Posted by ammyt (Post 1104878)
Karam actually took my batterypatch, just to clear something.
@trisha02, rm /etc/event.d/dbus-scripts-session then install the deb
@prankster, you need to have freemangordon's patch first.

I may not be replying quickly to queries because I am building a GUI, with sliders and everything :D.

ammyt, as I said before, you ****ing rock.
Some questions here:
First, I use ssh a lot while screen is off. So, If I log onto the N900 with ssh while screen is locked, will this script manage dinamically the freqs required and will not idle the cellphone (thus make me impossible to log in in because it doesn't reply to the login request?) ?

Another question: I installed the deb and didn't uninstalled the files that the CPUTweak.sh.txt made. It will work either way?


EDIT:
I was messing around with profiles. I chose 3-Life Doubler and let it idle with lock. After 30 minutes, I can't make the unit unlock. Screen will not respond, neither any key.
One detail: LED light its still working and SSH is working too. Pretty weird.

stooobs 2011-10-08 00:08

Re: [ANNOUNCE] CPUTweak w/ Configurator Program & Effective Battery Saving
 
testing hd bat i lowed the voltages to 1ns i know work
no bug where it uses clock settings inbetween 500 805 even when deleted from the profile so good start lol

visN900 2011-10-08 02:12

Re: [ANNOUNCE] CPUTweak w/ Configurator Program & Effective Battery Saving
 
yeah!! HD BATTERY SAVER is excellent.. stabel till nowNO REBOOTS AT ALL EVEN THOUGH SMART REFLEX IS ON.. how abt other patches guys.. share them..

trisha02 2011-10-08 08:24

Re: [ANNOUNCE] CPUTweak w/ Configurator Program & Effective Battery Saving
 
Quote:

Originally Posted by ammyt (Post 1104878)
Karam actually took my batterypatch, just to clear something.
@trisha02, rm /etc/event.d/dbus-scripts-session then install the deb
@prankster, you need to have freemangordon's patch first.

I may not be replying quickly to queries because I am building a GUI, with sliders and everything :D.

thanks ammyt. but doing this will remove karam's patch? or will it stop responding?

ricardo8 2011-10-08 11:19

Re: [ANNOUNCE] CPUTweak w/ Configurator Program & Effective Battery Saving
 
i uninstalled batterypatch and speedpatch, then install this, applied the hd life doubler, then this came up on my xterm. even if i reboot my device, still the same in the xterm, any idea? how to remove it?



BusyBox v1.10.2 (Debian 3:1.10.2.legal-1osso30+0m5) built-in shell (ash)
Enter 'help' for a list of built-in commands.

-sh: /home/user/.bashrc: line 5: cannot create /dev/cgroup/cpu/user/16312/tasks: nonexistent directory
-sh: /home/user/.bashrc: line 5: cannot create /dev/cgroup/cpu/user/16312/notify_on_release: nonexistent directory
~ $

visN900 2011-10-08 11:43

Re: [ANNOUNCE] CPUTweak w/ Configurator Program & Effective Battery Saving
 
Quote:

Originally Posted by ricardo8 (Post 1105175)
i uninstalled batterypatch and speedpatch, then install this, applied the hd life doubler, then this came up on my xterm. even if i reboot my device, still the same in the xterm, any idea? how to remove it?



BusyBox v1.10.2 (Debian 3:1.10.2.legal-1osso30+0m5) built-in shell (ash)
Enter 'help' for a list of built-in commands.

-sh: /home/user/.bashrc: line 5: cannot create /dev/cgroup/cpu/user/16312/tasks: nonexistent directory
-sh: /home/user/.bashrc: line 5: cannot create /dev/cgroup/cpu/user/16312/notify_on_release: nonexistent directory
~ $

try rebooting N900.. it might take 2 reboots too..


All times are GMT. The time now is 13:56.

vBulletin® Version 3.8.8