yashsingh1/xdaforums huggingface dataset:
[G2 and Desire Z Android Development] hlx187:
Battery problem

Hey guys,

since I've flashed the newest kernel (kernel only) I got a miassive battery problem.

When I went to sleep last evening I turned off WiFi, GPS and Data.

As I was awake this morning I only got 3% of battery left.

Yesterday evening I had 96%.

I also got the same problem while I was using my Z yesterday. From 9:30 to 15:30 I also lost ~75%..

CAn someone help me?

I've already wiped cache and dalvik.

thanks a lot!
[G2 and Desire Z Android Development] kbeezie:
Kernel onto which rom? Any change to battery stats?
[G2 and Desire Z Android Development] Rozza C:
So I decided to take the plunge and give DataSwap a go....

If anything breaks...I'm holding you all responsible...

...just kidding...
[G2 and Desire Z Android Development] kbeezie:
Mwahahahahahaha
[G2 and Desire Z Android Development] hlx187:
I'm using EliteMod ICS 120627

I've wiped the battery stats... no good idea?

What to do now?

Thanks!
[G2 and Desire Z Android Development] kbeezie:
Well prior to wiping battery stats did you least have a look at System Settings -> Battery -> Usage Graphs and take a screenshot of both the main one and second graph (when you tap not the first) to least see what kind of processes were taking what % of battery?
[G2 and Desire Z Android Development] rirozizo:
but adb over wifi will break in recovery right? or will it magically stay on during recovery?

———————————————————

i didn't mean to mock you or to offend you in any kind of way
[G2 and Desire Z Android Development] kbeezie:
Won't work in recovery unless you know how to do configure adbd first (which course... would require getting in to begin with :D), I don't know much bout using adb over network via the ROM.
[G2 and Desire Z Android Development] rirozizo:
bah! i'll just plug it in :banghead:

EDIT: i did the commands given in the previous page by Nik3r...

when i rebooted after moving things back to /data/app/ the phone got stuck in the bootanimation (no bootloop, just... freezing in the animation)

what should i do now? i don't wanna go back to CM7

EDIT2: i found out that when i removed sdext, the folder /data/app-ext got removed too.... so all my apps are gone (DAMN! back to titanium) now i'm reflashing the rom to see if everything will settle and, at least, boot :D

EDIT3: well this is bad... now i'm back to CM7 (which is fine by me.... as long as i'm using a ROM made by a great dev like u :D ) but i really wanted ICS... too bad it's not working with an 8GB sdcard :(

———————————————————

i didn't mean to mock you or to offend you in any kind of way
[G2 and Desire Z Android Development] nik3r:
What? The apps still got wiped after reboot even with the last kernel?

Makes no sense, I'm running backups so I'll take a look later today.

BTW: the battery life is awesome now, 15h 14m - 66% left (61% projected) and I was running an app with almost permanent wakelock and network access all night long. Best thing is, there is still room for improvement, smartass is now very relaxed :D
[G2 and Desire Z Android Development] rirozizo:
i'm on CM7 now... enjoying sdext free rom, cyanogenmod speed and customizations, as well as epic sense theme...

not that laggy **** you call ICS (i'm kidding... no really... i'm KIDDING)
[G2 and Desire Z Android Development] Kueber:
Second.

Battery life is really awesome now :D .. 72% after 5h40m but 2h display time on.

On .27 the battery lasted around 3h screen on time .. similar usage. (Auto brightness, Wifi on, 240-1400mhz smartassv2, instant messaging apps, etc.. don't really care about any powersaving features - got two 1800mAh mugen batteries, was never really able to drain them both in one day)
[G2 and Desire Z Android Development] nik3r:
I confirm that ROM without sd-ext no longer deletes all your apps on reboot when using the last kernel. And I still wonder why did it took over a month to get reported :D
[G2 and Desire Z Android Development] kbeezie:
Seems like most of us are using sd-ext.
[G2 and Desire Z Android Development] demkantor:
ever since my g1 I could never live without it!
[G2 and Desire Z Android Development] rirozizo:
-.-

———————————————————

i didn't mean to mock you or to offend you in any kind of way
[G2 and Desire Z Android Development] robuser007:
Why should I ever use sd-ext on the desire Z (on the G1 it was handy) ?

Sd-ext slows down the speed of apps (compared to the internal rom).
[G2 and Desire Z Android Development] demkantor:
yes and no... I have not yet seen any real life difference, when apps + data are on my class 10 sdext4 partition compared with in system memory.

in my fat32 partition when apps are stored here it is a bit slower loading, but haven't stored apps there since 2009
[G2 and Desire Z Android Development] nik3r:
Not if you only offload the *.apk.

Usually sd-ext means moving the /data/data and /data/dalvik-cache as well, that is not the case in EliteMod.

In my case sd-ext actually speeds up loading of apps, because during startup the dalvik cache and app settings are on different physical medium than the app, effectively splitting the peak load in half.

And as a bonus you get extra space, the 1gig is just too little when some apps on market can take 50MB+ and I have 250 :D

Moving them to SD the old way (settings-apps) is much slower in comparasm and without sd-ext you probably have a bunch of apps on the fat32 partition in encrypted form. What do you think is faster, decrypting 50MB apk from vold managed fat32 partition or reading raw file from linux native ext4 filesystem?

Your performance point is completely unfounded in this case ;)
[G2 and Desire Z Android Development] demkantor:
and in many cases, but yes thanks for a better explanation on why we should be using an ext partition in your roms, if not also on others
[G2 and Desire Z Android Development] nik3r:
New version

