yashsingh1/xdaforums huggingface dataset:
[Galaxy S II Android Development] pixiebob:
yes i think too is a very good idea ;)

my settings are not so different from cortexbrain, i use this different settings:

echo "ondemand" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor

echo 99 > /sys/devices/system/cpu/cpufreq/ondemand/up_threshold

echo 120000 > /sys/devices/system/cpu/cpufreq/ondemand/sampling_rate

echo "0" > /sys/devices/system/cpu/sched_mc_power_savings

echo "1200 1000 800 500 200 100" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_frequencies

echo 1200000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq

echo 100000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq

echo 0 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_suspend_freq

echo 0 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_suspend_freq

echo "4096" > /proc/sys/vm/min_free_kbytes

echo "1" > /proc/sys/vm/oom_kill_allocating_task;

echo "0" > /proc/sys/vm/panic_on_oom;

echo "0" > /proc/sys/vm/laptop_mode;

echo "0" > /proc/sys/vm/swappiness

echo "10" > /proc/sys/vm/vfs_cache_pressure

echo "90" > /proc/sys/vm/dirty_ratio

echo "70" > /proc/sys/vm/dirty_background_ratio

echo "0" > /proc/sys/vm/dirty_expire_centisecs

echo "0" > /proc/sys/vm/dirty_writeback_centisecs

echo "0" > /proc/sys/vm/page-cluster
[Galaxy S II Android Development] dorimanx:
i will mod the ondemand on sleep to your tuning, it's should be ok for all.

about freq speeds i cant do that, i need the 1.5Ghz :)

why you have 0 on scaling_min_suspend_freq + max? any info about that?

this burning more battery! it's pushing allot or loaded apps +ram cache to RAM

and fill it to max, then rom internal task killer start to kill like crazy services and by doing that burn cpu + battery,

when on default 20/10~20

allot less ram used and system is more relaxed = less battery drained.

echo "90" > /proc/sys/vm/dirty_ratio

echo "70" > /proc/sys/vm/dirty_background_ratio

swapiness and page-cluster are have no effect if swap/zram is not used.

all the rest are default already :)
[Galaxy S II Android Development] pixiebob:
dori: i remenber an old article , in arch or ubuntu, saying that limiting frequencies delays the time to the cpu enter in deep sleep.

edit: the most important is to enter in deep sleep the most quickly
[Galaxy S II Android Development] dorimanx:
well it's not so usable.

if you set the suspend freq to 0, then the main freq is used.

and in deep sleep cpu locked at 600Mhz max and user min freq

this is by code design.

so your setting has no effect to good side.

you are waiting for deep sleep on 100 > 1200 i think it's a waste of power if cpu will jump to 1200 when asked to do some work for some app that running as service, or some rom service doing his job.

better limit it to 600.

dont get me wrong, i am just stating facts and you can do as you wish :)

it's your device, i can only advice.

new kernel with your mods will be up in 10 MIN :)

trying on me first
[Galaxy S II Android Development] dorimanx:
delay is depend on all drivers to agree to sleep! and no wakelock from some app is present!

there is actually code in kernel core that run and check if all ready to sleep and then put cpu to deepsleep!

if some one not ready it's will wait for 5sec! if after 5 sec still not ready it's wait 10sec! and so on, each time adding 5 sec to counter!

so it's can enter after 5 sec, or after 5MIN! all depend on drivers and user apps!

no other stories, cpu freq has no meaning here.

EDIT!

Crap it's set to 10Sec! i will reduce to 5 :)

here it is LOOK-HERE

search for SUSPEND_BACKOFF

fixed to 5sec HERE
[Galaxy S II Android Development] pixiebob:
well i will sleep deeper and more smarter this night , thanks to you. :laugh::laugh:

cool for reducing the interval to 5s ;)
[Galaxy S II Android Development] dorimanx:
Kernel 5.63 is ONLINE!
[Galaxy S II Android Development] pixiebob:
just flashed, no problem.

