yashsingh1/xdaforums huggingface dataset:
[LG Optimus 2x] pengus77:
Wifi Module Update

Ok, been busy with bluetooth, but i didn't forget about wifi and i've been reading all posts related to it.

This is an attempt to finalize the fix and make sure it works for good before pushing the code to gerrit for review. Don't rush in with reports and stuff, take your time and let me know :)

- Removed skipping of dtim when in deep sleep mode. Aosp code does it, i don't anymore ;)

- Zero packet loss when in deep sleep mode

- Fixed the hotspot / tethering for good

The links in the second post have been updated with the new V4 modules ;)
[LG Optimus 2x] massimo69:
Excellent sir ;)
[LG Optimus 2x] tr@p:
I'm currently having this bug "almost BSOD" (need to hold power button to wake up the phone). Wifi seems to be disconnected although it's on. Anyway, here's two logcats that I've taken with lumberjack when I waked up the phone. Maybe they are similar/same... Hopefully they'll be of any use to you. And if you need something else, my phone is still in this bugged condition.

Anyway, I noticed this bug maybe two hours ago (if it will help you not going through whole logcat).
[LG Optimus 2x] Custom40:
Stick to the ROM in this thread. Continue as planned. Old BL can suck it. It is not necessary when you already got it to run like a charm. Simple as that.
[LG Optimus 2x] franky_z:
I think devs should decide which system is the best way for modding/compiling in future.

The question is, what are the advantages / disadvantages to use old or new bootloader.

They have done such good work until now, I'm full with trust! :)

Thanks again!
[LG Optimus 2x] massimo69:
testing conservative V4
[LG Optimus 2x] der.einstein:
I am currently running CM10 on the old BL and am totally satisfied with it. However, I would love to increase battery life! Mine is only 1 full working day...

Can someone please confirm these exceptional run times? So I dont regret switching BLs... :p
[LG Optimus 2x] paleee:
+1

Torch goes off when screen goes off (either by power button or by screen timeout or what we call it). Can I investigate (by myself) why is it happening?
[LG Optimus 2x] Andy HOT:
Sorry but i checked and paid a lot of attention to this thread..i saw ure post and u said u were going to see the problems...i didnt know u were going to EDIT ure previous post so ofc i didnt look there...thank you for the answer...
[LG Optimus 2x] pengus77:
It happens most probably (99%) because it doesn't establish a wake lock when it's on. That can be fixed in 5 minutes top if more people request that feature :)

Edit: works for me when screen is off.

Edit2: after a few seconds it goes off. True and can be fixed easily.
[LG Optimus 2x] machoman1337:
Hey pengus, what were you doing exactly on the Bluetooth? That was really bugging me before.

Currently, it seems like the BT no longer randomly disconnects during a call, but there is still an annoying bug - every time I turn on the BT, it will always attempt to connect to my car handsfree even when the handsfree is not present. And it will say "Connecting..." for a few seconds then stop. If the handsfree comes into range later, it refuses to connect until I turn off the BT then on again.

If the fix you're working on is meant to address this sort of problem, many thanks!
[LG Optimus 2x] antoniskox:
+1 also the wifi doesnt suspend
[LG Optimus 2x] pengus77:
Uhm suspends perfectly fine for me... i have the phone with both bt and wifi on now for more that 4 hours and it's 99% in deep sleep...
[LG Optimus 2x] JP12:
Torch +1
[LG Optimus 2x] orbital_71:
Hey Mr Pengus did u look onto the V30B source? Was there much changes?
[LG Optimus 2x] coxtor:
+1 on torch this is such an amazing rom! Thank you very much!
[LG Optimus 2x] pengus77:
Apparently it's the same exact kernel as V30A. Both Tonyp and I looked into it and the zips have the same size as of those from V30A. Also the dates on the files... everything is the same. So i don't know if LG put up the wrong zip or if really there are no changes at all to the kernel...
[LG Optimus 2x] orbital_71:
Hope that they upload wrong, if not having both A and B are the same soure kind of stupid.:)
[LG Optimus 2x] vEget7:
sir pengus did the V4wifimodule fix the batterydrain when in deepsleep? that's the only problem i face on this awesome rom, last night my battery is 50% when i go to sleep,when i wake up, it's only 5%.. i turn off everything and close all the apps before i go to bed.. hope it fix it V4.. THANKS SIR PENGUS.. :)
[LG Optimus 2x] antoniskox:
How do you see that is suspend ? In previus kernels after 5 minutes and wake up i didnt see the wifi icon and after 1 sec there it was.Now the wifi icon stays there no mater what

Despite that your rom rocks...

