yashsingh1/xdaforums huggingface dataset:
[LG Optimus 2x] aMpeX:
I'll flash it right away, the problem is the issue is "boot-dependant" meaning sometimes wifi works without any problems and sometimes it gives those errors until i reboot the phone.

I'll report back!
[LG Optimus 2x] slebit:
Thank you! I have awesome battery life with this kernel!
[LG Optimus 2x] fuxmen:
my phone just shut himself down when i turn off from airplane mode :) just report
[LG Optimus 2x] Harsh:
is this happening in latest release?
[LG Optimus 2x] slebit:
I don't have this problem. Do you have the latest release?
[LG Optimus 2x] fuxmen:
I don't have -1 relase im going to update this

and now i try to reproduce this but it wont happen, but I update anyway :)
[LG Optimus 2x] Harsh:
New kernel 3.0.27 coming soon.

And hope everything is going fine with you all on latest reborn.

Sent from my LG-P990
[LG Optimus 2x] slebit:
The new reborn works great for me. I can't believe I have so great battery life, and that it is so smooth!
[LG Optimus 2x] baliriot:
your latest kernel update works fine so far, thanks!

excited for kernel version .27... :D
[LG Optimus 2x] fuxmen:
all day from 8 am, like 1,5h music, mails sms, talks, internet, 3 rebots, one update of kernel, and still 62% battery xD this kernel rocks!!!!
[LG Optimus 2x] TheBo:
sorry to be that slow replying
[LG Optimus 2x] Harsh:
Teaser. Testing for now.

Sent from my LG-P990
[LG Optimus 2x] pastime1971:
thanks. i will compare it to mine tonight.

as i am no expert in reading logcats, it would help me if you can tell me what you were doing during this logcat ? (turn off wifi and wait for mobile data?)

edit: i don't think it captured the moment when you turn off wifi, which would show

D/GSM ( 1864): [GsmDCT] onReceive: action=android.net.wifi.WIFI_STATE_CHANGED
[LG Optimus 2x] vadonka:
Linux 3.0.27

commits on my github or apply this incremental patch: http://etana.donka.hu/kernel/patch/patch-3.0.26-27.gz
[LG Optimus 2x] Harsh:
Already applied from linux git, and testing it since morning.

Sent from my LG-P990
[LG Optimus 2x] k101d:
Last night I came from other rom by

1.backtoext3+dalvik wipe then install

2.owain94 #34+gApp then 0204-1 all in the same time

3.then reboot

every thing work fine EXCEPT I can't perform reboot via power button it just turn off instead of reboot. Is this normal or what wrong I do ??

PS:no bettery heat and no BSOD overnight wall charge :D

Another problem found I leave from one wifi access point area to other area (both far away more than 5 KM) but my wifi still conncet the old that make I can't connect to internet need to select new wifi access point via manual then I can surf net again via new access point ?? why not disconnect and revovery new one automatic I never found this problem before with other rom.
[LG Optimus 2x] pastime1971:
turned off wifi to check radio logcat, and then turned it back on, and phone shut down.

doesn't always happen, but enough to notice a pattern... :(
[LG Optimus 2x] cesarguaro:
Great Job

harsh there is a way that we could read the internal memory like sd card and the external memory like external_sd just like the stock rom of gb?

I´m using your kernel and is really good congratulations...
[LG Optimus 2x] vadonka:
i think you need this:

settings/cm settings/application/use internal storage for applications
[LG Optimus 2x] langhaardack:
Don't you mean settings/storage/<menubutton>/storage configuration/use internal storage?

@harsh: why did you remove voodoo sound? id use your kernel, if youd include voodoo sound again, bcause voodoo is THE argument for me to use a custom kernel. usually using ironkrnl, but it wont work anymore, so im looking for a new kernel. dont like hp because of all the additionals.
[LG Optimus 2x] eniux:
voodoo only raises the volume at this time.

there is no other difference at this time.

Just saying..

Verstuurd van mijn LG-P990 met Tapatalk
[LG Optimus 2x] eyronic:
I think he means that internal as sdcard and external as sdcard/_ExternalSD?
[LG Optimus 2x] langhaardack:
And if that's exactly what i want? ;)
[LG Optimus 2x] eniux:
use dsp for the same thing?

