yashsingh1/xdaforums huggingface dataset:
[Galaxy S Plus I9001 Android Development] educk:
v3.2 (rev 2)

Hello guys!

I updated to v3.2 merging all changes from ivendor beta 4. There is nothing added by me, but the new features are:

*BLNv9

*Vibration Intensity Control.

For now, only 2 versions available: exUV and UV both for CM10 beta 4 and 370MB RAM.

Beta 4 is much more smoother, ivendor made a great job with this new kernel so all credit goes to him, as always.

Also, thanks to CastagnaIT for the patches.

Enjoy ;)

Regards,

Erik

CM10.1 versions are being tested and will be available soon

P.S. Also, please guys, be careful when using and configuring BLN, if it's configured wrong it can cause deep sleep problems and extra battery drain.
[Galaxy S Plus I9001 Android Development] oscarmalo:
Best configuration BLN please? :S for me deep sleep not working, and my mother yes working :(
[Galaxy S Plus I9001 Android Development] educk:
Yeah, I was afraid of this, that's why I didn't implement BLN before. I did it now since invendor implemented it too in his base kernel and added support for it in the ROM too. The thing is that I don't use this function so I cannot give proper support for it. The issues coming from BLN are present in the stock kernel too as I didn't touch those files. In fact, the reason I'm not using this is simply because I don't see it's purpose, just some blinking light's when receiving notifications and, it's the risk of higher battery drain.

Now, I'm not saying that you shall not use it because I don't use it, that's why I implemented it, I got a lot of requests via PM to provide this feature in my kernel so this was the good opportunity.

I'll try to help though...

If I'm not wrong, you'll need some BLN Control App from the Play Store (I don't know exactly) and there shall be an option to disable BLN in sleep mode or something like this. Also, most deepsleep problems are coming from the ROM, installed apps, usually the kernel has nothing to do with it. But, don't start to blame BLN for every deepsleep problem, check it with some useful apps (like BetterBatteryStats or something like this) to be sure what's causing the problem. Based on that information, you may solve your problem. Also, sometimes a simple reboot, cache cleaning and permission fixing might do the trick ;)

I hope the things stated here will help!

Erik
[Galaxy S Plus I9001 Android Development] smeroni68:
Regarding BLNv9 on Beta4, in the menu under Advanced, the original BLN has been removed and changed with BLNv9... from the menu you can enable or disable BLN... but to manage the blinking and working of BLN you need to install from market "BLN Control" app or buy the "BLN Control Pro" version.

With this app you can configure how you want to use the white leds of the touch buttons (menu and back)... eg: you can set that after a missing call, for 1 minute you want blinking leds with 1 second ON and 2 second OFF sequence... and more...

By default, ivendor has deactivated the BLN functions, so to enable them, first install tha app, and after go to the menu and Enable the functioning.

This exchange has been done, because the original implementation of ivendor has generated some strange reboots, so he decided to remove them and implement the v9...

I hope I helped to clarify a bit what is the BLNv9 and how to configure them...
[Galaxy S Plus I9001 Android Development] polluzet:
It's also my opinion, Erik. For me there is no reason to use that, for me its urgent, that the telephone has enough battery to reach more than one or one and a half day. With your awesome kernels, you reached that for me, i use only your great kernels (now Ihave 3.1-Final OC), and its working very fine, thank you for your awesome job.

the screenshots from 24th of March (the first two) are from your 2.1-Phen-Kernel, the second two from 25th are from your 3.1-OC-Kernel. :good::good::good:
[Galaxy S Plus I9001 Android Development] educk:
Oh, that's great! Thank you for feedback ;).
[Galaxy S Plus I9001 Android Development] EB20XY:
The new kernel 3.2 works perfect with beta4. Thanks!
[Galaxy S Plus I9001 Android Development] oscarmalo:
Re: [Kernel][JB][3.0.70]PhenomKernel v3.2 -FINAL- for JB 4.1.2 and JB 4.2.2 [03.23.20

+1 finally, deep sleep is working!

Enviado desde mi GT-I9001 usando Tapatalk 2
[Galaxy S Plus I9001 Android Development] Rhonin86:
Works also under beta3

Hi Erik,

tested your new kernel under beta 3 and it works really good - BLN works perfectly now THX for this.

The regulation of the vibrationstrength is not possible under beta 3 - but for now i havent the time to update to beta 4

Thx for your work - especially because your time is limited :good: and you wanted to concentrate on 3.4.x devellopment

Rhonin
[Galaxy S Plus I9001 Android Development] Stefano187:
R: [Kernel][JB][3.0.70]PhenomKernel v3.2 -FINAL- for JB 4.1.2 and JB 4.2.2 [03.23.201

OK, I'm using CM10 beta4 with your last kernel and I have to say that it's amazing! Battery life is really awesome, I used my phone for 18hours with WiFi and 2g always on, BLN blink unlimited... Lulzactive 245/1824 - Row. Thank you very much Eric :)
[Galaxy S Plus I9001 Android Development] anuseb89:
satisfied..

Hi Erik,

I was not using ur kernel since cit 10.6 was released.. but today I changed to your kernel with beta4 and I will say it is GOOD..( 3.2 exuv version..369 mb of ram )

First impression

=============

no lags..no freezing of system ui..no random reboots or shutdowns..no app force closes..battery life is also very good..( once unplugged , 1 hr and 30 minutes as of now , full time wifi on , only 2g , made 6 minutes voice calls , 20 minutes of xda app usage , only 5 % battery loss..!!! which is good for me..that is the max you can expect from a smartphone if you are really using it :) )

Good work Erik !! Thanks for this release..

Only thing I am missing is Hyper governer which is in cit kernel..but no need of that.. smarta** is doing a really good job as of now..

All the best for your 3.4 kernel..
[Galaxy S Plus I9001 Android Development] TwinHeadedEagle:
Anyone experiencing sudden huge lags that last for 30 seconds...

Beside that, everything runs normal...
[Galaxy S Plus I9001 Android Development] anuseb89:
Re: [Kernel][JB][3.0.70]PhenomKernel v3.2 -FINAL- for JB 4.1.2 and JB 4.2.2 [03.23.20

I have posted my first preview in the previous post..but after using it for another 1 hour more i faced some lags wich lasted some seconds..

In one thread christopher told that if surface flinger needs more memory than the allocated one, it may jump to ashmem from pmem and may experience lags..is that the problem erik? I am not saying its lagging all the time..but it happened nearly 2 , 3 times..
[Galaxy S Plus I9001 Android Development] educk:
Yeah, it may be. But these lags may vary from one device to another... For instance, I was using the 370MB version for like 26 hours without rebooting or charging and I got a few glitches when the phone was heavily used. (I think it was OC-ed too). But, as I mentioned in Castagna's thread, more RAM doesn't always result in better performance. Of course, if the RAM is taken from the HW Decoder and Video Recording, it may give performance improvements but if we reduce the amount of RAM allocated to the Surface Fliger, it's not so good. I've been working on this these days and I might release a version 357-365 MB user available RAM. I haven't decided yet which is the "perfect" one as I don't have so many apps installed on my device so it never lags with normal usage. Anyways, long story short, I'm working on this, and I'll definitively allocate more RAM for the Surface Flinger....

Oh, and about the Kernel for CyanogenMod 10.1, I'll release that when Xistance will release his Alpha 7 (or beta 1) with Vsync working and other improvements he'll make ;).

Erik
[Galaxy S Plus I9001 Android Development] anuseb89:
Re: [Kernel][JB][3.0.70]PhenomKernel v3.2 -FINAL- for JB 4.1.2 and JB 4.2.2 [03.23.20

Thanks for ur reply..i am not a dev and my knowlwdge about these things are limited also..i was just asking my doubt since i read one related stuff in cit thread and thought it may help u in making one perfect kernel..

Ps::pls dont drop this 370 mb version..bcz less kernels are having all working for 370 mb..

Edit:: that smiley was not intentional..it came since i put "p" after ":" :p
[Galaxy S Plus I9001 Android Development] educk:
Hey guys! I manged to get 375MB of free RAM with everything working besides 720P recording. Yes, HW Decoder works and YouTube HD too!

Also, I allocated decent memory to the Surface Flinger so any possible glitches related to these are gone! This also means performance improvement, I can say it is better and also more stable than with 393MB (without HW and YT HD). Due to the low memory allocated to SF, that version was not that stable.

Still in testing, I'll use it heavily and if everything goes right I'll make the release!

Also, I made another RAM configuration with 354MB RAM, which will probably be stock for the next release. It's the most stable one and it doesn't drop to ASHMEM that often. I'm really focused to get a Final build, stable and performant. After many tests I can say that these two RAM allocations are the best. I might consider changing from 354MB RAM to 360MB but I'll see about that later.

Regards,

Erik
[Galaxy S Plus I9001 Android Development] Ezekiel1998:
Re: [Kernel][JB][3.0.70]PhenomKernel v3.2 -FINAL- for JB 4.1.2 and JB 4.2.2 [03.23.20

voip doesnt work in 4.2
[Galaxy S Plus I9001 Android Development] hallohallo222:
What means "FINAL v3 kernel"?

Is this the last Kernel for B4?
[Galaxy S Plus I9001 Android Development] educk:
Umm.. not exactly, I want to slow down the development of this kernel and get a "final" stable and perfomant build as a base. I will still update when major things happen like new updates from ivendor an so on.

This is because I want to give extra time for my other projects. I will update one more time with the new RAM allocation values than have a break until there are major changes going on. :)
[Galaxy S Plus I9001 Android Development] tommy924:
Re: [Kernel][JB][3.0.70]PhenomKernel v3.2 -FINAL- for JB 4.1.2 and JB 4.2.2 [03.23.20

Educk, do your ported gapps work with slim bean 3.1 beta 4 ?
[Galaxy S Plus I9001 Android Development] educk:
The last time I tested them, they were working on CM10 Alpha 7 by ivendor. It should work on ROM's based on beta 4 too.

If you want to test:

Do a backup

Flash Gapps

Report if it works or not :)

:fingers-crossed:
[Galaxy S Plus I9001 Android Development] Rhonin86:
For your information:

They work also under beta 3 :good: But i substitude the cam ported by DavidTeri and added GoogleSearch ;)

Cheers

Rhonin
[Galaxy S Plus I9001 Android Development] :
Re: [Kernel][JB][3.0.70]PhenomKernel v3.2 -FINAL- for JB 4.1.2 and JB 4.2.2 [03.23.20

I noticed that slqb is better in terms of opened application and memory management...when i quit from real racing 3 with slub the launcher needs to restart...and with slqb no..
[Galaxy S Plus I9001 Android Development] tommy924:
they work on CM beta 1, beta 2, beta 3, beta 4. i was using them since alpha. i just want to try slim bean so i want to keep the gapps coz they are awesome. i just wanted to know if they work on other roms coz i only used cm roms untill now
[Galaxy S Plus I9001 Android Development] igni.selvaraj:
wow this is awesome. did you change any default settings? i could manage to get a batter life of 25 hours max with minimal usage.

@Erik, Hats off for your great work! i miss your rom :( updates
[Galaxy S Plus I9001 Android Development] educk:
v3.2.1 for CM10.1 beta 1

Hi guys!

Phenom Kernel v3.2.1 now available. It's based on the new branch by arco which was used by him and Xistance. Bluetooth works and Vsync too.

3 Versions available:

*354MB RAM exUV

*354MB RAM UV

*375MB RAM exUV -BigMem- (everything works except 720P recording)

As I said, I modified the pmem values because the lack of RAM for Surface Flinger caused some lags after using the kernel for a while. I tested the 375MB version for 3 days on CM10 and I noticed that it gives better (lagfree) performance than with 393MB RAM.this may be due to the amout of RAM assigned to SF.

Also, the 354MB RAM version is very stable as it doesn't drop to ASHMEM so often so any glitches caused by that switch are gone.

Please tell me if anyone wants another RAM configuration/Voltage, but I'll wont make 370MB any more as I got a few bad reports about it.

Enjoy!

Erik

EDIT!!! Guys, I noticed something awesome! I don't know why but with BigMem the video recording works! The playback too.

It's so weird as in CM10 it didn't worked with the same RAM configuration.

Edit 2: It looks like in CM10.1 beta 1 you can't set the recording to 720p, it's 480p by default. That's why I thought it works.
[Galaxy S Plus I9001 Android Development] jimsiv:
Απ: [Kernel][JB][3.0.70]PhenomKernel v3.2.1 for CM10.1 beta 1 [03.31.2013]

Thanks Erik!! Links?

Send from my GT-I9001
[Galaxy S Plus I9001 Android Development] Xistance:
If you are using my CM10.1, check the resolution of the videos you record. It could be because it is recording at 480p.
[Galaxy S Plus I9001 Android Development] Ezekiel1998:
Re: [Kernel][JB][3.0.70]PhenomKernel v3.2.1 for CM10.1 beta 1 [03.31.2013]

so it means bigmem 720p and hw works?
[Galaxy S Plus I9001 Android Development] educk:
Umm.. In the OP? Or here : http://www.mediafire.com/?6d59gh9bygfug

Yeah, false alarm I just checked it. But there is no option in the default camera app to change the recording resolution. It can only record 480p by default. Some settings are messed up around there. I mean, there is JPEG Quality in the video recording menu.

But this is not a problem, at least not for me, video recording on the S Plus is bad anyways :D.

Edit: Oh, I just read in your thread, you are aware of this.
[Galaxy S Plus I9001 Android Development] Ezekiel1998:
Re: [Kernel][JB][3.0.70]PhenomKernel v3.2.1 for CM10.1 beta 1 [03.31.2013]

i have one noob questions ,

why ace plus s7500 . usable ram 39x mb with hw works ? also with vga video record..
[Galaxy S Plus I9001 Android Development] Xistance:
Yeah, was because of wrong media_profiles.xml . I'll release a build with everything fixed later. Not today though.
[Galaxy S Plus I9001 Android Development] davidteri91:
R: [Kernel][JB][3.0.70]PhenomKernel v3.2.1 for CM10.1 beta 1 [03.31.2013]

Erik your kernel is awesome ;)

Inviato dal mio GT-I9001 con Tapatalk 2
[Galaxy S Plus I9001 Android Development] muhammadnajmi96:
VGA - 640x480

HD - 1280x720 :) , that's why they got more ram available
[Galaxy S Plus I9001 Android Development] :
R: [Kernel][JB][3.0.70]PhenomKernel v3.2.1 for CM10.1 beta 1 [03.31.2013]

Awesome kernel!! I m using your bigmem version..just a tip..i think( noticed) that slqb is better than slub and 370 mb of ram are enough

Inviato dal mio GT-I9001 con Tapatalk 2
[Galaxy S Plus I9001 Android Development] educk:
Yeah, the thing is that I made some versions with 393MB RAM (v3.1) and I noticed that if I allocate more RAM for the Surface Flinger and enough for the HW Decoder to work the overall performance is better. I said this before, more RAM doesn't always result in better performance. ;) And as I saw, the Ace Plus has CM10 and 10.1 without camera working (it doesn't work at all) so it's normal to have more RAM.

I will try to do some tests, although SLUB should give better performance, we'll see :)
[Galaxy S Plus I9001 Android Development] cezaralboiu:
Bln is not working.
[Galaxy S Plus I9001 Android Development] :
R: [Kernel][JB][3.0.71]PhenomKernel v3.2.1 for CM10.1 beta 1 [03.31.2013]

Especially when you exit from a heavy game...with slub the launcher restarts and with slqb no

Inviato dal mio GT-I9001 con Tapatalk 2
[Galaxy S Plus I9001 Android Development] EB20XY:
3.2.1

Is it possible to use "Phenom Kernel v3.2.1" also for CM10 beta4 ?

Or is the track only for CM10.1 going on ? :confused:
[Galaxy S Plus I9001 Android Development] educk:
mmm... I really see no reason to update the kernel for CM10 at this point. As, I didn't do any major changes.

I read in the CM10 thread that ivendor will update to RC1 sometime next week and that will be the perfect opportunity to update. :)

