Page 14 of 55

Re: [n9005][2014/MAY/12][TWKK] faux123/Yank555.lu kernel 001

PostPosted: 13 May 2014, 07:45
by Julian Jeremiah
Ok, with that being said, I guess probably it has gotta do with the custom rom? I'd look into it again if I got the chance to try another custom rom. Thanks.

yank555 wrote:
Julian Jeremiah wrote:Hi Yank,

I've tested yesterday on S pen keeper - meaning to say if you leave your S pen behind and walk away w/o attaching it back to the phone, it suppose to pop up a notification but it doesn't. Some users are facing similar issue with lean kernel too, ain't sure about other kernels though.

Any gentlemen here care to affirm this? Just pull out your S pen and walk away to see if there's any notification pop up; remember to select the option in your device first :lol:


Hmm ... that's ROM stuff, the kernel won't pop up any notifications, it's not even aware of Android running, for the kernel all that is merely one big program running.

It will simply let the ROM know if the Pen is in or out, what the ROM makes of it, is a ROM thing...

So as long as you get the Pen extracted / inserted notification as you take the Pen out and put it back in, no kernel can help here.

JP.

Send from my 'proudly eFused' Note 3 (n9005) running Temasek v75 on Yank555.lu htle v1.0a-beta1 (3.4.89) kernel.

Re: [n9005][2014/MAY/12][TWKK] faux123/Yank555.lu kernel 001

PostPosted: 13 May 2014, 10:12
by Lodix
It worked fine in my phone, so as said it is not kernel related.

Re: [n9005][2014/MAY/12][TWKK] faux123/Yank555.lu kernel 001

PostPosted: 13 May 2014, 13:23
by Julian Jeremiah
Oh.. So meaning to say by default it is set to 300MHz across all governors?

Where can I get the script to activate it and/or to make any changes? Thanks!

yank555 wrote:
Julian Jeremiah wrote:Yank,

Would you consider bringing CPU max_screen_off freq from JB over to KK? :D


Consider bringing ? It's in already ;)

That is part of CPU Hardlimit, just as wakeup kick.

JP.

PS: This is my CM Kernel thread, it's also in faux's kernel, but you'd need a script to activate it, there's no app support.

Send from my 'proudly eFused' Note 3 (n9005) running Temasek v75 on Yank555.lu htle v1.0a-beta1 (3.4.89) kernel.

Re: [n9005][2014/MAY/12][TWKK] faux123/Yank555.lu kernel 001

PostPosted: 13 May 2014, 13:30
by yank555
Max screen off is set to CPU max by default, 2.3GHz.

You can change it here : /sys/kernel/cpufreq/hardlimit_screen_off

Also, if you want to use wakeup kick (which makes sense if limiting CPU max while screen off), this is what is important :

/sys/kernel/cpufreq/wakeup_kick_delay : this is how many miliseconds the kick should last (0 = disabled, max. 10000)
/sys/kernel/cpufreq/wakeup_kick_freq : this is the CPU min freq forced during the above delay

I use 3000ms at 1958400 (= 1.95GHz), which means, when the screen is turned on, CPU min will be 1.95GHz for 3 seconds, then set back to 300MHz. This will force the CPUs to work fast as soon as the phone is used. Does compensate for the low 652800 CPU screen off max I use (= only 653MHz).

JP.

Re: [n9005][2014/MAY/12][TWKK] faux123/Yank555.lu kernel 001

PostPosted: 13 May 2014, 14:21
by Julian Jeremiah
Thank you so much for your explanation.

BTW, can I ask how does two_phrase_freq work? By fault it is set at 1728000 across all 4 cores. And I saw someone set his to 30000 across all.

yank555 wrote:Max screen off is set to CPU max by default, 2.3GHz.

You can change it here : /sys/kernel/cpufreq/hardlimit_screen_off

Also, if you want to use wakeup kick (which makes sense if limiting CPU max while screen off), this is what is important :

/sys/kernel/cpufreq/wakeup_kick_delay : this is how many miliseconds the kick should last (0 = disabled, max. 10000)
/sys/kernel/cpufreq/wakeup_kick_freq : this is the CPU min freq forced during the above delay

