[Google Pixel Themes, Apps, and Mods] enweazudaniel:
More battery life on Google Pixel & XL (sailfish & Marlin) with any custom kernel i.e Elementalx kernel [MENTION=4684315]flar2[/MENTION] ,Flash kernel [MENTION=6842057]nathanchance[/MENTION] ,Kiriskura Kernel [MENTION=3428502]Freak07[/MENTION] KingKernel [MENTION=8500797]kingbri[/MENTION] and [MENTION=7039926]Sweetie[/MENTION] FrancoKernel [MENTION=3292224]franciscofranco[/MENTION]

[MENTION=8852292]xFirefly93[/MENTION] and others I forgot to mention

Note: This tweak doesn't do what you like it does what you need :cool:

Disclaimer:

I am not responsible for any damage or soft/hard brick that may happen to your device...please make sure you know what you are doing and follow the installation instructions below :svetius:!

Installation 1 :

1) You must be rooted

2) Download the attached ZIP

3) Extract the script

4) Move file i.e(ondemand, Interactive, Conservative ,ElementalX, Sched, Schedutil) depending on the one you downloaded to the following location;

/sbin/.core/img/.core/service.d and give it the following permissions (0755) or rwxr-xr-r using your root browser(explorer)

5) Reboot your phone, let Android boot to the launcher and let Magisk boot service do its crucial magic (takes about 60-65 seconds before the script is fully up and running behind the scenes)

6) Now logs can be found in the logs directory /storage/emulated/0/logs

7) Enjoy!:good:

Join telegram group here's the invite link https://t.me/tweakmypixel

Installation 2:

1) You must be rooted

2) Download the attached ZIP

3) Extract the script

4) Open and Grant the app root access and go the script manager of any kernel app of your choice(SmartPack kernel Manager,Franco Kernel manager FKM(paid),Ex kernel manager(Paid))

5) Then import the extracted script(.sh)

6) Run or Execute

7) You can check apply on boot if you want it to always run after boot.

8) Reboot your phone, let Android boot to the launcher and let Magisk boot service do its crucial magic (takes about 60-65 seconds before the script is fully up and running behind the scenes)

9) Now logs can be found in the logs directory /storage/emulated/0/logs

10) Enjoy!

Join telegram group here's the invite link https://t.me/tweakmypixel

CPU GOVERNORS SUPPORTED

1) Ondemand:

Default governor in almost all stock kernels. One main goal of the ondemand governor is to switch to max frequency as soon as there is a CPU activity detected to ensure the responsiveness of the system.

2) Conservative:

A slower Ondemand which scales up slowly to save battery. The conservative governor is based on the ondemand governor. It functions like the Ondemand governor by dynamically adjusting frequencies based on processor utilization. However, the conservative governor increases and decreases CPU speed more gradually. Simply put, this governor increases the frequency step by step on CPU load and jumps to lowest frequency on CPU idle

3) Interactive:

Can be considered a faster ondemand. So more snappier, less battery. Interactive is designed for latency-sensitive, interactive workloads. Instead of sampling at every interval like ondemand, it determines how to scale up when CPU comes out of idle

4) Schedutil

schedutil is a new EAS governor found in recent versions of the Linux Kernel (4.7+) that aims to integrate better with the Linux Kernel scheduler. It uses the kernel's scheduler to receive CPU utilisation information and make decisions from this input. As a direct result, schedutil can respond to CPU load faster and more accurate than normal governors such as Interactive that rely on timers.

The "schedutil" governor aims at better integration with the Linux kernel scheduler. Load estimation is achieved through the scheduler's Per-Entity Load Tracking (PELT) mechanism, which also provides information about the recent load

5) ElementalX:

By default, it is more conservative than Ondemand as it does not ramp up often for most phone activities. If there is a graphics load detected, the governor will switch to a two-phase Ondemand behaviour where different max frequencies are used depending on the load increase

6) Sched:

This governor is the default governor for the Pixel and XL also allows changing of the frequency tipping point by changing the bit shift value

Features

1) CPU Governors Optimized for better battery saving or more power bias without losing performance

2) GPU: msm-adreno-tz(first Attached Files) and simple_ondemand for GPU default governor and Underclock to 510mhz

3) Disable unnecessary Wake-up

4) Enabled dimmer blacklight to save battery

5) Disabled Fsync

6) Enabled westwood TCP congestion control for faster internet speed

7) Fstrim data,cache,system included

8) Enabled fast charge

9) Completely Stop and Disable performance daemon at boot

10) Killed GAPPS processes that drains battery

11) Added some Battery improvements...and so on

ChangeLog
-Added Conservative
-Added Interactive
-Added Ondemand
-Added Sched
-Added Schedutil
-Added Elementalx

22/2/2020
-Added these features below to all scripts ;)
1) Network tweaks for slightly reduced battery consumption
2) Disable sysctl.conf to prevent ROM interference
3) Decrease both battery as well as power consumption that is being caused by the screen by lowering how much light the pixels, the built-in LED switches and the LCD backlight module is releasing
4) Changed Schedutil cpu governor down_rate_limit_us for 3000 to 850 for quicker downward ramping

23/2/2020
Made some few changes to all scripts
Removed remount flags from all scripts

25/2/2020
Now logs can be found in the logs directory /storage/emulated/0/logs

29/2/2020
simple_ondemand for GPU default governor(only scripts on page4)

16/3/2020
-Added modified Interactive scripts (InteractiveV2)

22/3/2020
-Made noop default I/O scheduler based on users requests

FAQ

Q: Will these work without Root?

A: NO. you can use magisk or superSu to root your device

Q: Does this work for xyz kernel?

A: Works on xyz kernel just follow the installation Instructions

Q: What are the advantages of this?

A: Better battery life.:good:

Q: How do i check if I have the scripts installed correctly?

A: Check the logs directory /storage/emulated/0/logs

Andriodfilehost and github Links

https://www.androidfilehost.com/?w=files&flid=305634

https://github.com/enweazudaniel