I beleive you rom comes close to perfection.just a little work on wifi and bt
[LG Optimus 2x] pengus77:
I'm testing a possible fix for wifi right now. I noticed after a few tests that indeed randomly doesn't enter deep sleep. I'll probably upload a V4.1 version in a short while if this fix is functional :)

About bluetooth, lots of changes there too, but i'm waiting a bit to smoothen all out before uploading a new kernel ;)
[LG Optimus 2x] antoniskox:
You are amezing..Very fast respond..Dont hurry up..we cant wait in order for you to make you tests
[LG Optimus 2x] franky_z:
tonyp: +1
[LG Optimus 2x] amardeepsingh77:
Hi pengus, will ur v4 wifi and bt patch work with old bl official cm? I have been on official cm for more than a month without call bug but wud like to try ur fixes. Thanks
[LG Optimus 2x] pengus77:
Wifi yes, get the package, unzip it and move the wireless.ko to /system/lib/modules. But wait a few because i'm going to upload a fix very soon ;)

Bt no, that's linked in the kernel so it's not portable yet to the old bootloader
[LG Optimus 2x] vEget7:
sir pengus the v4wifimodule conservative got me a problem,i cannot connect to my wifi,it says (authentication problem).. waiting for the next fix..
[LG Optimus 2x] Custom40:
Well said. Here's another thing or two...

Can the current/future progress made on the new BL be implemented on the official CM ROMs?

It's possible, yes!

But why are you asking the users which BL they'd prefer? Shouldn't it be the DEVs

only

who should decide which BL they shall use? Correct me if I am wrong, but won't there only be a situation once/if, let's say, all DEVs stay on the old BL, except for one or two who keep working on the new BL?

Good point.

Why are we even having this discussion in this topic?

Another good point.
[LG Optimus 2x] brugobo:
It does not matter that you can increase the partition size on the old layout becouse ROM builders cannot assume that people have done that so they are stuck with standard size, aroma installers with long lists of selectable packages or dual model with two different .zip files, standard and large version. Plenty of people are reluctant to try anything outside CWM .zip installs. I see .zip requests on threads that talk about smartflash / nvflash leaks.

I do agree on all your other points and in the end, whatever is done will be fine. It is not a big deal.
[LG Optimus 2x] orbital_71:
I go for the new bootloader 1st is that LG engineer had make the ICS running really smooth this time round on this new layout. And looking at the most DEV either got a new phone or stop building CM rom due to the bugs that we currently had. Now since LG engineer had make such a good result on this ICS layout, i think CM should go for it and i believe CM rom will run even better. In software engineering is all about innovative and i think CM team should accept the changes. Looking back how many of the DEV are building rom for the old layout? Most had left, coming to the near future most are building on the new layout. It is the best for this new layout as we can switch rom easily between Stock and CM. If i had problem with the CM bugs i can go back to Stock which is running well without Bugs. :o
[LG Optimus 2x] zchuxz3x:
RAM Hack

Pengus is possible add 32Mb RAM Hack Value?... =)

I'm using your kernel on P.A.C Man ROM and all going good!...
[LG Optimus 2x] pengus77:
Wifi Module Update

Pushed a fixed version of the V4 module and renamed it to V4.1.

- Fixed issue preventing phone from entering deep sleep when wifi is on

As usual you'll find the downloads in the second post ;)
[LG Optimus 2x] pengus77:
Next kernel release will have 32, the one you're using has 24. I needed some time to test if the phone was stable with the carveout reduced by 32MB and seems that it is...
[LG Optimus 2x] bekaman:
Thats nice if its stable :rolleyes:

Anyway have you found out the culprit behind the deep sleep bsod when phone is not charged ?
[LG Optimus 2x] tonyp:
Everyone ROM chef can just make it a requirement to have an increased /system partition if he wants or needs that.

Not more work for the users than doing the bl/pl switch.

But I don't think this does matter for most ROMs anyways. We got about 30mb (or were it 20?) of free space on system with CM10 after this commit by arcee.

You can get additional 6mb by deleting the useless sample videos (see my comment at the linked commit) - and even more by removing some more default included but not needed stuff.

Well.. you do know that the "devs have left the old bl" because of the call bug, don't you? And we're currently discussing about moving back.

The callbug was (and is) a dealbreaker, it's a mobile _phone_ after all. If we wouldn't have suffered from the callbug, pengus wouldn't have started his work on bringing CM10 to the new bootloader in the first place.

The new bl certainly isn't "innovative" - except you count in the fact that LG tried to lock it.

And the Stock ROM "without bugs" is a funny statement ;)

