5,599,677 Members 46,206 Now Online
XDA Developers Android and Mobile Development Forum

[ ROM ] Calkulin's Nexus 4 CM11 v1.2 [ Non CAF | Tweaked | Battery Saver Script ]

Tip us?
 
Calkulin
Old
(Last edited by Calkulin; 10th January 2014 at 03:41 PM.)
#1  
Calkulin's Avatar
Recognized Developer - OP
Thanks Meter 6423
Posts: 1,393
Join Date: Sep 2008

 
DONATE TO ME
Default [ ROM ] Calkulin's Nexus 4 CM11 v1.2 [ Non CAF | Tweaked | Battery Saver Script ]

Nexus 4 CM11 Series




Based on 4.4.2 / KOT49H (Google & CyanogenMod)

ROM includes:
Stock Google kernel w/ init.d support (AOSP(non CAF) kernel support by default, MUST use CM kernel ramdisk) (enable CAF kernel support zip in FAQ)
Working ART runtime
Deodexed system
Superuser
Busybox
and more

MODs included:
Tweaked system (Very FAST)
Raised contact sync resolution (requires resyncing of contacts if you don't factory reset before installing)
Enabled LTE option in mobile network settings (requires LTE enabled modem)
Battery % on status bar (thanks to Erhany for the code) (disable zip in FAQ)
Exchange security bypass (thanks to apascual89 for the code)
Relaxed MMS compression ratio (Hangouts & Messaging)
Enabled access to App Ops in Settings/Security
Blocked annoying ads in programs
Enabled NFC while on lockscreen
APN settings for a lot of carriers
Colored notification icons
And other misc tweaks/mods


Notes about Battery Saver script

Can be used with any kernels that have init.d support

It completely eliminates the need for an application to set CPU speeds or profiles
Easily customizable - See FAQ for instructions
During sleep, it will set Max CPU speed to 1.0GHz & Min CPU speed to 384MHz
If Android Overclock, No-Frills CPU Control, Overclock Widget, QuickClock Advanced Overclock, SetCPU or System Tuner are detected, the script is ignored, so it will not affect them
The script can also control how the second, third & fourth cores works, they can be enabled full time, per profile or disabled completely

Preset profiles are:
1.45GHz - 100-85%
1.35GHz - 84-36%
1.24GHz - 35-0%

And just an FYI, even at 1.24GHz, the phone still operates very well & smooth, it's the battery savings that are the real benefit


v1.2
Based on new CM11 build
Can now use AOSP(non CAF) kernels by default (MUST use CM kernel ramdisk) (enable CAF kernel support zip in FAQ)

Updated
Gmail v4.7.2 (967015)
Google Play Services v4.1.31 (965943-30)

Code:
v1.1.1
Based on new CM11 build
Fixed CM binary issue that was causing undervolting script to not work properly (v1.1.1)
Simplified some of the battery saver script code
Enabled NFC while on lockscreen

Added
UV support for m_plus kernel

Updated
YouTube v5.3.28

v1.0
Initial Release

Important Notes - Due to how this ROM is setup, a wipe is recommended BEFORE flashing if coming from another ROM

If your are updating, then nothing extra is needed during flashing as the update script wipes what is needed, unless other wise stated in the change log

Be sure to do a backup before flashing and read the change log


Nexus 4 CM11 ROM (v1.2) - Mirror
md5 - ca8f10711e7d9d878a22abb9758f325a


Previous ROM versions
If you like my work, donate to buy me a beer or 2

The Following 9 Users Say Thank You to Calkulin For This Useful Post: [ Click to Expand ]
 
Calkulin
Old
(Last edited by Calkulin; 16th January 2014 at 02:57 AM.)
#2  
Calkulin's Avatar
Recognized Developer - OP
Thanks Meter 6423
Posts: 1,393
Join Date: Sep 2008

 
DONATE TO ME
FAQ

How to modify the battery saver script?
(requires knowledge of how to run terminal or adb commands)

These are the available commands to set parameters. To check what the available commands are for each, type available after the command

For ex.

cpu available

To check what the current settings are

cpu status

To verify what the cpu is currently set to

cpu verify

To reset the script back to stock

cpu default

To disable the script

cpu off
Code:
cpu - Controls the script

cpu_awake - Enables or disables awake boost feature

cpu_awake_duration - Duration of awake boost

cpu_awake_governor - Enables or disables awake boost governor and sets governor

cpu_awake_max - Max cpu speed for awake

cpu_awake_min - Min cpu speed for awake

cpu1_awake - Enables or lets the kernel handle CPU1 for awake

cpu2_awake - Enables or lets the kernel handle CPU2 for awake

cpu3_awake - Enables or lets the kernel handle CPU3 for awake

cpu_bp - Enables or disables battery profiles feature

cpu_bp1_batt - Battery percent of when profile 1 ends

cpu_bp1_governor - Enables or disables battery profile 1 governor and sets governor

cpu_bp1_max - Max cpu speed for battery profile 1

cpu_bp1_min - Min cpu speed for battery profile 1

cpu1_bp1 - Enables or lets the kernel handle CPU1 for battery profiles 1

cpu2_bp1 - Enables or lets the kernel handle CPU2 for battery profiles 1

cpu3_bp1 - Enables or lets the kernel handle CPU3 for battery profiles 1

cpu_bp2_batt - Battery percent of when profile 2 starts

cpu_bp2_governor - Enables or disables battery profile 2 governor and sets governor

cpu_bp2_max - Max cpu speed for battery profile 2

cpu_bp2_min - Min cpu speed for battery profile 2

cpu1_bp2 - Enables or lets the kernel handle CPU1 for battery profiles 2

cpu2_bp2 - Enables or lets the kernel handle CPU2 for battery profiles 2

cpu3_bp2 - Enables or lets the kernel handle CPU3 for battery profiles 2

cpu_governor - Main governor

cpu_max - Max cpu speed when profiles are off and in between battery profiles 1 & 2

cpu_min - Min cpu speed when profiles are off and in between battery profiles 1 & 2

cpu_sleep - Enables or disables sleep feature

cpu_sleep_delay - Delay before sleep feature kicks in

cpu_sleep_governor - Enables or disables sleep governor and sets governor

cpu_sleep_max - Max cpu speed for sleep

cpu_sleep_min - Min cpu speed for sleep

cpu_uv - Controls undervolting for kernels like Franco's, 0-200mV in increments of 25

cpu1 - Enables, disables or lets the kernel handle CPU1

cpu2 - Enables, disables or lets the kernel handle CPU2

cpu3 - Enables, disables or lets the kernel handle CPU3

devlog - Enables or disables logging

NOTE: Most parameters can be set without restarting but you need to cycle the screen on/off and wait the time set in cpu_sleep_delay. If the setting isn't taking effect, then reboot


Want to enable CAF kernel support? (Includes stock CyanogenMod kernel)

Flash the Calkulin's_Enable_CAF_Kernel_Support_Nexus_4_CM11_ v* zip attached


Want to disable the battery percent in the status bar?

Flash the Calkulin's_Disable_Battery_Percent_for_Nexus_4_v* zip attached


Want to use the dialer from stock KOT49H that has caller ID search and nearby places? (missing CM phone options)
Will cause FC's when trying to access Quick Settings panel in Settings/Interface

Flash the Calkulin's_Google_Dialer_for_Nexus_4_v* zip attached


Having problems with included hosts file or want to see advertisements again?

Flash the Stock_Android_Hosts_for_Nexus_4 zip attached
If you like my work, donate to buy me a beer or 2

The Following 6 Users Say Thank You to Calkulin For This Useful Post: [ Click to Expand ]
 
Calkulin
Old
#3  
Calkulin's Avatar
Recognized Developer - OP
Thanks Meter 6423
Posts: 1,393
Join Date: Sep 2008

 
DONATE TO ME
.............
If you like my work, donate to buy me a beer or 2

The Following 5 Users Say Thank You to Calkulin For This Useful Post: [ Click to Expand ]
 
paranoid android85
Old
#4  
paranoid android85's Avatar
Senior Member
Thanks Meter 192
Posts: 1,411
Join Date: Oct 2010
Location: san antonio, tx
Thanks. Just curious, will you keep both stock and this one updated or will this rom be your main one?

Sent from my Nexus 4 using Tapatalk
 
mnajem
Old
#5  
Senior Member
Thanks Meter 483
Posts: 507
Join Date: May 2011
Location: Bagan Datoh, Perak

 
DONATE TO ME
can you include customized status bar so we can put diserable java format for the date?
one of the reason i'm yet to flash your ROM. the rest are awesome!!
 
Calkulin
Old
#6  
Calkulin's Avatar
Recognized Developer - OP
Thanks Meter 6423
Posts: 1,393
Join Date: Sep 2008

 
DONATE TO ME
Quote:
Originally Posted by paranoid android85 View Post
Thanks. Just curious, will you keep both stock and this one updated or will this rom be your main one?

Sent from my Nexus 4 using Tapatalk

Both will get updates but this one is my daily

Quote:
Originally Posted by mnajem View Post
can you include customized status bar so we can put diserable java format for the date?
one of the reason i'm yet to flash your ROM. the rest are awesome!!

This is CM based, so if it's feature that they have had in the past and just don't have it yet in CM11, then it may get added at a later time
If you like my work, donate to buy me a beer or 2

The Following 2 Users Say Thank You to Calkulin For This Useful Post: [ Click to Expand ]
 
mnajem
Old
#7  
Senior Member
Thanks Meter 483
Posts: 507
Join Date: May 2011
Location: Bagan Datoh, Perak

 
DONATE TO ME
i see, as i saw Beanstalk (which is CM based) got that feature too.
 
JOEOZUNA4U
Old
(Last edited by JOEOZUNA4U; 18th December 2013 at 06:15 PM.)
#8  
Senior Member
Thanks Meter 180
Posts: 981
Join Date: Nov 2007
Location: L.A, CA
Is superuser working? Im trying to use Rom Toolbox to delete some apps and doesnt work?

EDIT: I fixed it by installing super su from google play.I deleted super su after updating binaries and now superuser is working fine
 
copi
Old
#9  
copi's Avatar
Senior Member
Thanks Meter 89
Posts: 282
Join Date: May 2007
Location: jakarta
Hi dev
Thanks for the rom
I'm experience process com.android phone has stoped toast message everytime I want to enter quick setting panel on the interface option because I've flashed your google dialer. but without google dialer its fine.
I have tried to flash straight away after rom flash without exit from recovery,, and also exit first then enter again to recovery to just flash the dialer.. both is the same, this toast message is appeared. what I'm doing wrong if I may ask?
I've already tried to clear data n force close the dialer but still this problem persist. coming from clean install btw..
 
mathhqs
Old
#10  
mathhqs's Avatar
Senior Member
Thanks Meter 42
Posts: 247
Join Date: Oct 2013
Location: Cambuí - MG
It's stable??

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes