maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   OS2008 / Maemo 4 / Chinook - Diablo (https://talk.maemo.org/forumdisplay.php?f=29)
-   -   CPU turbocharging/throttling application (https://talk.maemo.org/showthread.php?t=24524)

smog 2008-10-24 11:45

CPU turbocharging/throttling application
 
is there a small application to put the CPU in overclock or whathever performance setting like they made in liqbase ? but without all of Liqbase ?


thank you

debernardis 2008-10-24 11:54

Re: CPU turbocharging/throttling application
 
If you have a n810, install SlideLock by Jgallen23 ( http://www.internettablettalk.com/fo...ad.php?t=19386 ) and hack it as suggested in my post.
Otherwise, do as Qole writes in http://www.internettablettalk.com/fo...ad.php?t=22353

smog 2008-10-24 12:22

Re: CPU turbocharging/throttling application
 
Quote:

Originally Posted by debernardis (Post 236295)

thank you,

I have a n800; I will try Qole's tricks but it would be nice to have a simple desktop applet to do it with the flick of a switch.

Quote:

Originally Posted by qole (Post 231473)
If you're willing to (perhaps) drain your battery a bit more, you might gain some speed by setting your processor to "performance" mode.
Make two little scripts, one called "cpu-perform" and one called "cpu-ondemand" (or whatever you want) and then run them as root (eg, sudo cpu-perform)

cpu-perform
Code:

echo performance >/sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
cpu-ondemand
Code:

echo ondemand >/sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
(don't forget to chmod +x cpu-perform)


lcuk 2008-10-24 12:48

Re: CPU turbocharging/throttling application
 
and what might i ask is wrong with all of liqbase? :P

smog 2008-10-24 13:27

Re: CPU turbocharging/throttling application
 
liqbase is real good at what it's meant to do; it's just not what I'm looking for.

but yes, you made a very good piece of software. and thank you for your high above average contribution to the community. :D

in the same way of thinking, I don't want to install Maemo Mapper or Canola; doesn't mean it's not good.

bongo 2008-10-24 13:35

Re: CPU turbocharging/throttling application
 
Hi!

Im working on a home switcher written in python. It will allow you to turn things on and off from the home screen.

lcuk 2008-10-24 13:35

Re: CPU turbocharging/throttling application
 
heh, chill - was only pullin your leg.
Its quite simple to get the cpu throttling adjustments.

liqbase does it by calling a small script when you change.


"sudo /usr/bin/liqbase-cpu-powersave"
"sudo /usr/bin/liqbase-cpu-ondemand"
"sudo /usr/bin/liqbase-cpu-performance"

(scripts were added into sudoers list as part of installation)

Theres nothing stopping you calling those scripts yourself or writing variations thereof.

smog 2008-10-24 13:47

Re: CPU turbocharging/throttling application
 
Quote:

Originally Posted by lcuk (Post 236320)
heh, chill - was only pullin your leg.
Its quite simple to get the cpu throttling adjustments.

liqbase does it by calling a small script when you change.


"sudo /usr/bin/liqbase-cpu-powersave"
"sudo /usr/bin/liqbase-cpu-ondemand"
"sudo /usr/bin/liqbase-cpu-performance"

(scripts were added into sudoers list as part of installation)

Theres nothing stopping you calling those scripts yourself or writing variations thereof.

thank you,
I will try it even if I'm a scripting newbie :D

this was a very valuable find to help the small cpu

z2n 2008-10-24 18:56

Re: CPU turbocharging/throttling application
 
Quote:

Originally Posted by lcuk (Post 236320)
heh, chill - was only pullin your leg.
Its quite simple to get the cpu throttling adjustments.

liqbase does it by calling a small script when you change.

"sudo /usr/bin/liqbase-cpu-powersave"
"sudo /usr/bin/liqbase-cpu-ondemand"
"sudo /usr/bin/liqbase-cpu-performance"

Hmmm...I think I need to reinstall liqbase to look at those scripts.
Quote:

Originally Posted by lcuk (Post 236320)
(scripts were added into sudoers list as part of installation)

Theres nothing stopping you calling those scripts yourself or writing variations thereof.


My proposed variation, when I have free time (Ha!) is to write a daemon that will change the CPU settings depending on 3 things:
  1. On charger
    run at highest CPU speed
  2. Sufficient battery remaining
    run at normal (on-demand) CPU speed
    the value of "sufficient" would be set by the user...probably 75% as a default
  3. Low battery
    run at a lower (power-saving) CPU speed

This really shouldn't be too hard...and should all be possible as a small python script.

lcuk 2008-10-24 19:00

Re: CPU turbocharging/throttling application
 
z2n,
we were having this discussion and theres already a program around which starts to do this, but it also accounts for your backlight as well.

acmonitor will set the backlight level based on your charging status, I hacked it to also deal with cpu settings.
The only reason why I never released it was because there wasnt a clean UI.

The extra thing I would want to add to this would be control for when I locked my device.
Because I know when I slide the lock I am done for a while I would want the cpu in powersave and the net disconnected as well.

I started to put together a profile settings screen for all of this, I'll try to find the notes I did.

dkwatts 2008-10-24 21:35

Re: CPU turbocharging/throttling application
 
Quote:

Originally Posted by lcuk (Post 236320)
"sudo /usr/bin/liqbase-cpu-powersave"
"sudo /usr/bin/liqbase-cpu-ondemand"
"sudo /usr/bin/liqbase-cpu-performance"

Thanks, lcuk. Works as advertised!!!

For now,

Simplest way to run the commands: inz's osso-statusbar-cpu
Simplest way to check results: RSS Home applet automatic scrolling

Enjoy!

qole 2008-10-24 22:39

Re: CPU turbocharging/throttling application
 
Simplest way to check the results: install the homecpu app, it shows your CPU speed on the home screen.


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

vBulletin® Version 3.8.8