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

[MOD] BlackenedMod v2.0 (Pixel 3a / Pixel 3a XL)

Search This thread

xFirefly93

Senior Member
Jan 10, 2018
1,423
2,292
Timrå
Introduction:

Hello everyone!

The idea to this 'project' did blossom after having an conversation with @pkgnex in the past about the general idea of creating something else that follows what he started with his PK's Tuning Script for Pixel 2 (XL) but with a twist, mainly as a complement to his own thread that you can find here, but also with a completely different vision and focus on what the script itself should achieve (and deliver) for kind of results for myself and for all of you personally, of course, that wants to try it out and use it as a "daily driver".

Shortly explained.

This script is created with the goal of improving both battery life and performance on our Pixel 3a (XL) devices, and after a whole range of configurations and various set-ups, I've come up with something that, in my eyes, is worth sharing with all of you so that you can try it out yourself and judge on your own, with constructive feedback on what can be improved or added in future releases - if desired. My philosophy is, and will always be, this:

If something can be improved or altered in a positive way so the average user can feel and see a difference, then go for it. Non stop.

The latest release can be found here.

Disclaimer:
This is presented as "what if". If this modification screws up or breaks anything for you, I am not the one to be held responsible. It's a free will to try out this kind of changes/modifications/addons/tweaks, just don't blame the inventors for eventual bad results and/or screw-ups.

Note: This script is not recommended to be modified or customized by the user.

Features:
  • Reduced battery consumption
  • Device specific enhancements for best possible balance between battery life & performance
  • Enabled, and fully configured, Boeffla generic kernel wakelock blocker
  • Disabled a lot of useless stuff at kernel level (Improves battery life as well as performance)
  • CPUSet improvements & optimizations
  • Power efficiency enhancements
  • Wide IO block tuning (Reduces the possibility of hiccups, lags and overhead)
  • Possibly other miscellaneous things I've forgotten to write down here, both big and small.

Requirements/what you need for getting this script fully working:
  • An unlocked bootloader
  • Your own specific choice of kernel
  • Latest possible version of Magisk
  • Busybox for Android NDK Magisk Module by @osm0sis
  • Patience

Installation/How-To use & abuse:
  • 1) Download the attached ZIP
  • 2) Extract the script
  • 3) Move the script to the following location;
    /data/adb/service.d and give it the following & needed file permissions (0775)
  • 4) Reboot your phone, let Android boot to the launcher and let Magisk boot service do its crucial magic (takes a few seconds before the scripts is fully up and running around behind the scenes)
  • 5) Enjoy!
  • Note: If you still are unsure how to do for making my kernel configuration / modification work & be up and running behind the scenes, then please read @Phalanx7621 phenomenal guide here or check out @Phalanx7621 in-depth video here. The installation method is the same for all generations of released Pixels!
Credits:
  • @franciscofranco for all the information on which kernel wakelocks that is safe to block
  • @Phalanx7621 for his phenomenal how-to guide
  • @Lord Boeffla for his awesome generic kernel wakelock blocker
  • @pkgnex for inspiring me walking into this partially unknown territory.
  • @flar2 for his excellent EXKM application and ElementalX Kernel
  • @osm0sis for his Magisk Busybox module
  • Everyone that I've forgotten to mention here
Telegram:
If you want to try out betas / previews of my script before they are officially released, or just hangout and chat a little, then join the official Telegram group here

To-Do list:
  • Optimize and properly tune things even further for best possible balance between battery life, system responsivness and performance

Contributors:
@xFirefly93

Created: 2019-07-06
Last updated: 2019-11-15
 
Last edited:

xFirefly93

Senior Member
Jan 10, 2018
1,423
2,292
Timrå
Update!

Note: It is recommended that you reboot your phone after you have applied v1.0 so the customized changes / improvements takes full effect and is fully up & running as intended.

Version v1.0 (Initial release):
- Initial test release for Google Pixel 3a (XL)
- Enabled, and tuned, Boefflas wakelock blocker
- Enabled the backlight dimmer per default
- Disabled some useless kernel stuff for less overhead
- Some additional high quality customizations & improvements

If you optionally want to donate a beer or five as a way to show your appreciation for all the dedicated hours and work that I am putting into this mod on a daily rate - then this link is the way to go!

