yashsingh1/xdaforums huggingface dataset:
[LG Optimus 2x] oneearleft:
dodgy readings

Experienced something similar today:

I had turned on BT, GPS and was using Navigation and streaming music.

The phone was in car usb charger, but although I had "Fast charge" enabled in the Kowalski app, battery level dropped.

When I reached 0% I just got a black screen without power off notification (happens sometimes).

My battery was extremely hot, so I pulled it to let it cool.

When I arrived at home 5-10 min. later, inserted the battery and charged through stock USB charger, battery level was suddenly 100% and counting down: 100, 99, ..., 97, ..., 94, ..., etc.

I have attached screendumps and better battery stats logs.
[LG Optimus 2x] LarsPT:
You guys sure know how to stress test a phone!!
[LG Optimus 2x] calav3ra_de:
today something fishy happened. with PA12 i went into recovery, but didnt do anything really. then on reboot, i was stuck at the bootanimation forever. reflashed latest exp121 two times, wiped caches, still stuck. same with exp120, then reflashed PA12 to make it boot properly again.
[LG Optimus 2x] Custom40:
Make sure you flash the right kernel. If you're on new BL = flash new BL, old BL = old BL. Double-check that because it works fine with everyone else :)
[LG Optimus 2x] ppino:
A promise is a promise...

10€ for you and 10€ for tony...

It's not a big amount of money, but just a way to say thank you both.

Enviado desde mi LG-P990
[LG Optimus 2x] tonyp:
Thank you! We're celebrating it :D
[LG Optimus 2x] zchuxz3x:
wow... I like the sexy dance :$

I waiting new release, great work Tonyp, your Cm10.1 is really really good! congratulations:good::good:
[LG Optimus 2x] KoRRo89:
Battery life with this kernel (and tonyp's cm 10.1) is really awesome... I'm still calibrating battery, so I was trying to drain the last 40% before going to sleep... It took me more than 2 hours reading xda with screen at full brightness while listening music at full volume in streaming with Google play music via wifi... And all with my battery that is 2 years old and not so healthy... I can't find words to describe it...
[LG Optimus 2x] lucfig:
Just had a reboot to LG screen.

Is this that "kernel is too fast" thing? :p

https://www.dropbox.com/s/ae1ulb2mbswwe1i/last_kmsg.log

Enviado de meu LG-P990 usando o Tapatalk 2
[LG Optimus 2x] smg72523889:
hy pengus,

i know that i'm annoying but

have our bt-problems already your attention or are there still a lot other probs with higher prio to solve?

are our bt-probs kernel, driver or rom related? (no dev so dont understand)

i'm using your cm10 + kk121 and bt is working with fsp, but not when phone sleeps (as you already know, it does sleep too deep :D ),

tried tony's new one + kk121 and bt freespeech is not working anymore (only incomprehensible noise)

i would like to help, so installed syslog now and will provide tony & you with my logs as i really use bt some times.

my fsp is a parrot mki9100, i'm on new bl
[LG Optimus 2x] pengus77:
On Tony's 10.1 the bt stack is "hacked" and forward-ported from 10, so it might cause some problems here and there. Don't know for sure because i'm not using it. About the kernel, yeah it doesn't wake up the phone when it's in deep sleep and i'm aware of it. I'll fix it after the battery driver is 100% stable. It's on my list, but not really on top :)
[LG Optimus 2x] tonyp:
But there are other great things on the top of the list :D
[LG Optimus 2x] x_justin:
Yeah its really amazing! Pengus, do you recommend the original battery with your driver or can I just use a golden japanese replacement one from ebay? I've got the gold one and original one, the gold one really has a lot of Juice when 1% is left, I can leave it the whole night at 1%. It doesnt seen to vannish after 3 calibrations. The original one is working well but has some burried bunnies inside. So maybe I will buy a new one.