But yes, I do agree that switching between Stock LG and CM10 will need a little more time on the old bl (10min instead of 5 after doing it a couple times).
[LG Optimus 2x] Kyrandialegend:
Pengus will next kernel version include this V4.1 fix ? If yes i'll jump directly :D

Inviato dal mio LG-P990 con Tapatalk 2
[LG Optimus 2x] pengus77:
It sure will ;)
[LG Optimus 2x] orbital_71:
But the fact for me hate to see the split up of old and new bootloader. I just want everyone group together.:)

---------- Post added at 10:42 AM ---------- Previous post was at 10:35 AM ----------

Hey Tonyp, just mine suggestion. U make a write up on new and old partition, pro and con between this 2. Then make a vote. If most ppl want the old then we stay put without requesting RC to make a changes but if all agree to the new partition are we allow to make petition to RC for it?
[LG Optimus 2x] vEget7:
+1 everyone must be united.. :)
[LG Optimus 2x] zchuxz3x:
many thanks :D!

the most important to test is the Camera.. is HERE where the Ram hack generally causes FC's
[LG Optimus 2x] tonyp:
I'm only using the new bootloader because of the callbugs. If they're indeed fixed, I'm back on the old one.

I did explain my opinion why I think that it's better to stick with official CM10. If you really think you got good reasons to convince RC then try it.

But I highly doubt RC cares about a poll from xda users. :D

He decides on his own with his own reasons. The crowd follows.

He could have commented the whole "new bootloader for CM" discussion - but he didn't. We need to accept that.

Edit: And I think it's time to stop that discussion in here. It's drifting of :)
[LG Optimus 2x] franky_z:
I'm still convinced that devs know best which way is the best for developing. Why? They are devs! ;)

But for a community maybe a vote is a good thing. This is not easy. If only arcee could take the new bootloader, then it would be no problem. And he is the one who made CM10 possible for us.

Think when he uses old bootloader and call bug is gone (thanks to marsgod!), we should do it too until he switches to the new one (also to pengus!) ...?

What do you think?

(ah, sorry, my post is maybe not at the right place to discuss this here)
[LG Optimus 2x] -sandro-:
pengus since you know a lot of stuff I'm gonna take advantage of this to ask you a question I have in mind. You noticed that when the display dims for inactivity or when you unlock the phone the transition in brightness is not smooth as it should be but it's in (awful) steps. Is this related to the nvidia drivers or is it just a custom behavior of cm10? I can't remember if this happens on the stock ROM. Thank you.
[LG Optimus 2x] orbital_71:
Ok tks for the info
[LG Optimus 2x] KingMGT:
When a new version unlock of CM10 ROM ~> ROM CM10 - 03.01.2013 probably fix call bug by Ricardo
[LG Optimus 2x] punyategar:
All of these people talking about old/new bootloader should GET OUT from development threads and MAKE YOUR OWN on general sections... youre cluttering this.

Sorry.
[LG Optimus 2x] chacal33:
Hey guys,

Just wanted to share with you that i don't have any MMS issue anymore. I updated my BB to v30b, and since then it's worked!

Only weird thing still going is the battery running wild. Going to 0 all of a sudden when it was showing >30 and it is back to this after reboot...

And it does "charge" although not on charger. Will send a capture later.
[LG Optimus 2x] Beorn1:
Edit 2: I think that actually I wasn't with the V4 patch at all and only with the kernel patch from the 30th, since I tried installing the patch with CWM and apparently it didn't even work... so maybe you shouldn't waste your time checking this out.

Just had what seems like another spontaneous reboot with Conservative V4 patch (not 4.1), but this time it was a bit different:

I went to sleep with the phone connected to the charger, and when I woke up the phone was completely turned off (when I tried to unlock the screen I first got the charging screen that you get when you connect the phone when it's turned off), so my guess is that it tried to restart but because of being connected to the charger it wasn't able to start normally and went to the charging screen.

Anyways, here is the last_lmsg: https://dl.dropbox.com/u/23199/last_kmsg.txt

Thanks and have a nice day everyone without too many arguments about old/new bl :p

Edit: I will install the V4.1 now anyways and maybe it already solves it, but just letting you know about the problem in case it persists.
[LG Optimus 2x] hyyuga:
I am also having these almost bsod's.. this happens rather often to me. Perhaps the powersave cpu scheduler in my cpu master screen off profile is the culprit?!?

I cannot provide a log atm but I will do
[LG Optimus 2x] vEget7:
anyone tried a V6 Supercharger on this rom? i want to increase the smoothness of this rom, i will try it.. hope it work.. :)
[LG Optimus 2x] orbital_71:
Yes V6 work for this rom i try it on the old bootloader for cm10 and cm10.1
[LG Optimus 2x] vEget7:
and it work also on the new BL? because when i'm on topog ICS it has a V6 running.. i will supercharge my 2X when i get home,post feedback later if it's fully working and how's the performance will be.. :D
[LG Optimus 2x] jeroenqui:
Trying to build this rom using tonyp's github which is using your (pengus77) repo's.

