yashsingh1/xdaforums huggingface dataset:
[LG Optimus 2x] Firtecy:
Experimental Kernel version 3!

firtecy_kernel_exp-3 - 13.6.2014

Changelog:

tons of updates to zram/zcache (picked from faux123 tegra kernels)

crypto: added optimized AES and SHA1 routines

added permission checker for binder IPC

tegra video driver updates

Fixed the voltage table -> all values below 770 MHz are not supported by the regulator chip (thanks to all who helped researching! :) )

If you have any feature requests or wishes you can just post them in here and i will take a look at that ;) I will then write all wishes + my opinion on those into the second post ;)

Downloads as always at baskedbuild:

-> Option to use: No ramhack, 16Mb Ramhack or 32 Mb Ramhack!

https://s.basketbuild.com/devs/firtecy/p990/kernel/3.1/

Source at github:

https://github.com/Firtecy/kowalski
[LG Optimus 2x] ivaneris:
I think can't wake bug related to lockscreen...i disable lockscreen and no problem...just downloaded latest exp will flash it asap...

Sent from my LG-P990
[LG Optimus 2x] lukino993:
I have reboots with #3 kernel 32 MB rh maybe because i have dirty flashed last cm11 build?if i revert to #2 32 rh all is ok..

Inviato dal mio LG-P990 utilizzando Tapatalk
[LG Optimus 2x] Firtecy:
Okay, but i need some additional information:

Do you have a last_kmsg?

Did you see the pink lg logo?

Did you change any values? So which values are not default?

If you don't have a last_kmsg (taken right after the reboot!) there is no real possibility to fix this issue, because then I have to guess what is causing the problems ^^

That means it would be very helpful, if you can give me a last_kmsg ;)

Gesendet von meinem LG-P990 mit Tapatalk
[LG Optimus 2x] lukino993:
Ok so..i use with frequency 120-1200 MHz ..swappiness set to 100 and zram set to 18% ..for last kmsg i'll see tomorrow how to do..thanks for the fast reply :)

Edit:yes i see pink LG logo

Inviato dal mio LG-P990 utilizzando Tapatalk
[LG Optimus 2x] ivaneris:
No prob for new kernel so far...but i set min 216 but it still goes to 120...strange...btw what's the advantage using 168/120mhz now that is the same 770mv like 216?

Sent from my LG-P990

---------- Post added at 09:53 AM ---------- Previous post was at 09:04 AM ----------

Got sod with exp 3,no uv,216-1000mhz,need to pull battery https://mega.co.nz/#!oAgRnRAZ!3-tnxq_Ff5ygg6eOlpzaYF0Ax-IhxwzP5JdAMZxn-24 here my last kmesg

----------------

Got twice reboot (the 2nd stuck at lg bootlogo) can't provide last kmsg...it's empty :(

Back to exp1 for now...most stable for me

Sent from my LG-P990
[LG Optimus 2x] Firtecy:
I'm sorry, but that last_kmsg is also empty. Please keep in mind, that when you pull out your battery you have to insert it very fast otherwise the last_kmsg will be lost.

Update:

I tried everything to trigger a reboot, but I had no success. So i need some more information:

Can everyone that have issues please post:

- every value that is not default: (oom values, swappiness, vm settings, frequencies, undervolting)

- When exactly did it happend (apps that you used, when screen was off)

- Which version no ramhack, 16 ramhack, 32 ramhack

- kmsg and last_kmsg, when it is possible
[LG Optimus 2x] DeeKay773:
Hello, I had crash - reboot today:

with screen on, learning from photos (browsing images), disconnected charger, any kind of connection (GSM 2G only).

I posted it here because it rebooted itself not like usual bugs (only cyanogen animation) but there was also LG logo, so i think it may be kernel-related. :)

Some logs (only modem log not attached) are below.

ROM by BS86 (latest build from ? June) and Firtecy's kernel #3 32 MB ramhack.

