Jump to content


Photo

[23/07/2013][ICS] Eco CM9 - aiming for stability and battery efficiency

* * * * * 14 votes

715 replies to this topic

#1
jventura

jventura

    Diehard

  • Members
  • PipPipPipPip
  • 454 posts
  • Gender:Male
  • Location:Portugal
  • Devices:ZTE Blade
One of my main concerns with a phone (being it smart or not), besides that it should do what it is supposed to do, most importantly, it should have battery when you need to make a call, or send a text message. With my first cell phones, I could do about a week on battery with some calls and sms. With a modern smartphone, even with minimal usage, sometimes you won't get more than 2 days. But nowadays we tend to use the phone for more than phone calls and sms.

So my main goal with this topic is to share some ideas regarding improving battery efficiency and ROM stability. Also, I pretend to share some of my CM9 self-builds which are supposed to be pretty stable and thoroughly tested. So, here you won't find state-of-the-art builds (like Coldfusion or KonstaT's builds), but builds which are more stock CM9 and patched with (or without) everything possible to make it more battery-wise.

My main motivation is that I am maintaining 3 ZTE Blades in the family: mine, my sister's and my girlfriend's phones. As "my" girls do not understand much about Androids and the like, I need them to have something stable, but also (almost) state-of-the-art.

Attached File  Screenshot_2012-12-24-00-10-25.png   437.6KB   936 downloads Attached File  Screenshot_2012-12-24-00-18-53.png   326.84KB   869 downloadsAttached File  Screenshot_2012-12-24-00-12-12.png   115.18KB   824 downloads Attached File  Screenshot_2012-12-24-00-12-48.png   137.33KB   763 downloads

Details:Not working:
  • Wi-Fi tethering (use external app)
Add-ons:More info:
  • Changelog (2nd post)
  • Tips for more battery efficiency (3rd post)
  • Build instructions (3rd post)
Sources:

Edited by jventura, 23 July 2013 - 11:30 AM.

  • 20

#2
jventura

jventura

    Diehard

  • Members
  • PipPipPipPip
  • 454 posts
  • Gender:Male
  • Location:Portugal
  • Devices:ZTE Blade
