• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!

[KERNEL][OP3T] FrancoKernel

Status
Not open for further replies.
Search This thread

rdNNNN

Senior Member
Dec 21, 2014
93
87
Nothing the kernel can do about, because qcom's perfd is chief in charge for cpu freqs.

Recently, I tried to allow the sd821 soc to use all freqs of LITTLE (perfd is always resetting the 2188800 MHz to 1593xxx MHz). This dirty hack allowed me to unleash the 2188800 MHz:

https://github.com/nvertigo/android...mmit/37776166b1aace58f66efd94720c6ac9b95357ce
https://github.com/nvertigo/android...mmit/b83122bcd94648955c49888f3cc21420f135d934

Basically you write your upper freq limits to /sys/module/msm_performance/parameters/cpu_max_freq and remove all write bits from that file.

If rooted you can easily do that on the command line (remember to use echo with redirection instead of write) to check, if it works for your values as well. If it's working you need to modify your bootimage or try to utilize init.d or /data/local/userinit.sh (if supported by your rom).

This is no kernel or kernelmanager app issue.

@franciscofranco: I don't know your keenelmanager, but I guess you write the new max value to scaling_max_freq. Sadly this is always rewritten when libqti-perfd.so write to /sys/module/msm_performance/parameters/cpu_max_freq. This is hardcoded in the shared lib:
Code:
[email protected] /usr/local/src/oxygenos $ strings system/vendor/lib*/libqti-perfd.so |grep 1593
0:1593600 1:1593600 2:2342400 3:2342400
0:1593600 1:1593600 2:2342400 3:2342400
[email protected] /usr/local/src/oxygenos $

Perhaps it is possible in your app to make /sys/module/msm_performance/parameters/cpu_max_freq writable write the new max to it and drop the write permission again.

Hey! Do you know if this would, somehow, mess with the device thermal throttling capability? I've seen my device throttle in the past due to high temps (100% normal and expected behaviour I know) and I'm not sure if perfd is responsible to keep the device in safe temp margins. As such, Disabling write permission might disable throttling (if perfd throttles the device by limiting the max freq that a core can run) @franciscofranco
 

nvertigo67

Senior Member
Dec 28, 2011
6,007
12,320
Hey! Do you know if this would, somehow, mess with the device thermal throttling capability? I've seen my device throttle in the past due to high temps (100% normal and expected behaviour I know) and I'm not sure if perfd is responsible to keep the device in safe temp margins. As such, Disabling write permission might disable throttling (if perfd throttles the device by limiting the max freq that a core can run) @franciscofranco

I don't think so: I've run quite some antutus in succession without the device overheating. The perfd mimik is still able to set scaling_max_freq (and is doing so).
 

rdNNNN

Senior Member
Dec 21, 2014
93
87
Nothing the kernel can do about, because qcom's perfd is chief in charge for cpu freqs.

Recently, I tried to allow the sd821 soc to use all freqs of LITTLE (perfd is always resetting the 2188800 MHz to 1593xxx MHz). This dirty hack allowed me to unleash the 2188800 MHz:

https://github.com/nvertigo/android...mmit/37776166b1aace58f66efd94720c6ac9b95357ce
https://github.com/nvertigo/android...mmit/b83122bcd94648955c49888f3cc21420f135d934

Basically you write your upper freq limits to /sys/module/msm_performance/parameters/cpu_max_freq and remove all write bits from that file.

If rooted you can easily do that on the command line (remember to use echo with redirection instead of write) to check, if it works for your values as well. If it's working you need to modify your bootimage or try to utilize init.d or /data/local/userinit.sh (if supported by your rom).

This is no kernel or kernelmanager app issue.

@franciscofranco: I don't know your keenelmanager, but I guess you write the new max value to scaling_max_freq. Sadly this is always rewritten when libqti-perfd.so write to /sys/module/msm_performance/parameters/cpu_max_freq. This is hardcoded in the shared lib:
Code:
[email protected] /usr/local/src/oxygenos $ strings system/vendor/lib*/libqti-perfd.so |grep 1593
0:1593600 1:1593600 2:2342400 3:2342400
0:1593600 1:1593600 2:2342400 3:2342400
[email protected] /usr/local/src/oxygenos $

Perhaps it is possible in your app to make /sys/module/msm_performance/parameters/cpu_max_freq writable write the new max to it and drop the write permission again.

I don't think so: I've run quite some antutus in succession without the device overheating. The perfd mimik is still able to set scaling_max_freq (and is doing so).

That's nice to hear. Btw, what setup are you running? On latest OOS oreo beta, with this procedure, it still resets to 1.5 ghz @ small cluster with the (default) interative gov, despite trying to set and lock 2.1 ghz.
 

nvertigo67

Senior Member
Dec 28, 2011
6,007
12,320

smitmakani

Senior Member
Jan 26, 2014
67
42
Bhuj
www.facebook.com
@franciscofranco

I just updated my 3T to OOS 5.0.3 Stable release Clean Flashed.
I flashed FK r40 via FK App in OOS 5.0.2 & results were really good.
Shall i flash FK r40 via your App on 5.0.3 ? & later when you release r41, can i update directly from FK App or i need to dirty flash & then latest FK ?

