yashsingh1/xdaforums huggingface dataset:
[LG Optimus 2x] LarsPT:
Hi guys,

Just an idea for the automatic brightness thing... it would be nice if we could simply set the minimum and maximum values and have a script scale all the values in between. Should be fairly simple to code.

Thanks!!
[LG Optimus 2x] KoRRo89:
Very nice idea, maybe with also a medium value to set the shape of the curve...
[LG Optimus 2x] MinoochX:
You know Optimus Black? Yea xD they have stock blue LEDs. Lets say it came from there. although there is re wiring of the drivers required xD Well, Im still in the works of the LEDs. they flicker crazily when locking and unlocking. ZZZZ.
[LG Optimus 2x] ivaneris:
I see..optimus black had blue led if we touch it...but it's come with their stock gb...in ics stock they had only white...(dunno why lg made it so..)

Actually i'm curious too..black and 02x almost the same after all (appearance :p )

Sent from my LG-P990
[LG Optimus 2x] pengus77:
Careful if they flicker, that means that the regulator is not tuned correctly and you risk frying them... just my 2 cents...
[LG Optimus 2x] LarsPT:
Sure... if you have the free time to implement a second degree polinomial lagrange regression to find the curve equation... or to me a simple min/max would suffice :fingers-crossed:
[LG Optimus 2x] pengus77:
Well the LUX values from the sensor are not linear, nor exponential, nor logarithmic unfortunately. The increasing values that are checked use this pattern: 0 +50 +30 +30 +40 +50 +50 +100 +100 +100 +150 +150 +200 +400 +600 +1000... so the curve would look a bit uhm... wonky :D

eg. http://goo.gl/erJZa
[LG Optimus 2x] KoRRo89:
You're right, I forgot that only the parabola is simple to calculate with 3 points... I have to study some math again... XD
[LG Optimus 2x] pengus77:
Going with a b-spline with damping towards the end...
[LG Optimus 2x] KoRRo89:
What?! Ok, i definitely have to study a lot...
[LG Optimus 2x] massimo69:
Actually we decided that a polynomial would be a better fit....

but since then this came up..... so http://prntscr.com/15ygvi

Oh by the way this would have been the polynomial :)

http://prntscr.com/15yd4s
[LG Optimus 2x] natalya:
Excuse me, but for those who would like to stick to manual brightness, would it be possible to further lower the minimum brightness level there too? I find it more bright than ever before, especially in the dark.

Thanks. I already posted an alc table of my own that worked but I just prefer manual brightness...
[LG Optimus 2x] TjekDig:
I too would prefer this over RootDim.

...
[LG Optimus 2x] massimo69:
I wasnt even gonna bother to reply but, if I am not wrong it has been said that the new kernel that will come out will allow to set a lower value for the brightness and also that KM will allow to set the brightness.

In any case just testing a new kernel with an improved autobrightness.....
[LG Optimus 2x] MinoochX:
Hey, is there a Kowalski developer conference xD LETS HANGOUT XD OT

and im speechless. The regulators are fixed. No flickeringgg here xD
[LG Optimus 2x] tonyp:
[MENTION=4717255]massimo69[/MENTION]: They were asking about manual brightness, not automatic :)

I did lower the config_screenBrightnessSettingMinimum value from 10 to 4 in my current testbuild.

Update: Yup, works perfectly. Panel goes to the it's min brightness (4 - which equals 3 in the kernel).

Gave the correct code for CM10 (there it's config_screenBrightnessDim) to pengus as well, so it'll soon be adopted by my CM10.1, PA and his CM10.
[LG Optimus 2x] natalya:
Difficult to change or just some text file where that value can be changed? On PA, that's why I'm asking :)
[LG Optimus 2x] pengus77:
You have to decompile framework-res.apk, change a value and recompile it... i'd say wait a bit and you'll get it ;)

Update: we just fixed this on Tony's 10.1 and PA and on my 10. Now min manual brightness is really the minimum supported by the hardware panel ( 3 ) :p
[LG Optimus 2x] JUMPhil:
4 is already the lowest brightness for me with RootDim.