hope that people enjoy new settings
[Galaxy S II Android Development] Ryther:
First off all... thanks for your efforts! You are probably the most active kernel developer we have :D

Installed latest kernel and everything seems cool, but i got a little problem: i cannot use the ROM settings anymore, every time I tick a setting it doesn't stick! I'm on cm9 stable and really dont know if it's the ROM fault :S

Aaaand... it's possible to have the choice to set the number of CPU steps like in siyah? And have lower voltage values on gpu? Cause i usually set it with neak like this: 100/133/160 all at 650 mV!

Now I'm off to trying win!uv values with your kernel, for now no problems at all with cpu at 825 mV for 200 to 1075 for 1000 ;)

Last thing: I've already said that I like a lot your hard work? Keep the great job up :D

Edit: tried to set the CPU to 5 steps, but HYPER gov didn't liked it. It started lagging a lot. No problems after moving to conservative.
[Galaxy S II Android Development] marbulas:
Hey dori... I remind your update logs and announcement because there's a possibility in my nearhood.

Also I updated my rom CM9 STABLE.

And I found this.

Supersu and your default superuser app makes a different result in ExTweaks.

Setting 0 to MIN_BL is much brighter when using your default superuser app...

I don't know they really evolved something but I think some of features in ExTweaks has a problem after you changed binaries about the superuser app your kernel has as deafult.

I said again, every siyah kernel you based in and 5.53 or earlier version of your kernels doesn't have this problem.

I respect your way about using apps to root, but changing rooting app old superuser into supersu is not only persuading some users but reducing the causes of bugs and this is very good for everyone including you and people likes your kernel :D

I beleive you're also one of the great devs and you'll make a reasonable decision for your fans :D
[Galaxy S II Android Development] THE RED BLUR:
Thanks Dorimanx :) New 5.63 usb mass storage working fine without fc anymore on screen shutdown .

Transfered media of about 1gb from PC to external card.

On default kernal profile settings and extweaks settings.

You like Sherlock Holmes have detected and eliminated the problem.

Cheers. :D

However connecting to pc it reset my battery stats back to nothing even though I was on battery for at least over an hour like in below screenshot. This happened after about 3 Min connection to pc to do transfer.

Everything else working fine. Need more time to assess.

Main ROM : RR AOKP 2.6.1

2nd Rom : RR JB 3.1

KERNEL : Dorimanx 5.56

Modem : LQ6

Root app: SuperSu
[Galaxy S II Android Development] johnbeetee:
Hope you don't mind me saying so...:angel:...but I think you don't really understand the exact function of the MIN_BL setting (minimal brightness level).

It is the light level below which the autoscreen-brightness is cut off and the screen is set darker. So setting this to 0 would exactly mean that the screen will be brighter, And this will mean that superuser app is working better than supersu, if that is what you're trying to make clear...and not the other way around.;)

Besides the built-in superuser app dorimanx is using is an up-to-date version, whilst siyah was using an older version up to a few siyah version ago. Now siyah has moved to supersu, but it would just as equally well function with the current up-to-date version of superuser.

The only part of your story I do fully agree with, is your last sentence.....:)
[Galaxy S II Android Development] marbulas:
Oops I forgot to include about MIN_BL.

I didn't say all of parameters 0 th 150 work well.

Changing any parameters looks working well in ExTweaks and the real paramerter in /sys/... but the screen shows just stays its default parameter.

Default parameter(30) still remains when I select any parameters in MIN_BL.

This problem doesn't show up on screen when booting the phone parameters of ExTweaks are not applyed yet.

I know how this making me crazy works. I'm trying many times reporting this issue because I'm not a liar and I don't have to bother dorimanx just for fun or any dirty reason.
[Galaxy S II Android Development] deniso177:
Great Kernel, Thank you dev for your work.
[Galaxy S II Android Development] KcLKcL:
I just installed 5.62 last night, and now this morning I got 5.63 to update.