23/07/2013 (http://www.multiupload.nl/YESN0H1QSO)
  • Fixes Masterkey bug
  • Synced with CM9 repository
11/05/2013 (http://www.multiupload.nl/CRDE9TT342)
  • Fix connection to Wifi Ad-Hoc networks
  • Barcode scanner
  • Panorama
  • Weather in lock screen (fixed upstream in CM9)
27/03/2013 (http://www.multiupload.nl/XXE7YYXX7M)
  • Updated Effem (FM Radio application) (by Daemond)
  • Fix FM off when other streams are active (by Daemond)
  • Add sd-ext directory (thanks to C3CO)
24/03/2013 (http://www.multiupload.nl/3Y8U16B6EU)
  • Updated Effem (FM Radio application)
20/03/2013 (http://www.multiupload.nl/5E6CQOC6DV)
  • Effem (FM Radio application) - Thanks to Daemond
14/03/2013 (http://www.multiupload.nl/0JI0HBU5IY)
  • Synced with CM9 repositories
  • Fm Radio - Thanks to Daemond
  • Fix Youtube Force Closes on big videos - Thanks to C3C0
  • Animation and Transitions default to 0.5x
30/01/2013 (http://www.multiupload.nl/GM8DDIMP24)
  • Synced with CM9 repositories
  • Use 16bpp formats and surface-format (1) - Credits to Daemond
27/01/2013 (http://www.multiupload.nl/0Z4YSZPO4D)
  • Synced with CM9 repositories
  • Fixed Audio Routing [1]
  • Fixed Alignment and copy size for QCOM_LEGACY_OMX [2]
  • (Both fixes by Daemond)
17/12/2012 (http://www.multiupload.nl/GNP9IVXJWQ)
  • Synced with CM9 repositories
  • Fixed Youtube HD and Video Player on Gallery (Ganster's patches at [1])
  • Fixed Video Thumbnails on Gallery (gntcs patch at [2] - And a little help from KonstaT)
  • Removed Trebuchet Wallpapers
  • Added CMFileManager from CM10 (latest sync)
  • Update proprietary files (from KonstaT's github)
13/11/2012 (http://www.multiupload.nl/C5H581KDES)
  • Synced with CM9 repositories
  • Mms auto-retrieval
  • Eco Wallpapers
10/10/2012 (http://www.multiupload.nl/VGLLXVRCAD)
  • Synced with CM9 repositories
28/08/2012
  • Synced with CM9 repositories
22/07/2012
  • Synced with CM9 repositories
  • Added Email option to allow untrusted attachments
03/07/2012
  • First release
  • Synced with CM9 repositories
  • Fixed battery drainage when user receives an MMS with data-connection switched off

Edited by jventura, 23 July 2013 - 11:34 AM.

  • 9

#3
jventura

jventura

    Diehard

  • Members
  • PipPipPipPip
  • 454 posts
  • Gender:Male
  • Location:Portugal
  • Devices:ZTE Blade
Hints and Tips for more battery efficiency:

With the following tips, I'm getting about 4 days of battery with a minimal to medium usage: 30 min/day calls, 5-10 sms, check the mails in the morning, 30-40 minutes/day playing Sudoku, and not much more.
  • Disable auto-rotation in the User Interface. With auto-rotation on, the Gsensor is always powered and draws too much battery. It seems that the open-source drivers for the sensors are using the compass instead of the real GSensor. I'm not completely sure about the drivers, so, instead of auto-rotation always on, add the switch to auto-rotate to the power widget in the notification area and switch it on only when you need it.
  • Use smartassv2 governor, at least theoretically seems more battery-wise.
  • Use the automatic brightness feature. I've tested it alot, and without it, you cannot notice the differences in ambient light, and you can save a lot of power.
  • 2G with data-connection off saves also a lot of power. There is a problem with battery drainage while receiving Mms in CM9 when data-connection is off, but it is fixed in this ROM.
My phone is still draining too much battery, what can I do:
  • Is your phone deep-sleeping? When you press the power button and set the phone aside, it enters a low power state (called deep sleep) where only the radio part is being powered. When the radio part receives a confirmation for a call or an sms, it awakes the CPU and bumps Android to respond to that request. In the ZTE Blade you can confirm that your phone deep sleeps if, while the phone is screen off, you press any button in the keypad, and the phone does not switch on. If it switches on consistently, it is not deep sleeping when it should.
  • Another way of checking for deep sleep problems is to go to Settings > Battery > "Touch the graphic", and see if the "Awake" blue bar is consistently or intermittently on. It should be equal to the screen blue bar and once in a while while the screen is off.
  • Also, check in Settings > Battery if you can detect an application consuming too much battery. Uninstall it and contact the developer if it is consistently on the top of that list, when it rarely used, for instance..
Build Instructions (Adapted from KonstaT's CM10.1 instructions)
  • Follow instructions on initializing a build environment up to a point of downloading the source code.
  • Initialize CyanogenMod 9 repo.
    repo init -u git://github.com/CyanogenMod/android.git -b ics
  • Create a file local_manifest.xml in .repo/local_manifests/ folder with the following content
    <?xml version="1.0" encoding="UTF-8"?>
    <manifest>
        <project name="joaoventura/android_device_zte_blade" path="device/zte/blade" revision="ics" />
        <project name="joaoventura/proprietary_vendor_zte_blade" path="vendor/zte/blade" revision="ics" />
        <project name="joaoventura/zte-kernel-msm7x27" path="kernel/zte/zte-kernel-msm7x27" revision="ics" />
        <project name="joaoventura/EcoWallpapers" path="packages/apps/EcoWallpapers" revision="master" />
        <project name="grigorig/android_packages_apps_Effem" path="packages/apps/Effem" revision="master" />
    </manifest>
    
  • Get CM9 source code
    repo sync -d -j16
  • Update Terminal Emulator (just once in a while)
    cd path-to/CM9_WORK_DIR/vendor/cm/
    ./get-prebuilts
    
  • Change your CM9 base folder in the apply_patches script. Open path-to/CM9_WORK_DIR/device/zte/blade/patches/apply_patches.sh with a text editor and change the following line to your path-to/CM9_WORK_DIR/
    # Set here the base location of your cyanogenmod files
    BASE_PATH=~/android/cm9
    
  • Apply the patches which fixes some of the CM9 problems for our ZTE Blade. Every time you resync (step 4), you will have to reapply the patches.
    cd path-to/CM9_WORK_DIR/
    device/zte/blade/patches/apply_patches.sh
    
  • Compile the ROM
    cd path-to/CM9_WORK_DIR/
    . build/envsetup.sh && lunch cm_blade-userdebug
    make bacon -j8
    

Edited by jventura, 21 May 2013 - 09:12 AM.

  • 7

#4
rena14

rena14

    Newbie

  • Members
  • Pip
  • 9 posts
  • Gender:Male
  • Location:Argentina
  • Interests:Emm... badword everything!
  • Devices:Huawei Ascend G300
  • Twitter:@hfjff
I have a problem man with all CM9 I've tested
The thing it's that qhen I'm using an app and I close it the launcher (ProLauncher, Go Launcher EX, ADW Launcher, etc) the launcher has to load again and it's annoying to have to wait until it loads
any solution?

TiP: I have a ZTE Libra

  • 0
Currently working on 2 ROMs for Ascend G300

LG UI and TouchWizz :D


Stay Tuned! You'll like it!

Current Device: Huawei Ascend G300

Older Devices: LG Optimus ME P-350 (So f*ckin' bad :D) ////// ZTE Libra (Got robbed :'( )

#5
jventura

jventura

    Diehard

  • Members
  • PipPipPipPip
  • 454 posts
  • Gender:Male
  • Location:Portugal
  • Devices:ZTE Blade

I have a problem man with all CM9 I've tested
The thing it's that qhen I'm using an app and I close it the launcher (ProLauncher, Go Launcher EX, ADW Launcher, etc) the launcher has to load again and it's annoying to have to wait until it loads
any solution?

TiP: I have a ZTE Libra


Sorry, am not aware of anything about it. I use Trebuchet, the stock Launcher..

  • 0

#6
Mtman1

Mtman1

    Addict

  • Members
  • PipPipPipPipPip
  • 686 posts
  • Gender:Male
  • Devices:Liquid MT
So what doesn't work in your rom? Does it have the same problems as cfx ?

Anyway, I use rootdim to turn the brightness down to a minimum so that I get better battery.

  • 0

#7
jventura

jventura

    Diehard

  • Members
  • PipPipPipPip
  • 454 posts
  • Gender:Male
  • Location:Portugal
  • Devices:ZTE Blade

So what doesn't work in your rom? Does it have the same problems as cfx ?

Anyway, I use rootdim to turn the brightness down to a minimum so that I get better battery.


Yes, it does have the same problems as CFX, regarding the Youtube and camera thing. I'll update the info, thanks! Didn't knew about rootdim, will check that one out..

  • 0

#8
sej7278

sej7278

    Hardcore

  • Members
  • PipPipPipPipPipPip
  • 1,647 posts
  • Gender:Male
  • Devices:ZTE Blade

Use the automatic brightness feature. I've tested it alot, and without it, you cannot notice the differences in ambient light, and you can save a lot of power.


tom_g has said a few times not to use auto brightness as the sensor is constantly on and draining battery (same as rotation) not sure what the alternative is though - set brightness to dim by default and use power widget to brighten it when you need to i guess....

i'd also say if you can do without the "smart" features, turn off as much syncing as possible - facebook is especially bad at not going to sleep.

  • 3

#9
ufizo

ufizo

    Enthusiast

  • Members
  • PipPipPip
  • 222 posts
  • Gender:Male
  • Location:Roorkee, India
  • Devices:DELL XCD35
  • Twitter:@ufiz0
+1 for the TIPs and suggestions.
I will check if turning off auto rotation saves me some juice.

  • 0

#10
ufizo

ufizo

    Enthusiast

  • Members
  • PipPipPip
  • 222 posts
  • Gender:Male
  • Location:Roorkee, India
  • Devices:DELL XCD35
  • Twitter:@ufiz0

tom_g has said a few times not to use auto brightness as the sensor is constantly on and draining battery (same as rotation) not sure what the alternative is though - set brightness to dim by default and use power widget to brighten it when you need to i guess....

i'd also say if you can do without the "smart" features, turn off as much syncing as possible - facebook is especially bad at not going to sleep.


Agreed.
In my experience using manual brightness (and not necessarily the most dim level) gives more battery than with automatic brightness.

  • 0

#11
gunapriyan

gunapriyan

    Enthusiast

  • Members
  • PipPipPip
  • 219 posts
  • Gender:Male
  • Devices:ZTE Blade
Screenshots please....

  • 0

#12
sej7278

sej7278

    Hardcore

  • Members
  • PipPipPipPipPipPip
  • 1,647 posts
  • Gender:Male
  • Devices:ZTE Blade
how do you manually rotate an app without auto-rotation?

  • 0

#13
mickey megabyte

mickey megabyte

    Regular

  • Members
  • PipPip
  • 115 posts
  • Gender:Male
  • Devices:blade

how do you manually rotate an app without auto-rotation?


you manually turn on auto-rotation when you need it?

  • 0
Posted Image

#14
jventura

jventura

    Diehard

  • Members
  • PipPipPipPip
  • 454 posts
  • Gender:Male
  • Location:Portugal
  • Devices:ZTE Blade

how do you manually rotate an app without auto-rotation?


I've added the auto-rotation button to the notification-bar's power widget. It is the one in the middle, and I only use it when I need it (see pic bellow)..
I will compare using light sensor with the no-light-sensor during some days to see if I can get to a conclusion. :)

Attached Files


  • 0

#15
Pafinho

Pafinho

    Regular

  • Members
  • PipPip
  • 90 posts
  • Gender:Male
  • Location:Lisbon, Portugal
  • Devices:ZTE Skate Acqua (TMN A15)
Really nice ROM. Testing to see how does the battery does.

Abraço
Pedro

Edited by Pafinho, 04 July 2012 - 01:28 PM.

  • 0
TMN/Sapo A5 @Ginger Stir Fry

#16
jventura

jventura

    Diehard

  • Members
  • PipPipPipPip
  • 454 posts
  • Gender:Male
  • Location:Portugal
  • Devices:ZTE Blade

Screenshots please....


This is stock CM9 with some patches (oriented towards battery efficiency), and some ideas for sparing the rest of the battery, so, it does not look different of another ICS for the blade, like KonstaTs builds and Coldfusion.. Maybe I can add prettier "greener" wallpapers in the future, and then I'll add some screenshots to the first post. But for now, it looks visually the same as the other ROMs.. :)

  • 0

#17
sej7278

sej7278

    Hardcore

  • Members
  • PipPipPipPipPipPip
  • 1,647 posts
  • Gender:Male
  • Devices:ZTE Blade

you manually turn on auto-rotation when you need it?


its a bit naff though isn't it?

  • 0

#18
De@n

De@n

    Addict

  • Members
  • PipPipPipPipPip
  • 556 posts
  • Gender:Male
  • Location:UK
  • Devices:Xperia S & Blade

I have a problem man with all CM9 I've tested
The thing it's that qhen I'm using an app and I close it the launcher (ProLauncher, Go Launcher EX, ADW Launcher, etc) the launcher has to load again and it's annoying to have to wait until it loads
any solution?

TiP: I have a ZTE Libra

You tried locking launcher in memory?

  • 0

#19
vNa5h

vNa5h

    Addict

  • Members
  • PipPipPipPipPip
  • 774 posts
  • Gender:Male
  • Location:India
  • Devices:Dell XCD35 (ZTE Blade)
Yet another ICS ROM

too many choices spoil me

  • 0

Dell XCD35 a.k.a ZTE Blade a.k.a Orange San Fransisco

Powered by

CM10.1 KonstaKANG, Soundmagic PL11 earphones, Samsung class 6 16GB



Apps installed

TV Shows / Movies .....I have watched....


#20
Pafinho

Pafinho

    Regular

  • Members
  • PipPip
  • 90 posts
  • Gender:Male
  • Location:Lisbon, Portugal
  • Devices:ZTE Skate Acqua (TMN A15)
Found a small problem. YouTube force close for me...

Abraço
Pedro

  • 0
TMN/Sapo A5 @Ginger Stir Fry




2 user(s) are reading this topic

0 members, 2 guests, 0 anonymous users