![]() |
[Announce] QCPUFreq - modify your maximum CPU speed
QCPUFreq
QCPUFreq is a GUI for the kernel's cpufreq interface. It allows you to adjust your CPU's maximum speed. This prevents the CPU from working at full speed when you don't need it (e.g when running emulators) which enables you to save more battery power. It should work with vanilla and custom kernels so both normal users and overclockers could benefit from the application. If you are using a power kernel you can also use QCPUFreq for overclocking! Maintainer wanted Requirements:
Features:
When you can expect to save power:
Known limitations:
I'd appreciate any user input ;) Screenshot: http://a.imageshack.us/img214/9153/s...0080114184.png Download: Get QCPUFreq from extras-testing. |
Re: [Announce] QCPUFreq - save battery power by adjusting your maximum CPU speed
Please don't get me wrong but where is the point in limiting the maximum frequency? Improving the CPU scaling management would be much better than having someone decide by himself... to give you a reasonable example, 12 cycles with scaling from 250 to 500MHz@100% do use more power than scaling from 250 to 600MHz@100% for 10 cycles so why limit it to 500MHz? I don't know what is the exact case but steps need to be reasonable and not feeling well. To run a CPU at less frequency is only a good idea to save power as long as there is no higher frequency available that uses less power for the same work.
|
Re: [Announce] QCPUFreq - save battery power by adjusting your maximum CPU speed
I find that app very helpfull and thanks a lot for creating it:), keeping n900 at 600mhz kills the cpu, i would like to test it with emulators that always run on 600mhz.
|
Re: [Announce] QCPUFreq - save battery power by adjusting your maximum CPU speed
Quote:
But as BLIZZARD pointed out correctly there are many apps which cause frequency upscaling to 600MHz when it is really not necessary (which is the case with many games). And since CMOS power consumption is linear to the frequency you can certainly save battery power in such cases (always on 500MHz is better than always on 600MHz). Of course it would be desirable to improve the actual frequency scaling code itself, but I do not have the time to deal with kernel-level stuff and I also want to stick with vanilla kernels. BTW: overclockers might like this app in the summer. When it's 35C outside they probably don't want their N900s running at 1.3 GHz ;) - Dan |
Re: [Announce] QCPUFreq - save battery power by adjusting your maximum CPU speed
It doesn't kill the CPU.. I have been playing OpenDune on my N900 for like 24 hours the last 14 days, always keeping the CPU at 900MHz, no problems..
The CPU is being worn out faster yes... But that should'nt be a problem unless you want your N900 to live for +2-3 years. |
Re: [Announce] QCPUFreq - save battery power by adjusting your maximum CPU speed
QCPUFreq 0.2 is now available in extras-testing. I would appreciate any suggestions and comments.
Testers welcome! |
Re: [Announce] QCPUFreq - save battery power by adjusting your maximum CPU speed
For those interested in the premise of this utility, you can save a lot more power by undervolting and it's very easy to do so.
http://wiki.maemo.org/Kernel_Power If you use the "Ideal" profile and find it stable on your device, you can combine it with this app (or just set the frequencies yourself) for much more significant power saving. |
Re: [Announce] QCPUFreq - save battery power by adjusting your maximum CPU speed
Flandry, sounds as though you are speaking from personal experience.....I'm keen to try this (time to dip toes into the overclocking waters methinks).
Care to quantify your power savings ? ;) |
Re: [Announce] QCPUFreq - save battery power by adjusting your maximum CPU speed
Quote:
My goal was to overclock while keeping within the power envelope of the stock settings. By using Ideal settings and changing the min and max to 250 and 810, i was able to do that. At all clock speeds except 810 MHz the CPU power consumption is less than with stock settings at 600. If i decrease the max to 600, it's only 63% stock at 600. At 500 MHz, Ideal settings have 66% the dynamic power of stock. I used numbers from this: http://wiki.maemo.org/Overclocking Note that i don't expect the method in this thread nor undervolting to make a significant difference in overall N900 battery life unless the user is regularly pegging the CPU at max (emulators, mostly): the radios, screen, etc. all consume power, too. |
Re: [Announce] QCPUFreq - save battery power by adjusting your maximum CPU speed
Adding an oveclocking option would be evn more usefull. I don't see a point inhaving an underclocking setting only.
And as Flandry said, undervolting rocks :p. I undervolted my laptop with no issues so perhaps adding, in later versions the ability to set voltages for every 50mhz would rock. |
Re: [Announce] QCPUFreq - save battery power by adjusting your maximum CPU speed
Quote:
|
Re: [Announce] QCPUFreq - save battery power by adjusting your maximum CPU speed
Well it could look something like:
250mhz... 0.5v 400mhz...1.0v 600mhz...1.5v And the end user would be able to toggle the voltage while also limiting the clock so he can test the stability. Overclocking works if a custom kernel is installed so this option could be made to unlock itself for custom kernel users alone IMHO. |
Re: [Announce] QCPUFreq - save battery power by adjusting your maximum CPU speed
Wouldn't overclocking settings simply do nothing for stock kernel?
|
Re: [Announce] QCPUFreq - save battery power by adjusting your maximum CPU speed
Awesome app! As previouse people have said it would work will for game, prdoom hammers the cpu and therefore the battery, cranking this down a tad would defo help with battery life.
Bec has a great idea with the voltage options too, would be awesome to have a nice easy setting for both that give the best results for battery and stability, sometimes i have a meeting that could last the entire day with traveling on top and in these cases one would just need a phone, no internet, email or anything like that, would be awesome to set the cpu and voltage to a position where the battery will provide loads of life ;) question, can I easily crash my phone with this app? |
Re: [Announce] QCPUFreq - save battery power by adjusting your maximum CPU speed
By lowering top speed, no. With the custom kernel and upping speed/lowering voltage, yes.
|
Re: [Announce] QCPUFreq - save battery power by adjusting your maximum CPU speed
Version 0.3 is now in extras-testing. Please test it and place your vote!
About the feature requests: I would like to implement features such as voltage control but I do not want to use a modified kernel on my device. If someone with a modified kernel is able to contribute I would be happy to give him access to the source repository! |
Re: [Announce] QCPUFreq - save battery power by adjusting your maximum CPU speed
Voting is such a mess... where is it?
A direct link perhaps? Thanks |
Re: [Announce] QCPUFreq - save battery power by adjusting your maximum CPU speed
Quote:
Be sure to test before you vote, though ;) |
Re: [Announce] QCPUFreq - save battery power by adjusting your maximum CPU speed
Tested and it works quite well so far. Just a question what exactly does SmartReflex do when enabled?
|
Re: [Announce] QCPUFreq - save battery power by adjusting your maximum CPU speed
Quote:
If you are interested in what SR exactly does: there is some interesting documentation available at the TI website. Quote from Texas Instruments: Quote:
|
Re: [Announce] QCPUFreq - save battery power by adjusting your maximum CPU speed
myn crashes 5 secondes after i run it it set it to 1000mhz an boom Reboot
deleting it:P i'll go to xterminal next time |
Re: [Announce] QCPUFreq - save battery power by adjusting your maximum CPU speed
Quote:
I do not have any experiences with overclocking but I can imagine that you cannot overclock your device by only setting a new "maxfreq". As I said earlier it would probably be good if someone could assist me in the overclocking part. BTW: actually QCPUFreq's original intention was "underclocking" on vanilla kernels :) |
Re: [Announce] QCPUFreq - save battery power by adjusting your maximum CPU speed
Quote:
Have a look at voltage, for starters. |
Re: [Announce] QCPUFreq - save battery power by adjusting your maximum CPU speed
it would be luvly if i can able to change min freq. same as maximum(500 900 MHz is what i need) using this apps,hope u do it in next update.
|
Re: [Announce] QCPUFreq - save battery power by adjusting your maximum CPU speed
I have no experience with this but when I use QCPUFreq and set the max CPU speed to 800, I do see speeds of up to 800 in Conky. Does this mean I can overclock the device with this app? Or is it fooling Conky?
|
Re: [Announce] QCPUFreq - save battery power by adjusting your maximum CPU speed
Quote:
Quote:
|
Re: [Announce] QCPUFreq - save battery power by adjusting your maximum CPU speed
direx,
So does your application change the default values, and do these value remain after closing the app? or do the app need to remain open for the changes to last? I ask becuase I changed my max setting to 250mhz and closed the app. Was running Conky in the background to just verify changes. Thought it worked but came back after some browsing to discover the frequency jumped to 500MHz. Is this just a fluke? How are you verifying that your app is actually changing the paramters on the clock speed? 2d |
Re: [Announce] QCPUFreq - save battery power by adjusting your maximum CPU speed
Quote:
Quote:
Code:
cat /proc/cpuinfo |grep -i bogomips However 250 MHz seems to be a very low speed. I just noticed that for some reason the frequency goes up one level if you set minspeed=maxspeed. If you'd set your maxspeed to 250MHz then your CPU will effectively use 500MHz (the next step on the scaling scale) as maxfreq. This is very strange - maybe it's a kernel bug (or feature :) ). I guess I am going to remove the lowest scaling step (250MHz on vanilla kernel) in the next version as it might confuse people. |
Re: [Announce] QCPUFreq - save battery power by adjusting your maximum CPU speed
Hi. :)
Enhancement request here: could you translate the raw temperature value? I almost had a heart attack. Other similar apps do this, so it shouldn't be too hard, it displays 57 or so usually (58?) which I understand is about 37C? I assume it's already on the list, but JIC. |
Re: [Announce] QCPUFreq - save battery power by adjusting your maximum CPU speed
Quote:
I have one problem, though. There are two possible temperature values and both do not seem quite correct:
I chose to display the raw value as this value could possibly be a real CPU temperature in Celsius. But I guess you are right that this should not be the *actual* temperature which is why I did not put a unit behind the value in the UI. If anyone could provide a formula how to calculate the real temperature from temp1_input or temp1_input_raw I would be happy to implement the requested feature. |
Re: [Announce] QCPUFreq - save battery power by adjusting your maximum CPU speed
I investigated the temperature thing a little bit further and I made these changes:
On vanilla kernels the temperature raw value is still being used. On power kernels I use /sys/class/power_supply/bq27200-0/temp as a temerature source, which should be more accurate. Unfortunately this is not possible on vanilla kernels. |
Re: [Announce] QCPUFreq - save battery power by adjusting your maximum CPU speed
Very briefly - I am seriously impressed with the improvements this simple app is making to my battery life (CPU settings 125-500, Smart Reflex disabled).
I had tried the power users kernel (Ideal settings) linked by Flandry, and was surprised and disappointed to see my battery life worsen noticeably with that. I'll keep an eye on Battery Graph for the next couple of days and see how it goes. |
Re: [Announce] QCPUFreq - save battery power by adjusting your maximum CPU speed
1 Attachment(s)
Please convert temperature to celsius like this
|
Re: [Announce] QCPUFreq - save battery power by adjusting your maximum CPU speed
Quote:
FYI the general consensus about 125 MHz is that it actually reduces battery life with well-behaved applications due to the slower race-to-idle (presumably why Nokia didn't use it). The best explanation that fits with both of your observations is that you have something installed and running that doesn't let the processor sleep much (see e.g. http://talk.maemo.org/showthread.php?t=29284). Have you got some kind of CPU load monitor running to check for the culprit? |
Re: [Announce] QCPUFreq - save battery power by adjusting your maximum CPU speed
Quote:
Code:
real = (31/54)*raw |
Re: [Announce] QCPUFreq - save battery power by adjusting your maximum CPU speed
Is this app equivalent to Gnome's CPU Scaling monitor?
|
Re: [Announce] QCPUFreq - save battery power by adjusting your maximum CPU speed
How does CPUFreqUI do it? It seemed to give a real temp. Can't tell if accurate.
Also, I left it there, idle, at room temperature for an hour. At 28 ambient, it shows 47 (raw). By formula, it should say 27 ambient, which is likely true, I get 27.8-28 on all sensors in here. Also, it jumped to 48 fairly quickly after opening app, so it was likely 47-48 for 27.8-28 degrees. |
Re: [Announce] QCPUFreq - save battery power by adjusting your maximum CPU speed
Quote:
|
Re: [Announce] QCPUFreq - save battery power by adjusting your maximum CPU speed
Flandry
Regularly checking Conky (if that's reliable enough ?) showed no rogue processes running. No placebo either - I was surprised (given how happy many people have been with power kernel) but both Battery Eye and the DCEW showing output of lshal pointed to my battery dropping off a cliff on Ideal. No reboots though. And my battery life on day 2 of QCPUFreq alone is noticeably, actually measurably better ( 68% now after 12 hours use, as opposed to 40 odd percent on stock and 30 odd percent on ideal ) . I can't explain it, but there. Overall my little N900 has been exceptionally well-behaved on both software and hardware fronts. I'm quite content to sit back and enjoy my newfound lease on battery life for now ;) |
Re: [Announce] QCPUFreq - save battery power by adjusting your maximum CPU speed
its a wonderful effort no doubt. but id like to say tht if the settings are reverted on every call...thn it makes it a little unusable.
coz u cnt set it again and again after every call! |
All times are GMT. The time now is 22:44. |
vBulletin® Version 3.8.8