Btw I have noticed wifi disconnects while screen of sometimes, although I've got set wifi on - always... Wifi optimalisation ON, in Kowalski mgr only screen on saving mode is ON (although afaik it doesn't work with 3.1 kernel)...

Have a nice day :)
[LG Optimus 2x] Firtecy:
Thanks for your report. There is all I need for debugging. The last_kmsg was also not empty :) Will take a look into that soon!

I tried everything to trigger a reboot, but i was not successful. My phone is running since 76 hours ^^

But here is a small utility for the kernel (bugs). It is a small app that will collect all useful information and will upload it so that i can take a look into the problem. Here is a screenshot:

You have the text box where you can and should provide any additional information. Every xda user who wants that i should take a look into the problem should tell me the id of the bug-report you provided. But how to get the id:

At the bottom of the screen you can see some text like:

2014-06-17 18:00:40.714 => 13

the first part is the date and time of the report and after the "=>" you can see the id that this bug report had. (In that case it was "13").

If you send a bug report, post in this thread the id and your problem!

For users that do not have xda, please write all helpful information into the additional information field.

Download: https://s.basketbuild.com/devs/firtecy/p990/kernel/app/
[LG Optimus 2x] ivaneris:
Will try it after had a time...for now works fine with bs86 14 june ver with firtecy exp1

Sent from my LG-P990
[LG Optimus 2x] 4ever1lov3:
The linaro bare-metal toolchain is 32 bits so if any one using a 64 bits system and get the error of "command not found" or "no such file or directory" then installing the 32 bit version of libc and ncurses will resolve the problem. In ArchLinux, edit the /ect/pacman.conf file to enable the multilib repo, resync the database and install the 2 packages by "# pacman -S lib32-glibc lib32-ncurses". it is basicaly the same in ubuntu or other distros. just search for the package names on the internet.
[LG Optimus 2x] kayuz:
Great work guy great work!!!! :D
[LG Optimus 2x] Firtecy:
Thanks for your hint, i added it in the third post to the instructions for building the kernel! :)

I just recognized your question regarding the 120MHz.. Last time my focus was at bug hunting so i forgot your question.

So I will answer it now. You are write the cpu uses the same voltage for 120Mhz and 216Mhz, but the voltage is not the only part in power consumption.

Take a look at this link: how does power consumption vary with the processor frequency in a typical computer

It is nicely and short explained and also the physical background. I will test that in more detail with [MENTION=3605868]tonyp[/MENTION] (since he doesn't use his p990 as daily driver; I can't make long running tests since I need my phone everyday).

And I have a question: Do you guys are interested in a "KowalskiManager" App since the original kowalski manager app does not support many features I added? And if you would like to have an app which settings should i include?
[LG Optimus 2x] lukino993:
Yes it will be great if you can develop an app for your kernel,like FirtecyManager or something else..laugh: ,maybe you can include the setting we have to set with performance control like swappiness zram % value and ram profiles :)
[LG Optimus 2x] ivaneris:
strange i still had a prob with exp3..and didn't had a chance to get last kmsg :(

btw if there's an app build specifically for o2x kernel that would be great :D
[LG Optimus 2x] Firtecy:
Okay, I will include those options, when i release an app!

You can just use the bug reporting app I provided ;) You just have to do the following steps:

1. Install the app and open it once!

2. Reboot to recovery and install a exp3 kernel

If you get any problems:

3. Reinstall an older kernel

4. Reboot

5. Open the app again

6. Sent a bug report and send me the number of your bug you posted!

Would help very much!
[LG Optimus 2x] Gainer5:
That would be great. Maybe you can get the source code of the original KowalskiManager by [MENTION=3838586]wfd[/MENTION] and add the features in it.