Verstuurd van mijn LG-P990 met Tapatalk
[LG Optimus 2x] flat__line:
I'm using a 1800mAh ebay replacement and battery performance is amazing ... the only doubt I have is about battery temperature reading (it seems stuck at 23.0 celsius) ...
[LG Optimus 2x] MinoochX:
agreed. same here. but am on a 1980mAh
[LG Optimus 2x] owais40:
Its most probably because those batteries lack a temperature sensor and thus give a fake value of temperature :p ..... Oh boy, this thing is dangerous..... If while on some heavy usage like playing a game, etc your battery would get too hot then it might even explode in your hands :D ..... Thermal throttle of the kernel won't help in this I think as it will get a 23°C reading :D .... That is an extreme case for sure, but who knows :o .....
[LG Optimus 2x] Raum1807:
No, no telepathy, maybe same way of thinking. When I tested my set-up a while back with swap file enabled I saw that the zram config needed some serious changes. After the thread of last week about swap file / partition on P990 I had some time to check what could be done about zram improvement next and what already has been done in this case by others...

My approach now is to use zram (with higher prio than swap file) and swap file (in your case: partition) at the same time. With zram then enabled, I made the observation that a swappiness value as high as 30 is no problem for the usage of the swap file to be rare while it helps the zram.

Would you agree on this?
[LG Optimus 2x] swifer_lf:
performance scheduler deactivated?
[LG Optimus 2x] pengus77:
Yeah totally, also i tweaked a bit in my init.d script the vm dirty ratios to

echo 20 > /proc/sys/vm/dirty_background_ratio
echo 60 > /proc/sys/vm/dirty_ratio

This gives a better ram/vm balance and the phone feels a lot better... try it :)
[LG Optimus 2x] pengus77:
Interesting Discovery

Guys, i found out why auto brightness doesn't work on 10/10.1 :)

Apparently the lsensor is never turned on by the on/off switch of auto brightness. To enable it by hand just

su
echo 1 > /sys/devices/platform/i2c-gpio.5/i2c-5/5-0060/lsensor_onoff

and to disable it

su
echo 0 > /sys/devices/platform/i2c-gpio.5/i2c-5/5-0060/lsensor_onoff

For rom developers, adding this reads/writes to the auto on/off switch will fix it for good ;)

For my kernel users, go by hand or add it to /etc/init.d/95kowalski and reboot :D
[LG Optimus 2x] Raum1807:
I kept the dirty ratio on 40 but raised the dbr a bit too. But will try your values later, for sure.

Got a mako 3 days ago it was sitting on my desk since then. It needs to be unpacked and is waiting for me to finally pay some attention....
[LG Optimus 2x] massimo69:
;) Im trying to get my hands on one but it seems i m gonna need to wait a few months.....
[LG Optimus 2x] pengus77:
Oh i'm still so very happy with my gnex... not buying another lg "thing" even under duress hahaha
[LG Optimus 2x] Raum1807:
You are right. On CM10.1

cat /sys/devices/platform/i2c-gpio.5/i2c-5/5-0060/lsensor_onoff

shows 0.

But my brightness sensor is working on auto anyway. Funny, isn't it?
[LG Optimus 2x] pengus77:
Creepy i'd say. Works for me on 10 only if i turn that on. Can you check what's the value for "alc" in the same directory on 10.1 when you turn on/off auto ?
[LG Optimus 2x] Raum1807:
Ordered one in December. Had forgotten about it because of the long time since the order.

Yeah, that was my idea too: never LG again! But then the Mako came out.. this duress is more self-inflicted than anything else.

And guess what: it's running CM10.1 already. Built one this evening even before unpacking.

One word describes it best - awesome!!!

---------- Post added at 01:24 AM ---------- Previous post was at 01:19 AM ----------

alc changes from 1 to 0.
[LG Optimus 2x] massimo69:
pengus you took all the fun away.....I thought you would release an earlier version not 010..... now you took all the fun of spoilers away :D:D:D:D

You are gonna have to work even harder now.....

all these guys want SPOILERS ;)

