maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Maemo 5 / Fremantle (https://talk.maemo.org/forumdisplay.php?f=40)
-   -   end of phone call sets minimum cpu frequency to 125Mhz (https://talk.maemo.org/showthread.php?t=89310)

impeham 2013-02-26 13:20

end of phone call sets minimum cpu frequency to 125Mhz
 
I noticed this strange and very annoying behavior - is it possible to tweak it?

peterleinchen 2013-02-26 14:12

Re: end of phone call sets minimum cpu frequency to 125Mhz
 
Yes, of course it is.
React with dbus-settings to the end of call and reset lower limit to 250/500.

But it is not needed as this frequency is blocked in kernel settings and therefore not taken into account. Speaking about kernel-power.

impeham 2013-02-26 14:43

Re: end of phone call sets minimum cpu frequency to 125Mhz
 
Quote:

Originally Posted by peterleinchen (Post 1325378)
Yes, of course it is.
React with dbus-settings to the end of call and reset lower limit to 250/500.

But it is not needed as this frequency is blocked in kernel settings and therefore not taken into account. Speaking about kernel-power.

125mhz is not blocked on my device - at the end of each call it is being re-set again - is it possible to block it?

i will use dbus if i'll have no other choice, but i'm looking for a "cleaner" solution

sixwheeledbeast 2013-02-26 17:35

Re: end of phone call sets minimum cpu frequency to 125Mhz
 
Quote:

Originally Posted by impeham (Post 1325395)
125mhz is not blocked on my device - at the end of each call it is being re-set again - is it possible to block it?

i will use dbus if i'll have no other choice, but i'm looking for a "cleaner" solution

If you have Kernel Power, yes.

Code:

echo 125000 > /sys/devices/system/cpu/cpu0/cpufreq/ondemand/avoid_frequencies
This should do it, however AFAIK it should be blocked by default.

ade 2013-02-26 18:43

Re: end of phone call sets minimum cpu frequency to 125Mhz
 
Quote:

Originally Posted by sixwheeledbeast (Post 1325451)
If you have Kernel Power, yes.

Code:

echo 125000 > /sys/devices/system/cpu/cpu0/cpufreq/ondemand/avoid_frequencies
This should do it, however AFAIK it should be blocked by default.

Peterleinchen is right, and you are right about the fact that it is blocked by default. But setting it as "frequency to be avoided" won't avoid lowering the min. freq back to 125 MHz due to a phone call.
But as it is blocked, your min freq will still be 250 MHz. For that, the new min. value of 125 MHz is bogus.

Code:

cat /sys/devices/system/cpu/cpu0/cpufreq/stats/time_in_state
will tell you how much a certain frequency is used. If 125000 has a value of 0, it is never used.

sixwheeledbeast 2013-02-26 21:08

Re: end of phone call sets minimum cpu frequency to 125Mhz
 
Quote:

Originally Posted by ade (Post 1325468)
But setting it as "frequency to be avoided" won't avoid lowering the min. freq back to 125 MHz due to a phone call.
But as it is blocked, your min freq will still be 250 MHz. For that, the new min. value of 125 MHz is bogus.

Exactly, you explained it alot better :)

woody14619 2013-02-26 22:31

Re: end of phone call sets minimum cpu frequency to 125Mhz
 
The only time I've seen anything do this was in early versions of speedpatch. If you're running and older version of that, do update it (or remove it). 125Mhz is unstable, and doesn't allow transition fast enough to handle all cases (missed calls, etc) which is why Nokia avoided using it in the first place.

Personally, I run 0/500/900 with a large step threshold and have no issues with low battery or lack in usability.

sixwheeledbeast 2013-02-26 23:12

Re: end of phone call sets minimum cpu frequency to 125Mhz
 
"Correct Frequencies" can all depend on usage and the device, it's been covered lots of times before.

While I wouldn't recommend it to all, after long periods of testing different frequencies with my device and usage. I run 125-600 and have no issues with low battery or lack in usability. I have never experienced any issue with 125Mhz being unstable.

Bear in mind that since the "125Mhz unstable issue" was reported, smartreflex has been fixed and also there have been new releases of KP.

For reference this is the bugzilla link:-
https://bugs.maemo.org/show_bug.cgi?id=7116

impeham 2013-02-27 13:24

Re: end of phone call sets minimum cpu frequency to 125Mhz
 
Quote:

Originally Posted by sixwheeledbeast (Post 1325451)
If you have Kernel Power, yes.

Code:

echo 125000 > /sys/devices/system/cpu/cpu0/cpufreq/ondemand/avoid_frequencies
This should do it, however AFAIK it should be blocked by default.

blocking this state is working - thanks, however, i thought it would be possible to completely avoid that cpu state change as a result of a phone call.

if no other choice, i guess i'll be executing my kernel power command to set a profile after each call end with dbus...

reinob 2013-02-27 15:47

Re: end of phone call sets minimum cpu frequency to 125Mhz
 
Quote:

Originally Posted by impeham (Post 1325668)
blocking this state is working - thanks, however, i thought it would be possible to completely avoid that cpu state change as a result of a phone call.

This is done by the dialer, which is closed source. I'd say it should be easily hackable, but why bother.


All times are GMT. The time now is 14:15.

vBulletin® Version 3.8.8