It builds just fine, but when flashing i get this error:

set_perm: some changes failed

E:Error in /sdcard/cm-10-20130103-UNOFFICIAL-p990.zip

(Status 7)

After that my data is gone.

My normal CM10 builds for old bootloader work fine.

Is it possible to repo init tonyp's github in the current cm10 dir, or do i need to create a new working directory?

Additionally i included my updater-script.

Thanks for the help.
[LG Optimus 2x] chackodepacko:
Any idea if I can use it as usb mass storage, both internal and external sd??? Because I can use it only as what is called Media stuff or similar, but not as a usb mass storage as we know it.
[LG Optimus 2x] massimo69:
If I remember well CM never had the option for mass storage
[LG Optimus 2x] obaidr:
Ok another bug. The battery consumption of this rom at idle is great. But as soon as you start to play music it sky rockets. The Mediaserver consumes a hell lot of battery. It never did anything like that on GB. Seems like it does something stupid in the background.
[LG Optimus 2x] swifer_lf:
who said that? :confused: u can enable both mass storage in settings->storage->options->usb connection
[LG Optimus 2x] massimo69:
There you go. I learn something new every day.

Very happy with the latest wifi module even if I was on v4
[LG Optimus 2x] tetsuo55:
Just want to confirm these:

Torch should not go off until i tell it to, so +1 to leaving it on

On the V4 patch i still lose wifi connection (the icon is shown but grey instead of blue)

I also still have "only key lights go on, screen stays black problem" 9 out of 10 times i can get it to work again, the other time i have to pull battery

SOD still occurs randomly, and almost guaranteed when connecting to a computer usb port with the screen off.

I will try 4,1 now to see if that fixes the wifi problems.

EDIT: using the nomal wifi ko, not conservative
[LG Optimus 2x] obaidr:
first of all you need the new fixed adb drivers for P990 which you can find in this forum. Second you have to turn Settings/Developer Options/ Off. This worked out for me. But the drivers are the most important part!
[LG Optimus 2x] g0at:
Currently using base 20121228, without any additional patches.

The SOD on charge whilst screen off seems to have improved somewhat since the last version of the ROM I ran, so guessing it will almost be eradicated with latest kernel update / patches; looking forward to the next base release..

Anyway - would just like to report that I seem to encounter SOD's when market app updates kick in. I've used Titanium to disable auto-updates for all apps, so I get a notification when an update is due; I have relatively few apps installed. Whenever i experience a SOD / battery pull I restart to see a app update notification. Just thought I should mention this as I don't recall seeing it anywhere else in the thread - don't know whether it'd help at all?

Keep up the good work Peng :)
[LG Optimus 2x] chackodepacko:
Question: in standby modus the wifi is not used, though i have set it in settings to be always on. Does the wifi Normalo zip in the beginning of this thread fix these issues?
[LG Optimus 2x] grimmyrippy:
+1 to torch not to turn off even the phone is lock, i find it annoying tonight i used the torch and when the screen turn off the torch start to on and off then totally off

ROM: pengus77 cm10 20121228

Kernel: ruggles powersaver hp kernel 32mb RH

BB: v30b bb

BL: new ics unlock booloader
[LG Optimus 2x] chacal33:
As posted earlier, here is a cap of my battery consumption... Really don't get it. Anybody knows how to correct this?
[LG Optimus 2x] massimo69:
just charge the battery to 100% and let it empty all the way so that the phone turns off by itself. Turn it on and see if there is still some battery left.

Repeat the cycles a few times.

Other way is to use a battery calibration app to reset the battery stats.
[LG Optimus 2x] wucinac:
I have the same problem.

solution. I deleted batterystat.bin. located in the data/system/batterystat.bin. reboot.
[LG Optimus 2x] May-C:
I can't belive I am still reading about battery calibration. Battery calibration just wipes some stats. It is absolutly uselss!
[LG Optimus 2x] massimo69:
It is we know that but the guy is getting weird readings. And what cause the weird readings the "useless" battey stats.........

Hence clean them up and you have good readings again....
[LG Optimus 2x] antoniskox:
Peng...i install the 4.1 patch but steel the same.the wifi wont suspend
[LG Optimus 2x] May-C:
AFAIK the stats aren't used to determinate how much battery is left or if it is charging or discharging.