There are two features which I'd love, so I wouldn't have to make my custom kernel: It would be cool if there was a slider to change the minimum on screen frequency (-> https://github.com/Firtecy/kowalski/commit/0908aaa95a6c2038333c48d382e97cd863d364d2). I wonder if it would be possible to have a slider to change the amount of the RAM-Hack, too. This way everyone could define how much he wants (maybe some value like 11mb).

Would these features be possible?

Thanks
[LG Optimus 2x] Firtecy:
Using the source code of the original kowalski-kernel would be a good idea, but I prefer to code from scratch as it will be possible to use newer api's and use some custom stuff.

The min on screen frequency was removed by me here, but i will include it again in the next update. I will also include that as an option in the app, when i release it!

For the ramhack I have to be a bit more detailed: When the kernel gets loaded and the device boots up, then as one of the earliest steps 120MB or 152MB (depending on the ramhack: 152Mb - 32MB(Ramhack) = 120MB) got reserved for tegra specific stuff as carveout memory (for the gpu, camera, etc.). That means it is impossible to change that afterwards through an option.

Maybe it would be possible if I recode the whole carveout code, but that would cost hours. I do not have the time atm for that ;)
[LG Optimus 2x] kennyFF92:
Maybe it's possible to change the amount of ramhack that will be applied only after reboot?
[LG Optimus 2x] Firtecy:
That is a very good idea. The last_kmsg is also still available after a reboot. That would mean, there is a way to secure data till the next reboot.

But this setting will only stick as long as you do not pull out the battery for more than a second. But it is still a better solution than the current one. Thanks!

Gesendet von meinem LG-P990 mit Tapatalk
[LG Optimus 2x] kennyFF92:
Don't take this like an ETA request, but are you working on camera bugs too or not? ;)
[LG Optimus 2x] BS86:
from what I experience on exp#3 32MB ramhack - the camera bug did not occur yesterday when I tried to recreate it for an hour ;) at least not with the LG-camera that is included in tonyp's ROM - never was a fan of the android/cm-camera

but apparently, it still can happen, but much less frequent then it was on pengus' last release
[LG Optimus 2x] kennyFF92:
Mmm probably on next rom release i'll go back to 3.1 with Firtecy's one
[LG Optimus 2x] Firtecy:
Yes, I'm working on the camera bug, but that is quite difficult since I can not take a look into all data that the kernel delivers from the camera. And I have really no experience with camera or even camera code at all.

I can't guarantee that I can fix the bug, but trust me I do my best ;) Please just be patient!
[LG Optimus 2x] lukino993:
I've tried to install exp 3 with latest cm 11 build with full wipe and for now no crash..if i should have one i will use kernel control to help you.great work anyway

Inviato dal mio LG-P990 utilizzando Tapatalk
[LG Optimus 2x] Firtecy:
Experimental Kernel version 4!

firtecy_kernel_exp-4 - 25.6.2014

Changelog:

minor updates/fixes from other kernels

Added the min screen on freq back

Added a sysfs attribute to change the min screen on freq

when disabling pksm, it will be disabled completely

Screen on min freq

If your screen is on, this frequency is the lowest that will be used. If your screen goes off for whatever reason the cpu will go to the normal min frequency.

Note: It seems like 120MHz and 168MHz are stable even for screen on, but since there was the question if i can add it, here you go:

How to change the value:

echo [value] > /sys/module/cpu_tegra/parameters/cpu_screen_on_min_cap

You have to use a value that is in the frequency table, but you have to echo the frequency in KHz, so 120MHz -> 120000KHz:

echo 120000 > /sys/module/cpu_tegra/parameters/cpu_screen_on_min_cap

This option does not stick after a reboot

According to [MENTION=5077573]BS86[/MENTION] this release should be more stable than exp3 and thanks for testing!

Downloads as always at baskedbuild:

-> Option to use: No ramhack, 16Mb Ramhack or 32 Mb Ramhack!

https://s.basketbuild.com/devs/firtecy/p990/kernel/3.1/

Source at github:

https://github.com/Firtecy/kowalski
[LG Optimus 2x] tavoc:
[MENTION=5124291]Firtecy[/MENTION]

thanks for your new release.