anyway... for me.... I flash it and use it as it comes and its funtastic :D:D:D:D:D:D
[LG Optimus 2x] pengus77:
Hahaha well we tested from p3 to p7 right ? Now 010 is stable i think, so i released it. Now i can focus on adding features :D
[LG Optimus 2x] massimo69:
We did indeed ;) but still :D:D:D:D:D you give em too much too soon ......
[LG Optimus 2x] pengus77:
Squash the lsensor_onoff thing. Doesn't work as it should. I'll try to fix it in the kernel for a more decent scaling.
[LG Optimus 2x] massimo69:
Guys the worst thing is that there is so much stuff to test I flash and reflash and still he manages to get me to reflash one more time :D:D:D:D:D

SPOILER the next one is gonna be even more AWSOME ;)

edit..... kidding :D:D:D:D it cant get better than this ;)
[LG Optimus 2x] pengus77:
Oh trust me it can... and it will :D
[LG Optimus 2x] massimo69:
;) I know.... ;)...... didnt want to spoil them too much....
[LG Optimus 2x] CarloIT:
R: [KERNEL][CM10/CM10.1/ICS - OLD/NEW BL][010 - 2013/01/19] Kowalski Kernel

So spoiler ? =D

Inviato dal mio LG-P990 con Tapatalk 2
[LG Optimus 2x] zchuxz3x:
last kernel not enter in deep sleep using Temasek v7 ROM (CM10.1)

trying with differents I/O and gov and same result.. with "stock" temasek kernel, deepsleep its OK..

any suggets?

sorry for my nglish

EDIT: this hapend only when charging.. its normal? =)

PD: no Wifi Problems using STD Wifi Module, working great!
[LG Optimus 2x] tetsuo55:
For anyone still having wifi problems can you please post your settings according to the form below?

Maybe we can find a common reason for these problems.

I will fill it in with my data as an example.

Currently my problems are:

1. Phone disconnects for about 10 seconds when the router does this: RADIUS: starting accounting session 50F028FF-00000191

2. The phone does not look for new networks after the one scan it does on boot

My settings are like this:

Phone:
Wifi sleep setting: Never sleep
STD(CAM)/PSP Max(PSP)/PSP Fast(Default): PSP Fast (but STD and PSP max fails too)
Rom: Paranoid Android V2
Kernel: Kowalski 010

Router:
Mode: 802.11g+n
Frequency: 2,4Ghz
HT mode: 20 MHz
Security: WPA2-PSK, Force CCMP (AES)
WMM mode: On
Router: WNDR3700v1
Firmware: OpenWrt r35096

Empty form:

Phone:
Wifi sleep setting:
STD(CAM)/PSP Max(PSP)/PSP Fast(Default):
Rom:
Kernel:

Router:
Mode:
Frequency:
HT mode:
Security:
WMM mode:
Router:
Firmware:
[LG Optimus 2x] kekks:
Pengus, i have tried the app and using it in cm10.1 works flawlessly in the r with smooth sounf
[LG Optimus 2x] dr.lube:
Am I the only one there who can't connect the phone in deep sleep to the charger? I have to pull out the battery every time..

I have already gave logs about that.. I'll do a video if necessary
[LG Optimus 2x] kekks:
No problem here, works fine with tony10.1

Try flashing the kernel again and wipe dalvik/cache
[LG Optimus 2x] dr.lube:
I will give it a try :) thanks
[LG Optimus 2x] tomtom72:
Reboots, Reboots...no chance to work in Rom

Hi,

I don't know if it is kernel, rom or phone related. Since one week the phone is driving me crazy. It reboots every 30 sec, sometime every minute. etc.

I installed the 121 kernel and pa 12 running. Took a backup in CWM 6....something. Afterwards format system,clean cache, dalvik and moved to 10.1. Ok 10.1 from tonyp is fine, but no PDroid, so I decided to go back, via the restore in CWM. Since this time I have the strange reboots. New BL

So what I have done to find the reason:

Change the kernels from 121,120 and 119, always format system, cache and dalvik cache, installed PA 12 or 10.1 and check if it's working. It is always rebooting. Removed SD to check if the external SD is corrupt. Same behaviour, always rebooting, sometimes it comes to the ROM screen to enter the pin for the phone. Sometimes it reboots in the load routine. etc. Checked the battery and put the phone on the charger. Always the same, rebooting after some seconds or minutes.