Verstuurd van mijn LG-P990 met Tapatalk
[LG Optimus 2x] TheBo:
did i miss the starting point? did i? coul it be i started logging with wifi already off because i needed to know the issue was there before log started, in any case it happens only when you are non wifi for a long time... i mean if you are on mobile data, then you turn on wifi, download something (let's say, it takes you 10 minutes) than you turn off wifi, mobile data doesn't stop working.

if you wish tonight i'll try to recreate the issue, for 3 days since i posted yesterday i hadn't it, since i've not used wifi, and that's why i replied you that slowly
[LG Optimus 2x] langhaardack:
ive always been told theres a difference + i thought dsp and voodoo stacked...
[LG Optimus 2x] Harsh:
uploaded kernel build-0304

changelog:

upgraded Linux kernel source version 3.0.27

various MMC tweak and safepoints

pastime .config fix for support voltage unit in uV
[LG Optimus 2x] slebit:
Great! Thanks!
[LG Optimus 2x] cesarguaro:
YES

Thats exactly what i want... is posible??
[LG Optimus 2x] Harsh:
sorry, i would not be implementing that. Would keep as it is in CM9.

sdcard = external

emmc = internal
[LG Optimus 2x] Striatum_bdr:
Yes don't change it. There are mods or toturials for those who want to change it.
[LG Optimus 2x] slebit:
I also like that you keep it that way.
[LG Optimus 2x] pastime1971:
hmm. interesting. i thought it happens every time you turn off wifi.

if what you say is true, it is more fishy (and harder to catch...:()

i will take a look at your old logcat again, and see if i can catch something.

i would appreciate if you can grab another logcats starting from (1) use mobile for a long period, (2) turn on wifi, (3) download something, (4) turn off wifi

i didn't see (4) in your old one, but maybe i missed it.

edit: see http://xdaforums.com/showpost.php?p=24395675&postcount=1935

---------- Post added at 08:33 AM ---------- Previous post was at 08:31 AM ----------

yes, it is possible. see http://xdaforums.com/showthread.php?t=1144553&page=25

you can apply it right after flashing ROM (no relation to kernel)
[LG Optimus 2x] TheBo:
Thank you. You have been VERY kind through all this, so thank you again!
[LG Optimus 2x] Harsh:
Pastime is background hero. He is behind every great development but always ahead in answering people and finding solutions.

Sent from my LG-P990
[LG Optimus 2x] Vippo321:
What a shame, I miss voodoo sound too. I dont understand why harsh removed it. But OK, respect his decision.
[LG Optimus 2x] eniux:
question anyone else had the problem that during a call the voice on the other end gets distorted every now and then?

its weird I was calling with my girlfriend and every time she was talking for a long time (and believe me that happens a lot ;)) the voice would sound like it was scrambled.

Verstuurd van mijn LG-P990 met Tapatalk
[LG Optimus 2x] infexis:
just installed the kernel, love it! everything is good as expected but i miss voodoo sound :(
[LG Optimus 2x] Harsh:
Too many voodoo lovers, will put it back in next releases.

Sent from my LG-P990
[LG Optimus 2x] eniux:
why did you take it out anyway? (not that I care about voodoo at all. well atleast not untill it actually does something other then raising volume :D)

Verstuurd van mijn LG-P990 met Tapatalk
[LG Optimus 2x] Harsh:
I did because of same reason you quoted. It's no real advantage like in Samsung galaxy s phone. Just volume high is its use in our phones.

Sent from my LG-P990
[LG Optimus 2x] VSwensson:
For peoples that have been using this for some time, is it stable enought? Or is there allot of BSODs while charging or other circumstances you really don't want t?
[LG Optimus 2x] tr@p:
For me it's pretty stable... can't remember when I had a BSOD. Using it couple days now...
[LG Optimus 2x] Harsh:
Guys fork queue feature is now removed from Github, sharing collaborative work on github from various members of fork is now on pull request only.

Its like now we have to either apply patch in command line, or ask author of commit to send you pull request, cant pull of others work simply by few clicks.
[LG Optimus 2x] eniux:
reinstalled after wifi was fixed, haven't had a problem yet. no BSODS (not even while charging) , really fast and stable. I'm still running sk3 though, cause its extremely stable for me.

Verstuurd van mijn LG-P990 met Tapatalk
[LG Optimus 2x] pastime1971:
interesting.

can you do "cherry-pick" it and "push" ? (or, am i saying the same thing you are talking about...?)
[LG Optimus 2x] Harsh:
That is same, only thing removed is fork queue, which was under fork next to graph and members on github.

Sent from my LG-P990
[LG Optimus 2x] cesarguaro:
Harsh great job i found that the wifi thetering doesnt work... Any idea??
[LG Optimus 2x] vamoslakers:
I'll try this kernel, i just want a better battery life :(
[LG Optimus 2x] Striatum_bdr:
Wifi bug is still here, I just ended a thirty min internet session a couple of minute ago, and data didn't reconnect.
[LG Optimus 2x] Egan:
Same problem here. The setting hangs and after a while the bootanimation with no end. It's a pretty unstable kernel. I'll stick with stock for now. Thanks anyway Harsh for your work!
[LG Optimus 2x] Striatum_bdr:
Here some relevant part of log.

D/ConnectivityService( 1710): ConnectivityChange for WIFI: DISCONNECTED/DISCONNECTED

D/ConnectivityService( 1710): Attempting to switch to mobile

D/ConnectivityService( 1710): Attempting to switch to BLUETOOTH_TETHER

E/ConnectivityService( 1710): Exception trying to remove a route: java.lang.IllegalStateException: Unable to communicate with native dameon to add routes - com.android.server.NativeDaemonConnectorException: Cmd {interface route remove wlan0 default 192.168.1.1 32 0.0.0.0} failed with code 400 : {Failed to remove route from default table (No such process)}

E/ConnectivityService( 1710): Exception trying to remove a route: java.lang.IllegalStateException: Unable to communicate with native dameon to add routes - com.android.server.NativeDaemonConnectorException: Cmd {interface route remove wlan0 default 0.0.0.0 0 192.168.1.1} failed with code 400 : {Failed to remove route from default table (No such process)}

D/ConnectivityService( 1710): resetConnections(wlan0, 3)

D/ConnectivityService( 1710): handleInetConditionChange: no active default network - ignore

D/NetlinkEvent( 1052): Unexpected netlink message. type=0x11

W/InputManagerService( 1710): Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy@419c53c0

D/ConnectivityService( 1710): ConnectivityChange for mobile: CONNECTED/CONNECTED

D/NetworkPolicy( 1710): applying policy NetworkPolicy[NetworkTemplate: matchRule=MOBILE_ALL, subscriberId=valid]: cycleDay=1, warningBytes=2147483648, limitBytes=-1, lastSnooze=-1 to ifaces [vsnet0]

D/PhoneStatusBar( 4713): disable: < expand icons alerts ticker system_info back home RECENT* clock >

D/PhoneStatusBar( 4713): disable: < expand icons alerts ticker system_info BACK* HOME* RECENT CLOCK* >

D/ConnectivityService( 1710): NetTransition Wakelock for WifiStateMachine released by timeout

I've got log file if you want.
[LG Optimus 2x] pastime1971:
could you also post a link to the file ?

it definitely sounds like it caught it.
[LG Optimus 2x] langhaardack:
Wi-Fi Tethering worked fine for me, started it over the power widget.

E: WiFi seems to drain a LOT of battery.
[LG Optimus 2x] Striatum_bdr:
Here it is.

It seems to me that delay is important, when wifi is on only for perhaps less than 1 or 2 minutes switch back to data is ok.
[LG Optimus 2x] pastime1971:
ok. i can reproduce it. i think there is an issue with executing "route" command.

looks like it fails and the connection is reset (which makes it look like no problem.)

"route" was not used in CM7. so, no easy debugging.

there are two "route" commands. one in /system/bin and another in /system/xbin. the former is a sym link of /system/bin/toolbox and the latter is of /system/xbin/busybox

what you describe in terms of period may have something to do with wake_lock. (not sure yet).
[LG Optimus 2x] Harsh:
Uploaded beta testing build for wifi tethering issue. Please those who have issue check it out from below link.

Link Removed.

its not on OP, its testing build, I have flashed it, and will be testing for a day.

Edit: file removed, new update coming soon.
[LG Optimus 2x] langhaardack:
27 WiFi-Disconnects in 26 minutes and 50 seconds. even though im on max range for wifi it worked way better with the stock kernel, and im wondering whether you could look into that. That might cure the battery usage (at least for me). :)
[LG Optimus 2x] Harsh:
New update, testing version.

Made using AnyKernel by koush. Flashable on AOKP, CM9 and all ICS roms.

Changelog:

Voodoo sound added back.

Hopefully fixed WiFi tether bug.

download link:

http://www.mediafire.com/download.php?z4817w0jyrjse1a

link on here only as need extensive testing before getting it on OP
[LG Optimus 2x] Egan:
The tethering bug is fixed on my end. Thank you a lot for that! Will test some more throughout the day.
[LG Optimus 2x] Vippo321:
Thank you for voodoo :)
[LG Optimus 2x] pastime1971:
i've been looking into "wifi off issue"

