[Galaxy S II Original Android Development] gokhanmoral:
Who Should NOT Use This Kernel?

If you are going to use very low voltage settings and complain about having lockups, you SHOULD NEVER use this kernel... just run away! This kernel is just as stable as the stock kernel if you do not modify any settings. Do not blame the kernel if you change the voltage or clock settings. If you do so I will blame your stupidity. I will not remove any feature just because some dumb users select wrong settings. If you are a rookie with an uncontrollable instinct of modifying advanced settings please use speedmod or stock kernel.

This kernel generally contain some experimental code and some of them may be even undocumented. I have different release strategy. I always use the latest version and if I notice any problem I try to fix it. However, I do not use all the features of the phone. So, if you notice any problem please report it. bug reports are welcomed, whining is not.

If you judge a kernel by quadrant score, please, I beg you, don't use this kernel. I don't have enough time nor motivation to answer your questions... Some people got 8000+ quadrant (search the thread) and there is no way you can beat them anyway.. so, go away...

If you are one of those who judges a kernel while sleeping ("oh my god!! lost %1 during sleep"-guy) please use another kernel, sleep and never wake up. it will maximize your battery and minimize the tension in the thread.

If you still believe in battery calibration, discuss it in some thread else. we respect all religions but missionary acts are not welcomed in this thread.

99.9% of the code belong to others. I have some modifications and/or additions to the kernel as C code or scripts but they are so little compared to the original code base. If you think you are better developer than I am, don't waste your time (and mine) as I accept it beforehand so please just go away.

FAQ

Q: Does this kernel support Samsung's ICS leak, CM9 or any ICS edition?

A: No, it does not.

Q: Does this kernel support latest Samsung i9100 ROM?

A: Yes, it does. Unless otherwise stated, you can use this kernel on latest Samsung ROMs (official and leaks). it is tested on 2.3.4, 2.3.5, 2.3.6.

Q: Can I use this kernel on I9100G?

A: No, you cannot. Only european i9100 models are supported. Also, I compile ntt-docomo version for each release but beta versions do not support gps and digital tv on ntt-docomo devices.

Q: Does this kernel support CM7 or any other AOSP based roms?

A: Yes, but it only support cm7 or miui based roms for now. If you are using another aosp based Rom tell me and I will support it.

Q: Can I use app protectors with this kernel?

A: Yes, you can. Android logger is enabled by default.

Q: Some custom lockscreens or protectors do not work with this kernel. Can you fix it?

A: see the question above.

Q: What is smartassV2 governor?

A: It is a governor to control CPU frequency. This governor has a built-in "profile" similar to SetCPU but the profile has no upper frequency limit. It tends to stay on lower frequencies when the screen is off and scale up very slowly, so screen off will use lower clock rate thus conserve more battery, but it also has a fast wake up feature so that user interaction will not see the lag when switching from Sleep to Wake state.... (So SetCPU Profiles are sorta redundant when using this governor, you can still use SetCPU to OC to higher than default Clock frequency).

Q: What is the best UV settings?

A: There is nothing as best UV settings. You have to find the best settings for your device for yourself. Start by decreasing 25mV on each freq and decrease it every day until your device becomes unstable.

Q: What can I do to have the best battery life ever?

A: put your phone into airplane mode. if you don't like to do it read the guide below.

Q: Which roms are supported?

A: All android 2.3.4 and 2.3.5 roms are supported. Try the latest version. if you have any problems leave a post to this forum and ask for help.

Q: I get random reboots or freezes. What should I do?

A: Before reporting any problems you have to make sure that you are using stock voltage values. Some phones cannot handle undervolting. Secondly, you have to give details. When did it happen, which rom are you using, can you reproduce it, do you have any custom init scripts which changes kernel parameters such as freq voltage or anything else?

Q: do I need to recalibrate the battery?

A: You don't need to calibrate battery for SGS2. Thanks to Entropy512 to pointing out that our device uses MAX17042 which is specifically designed not to require calibration.

Q: do I need to perform any wipe?

A: no. you don't have to wipe anything. however, try wiping cache and dalvik cache if you have any force closes or any other issues before reporting the issue.