So no need to go down to 3 I think?
[LG Optimus 2x] pengus77:
Well yeah but you can ditch the app and use the rom slider from the next builds ;)
[LG Optimus 2x] azharshaikh7866:
Wht abt ditching set cpu and providing all controls in kowalski manager:)

Like it was thr on gb in this app

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

Thnx for ur gr8 support for o2x community

Edit:- lol not set cpu i meant Cpu adjuster
[LG Optimus 2x] pengus77:
Because SetCPU doesn't work with this kernel for starters...
[LG Optimus 2x] JUMPhil:
I ment you don't have to set the brightness to 3 because 4 is already the lowest possible brightness with the panel = it doesn't get darker than 4 when it's lower than 4

Sorry for Engrish ^^
[LG Optimus 2x] pengus77:
Yep you're right. The equivalent of 3 for auto brightness is actually 4 for manual brightness. Just tested and it's interesting ;)
[LG Optimus 2x] tr@p:
Are we still talking about Set CPU? :confused:

I'm out of fish today... elephant should do it just fine...:D
[LG Optimus 2x] rlees85:
Also going for ZEN as it seems more simple than BFQ/etc it seems alright at the moment. Just thought I'd post in case others are having the same dilemma :eek: noticeable performance drop from ROW however
[LG Optimus 2x] imayoda81:
i'm experiencing strange battery drain, fast.. about 10% every 15 minutes :eek:

when reaching 1% phone will remain active but the very curious thing is that if i plug the ac charger it will get quite hot and start throtling the charge value (slow recharge with spikes)

if it persists i'll send logs once at home
[LG Optimus 2x] pengus77:
Are you using stock battery or an aftermarket one ? I'm not having any issue with drain and/or charging. I usually use my phone pretty hard during the day and leave it in charge overnight. It's sort of an habit and always worked. Do not charge the phone over USB. There are still some quirks with fake voltage reporting when 400/500 mA are passed to the battery. Prefer AC over USB all the way ;)
[LG Optimus 2x] KiRAdot47:
[MENTION=3783116]pengus77[/MENTION] hello, (this questions comes after some search and some reading) do you have commands/supprt in initramfs to support ext4 for internal sdcard (sdcard0), and if not could you make pls?

just tested with antutu@1.2GHz, ROW and i had 37.9 mb/s Write and >50mb/s READ speeds (the is no screenshot because "Storage may be in use"), and as far as i read, if one has ext fs on sd card android can mount it in win via mtp, and fused location does some think like it (gnex phones, have no ext card so they can have "one" FS) - this is from what i read, if i'm mistaking feel free to correct me.

Thank you!
[LG Optimus 2x] pengus77:
Spoiler Alert

Say hello to the newcomer... :p
[LG Optimus 2x] x_justin:
Aah nice! Finally an unlimmited time to shine:D Very nice!!!
[LG Optimus 2x] SREEPRAJAY:
[MENTION=3783116]pengus77[/MENTION] ,

for a change taking over the combo job of massimo and yourself mate? ;) :p

Thanks for the work and the spoiler
[LG Optimus 2x] pengus77:
LOL that was something i wanted to spoil, it's been asked over and over in all the threads, so it was time to fix it now that the kernel is finally stable and reliable ;)
[LG Optimus 2x] rlees85:
huh I thought the torch was already working??
[LG Optimus 2x] tr@p:
It is working, but didn't hold on when screen goes off...

Awesome job pengus, again... :)
[LG Optimus 2x] Kinimod01:
First of all: You and tonyP have done great work on this phone!

I just have one minor issue and I am not sure if this is a Bug or Feature :

The LED key brightness changes every time the screen brightness is changed manually.

Please skip this BUG report if it has already been reported..