turning wifi off tries to remove route info, which ends up calling ioctl, which errors with "No such process" and i'm stuck there. can't figure out what it does. :mad:

does it call /system/bin/route ?
[LG Optimus 2x] Harsh:
Updated OP, new kernel. Those who downloaded 0504 can skip it.

Changelog:

build 0504

Using AnyKernel by koush (easy flash for all ICS roms.)

Added Voodoo again

Fajarep BL values (better battery)
[LG Optimus 2x] cesarguaro:
Wifi Tethering

Harsh i still have the issue with the wifi tethering when i active the option the phone freeze... and i have to restart taking pit the battery and put it in back again... :S:confused:
[LG Optimus 2x] Egan:
Same here. It worked the first few times, but now it freezes.
[LG Optimus 2x] Harsh:
Will look out for it. As I tried few times, it was working. How much stable is it with stock kernel?
[LG Optimus 2x] langhaardack:
Had several (not sure whether its been more than 2) crashes of com.android.phone. one after installing an apk (cut the rope), but its all in the log ;)

E: now logs are really included. :D
[LG Optimus 2x] sibbor:
nice, wkpark seems to have found the fix for detection of SD card speed: http://xdaforums.com/showpost.php?p=24513268&postcount=282

I've done some benchmarking, comparing different setups. It's not complete, but one can see what's lacking with the current 3.0.X kernels. Harsh, your 0504 build really improved performance for me. It's looking good:

https://docs.google.com/spreadsheet/ccc?key=0Api2mSgk7cfUdENKWWVqNnUyS013dnJpMGxNQXZxeEE#gid=0
[LG Optimus 2x] Harsh:
Good work on spreadsheet.

Implementing and testing new wkpark's findings, hope this improves bit more. :D
[LG Optimus 2x] Harsh:
New kernel uploaded.

Changelog:

build 0604

SD Card IO speed fixed (thanks again wkpark)

Nothing much, just some cosmetic fixes in code
[LG Optimus 2x] Mike7515:
Best ICS kernel ..

Excuse me, but you can add to the kernel to overclock the processor to increase performance of the phone?

However, I must thank you for the work done for the kernel that performs very well ...

Sorry again for my English ... :D:D:D

__________________

Phone: LG Optimus 2X

ROM: CM9 KANG by owain94

Kernel: Harsh Kernel P990

Recovery: CWM 5.0.2.0
[LG Optimus 2x] spica1234:
Btw your english is good:)
[LG Optimus 2x] langhaardack:
I had my custom notification tones in /sdcard/Notifications, but I can't choose them anymore. worked with build 0504, 0604 broke it. original cm9sk3.

If it helps: i switched the mountpoints so internal storage is sdcard and ext sd is /mnt/emmc.
[LG Optimus 2x] baliriot:
try create new directory /sdcard/media/audio/notifications(put your custom notification in this folder), reboot then see if it help... :)
[LG Optimus 2x] langhaardack:
Thanks, but that didn't solve it. ;/
[LG Optimus 2x] jacobmllr95:
You can also put your ringtones into the /system/media/audio/notifications folder. Don't forget to reboot the phone ;)

