wcpufreq CPU Frequency Scaling 1.1

Miscellaneous tools
Message
Author
User avatar
tazoc
Posts: 1157
Joined: Mon 11 Dec 2006, 08:07
Location: Lower Columbia Basin WA US
Contact:

#16 Post by tazoc »

Iguleder wrote:tazoc, do you want me to upload the kernel PET I made so you can replace the Lighthouse kernel (someone wrote a guide for that), to make development easier?
That's very kind of you! :D In fact I was just browsing http://brainwavedesigncentral.net/dima/ ... p_ht-dpup/

From Barry's Blog or somewhere I read that OpenOffice won't work on 2.6.35, have you tried OO on it?
Thanks,
TazOC
[Edit:]Make that LibreOffice
Last edited by tazoc on Sun 31 Oct 2010, 18:42, edited 1 time in total.
[url=http://www.lhpup.org/][b][size=100]lhpup.org[/size][/b] [img]http://www.lhpup.org/gallery/images/favicon.png[/img][/url] [url=http://www.lhpup.org/release-lhp.htm#602]Lighthouse 64 6.02[/url]

User avatar
Iguleder
Posts: 2026
Joined: Tue 11 Aug 2009, 09:36
Location: Israel, somewhere in the beautiful desert
Contact:

#17 Post by Iguleder »

2.6.35.x and 2.6.36 proved to be total crap, we're staying with the good 2.6.32.x. I patch it to appear as 2.6.32 so I can replace it with later 2.6.32.x version to enjoy bug fixes (after all, what's the point in using a LTS kernel if you don't upgrade it?) without breaking third-party drivers. Hardware support is very good and there's nothing vital in 2.6.33.x or 2.6.34.x. 35 has just multiple GPUs support but user-land stuff still suck in this area, so why bother? :lol:

It's this one, but in my first build I forgot to compile Aufs as a module, maybe it's this one - I just don't remember if I uploaded the fixed sources. If you want to roll your own just compile this kernel (the sources are patched, cleaned and configured), just make sure Aufs is a module. I think I uploaded the new sources, but don't trust me :)

And no, haven't tried OO on any kernel, the last time I used it was maybe a year ago.