Oh well, since I'm really new here, I found so many new tweaks and settings here. Much more than my previous phone, Galaxy Ace. (And I hardly understand the changelog, lol)

The question is, should I update from 5.62 to 5.63?

I haven't run into problem so far with 5.62 but I dunno what will happen

They say: If It Ain't Broke, Don't Fix It

So, anyone?

Sorry if I spammed or going OOT :)
[Galaxy S II Android Development] robbytf:
I flashed 5.63 and it worked, how come some dorimanx versions work and some dont? I dont get it. And also the led timeout is not workig correctly.
[Galaxy S II Android Development] THE RED BLUR:
My led timeout works.

Main ROM : RR AOKP 2.6.1

2nd Rom : RR JB 3.1

KERNEL : Dorimanx 5.56

Modem : LQ6

Root app: SuperSu
[Galaxy S II Android Development] robbytf:
if you chose any time like 30 seconds, it will turn of at like 7 seconds, nomatter what time you choose, it will turn off at 7 seconds. Idk why
[Galaxy S II Android Development] xanthrax:
i`ve got no problems as well with last versions but i still flash the last updates as usual so , just flash it !

dilidroid , dx 5.63 , default settings :good:

---------- Post added at 08:30 AM ---------- Previous post was at 08:23 AM ----------

you should wait for extweaks to settle after changing settings for about 30 - 60 seconds and then reboot . it should work .

i post it `cause many users get borred explaining this again and again . no offence mate , it happened to me as well on the first days on xda :cool:
[Galaxy S II Android Development] sd65:
Hi all, a little screen to show to Dori that's his kernel is amazing : Airplane mode, screen off and 18 hours.... only of 2% of battery !

This is really what I was dreaming of ! Thanks again !

NB: performed with 5.6, testing 5.63 :)

Sent from my Android Keyboard :P
[Galaxy S II Android Development] dorimanx:
that is mega awesome :)

thanks for sharing, finally we are saving allot of power on screen off.

Sent from my GT-I9100
[Galaxy S II Android Development] johnbeetee:
I know and truly believe you may have some kind of problem, but the way you are describing it, I still get the impression you are confusing the setting MIN_BL with a slider that controls your screen brightness ( which it is not ).

I made a diagram (see attachment), which tries to explain the realtionship of the relevant settings that work together.

Keep in mind that this only works when you have your screen brightness (ROM setting) set to auto-brightness, and not just a fixed brighness level.

You can try this and let us know if it works:

1. go to rom settings - screen and find brightness level and set this to auto-brightness

2. go to extweaks - screen tab

3. set MIN_BL to 30

4. set MIN_GAMMA to 1

5. set MAX_GAMMA to 24

6. close extweaks and wait until it saves the profile

Now try and move around from a spot where there's little light, and a spot that is brighter, and look at the screen while your doing that.

You'll see that the screen brightness changes, brighter where there's more light, and darker where there's less light.

At some point with less light, you'll see it become very dark. This is the point where the light is less than 30 (MIN_BL). Above that point, it will change brightness depending on how much light there is.

Be sure not cover the lightsensor with your fingers by mistake while you're doing this ( that's the first hole left of the phone-call speaker ).

Try this and let us know if it works ; if it does, then there's nothing wrong with your setup. :)
[Galaxy S II Android Development] wonsky21:
@ Dorimanx, from latest Siyah changelog:

Can you fix it too? Led's lighting evetytime when brightness is changing are pretty annoying :)
[Galaxy S II Android Development] marbulas:
Mmm...Are these values MIN_BL,MIN_GAMMA_MAX_GAMMA depends on automatic-brightness? not automatic-backlight?

I knew about these like this : MIN_BL works even if automatic-backlight turns off,

automatic-backlight depends on MIN_GAMMA and MAX_GAMMA.