But the file firtecy_kernel_exp-4_16MB-RH.zip is too small. 32 KB dont seems right.
[LG Optimus 2x] Firtecy:
Oh yes that can't be right. It seems like something interrupted the upload. Thanks fro pointing to that issue. I have reuploaded the file, now it should be correct ;)
[LG Optimus 2x] kennyFF92:
Options to change frequencies, ramhack, and everything else we have to change by adb will be appreciated in your future app ;)
[LG Optimus 2x] lukino993:
for changing screen on value should i write this line (echo 120000 > /sys/module/cpu_tegra/parameters/cpu_screen_on_min_cap) in terminal after writing su for taking root permissions, right?
[LG Optimus 2x] Firtecy:
I'm now developing an app and I will include all those options! But i will need some time to build an app that supports all those features! ;)

And i'm trying to include all features that you guys said!

Yes that is right you need su permissions
[LG Optimus 2x] lukino993:
ok thanks and if i understand right this value automatically resets when we do a reboot?(i'm not so good in english to understand all terms :P)
[LG Optimus 2x] Firtecy:
Yes that is also right ;)
[LG Optimus 2x] lukino993:
Thanks for your fast answer,last question,so there is a way to activate that command at every phone boot?

Inviato dal mio LG-P990 utilizzando Tapatalk
[LG Optimus 2x] Firtecy:
Yes you can add all settings, so like "echo 120000 > /sys/module/cpu_tegra/par....." to the 95kowalski file. You can find the file under /system/etc/init.d/

There are already some settings you can just add your lines just below the others. For an example take a look at the pksm setings (last 3 lines ;) )
[LG Optimus 2x] lukino993:
Ok mate thanks you and sorry for too much questions

Inviato dal mio LG-P990 utilizzando Tapatalk
[LG Optimus 2x] Hawaiisa:
Hello there, beautiful people!

I just flashed exp #3 with twrp, and now my wifi is constantly disabled. The switch just sticks to "on" and is greyed out. I tried using your Kernel Control app to send a bug report, but I'm not sure if it came through? It says upload successful, but instead of an id after => it's quite a bit of what errors to be errors:

I'm starting to think I've done something wrong when installing the kernel. Actually, I'm pretty sure I have. I just don't know what...

As for now I'm going back to M1.

And for good measure I'll upload the .log files from SysLog

Thank you for your time and hard work!

EDIT: I get the same error with the exp #4 build
[LG Optimus 2x] BS86:
which ROM are you using?

i guess not a bcmdhd compatible one ;)
[LG Optimus 2x] Hawaiisa:
Your guess is right! I'm using the CM11 by tonyp (You might've heard of it? :p ). I currently have the bcm4329 build, so this makes a lot of sense.

Thanks!
[LG Optimus 2x] aftermath85:
can we expect the DT2W(double tap to wake) & swipe to wake in our old phone too?:victory:

this is not an ETA, just wanna know if its still possible? thanks
[LG Optimus 2x] Firtecy:
Yes I think it would be possible at least dt2w ;)

Okay guys, I will be away the next 4 weeks, enjoying my summer vacation. Do not expect a new update or any post from me during that time. time after these 4 weeks :)

On a side note: I haven't found the time to finish the app or implement all features, but if someone wants to test the current beta he can download it from here, but the rule is: No bug reports, since it is not really ready for an release KernelControl
[LG Optimus 2x] Hugo-PT:
Good vacation then :thumbup:

The community awaits you here :D

Sent from my LG-V500
[LG Optimus 2x] lukino993:
tried the alpha of kernel control..i like the ui :D
[LG Optimus 2x] bentcissé:
Dt2w would be simply amazing on our device (especially for people who have the power button semi-broken like me.),btw good long summer vocation for you and all devs!! :D ;)
[LG Optimus 2x] bentcissé:
Good holidays to all penguins!