The only purpose of the stats is... well to show some stats :p

Pls somebody correct me if I am wrong...

Edit:

I guess I am right. http://www.xda-developers.com/andro...-battery-stats-does-not-improve-battery-life/
[LG Optimus 2x] massimo69:
well thats exactly what I said. Weird readings or wrong statistics or whatever you want to call it.

Anyway first SOD with latest conservative module. Took the phone about 15 seconds to wakeup and once it did the wifi was still on but there was no connection.

Have a log so will post it later.

EDIT: the phone was not on the charger. logcats attached
[LG Optimus 2x] -sandro-:
I don't know if you noticed but everytime you reboot or poweroff the phone the battery stats reset! So you always get stats from the the last boot not from last charged. :/
[LG Optimus 2x] bekaman:
Got another sod when the phone left idle and not in charge. Never had sod when phone is in charge though.

Anyone else experience the same ?

:confused:

Edit : using latest cm10 and latest kernel from op. No wifi or Bt active at that time
[LG Optimus 2x] massimo69:
Well, since everyone here knows why the battery stats of chacal33 looks like they do then why dont

any

of you give the guy an answer on what to do instead of bashing me for trying to give him a solution.
[LG Optimus 2x] -sandro-:
What does this have to do with what I reported?
[LG Optimus 2x] massimo69:
sorry about that.... and you are right. Every reboot wipes the batt stats.
[LG Optimus 2x] natalya:
@Pengus, any progress on HDMI and alarm bug? :)
[LG Optimus 2x] mimm.m:
Penugs, will you now / or in a few days change your BL and continue your work at the old BL?

btw i think you could also help ricardo, marsgod, tonyp and so on ;) - you made such a good work, i think we all are happy that you have given us the hope of a CM10 without bugs :)
[LG Optimus 2x] brugobo:
I have been on wifi fix V4.1 for about 10 hours starting at 100% battery with wifi on, bluetooth off, 2G radio rather than 3g, disabled data, and just k9mail and hotmail clients wifi synching in the background, as in all my previous tests. Phone has been on "standby" without being used. I went to bed and when I came back this is what has happened:

- Powerup bug has gotten out of hand. Happens every time now. Both charging and unplugged. I have not ettempted to reboot phone yet. (EDIT: It is no longer happening every single time. Only thing I have done is some transfering of files through USB and getting wifi back).

- Battery drain is heavy, as the phone has trouble entering Deep Sleep. About half the time is spent in 200 MHZ state.

- WiFi is lost. I cannot detect any wifi network at all for a while. It spontaneously fixes itself after a while (couple minutes?) with screen on.

Attached some screenshots from battery pane and Cpu Spy. Took two sets, one after 7h30m another after 9h30m.
[LG Optimus 2x] antoniskox:
Strange..no problem with alarm.if i leave it in suspend it works fine
[LG Optimus 2x] massimo69:
Here we go. First time dead phone after I put it to charge. l hope I ll be able to get a log.

Edit: Hmmmm very weird I put the phone to charge with 5% battery and it started to charge but it seems that it actually wasn't charging. The dead phone is due to an empty battery while plugged in.
[LG Optimus 2x] natalya:
what build are you on? can you try this for me and see if it works please:

put alarm to ring after 3 min and turn off the phone so it goes to sleep mode. leave the phone and see if it rings, ok? dont turn the phone on, just wait and see if it rings please :) thanks a lot.
[LG Optimus 2x] massimo69:
pengus and I both tried this a few days back with a 15 min delay both on charger and off charger and it worked. It wakes me up every morning no problem. Try and clear the app cache and fix permissions it might help.
[LG Optimus 2x] brugobo:
I just attempted it twice with about a 4 minute delay: one with wifi off (becouse of deep sleep issues) and anoher one with wifi on.

Alarm rang both times. No issues for me.

EDIT: I am on Dec28 ROM with Dec30 kernel, nitzfix and WifiFix-V4.1
[LG Optimus 2x] natalya:
my hero! cant believe this, but i cleared app data/cache, FC'd it and now it works!

THANKS!

:cool:
[LG Optimus 2x] pengus77:
Uhm from what i can see there, the phone actually enters deep sleep for 5+ hours and stays out of it for 4... but to understand what happened i need the detail of the battery (click on the diagram). Also, seems like there's a spike in battery usage at about 2/3 of the way. Probably some app that requested a wake lock, or waked up the phone ?
[LG Optimus 2x] massimo69:
You welcome ;)