Oh well, I hate the new Google Music more than I hated the last version.. damn media scanner *sob* .. but it works and free Winamp sucks too so it's time to...

EliteMod 120706 is released

to match todays kernel...

Not many changes but it's better for new users when everything works out of the box. Plus I am going to full-wipe right now, it's like 5 versions overdue :D

120706

- fixed app persistence without using sd-ext (kernel 120706)

- opera tweaked a bit again

- updated vending and gMusic to jelly bean

- updated all apks to todays versions

- improved new user experience (mainly default keyboard language to US, enabled weather widgets)

- enabled scrolling cache by default

Enjoy
[G2 and Desire Z Android Development] kbeezie:
^ This lol, I noticed that as well when I looked at the mounts. The only thing offloaded are the apps themselves, but some mods tend to also move the caches to SD card rather than keeping them on internal storage, which would obviously be slower.

A good speed card will read the app into memory and the cache on local would handle the rest, so initial load time is technically the only thing slower off the internal storage which is hardly noticeable. Caching on the other hand would be noticeable.

Also the same reason for using DataSwap vs SD-Swap.

---------- Post added at 03:21 PM ---------- Previous post was at 03:18 PM ----------

By the way if I flash the new kernel without a full wipe, do I just simply not get these two changes?

I just use SwiftKeys3 for my keyboard (and the default language is easily changed already anwyays).
[G2 and Desire Z Android Development] nik3r:
These are obviously just changes in default settings. Without wipe the ROM can't change your settings so it's !'ed, because you don't get those changes technically :)

You can just set them yourself if you're updating.
[G2 and Desire Z Android Development] kbeezie:
Antutu Benchmark with Latest Kernel/Rom in case anyone is curious:

PS: My current undervolting values are not stable above 1286Mhz just as an FYI (seems with benchmarks people wana crank it up lol).

---------- Post added at 05:10 PM ---------- Previous post was at 04:27 PM ----------

By the way I like the new JB style of Google Music compared to the ICS version.
[G2 and Desire Z Android Development] Rozza C:
I decided to run the benchmark at 1900mhz performance.

I don't think I have ever been so concerned about my phone.

By the end of the testing.... The temperature had shot up to over 49 degrees.

In my panic, I jumped up and sat it on of an ice pack to cool it off.

All is well now, but I probably won't be doing that again without any ice pack close by.

--EDIT--

Oh yeah... Here's the screen shot with the score...

Sent from somewhere you're not....
[G2 and Desire Z Android Development] nik3r:
I got this the first time I tried, perhaps some rogue app is slowing yours down? :D

BTW: 41 degrees after the run
[G2 and Desire Z Android Development] Rozza C:
Whaaaat?