:D
[LG Optimus 2x] DaChris2k13:
nice kernel but why is the cpu performance low? Quadrant gives 880 points and the benchmark is very slow, 3D and I/O is okay, btw the old 2.X kernel has 4500+ cpu points (@1GHz)
[LG Optimus 2x] kennyFF92:
Why should someone choose no ramhack/16 MB kernels? I mean, which are the negative effects of ramhack?
[LG Optimus 2x] lukino993:
in some games like candy crush saga the ramhack kernel make the game blink and not usable..without ramhack no problem
[LG Optimus 2x] Zubeplanet:
without ramhack candy crush working ?
[LG Optimus 2x] lukino993:
Yes it should..it worked with m1 noramhack by master pengus ,don t know if it will work with firtecy kernel but you might try
[LG Optimus 2x] kennyFF92:
I tried with The Simpsons Tapped Out, with no RH it's now working ;)

EDIT: is KSM gone in performance control with last update?
[LG Optimus 2x] pijas82:
Exp 4 rh 32 is fantastic, and camera works good
[LG Optimus 2x] dietoro:
I installed this kernel but all bluetooth devices disappear. Bluetooth doesn't work with no one of my devices so I decided to go Back to M1 and suddenly devices appear and bluetooth work again perfectly.
[LG Optimus 2x] michael.santos:
Hi Firtecy,

First let me thank you for your great work. Just got one question: you think it is possible to fix Bluetooth for Headset? The Samsung Galaxy R is also based on Tegra 2 chipset and there is a working Kitkat kernel for it (http://xdaforums.com/showthread.php?t=2405306). You think it is possible to use some code from there?

Thanks again and keep the great work!

Mike
[LG Optimus 2x] bentcissé:
Exp 4

For me the last exp 4 it's so amazing! :highfive: [MENTION=5124291]Firtecy[/MENTION] has been done a great job on the fluidity and the consumption of the battery, such as the two new frequencies of the CPU. Now the camera works better than exp31 by pengus :good:

---------- Post added at 12:07 AM ---------- Previous post was at 12:01 AM ----------

I've read that [MENTION=1200697]DJNoXD[/MENTION] will try to include bluez in next slimkat build :fingers-crossed:
[LG Optimus 2x] cRaZy-bisCuiT:
I won't be able to use it on Android 4.0.4 Stock (busybox, init.d, root), or will I?

EDIT: Will there be a way to fix the camera bug any time soon? I'd really like to use Android 4.4 with a stable,smooth kernel but a.t.m. all Builds seem to have some strange bugs still :/
[LG Optimus 2x] MHP2013:
Well I think this 3.1 Kernel does NOT work with stock Rom! You can only use it with the proper cm11 build (the bcmdhd one).

But you can try cm11 with the M1 kernel (the bcm4329 version), there REALLY aren't any 'strange bugs' at all! The camera works perfectly (since this camera bug is a kernel issue)!

Regs

Gesendet von meinem Optimus 2x mit Tapatalk
[LG Optimus 2x] Firtecy:
I do not know, but i don't care about benchmarks. For me it is important how good a kernel is in daily usage.

I use the no rh version when I take many photos since the camera performance seems to be better on that version.

I don't have that much experience with Bluetooth so I can't say something about it. First I have to do some researching, but I will do that when I am back in Germany (I don't have my notebook with me, only tablet + phone). I will be back in germany in ~10 days.

I have already looked at his github account and have picked some commits, but I will do it again when I resume my development.

Gesendet von meinem ASUS Transformer Pad TF700T mit Tapatalk
[LG Optimus 2x] aftermath85:
yessss for the dt2w.. :)

been testing the beta app..its nicely built.. ^___^

can i ask for info to about how can i lower the led light? :)

Edit: for now, i've install kowalski manager.. & it works, i lower the led.. :)
[LG Optimus 2x] Firtecy:
Would you like to have that as an option in the kernel control app?

Gesendet von meinem ASUS Transformer Pad TF700T mit Tapatalk
[LG Optimus 2x] aftermath85:
yes, if that's not take so much of your time.. your the best! ;)

plus the option to enable/disable dt2w(for future development):fingers-crossed:
[LG Optimus 2x] Hugo-PT:
wifi tethering turns on