I use 3000ms at 1958400 (= 1.95GHz), which means, when the screen is turned on, CPU min will be 1.95GHz for 3 seconds, then set back to 300MHz. This will force the CPUs to work fast as soon as the phone is used. Does compensate for the low 652800 CPU screen off max I use (= only 653MHz).

JP.

Re: [n9005][2014/MAY/12][TWKK] faux123/Yank555.lu kernel 001

PostPosted: 13 May 2014, 14:57
by Lodix
Yeah, so helpfull. I will join asking too xD

To enable power suspend I have to set ''1'' in sys>kernel>power_suspend>power_suspend_state, right ?

And how it works ? I know it is for save battery but nothing else.

Re: [n9005][2014/MAY/12][TWKK] faux123/Yank555.lu kernel 001

PostPosted: 13 May 2014, 15:49
by yank555
Julian Jeremiah wrote:Thank you so much for your explanation.

BTW, can I ask how does two_phrase_freq work? By fault it is set at 1728000 across all 4 cores. And I saw someone set his to 30000 across all.


OK, this comes from my htc sensation times... so bear with me, my memory isn't always all that good :D

Two phase frequency is a kind of "holding" step, so when in need of more power, the governor (intellidemand that is, others don't have that to my knowledge) will rev up to this step, if load continues to be high, it will let loose and go all the way to the CPU max you've chosen.

So setting it to 300 kind of disables it, might just take a little longer to rev up. Even though, with Samsung's touchboost, it will rev up to 1.72GHz as soon as you touch the screen anyway...

Lodix wrote:Yeah, so helpfull. I will join asking too xD

To enable power suspend I have to set ''1'' in sys>kernel>power_suspend>power_suspend_state, right ?

And how it works ? I know it is for save battery but nothing else.


Power suspend is nothing you should use, it's a replacement for the deprecated "earlysuspend". All it does is allow devs to have a central point to get notified in their code when the screen goes on or off. Period ;)

There's no saving juice with it by enduser tweaking ;)

It's just an in-kernel service for coders. I use it for touchwake, for screen off max, wakeup kick ... or it's used by dynamic fsync etc.

So there's no use interfering with it.

JP.

Re: [n9005][2014/MAY/12][TWKK] faux123/Yank555.lu kernel 001

PostPosted: 13 May 2014, 16:29
by Julian Jeremiah
Great :D just as I thought. Thank you once again ;) BTW only intelliactive governor has this two phase profile.

Ever thought of porting Faux's HTC One M8 OC 2.8Ghz over? I know you've capped your max at 2.5Ghz for all kernel though.

yank555 wrote:OK, this comes from my htc sensation times... so bear with me, my memory isn't always all that good :D

Two phase frequency is a kind of "holding" step, so when in need of more power, the governor (intellidemand that is, others don't have that to my knowledge) will rev up to this step, if load continues to be high, it will let loose and go all the way to the CPU max you've chosen.

So setting it to 300 kind of disables it, might just take a little longer to rev up. Even though, with Samsung's touchboost, it will rev up to 1.72GHz as soon as you touch the screen anyway...

Re: [n9005][2014/MAY/12][TWKK] faux123/Yank555.lu kernel 001

PostPosted: 13 May 2014, 16:53
by Lodix
Ok, thanks ^^

Re: [n9005][2014/MAY/12][TWKK] faux123/Yank555.lu kernel 001

PostPosted: 13 May 2014, 20:09
by yank555
Julian Jeremiah wrote:Great :D just as I thought. Thank you once again ;) BTW only intelliactive governor has this two phase profile.

Ever thought of porting Faux's HTC One M8 OC 2.8Ghz over? I know you've capped your max at 2.5Ghz for all kernel though.


There's not much to do, it's just adding a few line in a table, and that's that ... I just don't consider extreme OC to be very reasonable tbh.

In fact I've added more gradual steps between 2.3 and 2.5, other Note 3 kernels just have 2.3 and 2.5, which I considered to steep. I kept is as it was in the JB kernel, worked well for me ;)

JP.