Q: Is the battery life better/worse?

A: maybe... you'll never know if you don't try... People are reporting that they are having the best battery but it may not be the case for your device.

Q: where is the interface to change GPU clock and voltage?

A: There is no GUI (graphical user interface). the interface is used via device files. you have to use init.d scripts to adjust the values. there are some examples in the first post about how to use init.d scripts and gpu voltage/clock interface.

Q: Which governor is the best? Which I/O scheduler is the best?

A: You have to try them and select the one you like. There is a very good explanation about governors and i/o schedulers here: http://xdaforums.com/showthread.php?t=1242323

Q: My phone doesn't go into deep sleep mode. Why?

A: try to clear cache and dalvik cache by using CWM recovery and make sure that your phone is not connected to a charger. it does not go into deep sleep when it is charging.

Q: Which version is the best?

A: supposedly, the latest version is the best. But if the latest version is beta there may be unstable code in it. testing the beta version and reporting bugs will help me. but it's your choice... try and see... maybe this kernel is not stable for your device at all, who knows... I will not answer any "what is the best?" questions and I kindly ask you not to ask that kind of questions since there is no answer to that.

Q: How does the automatic battery calibration work?

A: Automatic battery calibration feature is removed as it was useless for SGS2.

Q: What is an init.d script?

A:init.d scripts are the scripts which are executed during the boot time. actually, they are meant to initialize and deinitialize system daemons and manage some startup/shutdown tasks. but in android world they are just "autoexec.bat"s. so, it is a mix of rc.d and init.d directories in linux distros. everything in /system/etc/init.d are executed during the booting process. since it is not standard in every android device,some developers choose to execute files starting with "S" and some execute everything. in this kernel, everything in /system/etc/init.d is executed. you can create a script to change, lets say, voltages, schedulers, apply tweaks, run overclocking daemon or run anything else you can imagine.

Q: My phone doesn't go into deep sleep. What is wrong?

A: Make sure that you have cleared cache and dalvik-cache after you install the kernel. Also, reboot once more after the flashing. the phone doesn't go into deep sleep if it is connected to a charger or to a computer. There may be an application running in the background which is preventing deep sleep. In that case you can check which app causing the problem with "BetterBatteryStats" application (search in Google).

Q: I want more info about CPU governors.

A: There is a great post about cpu governors (thanks to droidphile): http://xdaforums.com/showpost.php?p=19339524&postcount=10023

If you still want more info, try them by yourself.

Q: Can I use this kernel with I9100T?

A: Yes, you can. the only difference between I9100 and I9100T is that they have different SAR values.

quick and dirty guide to have less battery drain:

- use 2G-only if you don't need 3G

- monitor programs which cause wake-lock. use betterbatterystats and either uninstall or tweak them

- do not use task killers. see the previous item and find the malicious programs instead of repeatedly killing them.

- do not activate google latitude on maps.

- if you don't need pushmail, uncheck gmail sync and use k-9 mail to pull mail, lets say, every 1 hour or so.

- go to settings / location and security. disable "use wireless networks" and "use gps satellites". enable them when you need them, other than that keep them disabled.

- disabling auto-brightness and using a low brightness level helps. do you know that you can adjust the brightness by swiping your finger across the notification bar? try it...

- using juicedefender may help, but it may also cause more drain. test it yourself.

- if you need more speed than 2.5G (i.e. edge) disable HSDPA (*#301279#, select 2 then select 1). you will have 3G instead of H(SDPA) and I think it is fast enough

- disable fast dormancy. dial *#9900# and disable.

- disable auto sign in for google talk (search for talk in appdrawer and use settings to disable automatic sign in)

- disable samsung update and don't use samsung gadgets if you are not in love with them. (this part may be taken care of the rom developers)

- try several radios. I recommend you to try KE7, KG2 and KH3 and choose the one which suits you best. KG2 seems to be the best for me. however, in terms of battery life, there is not much difference between those three.

- be aware that more you use your phone more the battery drains :) don't complain like "my battery drains quite fast but I did not use my phone. I only played angry birds for hours without making a single call" or don't expect to have a decent battery life if you use your phone as a computer or download torrents using your phone.