Edit: I am on tonyP CM 10.1 t3 and Kowalski kernel exp 122
[LG Optimus 2x] pengus77:
That's something that can be fixed in the lights.star.so lib... rom level stuff. I'd say it'd be a good thing to disable rom control over leds brightness and i'll prolly implement that in the new 10 i'll release. But it's up to the rom makers...
[LG Optimus 2x] JUMPhil:
Automatic LED brightness adjustment with changing the screen brightness was a great new feature in CyanogenMod. Beforehand I always had to adjust it manually via O2X Touch Key Brightness app, and that was a pain in the @$$. It was a pity if we lose this feature again.
[LG Optimus 2x] pitbullx:
Re: [KERNEL][CM10/CM10.1/ICS - OLD/NEW BL][010 - 2013/01/19] Kowalski Kernel

Delete
[LG Optimus 2x] KingMGT:
@pengus77: How to build enable PM_MAX for wifi on CM10.1 kernel source?
[LG Optimus 2x] nocio:
i have one question.

when i compare official lg rom and cm10 camera, differences is huge. on cm10 pictures are way darker than official lg camera

can this be fixed or not?
[LG Optimus 2x] Beorn1:
Honorable master Pengus ;)

Could you please add to the 3rd post (or something like that) your personal recommended settings and tweaks for the kernel, plus short instructions on how to apply them for noobs like me? things like zram, etc and all the settings regarding governor that you change with "Trickster MOD" or something.

It would be very helpful and informative for me and many people who are like me in this matter :)

Thanks!
[LG Optimus 2x] FatherJony:
If i am not mistaken Benee used 2 devices along with snappy in his kernel and it worked like a charm. I get what you say about the overhead though, have you tested it?

Well, you can set zram in settings->performance->memory management. The default value is 18 and it seems like a good compromise between speed and ram savings. Zram is also set inside build.prop but another user informed me that getprop shows that android settings override it (getprop followed by free confirmed it).

You can set governors and the scheduler in settings->performance. Go to Processor and set your preferred governor. Interactive is the fastest, dyninteractive is a little less fast but saves more battery. Check the set on boot option and you are good to go. For the scheduler go back to the performance menu and click on I/O scheduler. ROW should already be the default there, if not select ROW and once again check the set on boot option.

You can change the read ahead value for the internal storage, by using an init.d script. This method won't work with official LG roms as AFAIK they don't support init.d scripts, but if you are on a CM based rom you are good to go. We will try to avoid using adb or terminal so get ES file explorer from the market instead. Open the application, go to settings->root settings and check root explorer and up to root, press yes on the prompt and then select mount file system. Now use the file explorer to browse to /system/etc/init.d. Once you are there, create a new file and name it 96readahead. Long press on the file, go to properties and press the change button. Set permissions like this:

User: read, write, execute

Group: read, execute

Other: read, execute

Now Press Ok -> Ok and press the 96readahead file. Choose text-> ES Note Editor and add these lines:

#!/system/bin/sh
echo 1024 > /sys/devices/virtual/bdi/179:0/read_ahead_kb

save the file and reboot.

This process is easy and it could be made even simpler with a flashable zip of the 96readahead file, but then you wouldn't learn anything new :p.

[EDIT]

I rewrote the readahead instructions in order to simplify them a little more.
[LG Optimus 2x] maharu567:
Re: [KERNEL][CM10/CM10.1/ICS - OLD/NEW BL][010 - 2013/01/19] Kowalski Kernel

I don't understand very well what this module thing does! I need that module if i flash 0.10 kernel and why?
[LG Optimus 2x] x_justin:
Re: [KERNEL][CM10/CM10.1/ICS - OLD/NEW BL][010 - 2013/01/19] Kowalski Kernel

Kernel is fast! Starting and installing apps goes faster then before and scrolling is as smooth as stock LG ics, (which is crap except for scrolling smoothness imo).

Is zram always priored above swap? I enabled swap with a zipfile from your rom pengus and re enabled zram in cm settings to 18%.

Trickster app is very easy to use for readahead adjustment!

Verstuurd van mlijn LG-P990 met Tapatalk
[LG Optimus 2x] KillerbeeNL:
Re: [KERNEL][CM10/CM10.1/ICS - OLD/NEW BL][010 - 2013/01/19] Kowalski Kernel