I will use the same RAM allocations as for CM10.1.
[Galaxy S Plus I9001 Android Development] Eichbauuusch:
You are right. I've got the same problem.

But you can use BLN with the help of the FAQ of CastagnaIT's Kernel:

Works for me!!!
[Galaxy S Plus I9001 Android Development] davidteri91:
R: [Kernel][JB][3.0.71]PhenomKernel v3.2.1 for CM10.1 beta 1 [03.31.2013]

I use lib from nexus kernel and working good with this kernel :)

Inviato dal mio GT-I9001 con Tapatalk 2
[Galaxy S Plus I9001 Android Development] polluzet:
If you wanna get my settings, please wait a liitle, 'cause now I have Beta 4 with Phenom-V3.2 on my phone. When I will take a new Backup in the next days, I will look after the settings in former Bkup ....;)
[Galaxy S Plus I9001 Android Development] educk:
Hi guys!

Now, that in Easter Vacation I have more time to spend with my family and more time to do what I like the most: Kernel Development and Modding.

I fixed and adapted the audio drivers on the 3.4 Kernel :)

Also, some users requested a kernel with SLQB memory allocation because it may give better performance. So, I attached it here for testing. If it's better than the other kernels (all my kernels are using SLUB memory allocation) tell me and I'll use SLQB by default for next builds.