Would be waiting for OOS 5.0.3 Kernel source merge in FK.
Thanks for your awsm work.
 

ho0o0o11111

Senior Member
Jun 18, 2007
198
70
I tried this kernel with Nitrogen.
First boot after flash was fine, but when I reboot the phone, it just sticks in the screen of battery icon (the one you see during charging when the power is off) after the splash screen. Can't boot into system. (Luckily I can boot into recovery to dirty flash the rom)
 

Pablo.x

Senior Member
Mar 6, 2014
854
319
OnePlus 6T
I tried this kernel with Nitrogen.
First boot after flash was fine, but when I reboot the phone, it just sticks in the screen of battery icon (the one you see during charging when the power is off) after the splash screen. Can't boot into system. (Luckily I can boot into recovery to dirty flash the rom)
It's due to NOS isn't LOS based
 

nvertigo67

Senior Member
Dec 28, 2011
6,007
12,320
I tried this kernel with Nitrogen.
First boot after flash was fine, but when I reboot the phone, it just sticks in the screen of battery icon (the one you see during charging when the power is off) after the splash screen. Can't boot into system. (Luckily I can boot into recovery to dirty flash the rom)

It's due to NOS isn't LOS based

On los-15.1 stock kernel exactly this (though the commit message is slightly misleading) has been present, until this patch was merged:

https://review.lineageos.org/#/c/LineageOS/android_kernel_oneplus_msm8996/+/214960/


Out of curiosity: for what do you use these sysfs nodes? Is it needed for some rom functions (if so, which?)? Dpes some apk expect them? Or for shell based debugging purpose?
 
  • Like
Reactions: ho0o0o11111

GR0S

Senior Member
Jun 10, 2012
889
192
On los-15.1 stock kernel exactly this (though the commit message is slightly misleading) has been present, until this patch was merged:

https://review.lineageos.org/#/c/LineageOS/android_kernel_oneplus_msm8996/+/214960/



Out of curiosity: for what do you use these sysfs nodes? Is it needed for some rom functions (if so, which?)? Dpes some apk expect them? Or for shell based debugging purpose?
It makes reading battery capacity possible both from terminal and apps.
 
  • Like
Reactions: nvertigo67

gFknQ

Senior Member
May 4, 2017
1,307
1,183
@franciscofranco enable backlight dimmer and lower max brightness are not options for your kernel and choosing it in your app has no effect whatsoever.

Sent from my OnePlus3T using XDA Labs
 

Attachments

  • Screenshot_Kernel_Manager_for_Franco_Kernel_20180603-163023.png
    Screenshot_Kernel_Manager_for_Franco_Kernel_20180603-163023.png
    153.5 KB · Views: 514

surya1_

Senior Member
Apr 9, 2017
86
6
I'm on oxygen os 8.0.0 what the kernel setting should I be changes to be done to get good battery life in Fk kernel app I'm play few games and some one one suggest me kernel tweaks pls nd tnks
 

Paschfire

Senior Member
May 16, 2014
932
812
43
Ottawa
@franciscofranco enable backlight dimmer and lower max brightness are not options for your kernel and choosing it in your app has no effect whatsoever.

Your device setup would have been useful information to provide.

Though I will say, something within your device setup is causing the problem as lower max brightness and backlight dimmer functions within FK manager have been working perfectly since OOS 5.0.0 on my 3T.

Sent from my OnePlus 3T using XDA Labs
 
Last edited:
  • Like
Reactions: nvertigo67

gFknQ

Senior Member
May 4, 2017
1,307
1,183
Your device setup would have been useful information to provide.

Though I will say, something within your device setup is causing the problem as lower max brightness and backlight dimmer functions within FK manager have been working perfectly since OOS 5.0.0 on my 3T.
Maybe it's only with custom los kernel then. Because no backlight dimmer option or change on Bootleggers with latest Franco

Sent from my OnePlus3T using XDA Labs
 

Attachments

  • Screenshot_Kernel_Manager_for_Franco_Kernel_20180604-135647.jpg
    Screenshot_Kernel_Manager_for_Franco_Kernel_20180604-135647.jpg
    97.1 KB · Views: 1,654
  • Screenshot_EX_Kernel_Manager_20180604-135806.jpg
    Screenshot_EX_Kernel_Manager_20180604-135806.jpg
    102.9 KB · Views: 1,656

Didgeridoohan

Senior Moderator / Dev Committee / Dev Relations
Staff member
May 31, 2012
12,023
13,712
Gothenburg
Google Nexus 4
Nexus 6
Just flashed the kernel reboot ed twice when turning on

There's a very distinct lack of details in this post... Are you perhaps using a ROM that's not based on OOS or LOS? How about providing the /sys/fs/pstore/console-ramoops log? Etc, etc, etc...

So many questions, so few answers.
 
  • Like
Reactions: Paschfire

deepak kumar android

Senior Member
Mar 19, 2014
304
57
23
Palwal
Why it is not stick up to high frequency even in performance mode
Same goes for gpu it doesnt stick to 652
why it is so

My setup
Rr official+franco r40
No mods only magisk

Sent from my ONEPLUS A3003 using Tapatalk
 
Status
Not open for further replies.

Top Liked Posts