CPU FREQUENCY SCALING 1.3-2 - Ondemand (dynamic) - GUI

Miscellaneous tools
Message
Author
User avatar
trio
Posts: 2076
Joined: Sun 21 Dec 2008, 15:50
Location: अनà¥￾मोदना

CPU FREQUENCY SCALING 1.3-2 - Ondemand (dynamic) - GUI

#1 Post by trio »

Based on this thread

http://www.murga-linux.com/puppy/viewtopic.php?t=28443

Cheers

Updated to v. 1.3-2: bugfix - sorting min frequencies not always from smallest
Updated to v. 1.3-1:
- Added tooltip for refresh module button
- Min freq sorting in combobox - start from smallest value
Updated to v. 1.3:
- Added refresh module button (you have to reboot after), useful when you use other computer's pupsave file
- No need to type in Min - Max Frequencies (already listed)
Updated to v. 1.2 - fixes report (forgot to cpu1 report)
Updated to v. 1.1:
- redesigned GUI
- cater for cpu0 and cpu1 (I don't have cpu1, please anyone test)
Attachments
cpufreq.jpg
(25.87 KiB) Downloaded 10333 times
cpu-scaling-ondemand-1.3-2.pet
Run fixmenus & restart window manager (refresh menu) after install
(2.35 KiB) Downloaded 3697 times
Last edited by trio on Sun 17 Jan 2010, 02:01, edited 7 times in total.

User avatar
gposil
Posts: 1300
Joined: Mon 06 Apr 2009, 10:00
Location: Stanthorpe (The Granite Belt), QLD, Australia
Contact:

#2 Post by gposil »

You want to up this to PetStore trio...
[img]http://gposil.netne.net/images/tlp80.gif[/img] [url=http://www.dpup.org][b]Dpup Home[/b][/url]

User avatar
trio
Posts: 2076
Joined: Sun 21 Dec 2008, 15:50
Location: अनà¥￾मोदना

#3 Post by trio »

Gposil,

Thanks, I will later, after some people tried and no complaints.

Fyi, it is pet up with 430 prebeta so it has already puppy std database supposedly

techtype
Posts: 180
Joined: Sun 16 Nov 2008, 17:04

#4 Post by techtype »

Normally, you don't really have to enter the min and max frequency. On every computer that I have tried, this was determined automatically. (I know it is done that way in the example thread)

User avatar
trio
Posts: 2076
Joined: Sun 21 Dec 2008, 15:50
Location: अनà¥￾मोदना

#5 Post by trio »

Yeah, but for more cooler, you might want to put in a little lower MAX than the biggest number on the list. So, it gives people more freedom to choose. Anyway, every step is guided until finish.

aragon
Posts: 1698
Joined: Mon 15 Oct 2007, 12:18
Location: Germany

#6 Post by aragon »

hi trio, could not test it extensively as i'm already running ondemand. some short notes:

- it does read my actual settings correct.
- it does not have a bin/symlink in the path, any reason for that?

in general: very useful.

aragon

User avatar
trio
Posts: 2076
Joined: Sun 21 Dec 2008, 15:50
Location: अनà¥￾मोदना

#7 Post by trio »

Hi aragon, thx for testing

I don't put bin or symlink on purpose, as for newbies, they don't touch terminal, as for you guys linux gurus, you don't touch GUIs :lol:

aragon
Posts: 1698
Joined: Mon 15 Oct 2007, 12:18
Location: Germany

#8 Post by aragon »

na i don't see anything like a guru if i look at the mirror...

<offtopic>
it's just that using linux now for about 3 years, i'm falling more and more in love with terminal-usage, keyboard-driven wm-usage and such things. and i don't feel like a geek doing so, it's more that it often feels efficient and fast.
</offtopic>

aragon

User avatar
trio
Posts: 2076
Joined: Sun 21 Dec 2008, 15:50
Location: अनà¥￾मोदना

#9 Post by trio »

Updated to v. 1.1:
- redesigned GUI
- cater for cpu0 and cpu1 (I don't have cpu1, please anyone test)

see main post

User avatar
trio
Posts: 2076
Joined: Sun 21 Dec 2008, 15:50
Location: अनà¥￾मोदना

#10 Post by trio »

Updated to v. 1.2 - fixes report (forgot to cpu1 report, oops sorry)
see main post

aragon
Posts: 1698
Joined: Mon 15 Oct 2007, 12:18
Location: Germany

#11 Post by aragon »

hi trio,

one question on a little enhancement: wouldn't it be useful to also setup the general governor to use?

- powersave (always lowest freq)
- ondemand (on demand jump to highest freq)
- performance (always highest freq)
- conservative (on demand alter the freq in steps)
- userspace (usersetup freq)

See here for a general doc about the scaling governors: http://www.mjmwired.net/kernel/Document ... ernors.txt. Reading that doc again, it seems that the conservative mode might be even better for laptop-users...

aragon

User avatar
trio
Posts: 2076
Joined: Sun 21 Dec 2008, 15:50
Location: अनà¥￾मोदना

#12 Post by trio »

Aragon,

Yeah, I just thought that for newbies (who uses this gui btw), they maybe don't care or don't know what is ondemand, what is powersave, etc.

and the other reason is, from what I read, it's he wisest to use ondemand (plus the max frequency tweak), not to loose too much cpu speed, but not to get it warm/hot to high.

Those are thw two reasons I didn't put options of the scaling mode

thank you for input

techtype
Posts: 180
Joined: Sun 16 Nov 2008, 17:04

#13 Post by techtype »

aragon wrote:hi trio,

one question on a little enhancement: wouldn't it be useful to also setup the general governor to use?

- powersave (always lowest freq)
- ondemand (on demand jump to highest freq)
- performance (always highest freq)
- conservative (on demand alter the freq in steps)
- userspace (usersetup freq)

See here for a general doc about the scaling governors: http://www.mjmwired.net/kernel/Document ... ernors.txt. Reading that doc again, it seems that the conservative mode might be even better for laptop-users...

aragon
Even though "ondemand" clearly states it will jump to the highest frequency, in actual practice, I see it step thru the scale as needed --- similar to what is described for conservative.

aragon
Posts: 1698
Joined: Mon 15 Oct 2007, 12:18
Location: Germany

#14 Post by aragon »

trio wrote: Yeah, I just thought that for newbies (who uses this gui btw), they maybe don't care or don't know what is ondemand, what is powersave, etc.
although i see your point, i don't see your gui in the 'newbie-section'. diggin' around deep in /sys is not everyone's favourite...

aragon

stevesr0
Posts: 169
Joined: Sun 24 Jun 2007, 17:25

#15 Post by stevesr0 »

I ran the pet, but I don't know how to tell if the program is working.

Steve

User avatar
trio
Posts: 2076
Joined: Sun 21 Dec 2008, 15:50
Location: अनà¥￾मोदना

#16 Post by trio »

Steve,

Menu - utility - cpu scaling - choose a module - click activate (until you get a success message pop up) - read the success message - see lowest and highest frequencies values - put the lowest in min box, you may want to put the highest or second highest in max box, click activate - a success message will pop up. You're done.

If you want to monitor cpu temperature - search for pwidgets or conky in the forum

Thanks, btw you have dual core?

Aragon,

This is exactly what I meant about newbies, I just want to help them out. They are eager to try things out, but not yet too expert in comand line.

User avatar
trio
Posts: 2076
Joined: Sun 21 Dec 2008, 15:50
Location: अनà¥￾मोदना

#17 Post by trio »

Now I can confirm (since nobody is reporting) that on DUAL CORE also works :lol:
Attachments
dual-core.jpg
(29.59 KiB) Downloaded 2323 times

User avatar
mikeb
Posts: 11297
Joined: Thu 23 Nov 2006, 13:56

#18 Post by mikeb »

Is there a way of checking what speed the cpu is running at or perhaps its current scaling factor.....cat /proc/blah sort of thing?

mike

User avatar
trio
Posts: 2076
Joined: Sun 21 Dec 2008, 15:50
Location: अनà¥￾मोदना

#19 Post by trio »

mikeb wrote:Is there a way of checking what speed the cpu is running at or perhaps its current scaling factor.....cat /proc/blah sort of thing?

mike
ok, try

Code: Select all

cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_cur_freq

User avatar
mikeb
Posts: 11297
Joined: Thu 23 Nov 2006, 13:56

#20 Post by mikeb »

Thanks...nothing there but found governor as 'ladder' and driver as 'acpi_idle'.
Its a HP2133 VIA C7-M cpu and althogh I cannot see any related module I suspect that it already has some form of cpu scaling...or is something like 'ondemand' needed to activate it?

regards
mike

Post Reply