something strange with the latest smooth kernel :D, it keeps reverting to 1000mhz for min and max frequency and the says "device not supported" (Civato latest v30a/b)
[LG Optimus 2x] dcseek:
R: [KERNEL][CM10/CM10.1/ICS - OLD/NEW BL][010 - 2013/01/19] Kowalski Kernel

Cm PA and 010 kernel. My GPS is not starting with 009 was working normally. However this kernel is amazing. :thumbup:

Inviato dal mio LG-P990 con Tapatalk 2
[LG Optimus 2x] massimo69:
Install the lg camera from this thread. http://xdaforums.com/showthread.php?t=2091599
[LG Optimus 2x] pengus77:
Re: [KERNEL][CM10/CM10.1/ICS - OLD/NEW BL][010 - 2013/01/19] Kowalski Kernel

Try without airplane mode...
[LG Optimus 2x] pengus77:
Re: [KERNEL][CM10/CM10.1/ICS - OLD/NEW BL][010 - 2013/01/19] Kowalski Kernel

Check with civato... I don't set frequencies in the kernel, just scale them.
[LG Optimus 2x] TheBo:
LOOL

btw this kernel and GPS too, works on new Rugglez 3.1.11 MIUI ROM too, old BL.

Tested with runtastic this morning.
[LG Optimus 2x] dcseek:
R: [KERNEL][CM10/CM10.1/ICS - OLD/NEW BL][010 - 2013/01/19] Kowalski Kernel

I tried same result i get the same error... thnx for your quick reply . I will try with 007

Inviato dal mio LG-P990 con Tapatalk 2
[LG Optimus 2x] lulli1:
AW: [KERNEL][CM10/CM10.1/ICS - OLD/NEW BL][010 - 2013/01/19] Kowalski Kernel

has anybody tried the new 010 kernel for new bl on django manoush rom 30b ? are there any bugs or not workings?
[LG Optimus 2x] pengus77:
Progress Status

Guys, i've found some inconsistencies in wifi behaviour between CM10, CM10.1 and ICS. Just to let you know that i'm on it and that i'll post a fix soon ;)
[LG Optimus 2x] antec123:
mine too, not supported device on trickster mod. but mine, min 216mhz and max 1000mhz on trickster mod, and using interactive cpu governor.

this method can use app, such as sdcard speed increase, and user can save on boot.

i don't know if this method can be still on cm10, haven't tried. it's used for cm7 or GB rom to increase the cache both of your internal and external storage.

LOOP=`ls -d /sys/block/mmc*`;
MMC=`ls -d /sys/block/mmc*`;
for j in $LOOP $MMC
do
echo "2048" > $j/queue/read_ahead_kb;
done
[LG Optimus 2x] x_justin:
Re: [KERNEL][CM10/CM10.1/ICS - OLD/NEW BL][010 - 2013/01/19] Kowalski Kernel

Good to know! Tnx pengus. If i go to terminal and type free, only about 8MB of ram is free out of 384. When I look into a taskmanager, it reports about 100MB free. Is that including zram? And is it ok to have 8MB free? I feel some waiting times when opening an app, maybe it's just the boot time of that app, but the first screen of for example whatsapp appears directly (quiet blank) and after a little bit waiting time the app is ready. Is that time normal or is it time that memory is shifting between zram, ram and swap?

Verstuurd van mijn LG-P990 met Tapatalk
[LG Optimus 2x] da1likew00t:
@pengus

Do you know what the following error showing up on logcat is?

E/gralloc ( 97): NvGrPost: Failed, TEGRA_DC_EXT_FLIP 6 No such device or address

Several show up whenever you press the power button to deactivate the display.

What seems more troublesome is that they are logged indefinitely when the display is off and you quickly tap the power button 2 times.