This SLQB kernel contains all changes which I planned to introduce with ivendor's RC1:

*New LMK values and tuning

*Backport force feedback from 3.9 Kernel

*Fix WEP Encryption on Kernel side (ivendor) - you'll have to wait until ivendor releases RC1 for this change to take effect.

New SLQB branch with all changes here: Git

Enjoy!

Erik
[Galaxy S Plus I9001 Android Development] davidteri91:
R: [Kernel][JB][3.0.71]PhenomKernel v3.2.1 for CM10.1 beta 1 [03.31.2013]

Thanks Erik I agree the WEP fix in my beta 1.2 and all fixes by ivendor and arco :)

Inviato dal mio GT-I9001 con Tapatalk 2
[Galaxy S Plus I9001 Android Development] Rhonin86:
Short impression on Testkernel 3.2.2

Hi Erik,

just downloaded and testet your kernel a bit....

The kernel works good together with vibrationcontrol, bln works also with BLN-Control Pro under beta3 :good:

I tried your configuration on playing Temple Run 2 - but lulzactive and deadline caused lags. So i "tuned" lulzactive a little - your default settings are real good for a good battery endurance :good: and i switched to ROW instead of deadline. I wonder if it is the tweaked deadline you use ???

Now it works better though there are some microlags from time to time. May they are connected to the new LMK values ? They seem to be very low - but that is just a noobish meaning....:o