[MENTION=5124291]Firtecy[/MENTION], you know that with the 3.1.10 exp # 4 wifi tethering, turns on. :)

Was tested and confirmed in slimkat. http://xdaforums.com/showthread.php?t=2551925&page=70

But is not yet fully functioning! The problem is, the devices no manage to find it. :(

The same happens with M1, which supposedly would be the wifi tethering working, but in reality it is the same that the 3.1.10 :rolleyes:

Thanks for your work and time :good:

Hugo
[LG Optimus 2x] KiD3991:
Does this kernel support AOSP? Like Paranoid or SlimKat?

Personally not a fan of Cm though...
[LG Optimus 2x] Firtecy:
Correct me if I'm wrong, but I think my kernel is even included in slimkat rom. It should work on both if they use the bcmdhd wifi driver ;)

On a side note: I now own a LG G3. That means i can use my O2X as a development phone :) So when I have some spare time, I will make a new update for the kernel!
[LG Optimus 2x] KiD3991:
Sweet! I bought the LG 2X just for the sake of wanting to try it out. Its an odd hobby, but I got this baby for $40 so I ain't gonna complain anything. It will be used a lot I'd say :P

My main device is still a Nexus 5.
[LG Optimus 2x] trivius:
That's great, it is nice to hear it.

Today I have found, that your latest kernel was great first aid for Camera rotation bug at 3.1. It automatically (and rapidly) recovers from upside down status. Thank you for that, it made my day :good:

I am looking forward impatiently to try your future kernels, hoping that it may completely cure the Camera rotation bug.

Thanks. Trivius
[LG Optimus 2x] KiD3991:
Since I assume you're the only kernel dev left here I'll ask you....

Is it possible to have the I2C clockrate reduced like its done now on the HH?

Its from code aurora so I think it might be possible. It more or less doubles the battery life of devices with little to no effort at all, without sacrificing performance!

Here's one of the Dev's G+ https://plus.google.com/app/basic/stream/z13rixbparibybpbe04cervoqxekxndb1us0k

And I can prove it works. my HammerHead gets at most 4hour SOT and now I get 6 hours SOT without tweaking anything! I can get 7-8 if I can lower my usage!

EDIT/PLUS:

I hopefully its made for both the platforms (both AOSP KK & LG STOCK) because for odd reasons the LG Stock is much more smoother on my device...
[LG Optimus 2x] Firtecy:
This sounds promising, I will take a look into that for the next release! :) Thanks for that info, I appreciate information like that and it really helps me with the developing.

But for now: I do not have that much time to spend hours on kernel developing so I will release my current kernel base.

Experimental Kernel version 5!

firtecy_kernel_exp-5 - 25.8.2014

Added intellactive governor (thanks to [MENTION=3332811]faux123[/MENTION]) and powersave

Some bug fixes

Added sync framework and exfat support (but not active for the moment)

Added a "kowalski touch driver" and dt2w files (since they are not stable enough for now, they are disabled)

The reason why I disabled those things is that I didn't had the time to test them. If you want to test them you have to build your own version. Especially for other developers that can be interesting.

Downloads as always at baskedbuild:

https://s.basketbuild.com/devs/firtecy/p990/kernel/3.1/

Source at github:

https://github.com/Firtecy/kowalski

Status of double tap to wake:

-It works but only for as long as the phone does not enter deep sleep

-If I try to set an irq for the touch driver, those get reset and the phone won't wake up

-I have tried at some point to reduce the cpu freq to 8MHz during screen off and to disable everything else, but that was still too much battery drain

-Even if i disable lp1 or lp2 still the phone won't wake up.

I think i have to research a bit more to find a working solution

If anyone has some ideas I would be pleased to hear them.
[LG Optimus 2x] bentcissé:
Good job! :thumbup:
[LG Optimus 2x] KiD3991:
Aye! Will be waiting patiently. Then my LG 2X can be my proper daily finally!

And I confirm the effect of the battery saving, its marginal and extremely obvious. 4hours SOT to 5-6hours under normal circumstances. And they say up to 8.