I'm running 010-oldbl at CM10.1
[LG Optimus 2x] pengus77:
It shows as unsupported but works just fine. The "unsupported" toast shows up only because the p990 is not in its configuration. Don't worry and keep using it. Hardcoding 2048 kbytes of read ahead is not really a "sane" thing to do. Most users won't really benefit from it and won't be able to manually adjust it.
[LG Optimus 2x] rlees85:
Just did a quick test. My torch stays on even after the screen timeout occurs and the screen turns off. This is on kk 122. Maybe I am lucky but if some people are having trouble and Pengus has found a fix for it then all is good! I am relieved mine does work as I use it a lot when poking around with stuff in the car engine bay :victory:
[LG Optimus 2x] pengus77:
Try to force a screen off instead of waiting the timeout to occour and see if it still works ;)
[LG Optimus 2x] Anurag pandey:
Works for me both ways

Rom: cm10.1 by tonyp

Kernel: kk122
[LG Optimus 2x] oneearleft:
Thanks for great kernel. I am really happy with battery performance. I have some strange readings even though I have been through 3 cycles.

When battery goes to 0%, shuts down and then is charged through stock wall adapter, it shows newbl blue battery with level about 33%.

When I then turn on the phone (still charging), battery level is 65% for a long time before increasing.

I don't know what battery level becomes if I then disconnect from wall charger as I always leave it in for at least 1 hour after 100% is reached.

Edit:

I am on newbl pengus77 CM10 'look mom no hands' with kk122.

Log is here http://db.tt/IYsPvUVq
[LG Optimus 2x] filarod:
I'm having the same issue, it only occurs when the battery goes to 0% and the phone goes off. But, after the 3 cycles, I don't let the battery reach 0% anymore, and everything is fine, so... Probabily a battery reading error..
[LG Optimus 2x] pengus77:
When you charge with power off on the new bootloader, the bl starts a "charger" process (a static binary in the ramdisk). That process lives between the battery animation, cable connection and kernel. The whole thing could be a bit messed up, so i suggest you don't leave your phone shut down, instead use AC to charge it while it runs. Just for a test. I've been doing this for a long time and i never hit any battery problem at all :)
[LG Optimus 2x] DrummerMuppet:
So, it is better to charge the device while it's on? In my experience, the battery tends to last less when I do that.
[LG Optimus 2x] C0D3N1N3R:
Works for me too!

Sent from my LG-P990
[LG Optimus 2x] oneearleft:
I was under the impression that the controlled battery 0% shut down was required for best battery calibration and performance.
[LG Optimus 2x] tonyp:
[MENTION=3783116]pengus77[/MENTION]: feature request:

Once the battery goes below 5% flush the buffers and disable dynamic fsync in the kernel :)

Especially useful as there's currently no ordinary shutting down process anymore but the device just turns off.

But even if that's fixed it might be a handy feature for all kind of battery spikes and broken batteries to prevent corruption :good:
[LG Optimus 2x] oneearleft:
No idea whether it is related, but the controlled battery 0% shutdown process does seem sensitive: most of the times it is ok, but sometimes after boot hardware keys (like home button) do not work, recovery reboot in power menu is missing and SIM-card does not mount so I can not connect to mobile network.

Toggling airplane and security lock modes can help resolving these problems. Otherwise reflashing the ROM is the only way out (so far never needed with CM10 "Look Ma! No Hands!").

Edit:

I have now experienced this with a few ROMs, PA2.6, CM10.1 and CM10, so I guess it is kernel related.
[LG Optimus 2x] sangriaman:
Works for me too. Kk122 + tonyp 10.1 v3

01001100 01000111 00100000 01010000 00111001 00111001 00110000 00100000
[LG Optimus 2x] x_justin:
My phone certainly shuts down when battery is 1%! Is that right? Using kk122 look ma, no hands rom from Pengus.

Pengus! You can change ur OP because brightness control on ICS is fine now. I think your kernel is getting populair among ICS users.

Also, is it worth to advise everyone a stock battery? I used to have the goldie from ebay but it always was 22 degrees celsius. Now I have a working one, needed for thermal throttling isnt it? Anyway, my phone doesnt melt anymore!

Verstuurd van mijn LG-P990 met Tapatalk
[LG Optimus 2x] fjen:
Torch goes off with PA 13 + KK122. Thank you for the upcoming fix!
[LG Optimus 2x] Norlam:
Hi,