Does someone have an idea?

thanks a lot!!!

tomtom
[LG Optimus 2x] flat__line:
Did you also tried to smartflash it? Could be the internal memory... You may need your phone serviced...
[LG Optimus 2x] KoRRo89:
Hi. I have a problem with the screen backlight so I want to ask what type of log could be useful. The problem is that sometimes some of the leds are at a lower level so I have some kind of dark stripes on the screen. The problem rarely happened on official cm with your kernel (I think it was the 116 the last I used before 121) but it usually happened when doing heavy tasks with the screen @ full brightness and charging with my external battery, but since it was a little bug and no one suffered for it I didn't pointed it out here, but now with 121 kernel and tonyp's cm10.1 it's happening more often and it seems to be completely random so it's a bit more annoying. So, what can I do to help you to track it down?

EDIT: I've forgot to say I'm on the new bootloader now, but I was on old one with official cm.
[LG Optimus 2x] 4ever1lov3:
i think 30s-1min is enough for log taking! :D
[LG Optimus 2x] besho2222:
Look, this thing was exactly happening to me, and believe it or not, it's a battery bug, as I asked pengus here someday " to be on the same page"... You'll notice this happening more frequently when the battery is below 30, happened to me on all ROMs even stock GB, calibrating the battery make things much better, I didn't have it for about 2 weeks now, pengus battery driver helped a lot, it's still developing but close enough, as I understand the phone shows battery is 20% for ex. While actually it's 0, so it signals a reboot and if in charge, it'll just show the battery charging screen
[LG Optimus 2x] SWTR:
I have a strange bug. On the old bootloader I can charge my battery when the phone is off. But on the new bootloader when the phone is off and I want charge, the batteryanimation comes but after 2 minutes it restarts and the battery won't charge. So I must stay on the old bootloader..

Gesendet von meinem LGP990 mit CM10.
[LG Optimus 2x] DrummerMuppet:
I'm on the new BL and don't have any problems while charging. Which kernel version are you using? ROM?
[LG Optimus 2x] SWTR:
#121 PA12. I must say that it comes when the battery is empty.

Gesendet von meinem LGP990 mit CM10.
[LG Optimus 2x] sudden36:
I got a reboot, i think its kernel related.

I'm on cm10.1 from tonyp and exp121.

Phone was just laying around and showed pin entering field when i wanted to use it.

Logs come tomorrow, have to sleep now...
[LG Optimus 2x] flat__line:
Alternate ALC tables ...

I prefer a slightly lighter autobrightness configuration: for those interested I attach a zip file with a script writing a modified table (you can 'source' it by terminal: no args, just cat the table, 0: restore original table, 1: set alternate one) and a ODS spreadsheet file where you can generate alternate values tuning a 'gamma correction' factor ...

IT IS NOT A FLASHABLE ZIP!!

EDIT: corrected a syntax error in the script :(
[LG Optimus 2x] pengus77:
Awesome man ! Guys keep these ALC Tables coming and share them... soon Kowalski Manager will support direct manipulation of the table, but in the meantime have fun with it :)
[LG Optimus 2x] MinoochX:
[MENTION=3783116]pengus77[/MENTION]

Check my git of ARC.

Cherry pick the topology commits.

this should help improve management :)
[LG Optimus 2x] spica1234:
Pengus,

Fabulous creative work. I am running it with tonyp's cm and i can see no bugs, its working like a charm w/o any issues. Thank you for your dedicated work. Keep it up:)

Regards,

Spica
[LG Optimus 2x] tomtom72:
Hi,

flat__line requested the logfiles, attached the logfiles.

maybe someone can check if something special is shown?

