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.

peterleinchen 2013-02-27 23:10

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

Originally Posted by reinob (Post 1325720)
... but why bother.

Exactly.


Quote:

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

Once again. Why bother?
'kernel-config show' will report 125 as Minimum, but this is not used!
See here some extract of TIME_IN_STATE ANALYSING SCRIPT
Quote:

~ $ kernel-show
Root shell enabled

TIME_IN_STATE ANALYSING SCRIPT
originated by rooted, evilJazz, arbitRabbit; adapted by peterleinchen (TMO)
wiki.maemo.org/Overclocking

Kernel: 2.6.28.10-power50
kernel-power: 1:2.6.28-10power50
kernel-power-settings: 0.14
Uptime: 3 days, 5:58, 0 users, load average: 0.79, 0.80, 0.63, 280714 s
Load: 0.79, 0.80, 0.63
Boot reason/count: pwr_key, 0
Temperature: 32.25 (11) °C

Current frequency: 720 MHz
Minimal frequency: 125 (ever used: 250) MHz
Maximal frequency: 850 MHz


FREQUENCY TIME USED BUSY(min freq) BUSY(Cx states)
1150 MHz unused
1100 MHz unused
1000 MHz unused
950 MHz unused
900 MHz unused
850 MHz 2662 s 0.9 % 1.5 % 1.0 %
805 MHz 6051 s 2.2 % 3.5 % 2.4 %
720 MHz 6472 s 2.3 % 3.7 % 2.5 %
600 MHz 388 s 0.1 % 0.2 % 0.2 %
550 MHz 5328 s 1.9 % 3.1 % 2.1 %
500 MHz 153654 s 54.7 % 88.0 % 60.4 %
250 MHz 106163 s 37.8 % 60.8 % 31.4 %
125 MHz unused


TOTAL
Overall Idle
280714 262455


Proc states Time Percentage
C0 18259 6.5
C1 349 0.1
C2 14420 5.1
C3 69339 24.7
C4 178346 63.5

branja 2015-01-30 11:19

Re: end of phone call sets minimum cpu frequency to 125Mhz
 
Guys, this bug really iritates me and I don't know what to do. I have tried to set "avoid 125" from a fiew post earlier but my output is like this.


BusyBox v1.23.0 (Debian 1.23.0power1) built-in shell (ash)
Enter 'help' for a list of built-in commands.

Nokia-N900:~# cat /sys/devices/system/cpu/cpu0/cpufreq/stats/
time_in_state
1150000 0
1100000 0
1000000 0
950000 0
900000 0
850000 47010
805000 1644
720000 2309
600000 35952
550000 2420
500000 57200
250000 113621
125000 14373
Nokia-N900:~#

What am I doing wrong? What to do (keep in mind that I'm quite a noob)? It is really frustrating to enter x-term and load a config every time after a phone call...

peterleinchen 2015-01-30 16:19

Re: end of phone call sets minimum cpu frequency to 125Mhz
 
What bug?

What post?

What info (we could help you on)?

branja 2015-01-30 16:40

Re: end of phone call sets minimum cpu frequency to 125Mhz
 
Doesn't matter..it looks like that it wasn't a big thing after all, and that 125MHz lock after a call was a bogus as someone wrote in this thread already.
Sorry for bothering you all

cheers


All times are GMT. The time now is 10:54.

vBulletin® Version 3.8.8