do I understand that correctly: I just have to activate auto-brightness in settings and modify the 95kowalski file or do I have to activate other settings in the automatic backlight menu too (light sensor filter, light levels,allow light decrease)?
[LG Optimus 2x] rlees85:
Which ROM? How do you activate the other settings in automatic brightness menu? To answer your question, you should just need to flash the kernel, modify 95kowalski to your taste (or leave default as I did) and tick the auto-brightness box under display settings
[LG Optimus 2x] Norlam:
Oh sorry I forgot to mention that I am using tonyp's PA b13 rom and there is a automatic brightness menu where you can activate/deactivate automatic brightness and a backlight backlight menu for advanced settings. So I just have to activate automatic brightness and the settings I made in the 95kowalski file are applied correctly?
[LG Optimus 2x] pengus77:
Yep, that whole menu is useless for our phone because we don't have an exposed light sensor. That's why i totally removed it from my rom :)
[LG Optimus 2x] darka9:
[MENTION=3783116]pengus77[/MENTION] isnt it possible to make the slider work just as on the other older versions on Android?
[LG Optimus 2x] der.einstein:
Dear pengus77,

Thanks for this great kernel!

I don't in know, if it is allowed to request features, but I know that in CM7 we had an option to select the warmth of the display colours. In Kelvin I mean. Even a night mode was possible.

Can this be implemented? I dont know if this is kernel Or Rom stuff though...

Thank you anyway :)
[LG Optimus 2x] JUMPhil:
This option was called "render effect" in CM7. I miss it, too.

You can also do this with the app Chainfire3D - but this app is not officially compatible with ICS/JB.

I guess it would be hard to implement.
[LG Optimus 2x] 60nine:
app "twilight" does the trick but be sure to disable it if you're installing some apps manually... (it makes the install button unclickable)
[LG Optimus 2x] JUMPhil:
I'm pretty sure this is just an overlay app like the other screen filter apps.

CM7 render effect and Chainfire3D let the GPU directly output it filtered. That looks different.
[LG Optimus 2x] tonyp:
It is.

Pengus already posted somewhere around here he might add gamma control to the kernel.

But there's a lot going on in the kernel, so there's - as always - no eta.
[LG Optimus 2x] oneearleft:
Okay, I have reproduced it now. It might be by design.

When I reboot my phone while 'Toggle lock screen' 'widget button' in the 'Notification drawer' is turned off (see screen dump),

my home button (all hardware keys?) does not work and my SIM-card will not mount.

When I turn on the widget, everything is ok (so this is not a serious problem).

Not sure whether this is kernel or ROM-related. I am currently on CM10 "Look Ma! No Hands!" and KKe122.
[LG Optimus 2x] pengus77:
Clearly a rom bug, i guess it hits also other 10s around... if anyone can confirm. I'll look into that, seems probable that the lock screen status is not cleared on reboot.
[LG Optimus 2x] luupocok:
pengus@

sometimes SD card unmounts

any idea?
[LG Optimus 2x] Farsx:
Have you tried a different card? Never had problems with SD...
[LG Optimus 2x] luupocok:
nope, i will
[LG Optimus 2x] 4ever1lov3:
hi Pengus,

is there any rule for setting the auto-brightness values? whenever i set them to some values that i want, (i do it by opening and editing the alc_table file with text editor on my phone), 1 of the two first values then is changed back to 5. :confused:
[LG Optimus 2x] mhkim4886:
Can you build this kernel exp build for SU660? We have stable version of KK in SU660 Thread, but latest ROMs(ex. TonyP's T-Build) can run well on latest exp kernels.
[LG Optimus 2x] kingvortex:
http://xdaforums.com/showthread.php?p=40387913
[LG Optimus 2x] mhkim4886:
Oh, that's my big mistake. Sorry for pengus...
[LG Optimus 2x] pengus77:
Just edit /etc/init.d/95kowalski as i wrote in the kernel release post... min = 5, max = 70. Save the file, reboot and done. If you know how to execute a script then execute it and you don't need to reboot.