Enjoy! :)
 
Last edited:

xFirefly93

Senior Member
Jan 10, 2018
1,423
2,292
Timrå
Update!

Note: It is recommended that you reboot your phone after you have applied v1.1 so the customized changes / improvements takes full effect and is fully up & running as intended.

Version v1.1 (Semi-major release):
- Adjusted the task scheduler for better system responsivness
- Added my own Schedutil governor profile for a better balance between performance and battery life through the whole day

If you optionally want to donate a beer or five as a way to show your appreciation for all the dedicated hours and work that I am putting into this mod on a daily rate - then this link is the way to go!

Enjoy! :)
 

duh1

Senior Member
I was looking through the script and it appears to mainly be kernel customizations. Instead of being an init script, isn't it possible for this to be set up as a custom settings file to be imported to one of the kernel managers, or perhaps you already have a settings file we could test?
 

xFirefly93

Senior Member
Jan 10, 2018
1,423
2,292
Timrå
I was looking through the script and it appears to mainly be kernel customizations. Instead of being an init script, isn't it possible for this to be set up as a custom settings file to be imported to one of the kernel managers, or perhaps you already have a settings file we could test?

I prefer to let it being applied straight through the service.d folder as a part of the Magisk boot service myself.

It's pretty much a lot easier for everyone that way.
 
Last edited:

12paq

Senior Member
Aug 16, 2010
1,155
368
Colorado
www.DonAshcraft.com
Just for fun, I loaded this script on my Pixel C tablet. Remember that? Lol

It's an old janky Pixel abandoned by Google when Oreo ended. It's now on a custom Pie rom with a custom kernel so why not? The script installed and ran successfully. Proof was in the Magisk log. But not just that, this tablet now flys! No stutter scrolling, slightly slower battery drain and smoother transitions. Most importantly to me were the improvements in Chrome. Chrome would bog way down with just a few tabs open. Scrolling through articles and web pages was painful. The stutter was trerible especially compared to my Pixel 3a.

All I have say is thank you!

12
 

xFirefly93

Senior Member
Jan 10, 2018
1,423
2,292
Timrå
Just for fun, I loaded this script on my Pixel C tablet. Remember that? Lol

It's an old janky Pixel abandoned by Google when Oreo ended. It's now on a custom Pie rom with a custom kernel so why not? The script installed and ran successfully. Proof was in the Magisk log. But not just that, this tablet now flys! No stutter scrolling, slightly slower battery drain and smoother transitions. Most importantly to me were the improvements in Chrome. Chrome would bog way down with just a few tabs open. Scrolling through articles and web pages was painful. The stutter was trerible especially compared to my Pixel 3a.

All I have say is thank you!

12

Haha, holy crap. That was kind of unexpected, and surprising that I actually have created such a monster to be honest.

Or wait..

Wait until v1.2 is complete - it will make both your P3a and Pixel C fly higher than a (Snap)dragon ever is able to do!

:highfive:
 

xFirefly93

Senior Member
Jan 10, 2018
1,423
2,292
Timrå
Update!

Note: It is recommended that you reboot your phone after you have applied v1.2 so the customized changes / improvements takes full effect and is fully up & running as intended.

Be aware that you have to flash the Busybox Magisk module by @osm0sis for getting the newest enhancements, that is featured / included on v1.2, up and running as intended!

Version v1.2 (Major release):
- Added a few crucial filesystem tweaks for improved performance (Credits goes to @pkgnex for this contribution. Be aware that you have to flash the Busybox Magisk module for getting those modifications up and running as fully intended)
- Fully removed all of the alternative task scheduler values / settings (they was only causing random freezes and lagspikes)
- Slightly adjusted the default stock CPUSet values for hopefully improved power efficiency as well as system responsivness
- Cleaned up the script on a few minor typos and what not
- Disabled a few minor CPU related loggers (experimental)
- Reduced suspend latency by enabling console_suspend
- Added a few tweaks for overall better network performance
- Shifted to Westwood TCP congestion algorithm per default
- Disabled the useless Adreno GPU frequency throttling tunable
- Disabled RCU expedited and 'replaced' it with RCU normal for improved real-time latency, CPU utilization and energy efficiency