This upsets me. :(

Will have to see.

Sent while bungee jumping off a bridge....
[G2 and Desire Z Android Development] martinpescatore:
Profiles

Hi,

testing this ROM after having used Andromadus and Cyanogen9 for a while.

I can't seem to find anywhere Profile Settings.

are they included in this rom? if so where? if not is it easy to add them?

thanks in advance
[G2 and Desire Z Android Development] kbeezie:
Profiles as in ?
[G2 and Desire Z Android Development] martinpescatore:
As in changing settings, like home profile, outdoor profile...
[G2 and Desire Z Android Development] kbeezie:
They don't exist in the AOKP builds I've seen (the only thing Cyanogenmod about this rom that I know of is the kernel, rest taken from AOKP). I usually had more issues with them than benefits when I was using CM7 and CM9beta (especially with overriding defaults where I didn't want them to).

Much like how you won't see a zRam option in there either.
[G2 and Desire Z Android Development] rirozizo:
it feels lonely back in EliteCM7 :(

any updates there? i know ur busy here, but show some love to GB... add those things you plan to add

———————————————————

i didn't mean to mock you or to offend you in any kind of way
[G2 and Desire Z Android Development] kbeezie:
I think as he once said earlier in this thread because he is no longer using EliteCM7 on his own phone there wouldn't be anymore progress there, unless I guess there was some kind of horrible bug, but you can't expect him to maintain both when he's moved onto the ICS version for himself personally. It's not like he's getting paid to do the custom roms and I'm sure he has a job too :P

Edit: Here it is from near the end of the Cm7 thread.

http://xdaforums.com/showpost.php?p=27802713&postcount=861
[G2 and Desire Z Android Development] Stevennnn:
I have no sd ext but that bug never happened to me. So i think the report speed has something to do with the amount of people suffering from the bug
[G2 and Desire Z Android Development] jspina:
haha lol. well I saw that happen a bit ago when I was running it but I was switching between aokp, cm9 and mimicry without wipes so I wasnt too sure if it was a problem from that ( and I dont reboot often unless i switch a rom). But that is interesting....

Thanks for all the work!
[G2 and Desire Z Android Development] Rozza C:
Snip.....I'm always late to the party. -_-
[G2 and Desire Z Android Development] the_faith01:
My google play disappeared when I updated.

How do I get it back?

And anyone know how to fix the GPS problem?
[G2 and Desire Z Android Development] rirozizo:
GPS fix:

http://xdaforums.com/showthread.php?t=1028405

and

http://xdaforums.com/showthread.php?t=1472870

i'm applying both for awesomely quick fix

as for the play store... maybe reflashing? or wiping then reflashing? or superwiping then reflashing?
[G2 and Desire Z Android Development] nik3r:
Maybe you updated the play store manually? It is possible you have 2 copies with conflicting signatures - your older update in userspace and my newer jelly bean version in system and they clash.

If that is the case, make sure you delete the Play Store apk file from /data/app and reboot, that should fix it.
[G2 and Desire Z Android Development] Kueber:
Getting some strange keyboard behaviour lately.. but it's very subtle and especially happening when the phone was in sleep mode some time.

I type kinda fast and usually precise enough to manage not to make mistakes in every sentence.. but since the last kernel update it's strange.

For example ":" does not work all the time, often it ignores pressing that button completely and assigns that "shift" to the next character. Or "space bar" is activated twice at times. The character "u" is sometimes not working when typing fast enough.

It's not really a problem, but a little report on that won't harm, I guess :p
[G2 and Desire Z Android Development] nik3r:
I used to have similar problems, the spacebar would get pressed twice fast almost always unless I held pressed its left half, fn/shift was getting switched for no apparent reason.

Turned out something sticky got through the cracks around keys. I turned it off, used a wet sponge on the keyboard so that just enough water got inside, let it dry in a warm place and after I turned it on everything was working like new ever since. There was nothing apparently dirty on the keyboard though, only indication was the odd behavior.

Not sure if this is your case though :D
[G2 and Desire Z Android Development] Kueber:
That would be an interesting coincidence :D

If that issue won't disappear after some future software changes I'll try that, thanks.
[G2 and Desire Z Android Development] parkave85:
Sorry if this has been addressed somewhere else on xda but I've searched google and xda and still dunno how to do it so... how do I get my g2 to have usb host capabilities and how do I use it?? I have the commands saved in userinit.sh in data/local/ & rebooted. Now what??
[G2 and Desire Z Android Development] nik3r:
Well I guess if you insmod

usbmon.ko

usbcore.ko

usbhid.ko

usbkbd.ko

and connect an USB device, something should happen provided the device has external power source (or can live on 5mA supplied by phone). I don't mean like an app getting started but rather something might appear in /mnt ? Really no idea I dont have any means to test it. Your best bet is to activate the modules, connect whatever you want to try and watch logcat all the time, there may be some indication of what is going on upon connection.
[G2 and Desire Z Android Development] nik3r:
I have already scheduled this for the next ROM version. You should also know that installing my kernel package does EFS wipe as the last step since CM7, so I guess you are getting EFS wipes quite regularly ;)
[G2 and Desire Z Android Development] nik3r:
Probably the same file, I pulled it from his official efs_wipe flashable package.

Well the post says the servers should work worldwide, I see no harm in flashing it. And the certificate deletion is probable to bypass SSL transfers to speed it up.

Oh and you can't force apps to be installed to sd-ext unfortnatelly. You can do that when restoring titanium backup, but not in market. The only way is to install apps with SDcard unmounted in settings or move it after installation, no way to automate it that I know of.

And as I understand it, /tmp is actually a ramdisk or similar non-persistent storage, right? :D
[G2 and Desire Z Android Development] kbeezie:
Not sure how it is on android systems, for example on OSX /tmp is an actual mount (symlinked to /private/tmp) which isn't a devfs type, /tmp appears the same on a CentOS 5.5 server I run and is not mounted as a tmpfs (like /dev/shm would be).

On Android (your rom) booted up, /tmp isn't shown at all and the only three tmpfs mounts are /dev /mnt/asec and /mnt/obb.

On Recovery, if I boot right into it /tmp contains:

/tmp # ls -lah
drwxr-xr-x 4 root root 0 Jul 7 2012 .
drwxr-xr-x 21 root root 0 Jul 7 2012 ..
-rw-rw-rw- 1 root root 12 Jul 7 2012 4ext_version
-rw-rw-rw- 1 root root 36 Jul 7 2012 4ext_version.prop
drwxrwxrwx 5 root root 0 Jul 7 2012 ext
-rw-rw-rw- 1 root root 5.1K Jul 7 14:31 recovery.log
-rw-rw-rw- 1 root root 176 Jul 7 2012 sd_fstypes
drwxrwxrwx 2 root root 0 Jul 7 2012 usr
/tmp # df -hm
Filesystem Size Used Available Use% Mounted on
tmpfs 184.1M 32.0K 184.1M 0% /dev
/dev/block/mmcblk0p27
295.3M 4.7M 290.5M 2% /cache

So while it doesn't appear to be mounted as a tmpfs or symlinked to one, I'm guessing some recoveries (such as 4EXT in this case) actually flushes it's own tmp upon reboot or upon initialization, either way I guess whatever you put in there won't be there upon next boot (just don't know how it works).
[G2 and Desire Z Android Development] rirozizo:
@Kbeezie, man, you need to stop copy pasting... your posts are getting bigger and bigger :P

———————————————————

i didn't mean to mock you or to offend you in any kind of way
[G2 and Desire Z Android Development] kbeezie:
Um what? Only bigger because code tags are being used... don't see the point of the complaint.
[G2 and Desire Z Android Development] demkantor:
code takes dont work with mobile app so i assume this is where the complaint is

but no worries, keep it up, this is a great learning resource and the complaint is in jest im sure :P
[G2 and Desire Z Android Development] kbeezie:
Though if that's the major concern, last time I checked you can disable various things like UBB codes etc in the XDA or even tapatalk app.
[G2 and Desire Z Android Development] rirozizo:
well the "code" tag doesn't show up on Tapatalk, it just shows up as a normal text, and i'm not complaining (notice the ":P" at the end of my post) :) oh yeah, and... KEEP IT UP! :D really, i'm learning so much from Kbeezie and Nik3r

———————————————————

i didn't mean to mock you or to offend you in any kind of way
[G2 and Desire Z Android Development] demkantor:
true, under setting in the xda premium app there is a box to check. dont know if its a problem with the xda app or with tapatalk but it never works, always comes out as normal text - try it out, maybe im missing something obvious and am just putting up with it for all this time for no reason
[G2 and Desire Z Android Development] Dragoth:
Can Themes or Launchers cause slowdowns?

I have always used the matted blues theme with go launcher ex but kind of feel, that they might be slowing down the system. :confused:

Are you guys all using the preinstalled Apex? Any themes installed?
[G2 and Desire Z Android Development] kbeezie:
I'm using Apex that comes with the rom, and the theme that comes with the rom, other launchers of course may cause sluggishness feel to it, but having something like dataswap can help improve that some.

Any 'add-on's can cause slowdowns, kind of one of the reasons he didn't pre-include something like google talk and google gallery.
[G2 and Desire Z Android Development] bhargrove06:
Hit the menu button manage themes you can get themes there.
[G2 and Desire Z Android Development] robuser007:
Should I flash supercharger v6 ? (I have aokp and your latest kernel).
[G2 and Desire Z Android Development] jspina:
I flashed your kernel and it wouldnt boot up past the splash screen for audacity beta 4. :(

Does this kernel only work for aokp?
[G2 and Desire Z Android Development] Stevennnn:
The kernel should work for any non-sense ICS ROM, so I think audacity should work..

(I had aokp build 38 with this kernel and it worked)

Have you tried restoring a nandroid backup (To solve your problem for now)
[G2 and Desire Z Android Development] jspina:
yes I am back to my backup for now. thanks.

Yeah I saw that next to the kernel download so I am unsure. I guess I could check the md5 sum of the file later, but everything seemed to flash ok. Oh well. I will eventually try this rom. It sounds fast!

thanks for your continuous work on this nikr!
[G2 and Desire Z Android Development] firetiger:
flashed this kernel over miuiv4 brushed and also stuck at while htc bootlogo. probably only working for aokp...
[G2 and Desire Z Android Development] Rozza C:
I must be a noob, but...

Doing /data /cache /sd-ext wipe is not enough to start clean with this ROM, you must re-flash after wiping /data partition

That doesn't seem to make sense to me. Are you saying that this needs to be flashed TWICE in order to properly work?
[G2 and Desire Z Android Development] btrst:
format system too. i alway format system before flashing a new rom.
[G2 and Desire Z Android Development] Rozza C:
Well, I always run SuperWipe before flashing a new ROM...

So I'll do that and then come back to you if it breaks...
[G2 and Desire Z Android Development] ted presley:
A great ICS rom so far. I have no trouble until now (10 hours using). But you are right, the touch pad is way too sensitive :)
[G2 and Desire Z Android Development] DRSdroid:
His prior version of the kernel only worked on AOKP or CM9b(unofficial), it never seemed to work on and Andromadus versions (the beta releases or the nightly releases)
[G2 and Desire Z Android Development] Rozza C:
Does the Music app have a built in bass booster?

The bass is a whole lot more apparent to the point where it distorts the song a little sometimes.

---EDIT---

Never mind...the DSP settings under the "Speaker" tab were the problem...
[G2 and Desire Z Android Development] nik3r:
The setting is in Language & Input, very bottom :) Set the trackpad sensitivity to 3/4 and works like a champ.

As for the kernel, it's tested and optimized only for AOKP and CM9.

And ignore the re-flashing bit, I will have to rephrase that, it's only relevant if you want to "factory reset" the ROM. Not when installing it.

Sent from my Desire Z powered by EliteMod

EDIT: Rephrased the reflashing bit for better clarity and added compatibility info to the kernel. Sorry about that I'm not used to people actually reading this stuff :D

BTW: You can see the changes for upcoming version in the changelog, right now I'm tweaking the memory management to free more but be more relaxed, not an easy task I tell you.
[G2 and Desire Z Android Development] Rozza C:
I have to say.

After using this ROM for a few hours....its pretty damn awesome...

Sent using smoke signals...
[G2 and Desire Z Android Development] jspina:
Thanks, I appreciate it!

Yeah, it seems as if only a few people have the g2 and all seem to be great people that read the threads well.
[G2 and Desire Z Android Development] johrie:
Is there any chance USBHost mode could be included in the kernel? That would be sweet :)
[G2 and Desire Z Android Development] nik3r:
Can you point out what exactly needs to be enabled in the kernel? Actually if you have a build environment, you can compile it yourself from my git, it should now be synced to 120609. I have seen something related to USB host but I don't want to just add useless bloat that nobody uses.