EDIT: dang, it seems I uploaded the fixed sources but had a typo in the file name, so now I don't know which one is the right sources SFS. You can take the sources from the sources directory, patch with the stuff in the patches directory and copy in the .config file.
[url=http://dimakrasner.com/]My homepage[/url]
[url=https://github.com/dimkr]My GitHub profile[/url]

Jim1911
Posts: 2460
Joined: Mon 19 May 2008, 20:39
Location: Texas, USA

#18 Post by Jim1911 »

Tried on luci-238, frugal and full installations.

I activated the CPU Frequency Scaling Tool with these settings, powersave, Min-1600000, Max-1867000. Applied the settings, then later recheck and find that it has gone back to the default start condition running at max speed of 2673000. This was repeated several times on both installations.
Attachments
cpufreq.jpg
(40.88 KiB) Downloaded 2164 times

User avatar
Iguleder
Posts: 2026
Joined: Tue 11 Aug 2009, 09:36
Location: Israel, somewhere in the beautiful desert
Contact:

#19 Post by Iguleder »

tazoc, do you need any help with this? Testing maybe? I just compiled a new kernel and I want to try it out on various machines so maybe I can contribute more to this :)

Oh, and by the way ... do you intend to upload this to the Lucid repo? :D

(And regarding the kernel, it's my new linux_kernel-2.6.32.26-pentium2-bfs for the upcoming Insidious Puppy)
[url=http://dimakrasner.com/]My homepage[/url]
[url=https://github.com/dimkr]My GitHub profile[/url]

User avatar
tazoc
Posts: 1157
Joined: Mon 11 Dec 2006, 08:07
Location: Lower Columbia Basin WA US
Contact:

#20 Post by tazoc »

Jim1911 wrote:Tried on luci-238, frugal and full installations.
Thanks for the bug report Jim. I haven't tried Luci-238 yet. I wonder if it has a new kernel. Your screen shot shows that wcpufreq removed the previous driver, something I added into wcpufreq 0.4 but never thought would work. So we're breaking new ground here.

I will d/l 238 and do some testing tomorrow.

Hi Iguleder, wcpufreq is already in Luci-237/8, I haven't uploaded anything myself to the lucid repo--maybe you're joshin me? :wink:

Feel free to test and hack as needed. If my hunch is right, something new about Luci-238 or Jim's hardware is allowing the driver to be removed when wcpufreq starts, which is good because that allows changing the driver without having to reboot. What I need to figure out is whether the driver got removed earlier than it should have. May need a new panel that detects the possibility of removal without rebooting and offers to remove before it actually does.
Thanks,
TazOC
[url=http://www.lhpup.org/][b][size=100]lhpup.org[/size][/b] [img]http://www.lhpup.org/gallery/images/favicon.png[/img][/url] [url=http://www.lhpup.org/release-lhp.htm#602]Lighthouse 64 6.02[/url]

taca0
Posts: 123
Joined: Thu 07 May 2009, 00:57

#21 Post by taca0 »

Problems :

I have Via C3 and I select longhaul mod and its accepted I finish the selection but when I boot the computer again the cpufreq scaling not activate again.

What its the problem??

Thanks!

User avatar
tazoc
Posts: 1157
Joined: Mon 11 Dec 2006, 08:07
Location: Lower Columbia Basin WA US
Contact:

#22 Post by tazoc »

Hi taca0,
The script at /root/Startup/cpu-frequency-scaling.sh should activate scaling when X starts. If not, please let us know which Puppy/puplet and version you have. I don't have a Via C3 to test with but I can at least see if wcpufreq works with the Pup you are using.

Opening the above script with a text editor should look similar to this, but specific to your hardware:

Code: Select all

#!/bin/busybox ash

## To activate at bootup copy rest of code  ##
## below this comment to /etc/rc.d/rc.local ##

modprobe powernow-k8
modprobe cpufreq-ondemand

cd /sys/devices/system/cpu
for i in `ls -d1 cpu[0-9]*`; do

  echo ondemand > $i/cpufreq/scaling_governor
  echo 1350000 > $i/cpufreq/scaling_min_freq
  echo 2700000 > $i/cpufreq/scaling_max_freq

done
Copy and paste the lines after the ## comments (from your cpu-frequency-scaling.sh) into a terminal and if there appear to be errors, please post the o/p.
Thanks,
TazOC
[url=http://www.lhpup.org/][b][size=100]lhpup.org[/size][/b] [img]http://www.lhpup.org/gallery/images/favicon.png[/img][/url] [url=http://www.lhpup.org/release-lhp.htm#602]Lighthouse 64 6.02[/url]

taca0
Posts: 123
Joined: Thu 07 May 2009, 00:57

#23 Post by taca0 »

tazoc:

I have test in wary 511 and lupu525 and both write on the root/Startup/cpu-frequency-scaling.sh this >

#!/bin/busybox ash
echo 50 > cpufreq/ondemand/up_threshold


So its activate in the first time but when reboot , nothing...


Maybe I should do it manual like you shows.

I just inform , maybe its a problem with my hardware or the kernel (I use the 3.6.33.git7 from Barry)

Thanks!

User avatar
tazoc
Posts: 1157
Joined: Mon 11 Dec 2006, 08:07
Location: Lower Columbia Basin WA US
Contact:

Bug confirmed, will work on it

#24 Post by tazoc »

taca0,
Thanks for the info. My last post was missing the line you have;

Code: Select all

echo 50 > cpufreq/ondemand/up_threshold
but you'll need the modprobes for your hardware as well. I'm not familiar with the kernel you are using, but you might try

Code: Select all

modprobe acpi-cpufreq
modprobe cpufreq-ondemand

cd /sys/devices/system/cpu
for i in `ls -d1 cpu[0-9]*`; do

  echo ondemand > $i/cpufreq/scaling_governor

done
echo 50 > cpufreq/ondemand/up_threshold
I've been testing wcpufreq in Fatdog64 and have a similar problem where it works the first time, but later running wcpufreq reports scaling driver 'mperf' instead of my selection, powernow-k8. So for now I'm manually editing /root/cpu-frequency-scaling.sh.

I will work on wcpufreq soon and post an update if I can squash these bugs.
-TazOC
[url=http://www.lhpup.org/][b][size=100]lhpup.org[/size][/b] [img]http://www.lhpup.org/gallery/images/favicon.png[/img][/url] [url=http://www.lhpup.org/release-lhp.htm#602]Lighthouse 64 6.02[/url]

User avatar
tazoc
Posts: 1157
Joined: Mon 11 Dec 2006, 08:07
Location: Lower Columbia Basin WA US
Contact:

Wcpufreq-0.6 released

#25 Post by tazoc »

wcpufreq-0.6 110424

Bugfix: Jim1911 and taca0 reported that prior scaling module was removed after reboot or second run of wcpufreq. Removed mperf module from driver selection dialog and improved detection of current driver by scanning /proc/modules.
-TazOC
[url=http://www.lhpup.org/][b][size=100]lhpup.org[/size][/b] [img]http://www.lhpup.org/gallery/images/favicon.png[/img][/url] [url=http://www.lhpup.org/release-lhp.htm#602]Lighthouse 64 6.02[/url]

User avatar
tazoc
Posts: 1157
Joined: Mon 11 Dec 2006, 08:07
Location: Lower Columbia Basin WA US
Contact:

wcpufreq-0.7 released

#26 Post by tazoc »

wcpufreq-0.7 updates

Activate at boot up from /etc/init.d/wcpufreq instead of script in ~/Startup.

Removed /home/spot and /etc/skel directories from wcpufreq.

Updated for fido user compatibility in Wary 5.1.1.53

Woof/Wary: earlier versions of wcpufreq sometimes failed to activate on reboot--fixed.
-TazOC
[url=http://www.lhpup.org/][b][size=100]lhpup.org[/size][/b] [img]http://www.lhpup.org/gallery/images/favicon.png[/img][/url] [url=http://www.lhpup.org/release-lhp.htm#602]Lighthouse 64 6.02[/url]

User avatar
technosaurus
Posts: 4853
Joined: Mon 19 May 2008, 01:24
Location: Blue Springs, MO
Contact:

#27 Post by technosaurus »

Edit, oops too many alt tabs

meant to post these really light tray apps that use xcb

http://sourceforge.net/projects/wmc2d/
http://sourceforge.net/projects/wmcpumon/

some pups may need to upgrade xcb and/or xcb-utils for it to compile though ... maybe for the next pup series though
(he also has an xcb rewrite of jwm that looks extremely promising)
Check out my [url=https://github.com/technosaurus]github repositories[/url]. I may eventually get around to updating my [url=http://bashismal.blogspot.com]blogspot[/url].

User avatar
playdayz
Posts: 3799
Joined: Fri 25 Apr 2008, 18:57

#28 Post by playdayz »

tazoc, Any reason I should not use version 0.7 in Lucid 5.2.6? Thanks.

User avatar
tazoc
Posts: 1157
Joined: Mon 11 Dec 2006, 08:07
Location: Lower Columbia Basin WA US
Contact:

#29 Post by tazoc »

HI playdayz,
Not that I know of. Have not received any bug reports on v. 0.7 so it should be fine.
-TazOC
[url=http://www.lhpup.org/][b][size=100]lhpup.org[/size][/b] [img]http://www.lhpup.org/gallery/images/favicon.png[/img][/url] [url=http://www.lhpup.org/release-lhp.htm#602]Lighthouse 64 6.02[/url]

User avatar
tazoc
Posts: 1157
Joined: Mon 11 Dec 2006, 08:07
Location: Lower Columbia Basin WA US
Contact:

wcpufreq-0.8 updated for Fatdog 64-520

#30 Post by tazoc »

wcpufreq-0.8

Updated for Fatdog 64-520 support; account for scaling drivers built-in to kernel instead of compiled modules.

-TaZoC
[url=http://www.lhpup.org/][b][size=100]lhpup.org[/size][/b] [img]http://www.lhpup.org/gallery/images/favicon.png[/img][/url] [url=http://www.lhpup.org/release-lhp.htm#602]Lighthouse 64 6.02[/url]

User avatar
playdayz
Posts: 3799
Joined: Fri 25 Apr 2008, 18:57

#31 Post by playdayz »

Hey tazoc, I am about to add wcpufreq 0.8 to Instant Update 002 for Lucid 5.2.8. Please let me know if you see any issues with that. I had already added it to Three-Headed Dog with no apparent problems. Thank you.

User avatar
playdayz
Posts: 3799
Joined: Fri 25 Apr 2008, 18:57

#32 Post by playdayz »

http://www.murga-linux.com/puppy/viewto ... 210#682210
Hello again tazoc. wcpufreq does not seem to be working correctly in Lxpup. Best, Larry

User avatar
BarryK
Puppy Master
Posts: 9392
Joined: Mon 09 May 2005, 09:23
Location: Perth, Western Australia
Contact:

#33 Post by BarryK »

linuxcbon posted a bug report for wcpufreq, in Precise Puppy:
http://murga-linux.com/puppy/viewtopic. ... &start=255

I fixed it, bumped the version to 0.8.1 (40K):
http://distro.ibiblio.org/quirky/pet_pa ... -0.8.1.pet
[url]https://bkhome.org/news/[/url]

User avatar
tazoc
Posts: 1157
Joined: Mon 11 Dec 2006, 08:07
Location: Lower Columbia Basin WA US
Contact:

wcpufreq-1.0 released

#34 Post by tazoc »

Hi Playdayz and BarryK,
Thank you for your feedback. New Pet is updated for recent kernels.

Changelog
wcpufreq-1.0 130210
Precise bugfix: Expand driver search to new kernel module locations.
More info on the first panel. Support Woof in pinstall.sh.

-TaZoC
[url=http://www.lhpup.org/][b][size=100]lhpup.org[/size][/b] [img]http://www.lhpup.org/gallery/images/favicon.png[/img][/url] [url=http://www.lhpup.org/release-lhp.htm#602]Lighthouse 64 6.02[/url]

User avatar
tazoc
Posts: 1157
Joined: Mon 11 Dec 2006, 08:07
Location: Lower Columbia Basin WA US
Contact:

wcpufreq CPU Frequency Scaling 1.1 released

#35 Post by tazoc »

1.1 Bugfixed pinstall.sh for Woof build, thanks to 01micko.
gtkdialog icon tweak.

-TaZoC
[url=http://www.lhpup.org/][b][size=100]lhpup.org[/size][/b] [img]http://www.lhpup.org/gallery/images/favicon.png[/img][/url] [url=http://www.lhpup.org/release-lhp.htm#602]Lighthouse 64 6.02[/url]

Post Reply