If you optionally want to donate a beer or five as a way to show your appreciation for all the dedicated hours and work that I am putting into this mod on a daily rate - then this link is the way to go!

Enjoy! :)
 

12paq

Senior Member
Aug 16, 2010
1,155
368
Colorado
www.DonAshcraft.com
You should actually try out the latest Blackened release in the post here above on both your P3a as well as on your Pixel C.

You won't regret it, I promise.

:highfive:

Sorry, I see very little difference on the P3a, it could just be me. Ex Kernel runs great for me. I'll give your mod some more time to test.

However, on my the 3 yr old Pixel C, it is very much improved. Impressive!
 

Top Liked Posts

  • There are no posts matching your filters.
  • 12
    Introduction:

    Hello everyone!

    The idea to this 'project' did blossom after having an conversation with @pkgnex in the past about the general idea of creating something else that follows what he started with his PK's Tuning Script for Pixel 2 (XL) but with a twist, mainly as a complement to his own thread that you can find here, but also with a completely different vision and focus on what the script itself should achieve (and deliver) for kind of results for myself and for all of you personally, of course, that wants to try it out and use it as a "daily driver".

    Shortly explained.

    This script is created with the goal of improving both battery life and performance on our Pixel 3a (XL) devices, and after a whole range of configurations and various set-ups, I've come up with something that, in my eyes, is worth sharing with all of you so that you can try it out yourself and judge on your own, with constructive feedback on what can be improved or added in future releases - if desired. My philosophy is, and will always be, this:

    If something can be improved or altered in a positive way so the average user can feel and see a difference, then go for it. Non stop.

    The latest release can be found here.

    Disclaimer:
    This is presented as "what if". If this modification screws up or breaks anything for you, I am not the one to be held responsible. It's a free will to try out this kind of changes/modifications/addons/tweaks, just don't blame the inventors for eventual bad results and/or screw-ups.

    Note: This script is not recommended to be modified or customized by the user.

    Features:
    • Reduced battery consumption
    • Device specific enhancements for best possible balance between battery life & performance
    • Enabled, and fully configured, Boeffla generic kernel wakelock blocker
    • Disabled a lot of useless stuff at kernel level (Improves battery life as well as performance)
    • CPUSet improvements & optimizations
    • Power efficiency enhancements
    • Wide IO block tuning (Reduces the possibility of hiccups, lags and overhead)
    • Possibly other miscellaneous things I've forgotten to write down here, both big and small.

    Requirements/what you need for getting this script fully working:
    • An unlocked bootloader
    • Your own specific choice of kernel
    • Latest possible version of Magisk
    • Busybox for Android NDK Magisk Module by @osm0sis
    • Patience

    Installation/How-To use & abuse:
    • 1) Download the attached ZIP
    • 2) Extract the script
    • 3) Move the script to the following location;
      /data/adb/service.d and give it the following & needed file permissions (0775)
    • 4) Reboot your phone, let Android boot to the launcher and let Magisk boot service do its crucial magic (takes a few seconds before the scripts is fully up and running around behind the scenes)
    • 5) Enjoy!
    • Note: If you still are unsure how to do for making my kernel configuration / modification work & be up and running behind the scenes, then please read @Phalanx7621 phenomenal guide here or check out @Phalanx7621 in-depth video here. The installation method is the same for all generations of released Pixels!
    Credits:
    • @franciscofranco for all the information on which kernel wakelocks that is safe to block
    • @Phalanx7621 for his phenomenal how-to guide
    • @Lord Boeffla for his awesome generic kernel wakelock blocker
    • @pkgnex for inspiring me walking into this partially unknown territory.
    • @flar2 for his excellent EXKM application and ElementalX Kernel
    • @osm0sis for his Magisk Busybox module
    • Everyone that I've forgotten to mention here
    Telegram:
    If you want to try out betas / previews of my script before they are officially released, or just hangout and chat a little, then join the official Telegram group here

    To-Do list:
    • Optimize and properly tune things even further for best possible balance between battery life, system responsivness and performance

    Contributors:
    @xFirefly93

    Created: 2019-07-06
    Last updated: 2019-11-15
    10
    Update!

    Note: It is recommended that you reboot your phone after you have applied v1.3 so the customized changes / improvements takes full effect and is fully up & running as intended.

    Version v1.3 (Minor release):
    - Added the needed commands so the logs folder, and the output message, will be automatically generated after each completed boot sequence (Thanks to @crian for giving a few seconds of his time helping me out with this contribution. You rock, dude!)
    - Simplified a few explanations of what each section does
    - Fully enabled the RET idle power state for both clusters (may, or may not, lead to slightly improved battery life for everyone)
    - Most likely fixed the minor issue with the weird all over the place maximum CPU frequency bouncing on the whole LITTLE cluster

    If you optionally want to donate a beer or five as a way to show your appreciation for all the dedicated hours and work that I am putting into this mod on a daily rate - then this link is the way to go!

    Enjoy! :)
    10
    Update!

    Note: It is recommended that you reboot your phone after you have applied v1.2 so the customized changes / improvements takes full effect and is fully up & running as intended.

    Be aware that you have to flash the Busybox Magisk module by @osm0sis for getting the newest enhancements, that is featured / included on v1.2, up and running as intended!

    Version v1.2 (Major release):
    - Added a few crucial filesystem tweaks for improved performance (Credits goes to @pkgnex for this contribution. Be aware that you have to flash the Busybox Magisk module for getting those modifications up and running as fully intended)
    - Fully removed all of the alternative task scheduler values / settings (they was only causing random freezes and lagspikes)
    - Slightly adjusted the default stock CPUSet values for hopefully improved power efficiency as well as system responsivness
    - Cleaned up the script on a few minor typos and what not
    - Disabled a few minor CPU related loggers (experimental)
    - Reduced suspend latency by enabling console_suspend
    - Added a few tweaks for overall better network performance
    - Shifted to Westwood TCP congestion algorithm per default
    - Disabled the useless Adreno GPU frequency throttling tunable
    - Disabled RCU expedited and 'replaced' it with RCU normal for improved real-time latency, CPU utilization and energy efficiency

    If you optionally want to donate a beer or five as a way to show your appreciation for all the dedicated hours and work that I am putting into this mod on a daily rate - then this link is the way to go!

    Enjoy! :)
    10
    Update!

    Note: It is recommended that you reboot your phone after you have applied v1.8 so the customized changes / improvements takes full effect and is fully up & running as intended.

    Version v1.8 (Minor release):
    - Re-wrote and "patched up" the whole script from scratch
    - Removed all the modified frequency stuff for now (needs a few more adjustments before they will be added again)
    - Re-enabled power efficient workqueues (=PEWQ) again
    - Fully enabled laptop_mode (slightly improves battery life)
    - Disabled fsync per default (improves IO performance)
    - Cleaned up a few crucial typos both here as well as there

    If you optionally want to donate a beer or five as a way to show your appreciation for all the dedicated hours and work that I am putting into this mod on a daily rate - then this link is the way to go!

    Enjoy! :)
    9
    Update!

    Note: It is recommended that you reboot your phone after you have applied v1.7 so the customized changes / improvements takes full effect and is fully up & running as intended.

    Version v1.7 (Major release):
    - Finally fixed the battery life issues that a few may have experienced while having BlackenedMod up and running
    - Included a simple guide on what you've to do for getting the alternative min & max frequencies working as intended
    - Disabled power efficient workqueues once and for all (the overhead cost doesn't justify the notable performance loss)
    - Re-configured my Schedutil profile from scratch so it works like a bulldozing charm together with the changes below
    - Increased Schedutil up_rate_limit to 1000us (reduces any overhead caused by all over the board frequency scaling)
    - Unlocked & enabled the 300Mhz freq for the big cluster
    - Slightly underclocked the big cluster max frequency for better battery life power and for a better user experience
    - Carefully adjusted the min LITTLE cluster freq a little for compensating for the new big cluster min & max frequencies
    - Reverted commit sync interval to default 5 seconds again
    - Some additional minor fixes and adjustments here and there

    If you optionally want to donate a beer or five as a way to show your appreciation for all the dedicated hours and work that I am putting into this mod on a daily rate - then this link is the way to go!

    Enjoy! :)