yashsingh1/xdaforums huggingface dataset:
[LG Optimus 4X HD] Flying_Bear:
Are u using ararangi kernel perhaps?
[LG Optimus 4X HD] happyminti:
Yes.
[LG Optimus 4X HD] Flying_Bear:
well, he "nuked" the wakelock in his kernel. totaly deleted it, so you don't get any reports, but it seems the battery drain is same, atleast according to him.
[LG Optimus 4X HD] xtribas:
yes, i have tested it... the drain is there
[LG Optimus 4X HD] arararagi:
Can you try the attached kernel?

Once you boot up, go on adb and run this

cat /proc/kmsg >/sdcard/kmsg.txt &

You can close adb and do stuff as usual, let it sleep, etc.

When you're done, take BBS screenshots as usual and also upload kmsg.txt (I disabled the touch event logging, so there shouldn't be any sensitive information in there. Zip first if it is big.).

I added a kernel stack trace every time the baseband_xmm_power wakelock gets touched, so we can get a better idea of what's causing the code to keep getting called.
[LG Optimus 4X HD] xtribas:
sure, will download and flash it right away

--

just one doubt, what should i do with the file baseband-xmm-power.c

done, now we just have to wait, an hour should be enough, right?
[LG Optimus 4X HD] arararagi:
Yep. Also you'll probably want to zip the kmsg.txt since it'll get to a few MB pretty fast.
[LG Optimus 4X HD] xtribas:
Done.

The first 15 minutes of wakelock is the MediaScaner service after the reboot, surprisingly the baseband wakelock is a bit low, usually is higher, it´s totally random...i just dont get it!

I could not let it sleep all the time, cause i receive a phone call and a couple of SMS messages.

I hope this helps
[LG Optimus 4X HD] brunek:
http://xdaforums.com/showthread.php?p=41309776#post41309776

This kernel is suposed to resolve baseband problem..Anyone tryed?
[LG Optimus 4X HD] xtribas:
it has the same fix as the arararagi kernel

i did not tried it yet
[LG Optimus 4X HD] Bogeyof:
Yepp, I tried since yeserday. Indeed, the wakelock doesnt appear in BetterBatteryStats, but this is even not possible, cause he skip the wakelock and so it cant be seen. I have a relative good DeepSleep (between 80% with all Sync/3G/Push-Apps on and 98% in Flightmode). The battery drain is ok, over night in flightmode in 7 hours I lost 1%, with mobile data and sync and push about 2-3% per hour. All in all, it seems better than all the other I tested the last days, btw. the kernel is very fast and seems stable.

Give yourself a test, but seems better as before...
[LG Optimus 4X HD] brunek:
So it seams to just have hidden the wakelock not solved it completely?

Last night it put my phone in airplaine mode(for the first time ever) and no baseband wakelock..But when it is in airplaine mode its like shut off,so thats not the best option..
[LG Optimus 4X HD] Bogeyof:
Yes and No... I had massive drain in flightmode the last 5-7 nights, between 30% and 60%, caused by this wakelock. Tonight with 1% it was like before I had this wakelock. I got this wakelock after being about 3-4 weeks on JB from one day to another. Before in V20a, there was nothing and I couldnt remember if I changed something. I did all tests, freezed/uninstalled new apps, restored nandroid backups and so on, but now I have this issue with this damned wakelock.

With the new kernel its the first time,that its better again. But duration of test (1 day) is to short for good advice. I think, its worth a test!!!
[LG Optimus 4X HD] arararagi:
So it seems like this flight mode drain is a different problem from the problem xtribas is having. And the hack of disabling the wakelock does "fix" this problem.

I'd still be interested in seeing the kernel log from that testing kernel I posted on the last page, so I can find where the bug that causes the wakelock to stay held in flight mode is.

I'll have a look at xtriba's log in a bit.
[LG Optimus 4X HD] xtribas:
i have the wakelock in airplane too
[LG Optimus 4X HD] oldman1881:
i found it is on and off, some time is ok,only 10-20% of time in weaklock, but some time is 80% in weaklock, it will be a big issue.