BTW: The kernel has NTFS support enabled, did anyone try if it works? :)
[G2 and Desire Z Android Development] DRSdroid:
When you have the time you should update the OP highlighting all of the features and tweaks your kernel has..

I don't know how you do it, but this is the best dam ICS version i've used yet. Fast, Responsive, and in the last 9 hours i've only used 15% battery.. and thats with numerous texts, 2 phone calls, and some general use and web surfing. Also running a LWP and clocked at 1.28ghz.

My only issue is some random UI lag out of nowhere and the gps lock taking 15-20 minutes. Anyone else having this problem?
[G2 and Desire Z Android Development] nik3r:
The improved memory management should reduce this a little, but it's normal. Especially installing or uninstalling apps can lag like hell for a while, this was the same on CM7 but not so prominent.

And I just broke the 4800points barrier on antutu :D
[G2 and Desire Z Android Development] johrie:
Well as i am a rookie in developing, i dont know anything about kernels :p

I have tried it but it wont work.
[G2 and Desire Z Android Development] DRSdroid:
So am I the only one with the gps lock problem on this rom?
[G2 and Desire Z Android Development] EdKeys:
This might help:

http://xdaforums.com/showthread.php?t=1632482
[G2 and Desire Z Android Development] kbeezie:
Up to your needs, I don't use anything other than SetCPU Profiles, DataSwap and the start up tweaks in the settings.

Don't know if SuperCharge does anything he already does in his kernel.