The UI is running very smooth :D

THX for your good work
[Galaxy S Plus I9001 Android Development] a4apple:
This kernel can use on 4.1.2? and am i suppose to flash this file?
[Galaxy S Plus I9001 Android Development] boombastick:
it is for 4.1.2
[Galaxy S Plus I9001 Android Development] a4apple:
and I just follow the steps on how to flash this kernel?
[Galaxy S Plus I9001 Android Development] :
Re: [Kernel][JB][3.0.71]PhenomKernel v3.2.1 for CM10 and CM10.1 [03.31.2013]

Well after some hours and games i can say that slqb version is better than slub opt..!
[Galaxy S Plus I9001 Android Development] ktulu84:
R: [Kernel][JB][3.0.71]PhenomKernel v3.2.1 for CM10 and CM10.1 [03.31.2013]

Educk, how can be enabled zram swap?
[Galaxy S Plus I9001 Android Development] educk:
Thank you Rhonin! It's always great to read your feedback's as you organize them very well and always give screenshots! I read your reviews in the German forums too. :highfive:

Yes, the Deadline I/O Scheduler present in my kernels is the one I modded and I used it sometimes. Oh, and I tuned Lulzactive too but your are free to tune it yourself because I made it to give a balance between battery and performance, you could make it more performant by customizing those values!