thanks a lot tomtom
[LG Optimus 2x] sudden36:
Here is the log mentioned in my last post. Hope it is usefull :)
[LG Optimus 2x] pengus77:
Hey there, it's the 2nd time i see this error in a log. It seems to be a problem related to what 4.2.2 expects from the kernel related to the nvidia graphics. Remember that this kernel is based on 2.6.39.4, which isn't even the Google's prerequisite for ICS... 4.2.1 and 4.2.2 expect a kernel > 3.0 and it's already a miracle that all works fine with 4.1.2. If it is, as i suspect, some stuff that the rom does (such as the wifi advanced setting to minimize consumption that works only with the bcmdhd driver in kernel 3.X) then there's not much i can do at kernel level. That's also why i'm not moving forward to 4.2.2 until i manage to get the 3.1 kernel to boot and work properly (ooops spoiler) :p
[LG Optimus 2x] DrummerMuppet:
Seems someone has been a bit busy lately ^^
[LG Optimus 2x] zchuxz3x:
Holly Pengus! xD...:laugh::laugh:
[LG Optimus 2x] dorwoo:
Ave Pengus!
[LG Optimus 2x] tonyp:
Thanks for the report. I checked the framework/native repo of cm.

I found something that sounds related, then compared the boardconfig to other tegra phones and tablets and guess what, I think I found a missing flag!

We shouldn't forget cm10.1 runs perfectly fine on other tegra2 devices, especially tablets.

I'll try it out tomorrow and if it succeeds it will be in build 02 :)
[LG Optimus 2x] 4ever1lov3:
oh that sounds so good! good luck to you! :good: i remember that wkpark ported linux kernel 3.0 to work with CM7 , the kernel can be found here https://code.google.com/p/android-hackers/downloads/list. the OP was on his Korean blog (i can not read it and also don't remember the link). :D don't know if this info helps or not. but it would be nice if you can co-work with wkpark! :D
[LG Optimus 2x] flopower1996:
Ouhh the next big thing :D a pengus-wkpark kernel.

Gesendet von meinem LG-P990 mit Tapatalk 2
[LG Optimus 2x] darka9:
pengus will your new 3.x kernel prevent from changing Bluetooth stack on cm.10.1?
[LG Optimus 2x] KiRAdot47:
don;t have dev experience, but on optimus one, when they changed to 3.x kernel bt (bluestack afaik, not bluez) started working on cm 10/10.1
[LG Optimus 2x] tonyp:
Yes, we're hoping for the same thing. If not, replacing it with bluez should still work.

But just to calm everyone in here a little down, the project is already going for over a month and might still take quite a while..
[LG Optimus 2x] sudden36:
I blamed it on the kernel to fast for sdcard bug, so i did not think of carmageddon sporadicaly closing and crashing, but this may help you to reproduce the bug on your own phone maybe.

For some strange reason I could play the game mostly without problems, the phone crashed only after putting it away.
[LG Optimus 2x] pengus77:
I was right. Tonyp found out that the rom misses a flag for backwards compatibility. It's 10.1 related only and rom related :)
[LG Optimus 2x] LarsPT:
That's strange... I don't have any issues at all playing carmageddon...
[LG Optimus 2x] derEremit:
Had a BSOD again after installing syslog.

Unfortunaltely i don't get a last_kmsg.

As I said earlier. Have BSODs since exp120.

Both on TonyP10.1 and official cyanogen 10.1.
[LG Optimus 2x] BS86:
you could try to record logs with aLogRec app from playstore. with that app, it is more likely that the crash is on the logs
[LG Optimus 2x] sgspluss:
Here a little review about KK 121...

Use it now since a week, the battery drain was ok have around 30% at the end of the day (use whatsapp, facebook, sms and little phone calls). No BSOD here or other problems. Use the kernel with Tonys CM10.1, all works very good, smooth and stable.

So i have to say very good job you both done! Keep the good work up.

Send from my LG-P990
[LG Optimus 2x] flat__line:
Wifi problem ...

first the disclaimers:

- the phone is undervolted and slightly overclocked (1.1MHz) so I guess I should not post anything ...

- 11dBm is really low power ...

anyway, sometimes when I try to connect via WiFi (no PSP power mode, no Hotspot power management, yes Awake power management) the phone enters a loop:

... connecting (1 tick signal)

... Saved ... (full scale signal flashes for a blink)

... connecting ...