You need root access but in this folder the notification will always show up correctly and you can mount your sdcard's as you want.
[LG Optimus 2x] Harsh:
For OC/UV I suggest SuperNova kernel. Hei is making up 3.0.y kernel with OC/UV in ICS. I would stick to stock speeds, as I own faulty phone which cant boot up with OC/UV kernels. Etna/ironKrnl/Supernova all with OC/UV makes my phone unbootable (stuck at LG logo)

I think custom notification tones should not be kernel related, and mount points or anything has not changed from 0504 to 0604. Only applied SD Card patch. And rest is cosmetic syntax things
[LG Optimus 2x] langhaardack:
That's exactly what i thought. But something broke. Regarding it doesn't even work in /system/media/audio/notifications i guess i'll try it with another musicformat. seems like mp3 isnt supported as a notification-format. :/

E: Magic fix inc. Everything works again... weird...
[LG Optimus 2x] Mike7515:
Thanks harsh ... I use your kernel ... Harsh kernel p990 .

.. excuse me ... another question, to make powerful the phone should I compress the memory with the theak ZRAM and VM heap size? Excuse my english ... and thanks ...
[LG Optimus 2x] Harsh:
zcache is enabled by default in this kernel. And would suggest not to do tweaking on it, yet have to enable it in kernel cmdline :(

and vm heap size default of CM9 is perfect, but you can change as you like.
[LG Optimus 2x] Egan:
With stock kernel its 100% stable. Never encounter the problem with it.
[LG Optimus 2x] Mike7515:
Thanks Harsh ...
[LG Optimus 2x] Harsh:
vm Heap size in CM is set to 128, same as galaxy nexus, maybe we can reduce it to 64 or 96 for better performance.
[LG Optimus 2x] spica1234:
Ges you are right recently no application use dalvik vm of 128
[LG Optimus 2x] rosmarcelino:
On Owains Kang it is set to 48Mb.
[LG Optimus 2x] Harsh:
On Owain's Kang its default 128. I am using his kang RC-36 also, and its best currently :D.
[LG Optimus 2x] Harsh:
op updated, new kernel.

nothing much again, people who want to skip this release its fine.

Changelog:

Reduced touchLED brightness

compiled with new reinstalled toolchain.

MD5 posted below download link, to avoid bad flash
[LG Optimus 2x] owain94:
will change default to 48 or 64

what do you prefer 48 or 64?

with 64 you can cache less apps so better for battery
[LG Optimus 2x] Harsh:
yeah I am using 64, its better for our phone, and 48 is min required for honeycomb, so 64 for ICS maybe
[LG Optimus 2x] langhaardack:
64 seems to be a good value, but that depends on phone, usage pattern (much multitasking, games and so on) and some apps which might not run because the heap isnt large enough.

I'll definitely give 64mib's a try, reporting what i feel. sadly im currently not on your kernel, im on ironkrnl with the 32mib ramhack... still reportin though. ;)

That's what the relevant part of my build.prop looks like:

dalvik.vm.heapstartsize=5m
dalvik.vm.heapgrowthlimit=48m
dalvik.vm.heapsize=64m

from a little googl'ing i found that heapgrowthlimit does about the same as heapsize, but is preferred. you have to tell your apps to use heapsize.

dalvik.vm.heapsize -> If we set "android:largeHeap="true" in
AndroidManifest.xml, it will use this setting.

no guarantees that this is true, its just what i found out after 5 minutes on google. but what i would conclude is that games for example prefer the larger heap size, while normal apps like messengers e.g. will just go with the 48m of heapgrowthlimit. that's plain theory. regarding ics is just being rolled out to major phones like the sgs2 and htc sensation many if not most apps are propably not using the .heapsize yet, but just use whats defined in .heapgrowthlimit.

another point to mention: the heapsize setting under preferences > performance > memory management seems to be useless, but i cant say that until i find something like jmp to display the actual heap size.

so far i didn't feel any improvements in performance, but i never feal something when it comes to felt performance. ;D
[LG Optimus 2x] slebit:
Trying it right now. Works great so far. :)
[LG Optimus 2x] owain94:
Harsh i am so sorry your kernel supports UMS fine my rom doesn't mount internal sd good my bad :(