About LMK, those values are great in my opinion but they can also be changed by third party apps or init.d tweaks.

Anyways, I made my decision and I'll keep the SLUB memory allocation and make one additional SLQB version for the next releases. For me SLUB is better than SLQB but for others is vice-versa so this way everybody wins :D.

Also, I found this table: TABLE

It pretty much tells everything, on paper, SLUB is better than SLQB but some cases SLQB may offer batter performance as some users reported.

Settings -> Performance -> Memory Management -> zRAM

init.d tweak:

#!/bin/bash
### BEGIN INIT INFO
# Provides: zram
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Increased Performance In Linux With zRam (Virtual Swap Compressed in RAM)
# Description: Adapted from systemd scripts at https://github.com/mystilleef/FedoraZram
### END INIT INFO

start() {
# get the number of CPUs
num_cpus=$(grep -c processor /proc/cpuinfo)
# if something goes wrong, assume we have 1
[ "$num_cpus" != 0 ] || num_cpus=1

# set decremented number of CPUs
decr_num_cpus=$((num_cpus - 1))

# get the amount of memory in the machine
mem_total_kb=$(grep MemTotal /proc/meminfo | grep -E --only-matching '[[:digit:]]+')

#we will only assign 50% of system memory to zram
mem_total_kb = $((mem_total_kb / 2))

mem_total=$((mem_total_kb * 1024))

# load dependency modules
modprobe zram zram_num_devices=$num_cpus

# initialize the devices
for i in $(seq 0 $decr_num_cpus); do
echo $((mem_total / num_cpus)) > /sys/block/zram$i/disksize
done

# Creating swap filesystems
for i in $(seq 0 $decr_num_cpus); do
mkswap /dev/zram$i
done

# Switch the swaps on
for i in $(seq 0 $decr_num_cpus); do
swapon -p 100 /dev/zram$i
done
}