The phone usually connects though, and in the reported situation it does if I restart the adsl modem. Other pc in the house keep their connection if they are connected, but cannot connect ...

Is the phone somehow messing up the adsl modem? or is the adsl modem messing up itself?

Thanks for any hint,
[LG Optimus 2x] Shadowchaz:
I had exactly the same issue. Turned out to be a faulty router. Replacement exactly the same model works fine for me anyway.
[LG Optimus 2x] Impact7:
I wanted to play candy crush saga but everytime I start a lvl, the game freezes and the display doesn't respond. Can somebody confirm that or does someone know how to fix that?
[LG Optimus 2x] BS86:
just to add something: 11dBm is not low ... its the default-value of most battery-powered WiFi devices like notebooks, tablets and stuff.
[LG Optimus 2x] 4ever1lov3:
i got the same problem! PA11, kk 100p5! candy crush saga keeps crashing every time when finish a level and move to the next one! it's not a heavy 3d game. so i guess there's incompatibility here! left a comment on google play store! don't know if the game's devs will care! :rolleyes:
[LG Optimus 2x] al3x1393:
I also have the same problem...but I think it's because of their app not because of the rom/kernel combo problem...it used to work very well 1 or 2 game updates ago
[LG Optimus 2x] rxjx:
I also experienced the same thing, I'm stucked at level 7 the game always freezes when trying to play. Maybe we should wait for an update.

I'm on KK121 and Tonyp's CM 10.1

Sent from my LG-P990
[LG Optimus 2x] Ximo F. Verde:
I've also had this issue 4-5 times in the past, a couple of times in hotels' wi-fi. I remember a case even b4 xmas and i also had it in a hotel room this saturday. dont have a log though so.. ill silently gtfo. :p
[LG Optimus 2x] vpaulve:
+1, everytime.
[LG Optimus 2x] DrummerMuppet:
C'mon guys, please, let's stop this discussion about Candy Crush. This is a kernel development thread. I highly doubt it's kernel-related, and [MENTION=4245452]al3x1393[/MENTION] said that the game worked well one or two versions ago. It'd be better if you send a log to the game developers instead.
[LG Optimus 2x] tonyp:
Just a wild guess here - but for a tiny number of apps the ramhack in it's current implementation causes problems.

This _might_ be the problem here as well. So don't do any negative PlayStore ratings, that wouldn't be fair to the developers.
[LG Optimus 2x] Impact7:
So could removing zram solve the problem or the other ramhack?
[LG Optimus 2x] pengus77:
LG Derps 101

You can email the guy if you want LOL

#if !defined(STAR_COUNTRY_KR) //20101103 seki.par@lge.com heaset detect time[LGE_LAB1]
int hook_press_time = 100;
int hook_release_time = 20;
#else
int hook_press_time = 100;
int hook_release_time = 20;
#endif
[LG Optimus 2x] DrummerMuppet:
That reminded me of a derp I found in someone else's code while working on a common project:

if (true) {
... some code here ...
} else {
... some code here that never got executed
}
[LG Optimus 2x] KiRAdot47:
interesting feature :)

here's the thread

Sweep 2 Wake Kernel also known as S2W
[LG Optimus 2x] x_justin:
Hmm definitely in terms of durability, since TonyP thought of the feature to lock the phone by long pressing menu. So the basic idea is to unlock the phone by swyping along all soft buttons?
[LG Optimus 2x] dr.lube:
and lock swiping in the reverse way :D
[LG Optimus 2x] tonyp:
Wow, your crystal ball seems to work pretty well :D
[LG Optimus 2x] KiRAdot47:
i can scout for more :P
[LG Optimus 2x] pengus77:
LOL he meant that i talked to him about that yesterday on gtalk and i'm already checking out a way to make it happen on our device ;)
[LG Optimus 2x] lulli1:
pengus, does your kernel work on glasballs? mine has a different one, as it seems. it drains the battery that fast. when i switch it on, you are only able to see yesterday, and you have charge it again.... :)
[LG Optimus 2x] Joe4899:
Sorry for off topic, but what the hell are glassballs? :p can't stop laughing :D