damn now i have to fix it xD
[LG Optimus 2x] Harsh:
no problem mate, i m sure you will fix in next release. :)
[LG Optimus 2x] owain94:
I might know what broke it but need some testing modifying my files right now ;)
[LG Optimus 2x] hei1125:
good news that my kernel also support UMS

Just forget to wipe cache. :)

For the OC compatibility, I think it is not due to the 1.4GHz frequency but maybe gpu and ram frequency as default CPU frequency is 1GHz only
[LG Optimus 2x] Harsh:
Great :D...

I will look into it. Thanks.
[LG Optimus 2x] Harsh:
Teaser
[LG Optimus 2x] cesarguaro:
Excelent Job Harsh when this version will be available? and it will have the tethering fix? :)
[LG Optimus 2x] Harsh:
Yes it will have tethering fix. Already posted one kernel with tether fix in owain's tgread.
[LG Optimus 2x] hei1125:
How do you improve I/o score significantly? It is very high:)
[LG Optimus 2x] 2Kings:
@harsh: amazing i/o score!

i hope the improvement is noticeable in daily use

and 3.0.28 kernel! ^^

can't wait for it to be finished =)
[LG Optimus 2x] Harsh:
further tweaked vm for that.
[LG Optimus 2x] pastime1971:
@ harsh,

i'm looking into UMS stuff. it looks to me that the kernel only show one LUN.

upon UMS, storage shows up on my netbook linux as /dev/sdb not /dev/sdb1 (and 2)

p990 kernel dmesg shows

<6>[ 3.697093] android_usb gadget: Mass Storage Function, version: 2009/09/11
<6>[ 3.697104] android_usb gadget: Number of LUNs=1
<6>[ 3.697112] lun0: LUN: removable file: (no medium)

i think parameter initialization in driver/usb/gadget/mass_storage.c > line 100

static struct fsg_module_parameters mod_data = {
.stall = 1
};

it doesn't set luns, which is used to set nluns ?

did i read it correctly ? (to be honest, it is beyond my understanding of kernel)
[LG Optimus 2x] owain94:
harsh http://xdaforums.com/showpost.php?p=24850994&postcount=168
[LG Optimus 2x] Harsh:
static struct fsg_module_parameters mod_data = {
.stall = 1
};

is completely unrelated, its perfect.

we need to increse fsg.nluns to 2, will do it, and test if in next release. :D.. thanks for good findings :D
[LG Optimus 2x] owain94:
can this fix the UMS sdcard mounting problem?

i reverted both commits from r.cyanogenmod

and used setprop under a settings but even addid ums support in the overlay seems to cause this
[LG Optimus 2x] pastime1971:
hope so.

what did you see on your linux box ? i see /dev/sdb not /dev/sdb1

edit: @owain, maybe the problem was because kernel mounts /dev/sdb not individual partitions (/dev/sdb1 and /dev/sdb2) ?

---------- Post added at 12:03 PM ---------- Previous post was at 12:01 PM ----------

oh yeah, i was looking for something like that... :D
[LG Optimus 2x] owain94:
same here and i think so

because in the logcat i see a conflict when i try to mount the other sdcard
[LG Optimus 2x] pastime1971:
my reasoning (:)) is that they can't share /dev/sdb and fight each other. they will have to be individual partitions.
[LG Optimus 2x] Harsh:
Guys just wait for my next release. I am away now will upload as i reach to pc
[LG Optimus 2x] jacobmllr95:
The I/O score is really good :)

I hope its also so good on my phone because with your last test build I only got about 2000 at I/O :D
[LG Optimus 2x] owain94:
lol me and my unicorn hate you harsh xD
[LG Optimus 2x] hei1125:
Hi harsh,

I have tried this commit

https://github.com/bhanvadia/tegra-linux-3.0.y/commit/071a60218764ebd40d4446dcbe2dfb3c0528db3f

But I/O score seems still around 2000?

Thanks

---------- Post added at 05:04 AM ---------- Previous post was at 05:00 AM ----------

Hi pastime and owain,

I have found where to set nluns

arch/arm/mach-tegra/board-generic.c

But nluns is already equals to 2
[LG Optimus 2x] pastime1971:
is CONFIG_USB_ANDROID_MASS_STORAGE set?

edit: what about drivers/usb/gadget/android.c > mass_storage_function_init() ?