stop() {
# get the number of CPUs
num_cpus=$(grep -c processor /proc/cpuinfo)

# set decremented number of CPUs
decr_num_cpus=$((num_cpus - 1))

# Switching off swap
for i in $(seq 0 $decr_num_cpus); do
if [ "$(grep /dev/zram$i /proc/swaps)" != "" ]; then
swapoff /dev/zram$i
sleep 1
fi
done

sleep 1
rmmod zram
}

case "$1" in
start)
start
;;
stop)
stop
;;
restart)
stop
sleep 3
start
;;
*)
echo "Usage: $0 {start|stop|restart}"
RETVAL=1
esac

Check if it's activated:

Enter this in terminal emulator:

free
[Galaxy S Plus I9001 Android Development] billy1billy:
Can I use this kernel for new Release 1 by ivendor????
[Galaxy S Plus I9001 Android Development] SGS+_User:
I recommend you to a new update :D
[Galaxy S Plus I9001 Android Development] Laurentyu1995:
i think it's better to wait until educk will release a new version which contains changes made by ivendor in kernel
[Galaxy S Plus I9001 Android Development] educk:
v3.2.2 Available

Hi guys!

As ivendor released his RC1 today, I decided to publish my kernel builds synced with this version. There are 6 versions available

354MB exUV

354MB UV

360MB exUV

360MB UV

360MB exUV (SLQB)

375MB exUV BIGMEM (720p recording doesn't work, HW acceleration and YouTube HD are working fine

Download folder: Phenom Kernel

Changelog in the second post.

Enjoy!

Erik
[Galaxy S Plus I9001 Android Development] anuseb89:
I can see some thinngs are backported from 3.9 kernel.. 3.9 ????????
[Galaxy S Plus I9001 Android Development] davidteri91:
Erik nothing for cm10.1

Inviato dal mio GT-I9001 con Tapatalk 2
[Galaxy S Plus I9001 Android Development] educk:
Yeah, I found some useful commits in the 3.9 Linux Kernel source tree and I taught I can implement those for experimental reasons.

About loop workaround it can be tested using dd command like this:

dd if=/dev/zero of=loop.file bs=1M count=1
while [ true ]; do
losetup /dev/loop0 loop.file
echo 2 > /proc/sys/vm/drop_caches
losetup -d /dev/loop0
done

But of course this are for advanced users only and it doesn't make much difference. After all I made this kernel for me and decided to share it with you guys so it will include my personal documentation too :). I love learning about Linux and the best way of doing it is by experimenting...

Sorry but I'm really tired now and I fear that I'll mix up some versions. I'll upload tomorrow.