I followed your advice directly but the result is really untouchable :(

It doesn't work usually, and sometimes if it looks running well there are 2 symptoms.

1. The gamma of screen changes only the lowest and highest and min_bl is still working only its default vaule. Any values in min_bl doesn't do its function.

2.When it works fine as you told me, ExTweaks shows like the screenshot I attatched.

ExTweaks can't gather the data of modules from the kernel :(

I don't know why this problem shows on his kernel after 5.53...
[Galaxy S II Android Development] Alex-stroev:
Hey, Dori, can you add cwm recovery 6.0.1.1. from siyah 4.1?

I think that's great
[Galaxy S II Android Development] dorimanx:
after boot wait 1min before you run extweaks.

damm, i will run some script that kill extweaks for 2 minutes after boot, so people stop posting errors that not real.

if you force close extweaks and wait 20 sec and run it, all will load.

i must do something with the triger hot users that not reading posts about extweaks load on boot.

Sent from my GT-I9100
[Galaxy S II Android Development] 4l3gU:
Hello dory, with samsung rom 4.0.4 I saw the phone when the screen is on, remains switched between 800 MHz and 1200 MHz with an excessive consumption of battery. It's only my problem or not. Thanks for reply.

Edit: deep sleep is perfect...

"Dorimanx5.63+ToTaLS3v.4.0.4+xxlq6"

TESSERA N°1-"FRATELLANZA MISTICI ANDROIDIANI"
[Galaxy S II Android Development] lianghua2012:
Hi, I found that this newest kernel (5.63) can't connect pea pot permanently, it auto disconnect after every 5 minutes and I need to disconnect the phone from PC and reconnect it every times. It has no such problem in the previous version. do u have any solution?

thanks
[Galaxy S II Android Development] marbulas:
Can you check the MAX_GAMMA correctly?

Brightness still changing even if MIN_GAMMA and MAX_GAMMA get into 0 together.

johnbeetee told me the correct constitution about brightness curve and I realized that now the problem is in MAX_GAMMA.

(Thanx a lot for johnbeetee :D If you didn't tell me that I would change my hardware on my SGS2 tomorrow :()

I'm using CM9 latest stable.

---------- Post added at 03:17 PM ---------- Previous post was at 03:14 PM ----------

OH, MAN!

I didn't know about the constitution about brightness curve correctly...

Now I understand what the features in brightness curve doing from A to Z :D

I'm little bit ashamed about my ignorant and persist :crying:
[Galaxy S II Android Development] dorimanx:
added, will be in next ver today.

Sent from my GT-I9100
[Galaxy S II Android Development] dorimanx:
disconnect from usb storage, or mtp?

new power manager is aggressive, so i need info to try to fix it, also i need more people confirm this problem, if for many all ok, then its not a bug, its local user problem.

Sent from my GT-I9100
[Galaxy S II Android Development] xator91:
Hi dorimanx, "Android Logger" need to is "ON" for improve battery life or "OFF"?
[Galaxy S II Android Development] KRAZzysoldier:
ICS Dialing lag

Hi Dorimanx!

I am really happy to see you here at the SGSII development forum. I've been admiring your work on rom/kernel for the HD2 for long time.

Now I have a really bad one of a kind issue with all ICS ROMS/kernels. GB ROMs don't cause this problem at all!

When I enable data and leave the phone in deep sleep it starts to act laggy when dialing. I open up the dial pad and press the hook on some number but it only starts dialing after 5-10 seconds. When I remove the data connection the problem is out.

It must be something related with radio baseband, however I tried alot already with no luck!

I also tried repartitioning with .PIT and reflashing stock rom and kernel and guess what? Stock ICS rom does the same too!

Do you think there can be some way of debugging and sorting this out?

I think it might be related to the errors I get when I try to wipe dalvik...

Sdcard/.android_secure…
I:formattiong uknown device.

Wipe dalvik
E: uknown volume for path [/sd-ext]
No such file or directory

Perhaps the next step would be returning the phone for repair :(

Any help would be appreciated!
[Galaxy S II Android Development] gdskp:
Still exists in v2.1...Seems started from v1.9...
[Galaxy S II Android Development] apeiron6:
Try to not undervolt. It seems that CM9 since 5. Mai like higher voltages.
[Galaxy S II Android Development] dorimanx:
to solve this we need to dig in sms apk + framework that exist in system.

i don't really good at java code modding , so probably i will never find the problem :(

What you can do is post this in aokp forum, there are all the great devs that mod the code every day, and only they can find the problem and change the code,

if i will build my rom i will not mess with original AOKP code, i will mod the tweaking adapt for my kernel, and skin the interface,

maybe look for some better drivers or more updated apps,

sorry, i do my best, but i have lots to learn.
[Galaxy S II Android Development] dorimanx:
logger OFF,

saves some small amount of battery, it's telling to system not to log things in deep sleep, or on wake state,

so it's good for any one that dont care about system logs,

and it's 90% of people, only devs should inspect the logs.

so best to set it OFF
[Galaxy S II Android Development] dorimanx:
did you tried different app for dialer like go contacts? i use it, i never had any 10 sec delay...

also what profile do you use?

about errors you see, it's OK, you didnt moved apps to sdcard and you dont have ext partition, you dont need it, i dont have it too.
[Galaxy S II Android Development] KRAZzysoldier:
Replacing the dialer was the first thing I tried...

I just had a little brekthrough - using a different operator clears out the lag. And I was able to 100% reproduce the problem with a second SII device! This means that some setting in ICS is interfering with operator's data network... I am only left with one option for now - get back to GB :(
[Galaxy S II Android Development] xator91:
Oh thanks for the good explain man!! ;)
[Galaxy S II Android Development] zenosteam:
can we have "Volume of Quiet to LOUDERER adjustable" implanted in your kernel ?
[Galaxy S II Android Development] dorimanx:
i can add it if i will have the source code for it.

Sent from my GT-I9100
[Galaxy S II Android Development] GuestK00150:
hey! thanks for the nice kernel! sorry, I didn't have time to read big parts of the thread and the search button is not working on my phone for me... that's why I'm jus asking is there a chance to make bln working for more apps, e.g. calendar? if it could be just enabled for all notifications it would be possible to make an app group in the profiles, enable notification for it and it would work... that was the way it worked implemented in cm7. another suggestion would be toggeling bln for special apps in the kernel app. would be nice to have a feature like that to get rid of noled :D
[Galaxy S II Android Development] LNJ:
Can you please increase charging current to 800mah?
[Galaxy S II Android Development] justagangsta:
Hi,

Thanks for the kernel!

I just wanted to let you know that I've used a lot of different kernels, and the one that seems to be most battery friendly is the Siyah 3.0.1. About 30+ hours with ca 15% remaining. Perfomance is completely fine. Later versions of Siyah, and also your kernel, seem to drain battery quite fast.

Perhaps it would be beneficial to look into 3.0.1 and try to figure out why it has such outstanding battery friendliness.

This kernel has a lot of potential. I will be trying out every release and hopefully post helpful feedback.

Good luck, and thanks :-)

Nadeem
[Galaxy S II Android Development] Vaedryn:
*Tuned kernel for more battery saving

without reducing performance,

Now kernel will hold more in deep sleep.

*Added CPU power management ported from NEXUS kernel.

Sounds very interesting. Will give it a try.
[Galaxy S II Android Development] ZoNki:
Hi Dorimanx ...

no problem and anyway thanks for the answer :) I think I'll try it once again in the AOKP forum.
[Galaxy S II Android Development] dorimanx:
yes, i was thinking about it.