I do like to roll back to 4.0.3, any official way to roll back?:crying:
[LG Optimus 4X HD] Bogeyof:
Did u ever test the PH85 kernel or are u on CM10.1? Second night with only 1% drain after 7 hours in flightmode, even with mobile data and all Sync/Push/Weatherupdates enabled, I have about 2% per hour. If I dont use the phone, DeepSleep is allways over 85%. It seems as a solution for me now, but have to test longer to be sure...
[LG Optimus 4X HD] jonnya70:
I personally found that the baseband wakelock issue is fixed on Aarangi's kernel but isn't fixed on WerewolfJB's kernel

Having tried both
[LG Optimus 4X HD] xtribas:
im on CM 10.1, reverting to stock is not an option
[LG Optimus 4X HD] reisAgainst:
CM 10.1 same problem. It´s very frustrating. :(
[LG Optimus 4X HD] Kettlebär:
Try another Kernel.

Gesendet von meinem LG-P880 mit Tapatalk 2
[LG Optimus 4X HD] tiflao:
For me werewolf kernel is the best.

Drain about 2% on 8 hours

Enviado desde mi LG-P880 usando Tapatalk 2
[LG Optimus 4X HD] suba_ri:
I have a problem with this wakelock on my LG P880, is there any solution that doesn't require rooting ? Maybe the guys in LG are working on some new update? I have software 20a already updated..
[LG Optimus 4X HD] astr_x:
So far there isn't a solution at all. Some custom kernel devs say they fixed it, but it seems the only thing they did was to make it invisible. You can have a look at the custom kernels, but they do not only require rooting but also an unlocked bootloader.

If LG is making another update maybe they fix it, but it's unlikely that there will be another update in the near future. LG update politics isn't the best there is.
[LG Optimus 4X HD] gabrielgon:
This sucks!

I have this issue randomly! Some nights I get very little wakes from it having a 3% drop without 3G/Wifi, others I have 20% drop not connected or even on airplane mode.

This is really ridiculous as I can trust the phone.

Sometimes the wakelock comes on and doesn`t go away, others it stays on for 2 hours and shuts down. Really a mystery.

Stock rooted V20A.
[LG Optimus 4X HD] Monskiller:
Since I flashed Idoak kernel for JB and set governor to interactive, my battery has improved quite a bit. Goes in deep sleep right away, I've left my phone on overnight and had 90% Deep Sleep, 8% battery drain.

Sent from my LG-P880
[LG Optimus 4X HD] raviboy100:
The wakelock is related to 3g mobile data since if u disable data a whole day your phone runs for 2 days no problem
[LG Optimus 4X HD] suba_ri:
I had that wakelock overnight when all data (wifi and 3g) was disabled. I lost about 30 % of battery
[LG Optimus 4X HD] someth1ng:
This is my baseband_xmm_power wakelock BBS stats - quite good, in my opinion.
[LG Optimus 4X HD] Flying_Bear:
[MENTION=5064727]arararagi[/MENTION], possible to fix? Good job!
[LG Optimus 4X HD] sPEADy:
Hello everyone this is my baseband usage after almost 40hrs of normal usage.

I'm on CM 10.1 Nightly 09 June 2013.

Impressive work CM Team.

Gesendet von meinem LG-P880 mit Tapatalk 2
[LG Optimus 4X HD] arararagi:
The commenting out technique from before worked fine. The wakelock was purely for providing information about the baseband's state. Since it's become the problem, we can just live without the information.

Not worth trying to work out nVidia/LG's spaghetti code to fix "properly".
[LG Optimus 4X HD] Flying_Bear:
ok so, your original fix is fix enough :D

thank you for the info!

gonna tag [MENTION=3443693]iodak[/MENTION] and [MENTION=4716493]laufersteppenwolf[/MENTION] just in case they don't see this, since it's valuable info
[LG Optimus 4X HD] arararagi:
EDIT: Disregard
[LG Optimus 4X HD] reisAgainst:
Yeah, since CM Version RC4 the baseband_wakelog-bug doesn´t exist anymore. The biggest consumption since RC4 over 8h was 3%. Compared to 30% before is this way better:good:
[LG Optimus 4X HD] someth1ng:
I'm pretty sure it was still there.
[LG Optimus 4X HD] mojojojomark:
Im not going to pretend I know half of the stuff said here but similiar thing driving me crazy. I seem to have similar drains to some of you, if i disable the cell radio *#*#4636#*#* > phone information > turn off radio i go from loosing 1-2% per hour to 1% every three+ hours so i assume Im having a similar issue to most.

I've only just installed BBS and have pretty much same results. Because I am a noob to this I started off with GSAM battery monitor and I thought it had something to do with the cell radio becuase that rocks 60-80% of the battery over night according to that, my friends samsung cell radio = less then 3%...?

I feel like returning this phone :(
[LG Optimus 4X HD] arararagi:
1-2% per hour is normal. This is the problem we're focused on:
[LG Optimus 4X HD] someth1ng:
I wouldn't say 1-2% is normal...
[LG Optimus 4X HD] mojojojomark:
I assume the phone radio on GSAM is high becuase of the baseband wakelock? if i start it in standby phone radio will be 90% when i wake the phone. BBS pretty much shows the same as others, didnt have time to test it out properly for a screenshot ..

Didn't the Samsung S3's have a similar issue with battery drainage in standby..but becuase of a typo in the power profile etc etc.

Also whats the different between 'c' and 'wc', does 'count' actually attribute to being pulled out of deep sleep, or 'wake count'? becuase if I add deep sleep time and baseband time together it adds upto more then my few second testing period. My phone seems to be sleeping fine even though this baseband issue? I have no idea what anything means
[LG Optimus 4X HD] someth1ng:
This is as good as I can get it.
[LG Optimus 4X HD] mojojojomark:
Looks like my issue is something else my baseband wc stays at 0 counts
[LG Optimus 4X HD] arararagi:
I'd say that's as good as anyone's gonna get.
[LG Optimus 4X HD] Flying_Bear:
Wish i had these stats :)
[LG Optimus 4X HD] tomkasz:
Here you have my naght and day+night screenshots. I have never used v20b and v20c. Only leaked v20a and official v20a. Now I use Werewolf's CM.
[LG Optimus 4X HD] Flying_Bear:
are you sure that's WW CM? i see you took SS with QuickMemo, and afaik only arararagi's CM has that ported over

other than that, that's incredible. i guess you dont have anything like facebook/twitter/weather auto-syncing over night? and data transfer disabled, right?
[LG Optimus 4X HD] tomkasz:
Yes, that SS's were taken during the tests of araragi's ROM. Now I use WW's and I'm testing it tonight. Sorry - my mistake ;)

I don't use facebook app, weather app also off. I put data off for the night. During this tests Sync was off. I used manual sync when needed. Day usage with GPS on for about 4h (but with screen off for most of this time).

EDIT: I wrote that to say that I have never experienced such an agressive baseband wakelock as almost everyone. Maybe it's important not to use v20b and/or v20c?
[LG Optimus 4X HD] Flying_Bear:
i've tried 20a leak, 20b leak, 20a official, 20b official and CM, all with various kernels (iodaks, ph's, WW, eprj, stock), and i had the agressive wakelock happen on almost all combinations, if i recall correctly :D
[LG Optimus 4X HD] tomkasz:
OK, I mean that this wakelock issue may be activated while using v20b and/or v20c versions that were not developed for Europe. I don't remember where but I've read in some threads that v20c has some differences in baseband from v20a. I don't know if it's true but I tried almost every single ROM based on CM and almost every single kernel that are present on this forum and in my case wakelock is always close to this value that you can see on SS's.
[LG Optimus 4X HD] UncleRipper:
I had also ~10 hours of screen off but some sms and mail an ~1:30 hours of wakelock...

about 30% of battery!!

:(:(:(:(:(:(:(

uff i hate so much this wakelock!!
[LG Optimus 4X HD] someth1ng:
Some tips

- manually set network

- WiFi is a huge drain in idle, even if deep sleeping - set it to disable while sleeping.

- manually set date and time.

- greenify apps you don't need push notifications (Facebook etc)

- set email services to update every few hours and disable auto download of attachments and photos etc

- disable GPS when not in use.

- adjust auto screen brightness (should start at 0%) and use very high sensitivity.

- use uninstall master and remove anything you don't need (I have 50 system apps) - I removed all forms of backup

- under volt and use trickster mod to have multi core savings on 2.

- interactive governor with cfq iosxheduler works well

- enable purging of assets, kernel same page merging, 16bit transparency and disable dithering.

- if you have any apps that can disable location access, didable them.

I'm on v20c global (I shared the link in the official firmwares thread).
[LG Optimus 4X HD] Arne_B:
The ones I have put in bold surely work very well for me, but I prefer to keep those settings default. So I tried other options to greatly reduce the baseband wakelock. Or at least prevent it from randomly going crazy.

What I also found to help keep the baseband wakelock calm down is:

- Enable airplane mode before shutting down, disable it again after the phone booted.

- After a call, reboot the phone.

- Update your Google Play Store to the latest or 4.1.10 version, it has some important battery saving fixes. It reduced this wakelock a little bit for me. http://phandroid.com/2013/05/29/google-play-store-4-1-10-update-download/

- Go to Accounts & Sync settings and go to all your Google accounts, disable Picasa Picture sharing for all the accounts. Delete the Gallery app data and reboot. I know this looks like to have nothing to do with network states or so. But I don't know why, but just right after I did this my baseband wakelock is only 0,6% and my phone does 85,6% deep sleep. I never had it this low before.
[LG Optimus 4X HD] someth1ng:
Not sure how useful it is but yeah.
[LG Optimus 4X HD] arararagi:
That Google code link has already been posted earlier in the thread and the line of code that was fixed isn't in our code in the first place
[LG Optimus 4X HD] Ferero Rocher:
atutchet unregenerate

Hi everyone,

I'm experiencing some problems with my phone and I think this topic could help me :)

For the first time I've flashed a Cyanogen Rom for my optimus, first time I've unlocked a bootloader and so, thanks to the all-in-one tool ;)

CM10.1 is just perfect :laugh: i like it so much but i'm facing huge battery drain.

I had no specific probleme on my previous rom (original JB V20A), jus couple of little drains caused by "core" Maps app.

But here is what I have on CM10.1.....wifi problems with the famous wlan_rx_wake

So this only happens at home when I'm connected to the wifi, if I deactivate it the problem is gone. I tried different things I've seen on XDA topics :

- manually set time and network

- this could be related to the router even if didn't face this problem previously, so I set a static IP adress and nothing changed..

- Sometimes it can be other devices on the network that send packages and keep awake my optimus, so I created a secondary network "invited mode" on my routeur, the phone is alone with my router but nothing changed.

-removed Viber, nothing changed.

I don't know what to do, It has to be the phone hardware/software/rom I don't know.

Can't post links due to XDA rules so here is pretty much what I had for the last 10hours with Better Battery Stats (I was sleeping).

Deep sleep : 13s

Awake : 9h59 47s

Wifi On/running : 10h

On Kernel wakelock section :

wlan_rx_wake : 9h39 8s

suspend_backoff : 20m58s

wlan_wake : 13m9s

PowerManagerService : 9m40s

On defaut battery monitoring app I have "android platform" as the first consuming service.

If anabody can help me, I'll be very glad. :)
[LG Optimus 4X HD] Bunecarera:
Go into your router settings and set the Beacon to 1000 and the DTIM to 255.

Charge your phone and leave it be overnight. See in the morning how much the rx_wake is.

If that didn't work, try setting the beacon to 50 and DTIM to 20.

Experiment with those settings.

It worked for me on my One X
[LG Optimus 4X HD] Ferero Rocher:
Hi thank your for your answer,

I'm looking into my router, but I don't think I can modifiy these settings, It's not a netgear/cisco router, it's french dedicated "box" whih quite good but the menu are not enhanced as a netgear or cisco.

In Wireless advanced setting I only have these settings

Fragmentation Threshold

CTS/RTS Threshold

:(

Another thing I was thinking, I never changed a kernel on a phone, but it is possible to improve performance with a different kernel and avoid these problems ? I saw that the Werewolf kernel is quite good for the optimus 4X
[LG Optimus 4X HD] Ferero Rocher:
I just flashed the werewolf kernel, and I have the same issue :(

No other solution than stopping wifi for now :(
[LG Optimus 4X HD] Ferero Rocher:
After trying and searching, everyone concludes that the problem is the router, but I tried everything and nothing changed.

I had the same router when I was on stock ROM and everything was perfect. :(
[LG Optimus 4X HD] Bunecarera:
Stock is not custom...

Maybe hook up a small other router to your French "box"?
[LG Optimus 4X HD] arararagi:
There's another device on your networking sending spam packets. Pay attention to the WiFi indicator on your phone for whether there's incoming traffic. Disconnect all your computers, etc. And see if the indicator has stopped showing activity. Then connect each device again until you see a lot of activity and you've found the culprit
[LG Optimus 4X HD] Ferero Rocher:
Hi guys, thank you for your answer,

In my network I have, a PC (disconnected at night), my optimus 4X, a no name Tablet (ICS) and a HTC Wildfire (GB 2.3).

So last night I tried to see what happens when my phone is alone with my router, so I disconnected my tablet and the HTC (both don't have any probleme with the router).

And the result is even worse than before but at least the phone as slept for more than few seconds. Phone was at 88% when I went to bed.Wifi on, and all GPS, wifi location off as usual.

8h52 -78% (88% to 10%) ~8.8%/h !!!

Deep sleep 2h49

Awake 6h4

Screen On 13m2s

Wifi on 8h53

Kernel Wakelock

wlan_rx_wake 4h26m (6833 count on batterybetterstats)

suspend_backoff 17m18s

baseband_xmm_power 14m11

PowerManagerservice 5m55

wlan_wake 2m39s (91577 count, don't know how to analyze this data)

Partial Wakelocks

soundcloud sync 1m42s

weather service 1m34s

GTALK_ASYNC 1m28s..etc partial wakelocks looks regular.

Alarms

com.google.android.gsf 118 wakeups (normal ?)

com.cyanogenmod.lockclock 9 wakeups

android 8 wakeups

com.google.android.googlequicksearchbox 5 wakeups

com.android.phone 3 wakeups etc...

Network (very weird thing)

10055 (Wifi) 6.0 Mbytes 77.2%

com.google.android.inputmethod.latin.dictionarypack.Fournisseur de dictionnaires

10050 (Wifi) 603.0 Kbytes 7.5%

google services

CPU States (only big ones)

Deep Sleep 2h49m 31.3%

51Mhz 2h34 28.5%

500 Mhz 1h37 17.9%

600Mhz 1h35 17.6%

Process

irq/77-tegra_ac 12s

most of the process only take few seconds (less than 10), but there is a lot of "kworker/u:12" with different numbers.

This morning I connected my tablet to the network, but no incoming traffic on my optimus 4X, don't think the tablet sends packets.

So here is my situation :(, I'm going to try today connected to another wifi router (friend) and see what happens for like 2hs.
[LG Optimus 4X HD] Ferero Rocher:
Didn't have the opportunity to try another wifi router, but today I flashed the latest PACMAN Rom, so clean installation (format), I didnt't install anything excepting google apps, betterbatterystats and wakelock detector.

Think I gonna shoot my router :mad: none of my other android devices are affected.
[LG Optimus 4X HD] someth1ng:
That suggests that it is your phone.
[LG Optimus 4X HD] Ferero Rocher:
Thats what I thought, Or maybe Cyanogen mod ?

I tried, CM10.1 with 2 different nightlies, and different kernels (original CM, werewolf, iodak)

I tried, PAC MAN Rom wich is partially based on CM10.1 RC.

Should I try a rom non based on Cyanogen ? or better based on stock LG Rom. But I'm wondering if there is rom faster as Cyanogen ones.

This is really weird :(

Again guys thank you for your time ;)
[LG Optimus 4X HD] giurly:
Hello,

I have the problem with baseband.

It comes from official JB v20a. With every v10 I used to switch off data connection at nigth and loss only a total of 2/3% of battery.

Now I'm on CM 10.1 but the drain of 20/30% remains. I've tried "messing" with data connection, automatic sync. No airplane mode because it's he only phone I have and I need line in case of emergency.

After reading the all the thread tonight I've tried to keep wi-fi on, don't disable 3g connection, disable sync and I get my best result. From 97% to 88%.

It's not like ICS but I don't know what else try.

I attach link to BBS log.

https://www.box.com/s/v0582v2z8hot5dzeed11

Best regards
[LG Optimus 4X HD] someth1ng:
Try SuperXE because it's different to the other ROMs which are mostly based on CM10.1 - SuperXE is built from AOSP and it's basically stock Android.
[LG Optimus 4X HD] Ferero Rocher:
Thanks for the tip. I will try. I think it's only my phone with this router.

I tested this morning connecting the phone to another router via wifi and everything is perfect the phone goes into deep sleep.

So I came back home and I went back to LG stock rom 4.1.2. And deep sleep works ! but there is still a lot of wake, like 60% deep sleep/40% awake. At least it's better than 0% deep sleep. But I will keep trying, with thise SuperXE

If I can't do anything then I'll have to change my router or stay on cellular data :/
[LG Optimus 4X HD] giurly:
I've upgraded to stable CM10.1.0, tonight I switched off 3g, wi-fi and sync like I used to do with stock 4.0.3, battery was 96% and this mornng was 91% :D

https://www.box.com/s/rsq0afl00fwtjnki2a4f

https://www.box.com/s/gfbf0gp7hb8dfw2x3lxo

I hope this is not a false positive!!
[LG Optimus 4X HD] giurly:
None :( after few days the drain comes back...
[LG Optimus 4X HD] akshay.mehta9:
Too many wakelocks,what to do? :confused:
[LG Optimus 4X HD] chrisch91:
What??! I have a few hundreds..
[LG Optimus 4X HD] devilozzo:
I installed PH85 1.52 Kernel and i haven't problems with wakelocks. Try it!!! :good::good::good::good:
[LG Optimus 4X HD] mobrol:
guys I have concluded that is a combination of software and hardware problem of tegra 3 devices..

the solution is one: reboot after every disconnect from the charger...

do it and you will remember me
[LG Optimus 4X HD] Bogeyof:
I did it, after that over night in flightmode, had >85% xmm_power_wakelock. Doesnt help ...
[LG Optimus 4X HD] eric1116:
+1

I am currently using liquidsmooth rom and EternityProject Kernel. I have to reboot after every disconnect from the charger either, other wise won't have deep sleep.
[LG Optimus 4X HD] Dark_Az_:
While this refers to the Nexus 7, it appears that an "internal experimental branch" (probably 4.3) doesn't have this issue.

Also, if the Nexus and the 4X are that similar, this is something on Android itself, not the kernel as you can see on reply #241 of said topic.
[LG Optimus 4X HD] arararagi:
For Nexus devices, the kernel is developed with AOSP.
[LG Optimus 4X HD] Dark_Az_:
Welp, shows what I know. I stand corrected, thanks arararagi (hope I didn't stutter).
[LG Optimus 4X HD] reisAgainst:
the problem is still there. 95% wakelock....

CM 10.1
[LG Optimus 4X HD] wajahebat:
You should try altering the dormancy value in telephony.db database...ive did that and it shows positive effect on batt life...the tutorial is already in here somewhere
[LG Optimus 4X HD] Flying_Bear:
there's no dormancy table in cm10.1, wasn't there for me atleast when i tried to tune it. telephony.db is completely different to that of stock
[LG Optimus 4X HD] wajahebat:
Oppss, i thought youre on stock rom...Then try to find other way then...

Lets just wait for next update from lg, hope its just the best