i will in next release.

Sent from my GT-I9100
[Galaxy S II Android Development] Arnadel:
Hello Dorimanx , the kernel is perfect.

But

How can I use Zram Swap ?

Which application should I use ? Can you give application link ?

I don't understand where to write text..

Termunal Emulator :

a/local/bin:&PATH
app_134@android/ $ -- root@android:/ # free
total used free shared buffers
Mem: 848164 801800 46364 0 13456
-/+ buffers: 788344 59820
Swap: 292968 23420 269548

Or

a/local/bin:&PATH
app_134@android/ $
app_134@android/ $ - root@android:/ # free
total used free shared buffers
Mem: 848164 801800 46364 0 13456
-/+ buffers: 788344 59820
Swap: 292968 23420 269548

------- ??

Thank you for great kernel. Please tell detailed :)
[Galaxy S II Android Development] skymera:
zRAM is already being used :) See? Swap used 23420 :)
[Galaxy S II Android Development] Arnadel:
I do not touch anything :eek:

How can I see??
[Galaxy S II Android Development] dorimanx:
6 sec after screen on cpu will have 800 1200 set, then back to your or default settings, its wakeup booster, read change log, its for you. before post.

Sent from my GT-I9100
[Galaxy S II Android Development] 4l3gU:
It's right... I read the changelog...but for me after thirty seconds switch between 800 and 1200... I will try to reinstall the 5.63 kernel and report... Thanks

Edit: i try and work perfect...sorry

"Dorimanx5.63+ToTaLS3v.4.0.4+xxlq6"

TESSERA N°1-"FRATELLANZA MISTICI ANDROIDIANI"
[Galaxy S II Android Development] pixiebob:
screen rotation don't work if i switch by using widget from WIDGETSOID, but work well if i switch auto rotation in stock menu parameter.

but it's not an important bug for me.
[Galaxy S II Android Development] zenosteam:
it's happened to me sometime in 5.62 and 5.63

---------- Post added at 05:40 PM ---------- Previous post was at 05:32 PM ----------

NB : deep sleep about 1% in 6 hour with wifi on all the night
[Galaxy S II Android Development] dorimanx:
good.

i will see what can be done.

about low drain,

people use the "Modem_XXLPS" after test, i have found that modem best battery saver and good reception. the "MODEM_XXLQ6" drained X2 more battery!

Just to let all know my test results.

so i think i will stay with LPS till my phone replaced (in 3 years!).
[Galaxy S II Android Development] THE RED BLUR:
I agree that lps is great modem too:).

But recently a lot of people having been say great things about PBVLP7 modem.

Main ROM : RR AOKP 2.6.1

2nd Rom : RR JB 3.1

KERNEL : Dorimanx 5.56

Modem : LQ6

Root app: SuperSu
[Galaxy S II Android Development] Jagdish84:
I find DCLP4 to have a nice equilibrium between battery consumption and data connecivity
[Galaxy S II Android Development] dorimanx:
the wifi tweak, is to force wifi ON when screen on and wifi off when screen off.

no meter what you set in ROM/apps/etc!

if you dont want to use that tweak, just dont use it! this why it's off by default.

no bug, please read the tweak description.
[Galaxy S II Android Development] budi5555:
yes.. i already try some modem: LPS,LPX,LQ6,LQ5,NELP2,3,4,DXLP9 and PBVLP7.. but the best receiption signal is in PBVLP7, i almost get 3g/H... the other modem is good too, but more going to EDGE... this is test in my places where i live (in a difficult area to get the stable signal)..

maybe you two can compare.. who knows in your place have the good result too... :D
[Galaxy S II Android Development] dorimanx:
thanks i will try the PBVLP7

Kernel 5.64 is ONLINE! USB DRIVER FIXED :)
[Galaxy S II Android Development] dorimanx:
I have uploaded updated ver of 5.64!

Kernel_Dorimanx-SGII-ICS-V5.64-T-00-12-D-12-08

to mirrors!

it's contain critical update for more battery save and more I/O speed!

i have set in kernel to always mount all partitions with NOATIME and NODIRATIME

+ one more restore to faster filesystem works.

so please update :)

Thanks.