yashsingh1/xdaforums huggingface dataset:
[Nexus S Android Development] themacro:
With the latest 10/24 kernel, I have 110 set for Live OC and 1100/440 lazy. Running pretty smoothly atm.

But I like my stock ROM, so hopefully we'll figure out how to get the script to run on boot correctly through Script Manager...

I also had weird battery draining problems this morning on the previous kernel version even though I was barely using my phone, but it could be related to the really poor cell reception where I was. I guess I'll see what happens with the current version.

edit: forgot to mention—for UV, I set the default 1000/800/400 UV values as my current live OC UV values for the corresponding frequencies. Running stably so far.
[Nexus S Android Development] noobhero:
Zzz, no luck. funny why it ain't recognized..

Replied from the hole in that faraway app.
[Nexus S Android Development] MultiCulti:
good morning guys :D

listen, where can i see the aviable gov´s?

i´m not using Daemon controller or SetCPU
[Nexus S Android Development] raznalab:
I was having the same problem same errors... try typing the commands instead of copy paste. It worked for me.
[Nexus S Android Development] kecinzer:
I lost 5% of battery over night, for now latest kernel is more hungry than previous one (21102011).
[Nexus S Android Development] simms22:
id be glad to use the 2nd post to post something for you.
[Nexus S Android Development] ragnarokx:
Never thought Conservative could perform so well! Got a slight undervolt and battery looks good so far.
[Nexus S Android Development] MultiCulti:
If i change the gov´s in the andrev_oc file, should work, or?

edit.:

@ franco

default gov is ondemand
[Nexus S Android Development] khartaras:
Nope, cm7 all the way.
[Nexus S Android Development] MultiCulti:
finaly i got it working like i want :D

@ franco ... your default governor is "ondemond" ... but after long searching i found it to change :D

here wos it "ondemond" ...
[Nexus S Android Development] doc_v15:
could you share your settings please? :)

Thanks
[Nexus S Android Development] shubu000:
Hey franco,

Great work, excellent performance on just 1ghz

Quick thing though can you check your gyroscopes, mine aren't working now?
[Nexus S Android Development] ranasrule:
gyroscopes working fine here
[Nexus S Android Development] ro_explorer:
Same here .. I've lost 5% in 6 hours sleep compared with last night (previous kernel) when I lost 2% over the same period.
[Nexus S Android Development] mike216:
Try raising your min to 400 that will prevent you from coming out of deepidle

I did and battery life got much better over night,thanks fransicofranco

Sent from my G1
[Nexus S Android Development] ro_explorer:
Thanks, I'll try that and report the results in 24 hours :)

Sent from my green robot ...
[Nexus S Android Development] shubu000:
Yeah got hit by sleep of death as well. :( looks promising though
[Nexus S Android Development] franciscofranco:
Nop, it has bln from neldar.
[Nexus S Android Development] iceman-001:
On this variant the BLN-App from the market didn't work?
[Nexus S Android Development] mousse04:
Nop it seems BLN doesn't work :(
[Nexus S Android Development] :
@franciscofranco i woul like to see this if posible :) "29 September release:

* Frequency table re-written. Now the CPU frequencies go from 400 to 1800 in 100 increments (400,500,600,700 etc)" from 100 to 1000 atleast.
[Nexus S Android Development] franciscofranco:
Ok thanks for informing me.

Ahah I dunno, I haven't looked into nexus frequency table yet, can look at it and see what happens.
[Nexus S Android Development] :
Thanks :)...
[Nexus S Android Development] FL0OD:
You may want to post this in the NS4G section also. Some folks don't ever tread over here and I have had pretty good results with this for the short time you have had it out. Just a suggestion.

Sent from my Nexus S 4G
[Nexus S Android Development] kptnk:
hi Fransisco, your kernel seems to be great but i have an issue : each time i use the camera, my phone goes to sleep of death once in sleep mod. I assumei it is not directly related to your kernel, but certainly to Ezekeel deep sleep mod.....has someone get the same issue ?

Ah yes, i have a gsm ns i9023.
[Nexus S Android Development] udhhay:
Each time I get a call the phone goes to sleep forever
[Nexus S Android Development] Lalaca:
Can we possibly have a non Deep Idle version while that mod gets all its issues worked out? :D

That would be super peachy.
[Nexus S Android Development] FL0OD:
I have not had any of those issues on my NS4G. 'Knock phone on wood '

Sent from my Nexus S 4G
[Nexus S Android Development] thiagodark:
looks really promissing... gonna try it right now!!

obrigado por compartilhar! =o)
[Nexus S Android Development] franciscofranco:
Yes I can offer an alternative version without deep idle.

Thanks for the suggestion to offer this in the 4G section.

By the way, people with bsod issue what is your minimum frequency set to?
[Nexus S Android Development] bringonblink:
Thanks and welcome to the commnuity.

Testing now
[Nexus S Android Development] jason62391:
Would this work for miui variants?
[Nexus S Android Development] bringonblink:
Using brainmasters miui, when i turn the screen off, it refuses to come back on.
[Nexus S Android Development] Bandis710:
Did you follow brainmasters advice and edited the value in the build.prop ? He said that that was need for kernels with deep idle when using his miui rom
[Nexus S Android Development] Realtyem:
100MHz here. Even tried different schedulers, nothing seemed to help. +1 to alt version without deep idle. Would love to have it but would love to use this kernel reliably in the mean time.
[Nexus S Android Development] khartaras:
I'm happy to see more Portuguese crackflashers :D
[Nexus S Android Development] kecinzer:
mike216:

But previous release had min to 100MHz too. This is strange. I have suspicion about governor.
[Nexus S Android Development] ro_explorer:
I'm on smartassV2 governor and had the same issues so this is not the problem.

Anyway, for now I've increased the min freq. to 200MHz ... let's see.
[Nexus S Android Development] jaycee1981:
Hello!

Can i use this KERNEL with a custom MIUI Rom?
[Nexus S Android Development] al_madd:
off course you can....why can't you?
[Nexus S Android Development] lshking:
Use franco.Kernel.25102011 in MIUI rom, reboot happened after moboplayer play video 5 minutes. :(
[Nexus S Android Development] coloxim:
sorry but blx doesn't work..
[Nexus S Android Development] khartaras:
Gentlemen and ladies,

I have found an easy way to use LiveOC at boot.

I kanged the 20userinit to include the echo command... :D

Just go into /etc/init.d and edit the 20userinit with Root Explorer.

Write echo 110 > /sys/class/misc/liveoc/oc_value

This will OC the bus to 220MHz. If you want 240, write echo 120 instead. You may need to adjust your voltages in SetCPU.
[Nexus S Android Development] shubu000:
Oh really I can't turn in asphalt and my browser is not turning either. I'll try to reboot again.

Edit: all good now, don't know what happened there
[Nexus S Android Development] pauldgroot:
I had something similar this morning, I was trying out Asphalt 6 with 110 value when all the buttons and the touchscreen stopped responding, the game continued playing so it didn't froze but I couldn't do anything with my phone.

After a reboot, all my apps fc and after the second reboot everything was fine again. Then I did a Titanium backup and rebooted again to make sure it was still ok. With that reboot my phone didn't get past the boot animation so a hard reset was required.
[Nexus S Android Development] yaronyud:
i wouldn't do that.. unless you also raise the voltages in the init.. otherwise you might have many "random" reboots...
[Nexus S Android Development] Ezekeel:
This is a perfect example for a completely useless bug report.

What did you do? What were you expecting to happen? What actually did happen? Can you reproduce it? - That is the minimum information you should include in every feedback when something in your opinion does not work right.
[Nexus S Android Development] franciscofranco:
Indeed.

By the way Ezekeel, look into this post: http://xdaforums.com/showpost.php?p=18732061&postcount=348 and then my reply. Is it anything related to your deep idle mod?
[Nexus S Android Development] DJTaurus:
The governor in cyanogen settings with franco kernel is set to lazy...should i change it to ondemand or smartass?
[Nexus S Android Development] al_madd:
Deep Idle 'seems' does not work on this version...

I dont know wheter if this related to ezeekel bugfixes or not..

previously using matr1x 9.0...my battery life was awesome...using spycpu always show deep sleep(I know many still debated about deep sleep and deep idle)

when I flash matr1x 9.5...spycpu always show my phone always at minimum frequency...

example when my minimum cpu at 400(95% at 400mhz) , when I set minimum frequency at 800mhz(90% at 800mhz)

no wonder my battery drop 25% in just 6 hours overnight(screen off,no music, just turn on wifi)

So I decided to try your kernel...for one hour...when I turn off screen, spy cpu shows my phone in deep sleep..

but after I rebooted my phone...setcpu show almost 90% in 440mhz frequency even majority of the time my screen was off...
[Nexus S Android Development] franciscofranco:
Some app is causing your phone to be awake, mine is fine using this exact same kernel.
[Nexus S Android Development] bgdxv:
I love how the phone is butter smooth using this kernel, because of the improved screen refresh rate. But, after you reboot, the first time it is very slow. You have to turn the screen on and off and then it becomes smooth. Can this be implemented so that it is smooth from the start? Thank you very much for the best kernel :D
[Nexus S Android Development] MultiCulti:
enough "DeepSleep" ??? :p
[Nexus S Android Development] al_madd:
Oh no.:eek::eek:..How I going to search my guilty app??

by the way...I found my running services reasonable...is it??
[Nexus S Android Development] Icecoldmeat:
I thought, let's give this kernel a try..

Tested a couple of things..

I thought, pretty good..

Tested more things..

I thought, AWESOME!

Very nice fransisco, keep up the good work ;)!

BTW, the battery life is very nice :)
[Nexus S Android Development] magrejh:
I think latest kernel's Deep-idle doesn't work..

I've turned on LiveOC with Lazy governer

and other thimgs are same with previous(with previous version of this kernel).
[Nexus S Android Development] franciscofranco:
I'd say is that Whatsapp ****. Wifi turned on + whatsapp = **** x2 imo.
[Nexus S Android Development] franciscofranco:
For gods sake:

CONFIG_CPU_DIDLE=y

It's enabled! Why people talk nonsense without knowing the facts first? It's the last time I'm answering that, I don't like to repeat myself.
[Nexus S Android Development] Cybergr:
I have tried and tried and tried again, but i can`t make a ****ty script to run and make LiveOC work..can someone help me by uploading a zip file conteining the a script with commands like:

#!/system/bin/sh

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

echo "1250 1200 1050 950 950" > /sys/devices/system/cpu/cpu0/cpufreq/UV_mV_table

echo "1000000" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq

echo "110" > /sys/class/misc/liveoc/oc_value

echo "440000" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq

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

that maybe will work..!?

PS: I ll fix the permission things with root explorer..
[Nexus S Android Development] MultiCulti:
nope, i've running whats app as well ;)
[Nexus S Android Development] caleb1783:
if you made the file on windows, you have to use special programs like notepad++... normal notepad won't work... and set correct permissions...
[Nexus S Android Development] magrejh:
cuz latest kernel drain too much battery..(when comparing with previous version..)
[Nexus S Android Development] al_madd:
can you do me a favour??

can you post screenshot of battery use(from setting/about phone), running services from application, and spare part(apps usually default install from cm7 ) battery history --> partial wake usage....

please.....;)

---------- Post added at 04:01 PM ---------- Previous post was at 03:58 PM ----------

see franco....:D:D:D

not only me have this problem..

few peoples from matr1x kernel also reported this....
[Nexus S Android Development] as6:
LiveOC script

#!/system/bin/sh
# LiveOC

echo "conservative" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
echo "1280 1195 985 950 950" > /sys/devices/system/cpu/cpu0/cpufreq/UV_mV_table
echo "800000" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
echo "400000" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
echo "120" > /sys/class/misc/liveoc/oc_value
echo "lazy" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor

Download and adjust the file to your needs

Then do this commands:

adb remount
adb push /path/to/userinit.sh /data/local/
adb shell chown 0:2000 /data/local/userinit.sh
adb shell chmod 750 /data/local/userinit.sh

or rename the file to 58LiveOC and do these commands:

adb remount
adb push /path/to/58LiveOC /system/etc/init.d/
adb shell chown 0:2000 /system/etc/init.d/58LiveOC
adb shell chmod 750 /system/etc/init.d/58LiveOC

Reboot and everything should be fine.

If you got reboots higher the voltages for 480 and 960Mhz cause they are undervolted.

Should work on cm and cm-based roms.

Make a backup before doing this.
[Nexus S Android Development] Ezekeel:
Yeah, that is my bad. The modifications made for LiveOC can lead to the problem that the request to re-enable frequency changes, after SLEEP/DEEP IDLE is finished, is skipped. I fixed that in the latest bugfix.
[Nexus S Android Development] ragnarokx:
Only changes I made were setting the governor to Conservative and undervolting -20mV for all frequencies. Don't even need OC, running very smooth :)

Sent from my Google Nexus S
[Nexus S Android Development] MultiCulti:
hope this is what you looking for :rolleyes:
[Nexus S Android Development] franciscofranco:
Thanks Ezekeel :)

Btw I don't have any problem with my battery, it's pretty good actually. Either it's the deep idle bugfix that locks the frequency to 800 while entering and returning the idle state or it's a problem on your end because it's pretty fine to me.
[Nexus S Android Development] franciscofranco:
Man, both facebook and Maps apps are a ****ing battery drain, no wonder you're complaining.
[Nexus S Android Development] Icecoldmeat:
As far as now, no problems detected :)

I think I'll keep this kernel.

And again, Good job.
[Nexus S Android Development] dinuvali:
Excellent kernel.

With the one from the 21st i thought i had solved the signal loss issue on MIUI.

I updated to the 25th one and changed governor to conservative and plugged in 110 liveoc. A few hours later i had lost signal.
[Nexus S Android Development] ragnarokx:
Signal loss is random for MIUI. I have almost the same setup with no signal loss to date.

Sent from my Google Nexus S
[Nexus S Android Development] MultiCulti:
lol ... franco ... i'm not complaining ... i love my settings and of course, your kernel ... i have not one issue ... EVERYTHING running well ...

you missunderstud something :p ...
[Nexus S Android Development] boostern:
For the people that asked for a script that can run in the stock rom, this is my script. I run this script in script manager with option "run as root". Open the notepad and save the file as whatyouwant.sh with this written in:

cd / echo 120 > /sys/class/misc/liveoc/oc_value cat /sys/class/misc/liveoc/oc_value echo 0 > /sys/class/misc/backlightnotification/enabled cat /sys/class/misc/backlightnotification/enabled echo 1250 1200 1025 875 800 > /sys/devices/system/cpu/cpu0/cpufreq/UV_mV_table cat /sys/devices/system/cpu/cpu0/cpufreq/UV_mV_table

Exactly inline as it is. Adjust your voltages for your soc.

Then copy the file to your sdcard partition and run it. Obviously if you don't want to disable backlightnotification erase the last line, i disabled it because i don't use notifications and I don't want to wake up the cpu. The solution for the "cannot create blabla" is cd/ in the first line.

@franciscofranco

Proton is definitely not reliable, the only app that sets correct voltages is setcpu (apart from setting it in terminal).
[Nexus S Android Development] al_madd:
Are you refering to me??:p:p

I flashed TEUV..no even 1% battery drained for 4 hours(same apps,wifi on)

dont like teuv because of signal loss and bootanimation....therefore I prefer matr1x ,talon and your kernel...

Dont know why my phone does not want enter deep idle/sleep....:confused::confused:

Edit:Okay....after flashing back your kernel....deep sleep works!...great!..thank you...!
[Nexus S Android Development] MultiCulti:
ok franco ... i´m going to change my sig :D never without your kernel :rolleyes:

thanks for your great work, and keep it up!

btw, i still don´t know about BLX .. yes, i know the thread for it ... but don´t understand :D

anyway ... if its working its fine, and if not ... i don´t care :D
[Nexus S Android Development] HeavenlyWinds:
Just change the boot animation with root explorer...
[Nexus S Android Development] JmPTaz09:
Been running the latest kernel on CM7.1.0.1 with 110% performance w/live OC for quite awhile now at stock voltage (1250 volts for 1100 step, no changes to any steps) and find it to be quite fast, smooth and stable; not a single reboot! I did play around with 120% and even 115%, but got some freeze/reboot. Granted, I was not upping the voltage at all, but that's because I don't want increased battery drain for a small boost in performance, when it's already blazing fast at 110%!

Just reporting my results and giving props for the great kernel!
[Nexus S Android Development] noobhero:
gawd i'm pulling my hair out for this one.

i have the below code for the liveoc

running the script in script manager is fine.

it runs w/o any error.

but when i try placing the file which i renamed to "58liveoc" w/o the quotes of course with permission 750 like the other files in init.d

the phone boots up to the launcher and freeze at times. i tried upping the highest voltage to 1330 and it's the same :S

what am i doing wrong?
[Nexus S Android Development] brenix:
Disable any other programs/settings that set the CPU frequency/voltage on boot.. I had to uncheck the set on boot option in cyanogenmod settings for the CPU frequency
[Nexus S Android Development] noobhero:
set on boot is disabled in bot setcpu and cmsetting.

i'm didnt set anything via setcpu or cmsetting, just using the script

and trying to make it run in init.d :)

ps. franc, do u think it is possible to bring back the oc frequencies in the next update for pple like me who are having trouble with init.d scripts?
[Nexus S Android Development] timeToy:
Forget about init.d if you are on a stock rom, run the script "on boot" "as root" with Script manager and you should be all set

I love this kernel, 4000 quadrant at 1100 (110 live OC) with Oxygen 2.3.1 at stock voltage and with working wallet to boot!
[Nexus S Android Development] as6:
Remove echo activation ...

and make this your first line

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

I posted a working script before.
[Nexus S Android Development] ro_explorer:
I'm on stock 2.3.6/rooted and I'm using with complete success script manager with "run on boot" switch activated for the specific scripts.
[Nexus S Android Development] woolmonkey:
Why do you set the governor to conservative then at the end to lazy?
[Nexus S Android Development] as6:
At the end lazy because that is the governor which I want to use.

First to conservative because it's discussed so in the original thread. (I really don't know what it is good for.)

I tried it now without to set the governor first to conservative and it seems to work.
[Nexus S Android Development] ro_explorer:
24 hours later ....

I've got one rebot with liveOC set to 110 w/o touching the voltages. After that I've reverted back to liveOC 100, 100-1000 MHz, smartassV2 gov.

I lost 5% over night (7 hours). Battery seems to be good. System is VERY stable with stock frequencies, stock voltages and also very snappy.

I'll keep it like this for now but still .... compared with previous version, the iddle drainage is slightly larger. I'll try tonight to increase the minimum frequency to 200 to see how it behaves.

Will report back in 24 hours :).
[Nexus S Android Development] franciscofranco:
Thanks for the report! Like I said before I think the idle wasting more battery is caused by one of the last bugfixes from Ezekeel.

Tonight I'll look into it closely, I didn't have much time yesterday. :)
[Nexus S Android Development] al_madd:
great..;););)

this deep idle make me stress..after reflash your kernel, deep sleep work, after reboot, no deep sleep, CPU freq always at 440mhz, reboot thrice, deep sleep works again...

all of this using spycpu
[Nexus S Android Development] franciscofranco:
Yes, that's a bug confirmed and fixed by Ezekeel yesterday, I just didn't update it yet.
[Nexus S Android Development] eiabea:
hey franciscofranco,

great kernel! but did you disable logcat?? i tried to debug a little app and got: "C:\Users\eiabea>adb logcat

Unable to open log device '/dev/log/main': No such file or directory"

help? :o
[Nexus S Android Development] jason62391:
Everytime I try to live oc on terminal it keeps replying. Permission denied
[Nexus S Android Development] JmPTaz09:
Did you type "su" then hit the next button to grant superuser access? I can't click on your picture to enlarge for some reason.
[Nexus S Android Development] franciscofranco:
Yes disabled, I don't want that ****.
[Nexus S Android Development] yaronyud:
any 1 tried to change voltages via Proton voltage??

as i hit the apply button the phone get black screen and freezes 3 out of 3 times..

any 1 else got this issue?

i use MV 10.23
[Nexus S Android Development] boostern:
Use setcpu.
[Nexus S Android Development] BigD18t:
Newbie to the nexus s and I'm going to try this kernel so I just flash in recovery?
[Nexus S Android Development] ro_explorer:
Yes .. flash using CWM.
[Nexus S Android Development] v3rk:
^^and i dunno know necessary or not this is, but i like to reflash my current rom to install its default kernel before flashing new kernels. everything seems to play nicer that way.
[Nexus S Android Development] eiabea:
:D okay, but how can i debug my apps without it? :D
[Nexus S Android Development] roshga:
thanks a lot for the script! I copied it to a init.d file and it works great.

just FYI, the minfreq line that you use does nothing, the 400mhz freq no longer exists in the location where you located that line, if you want it to work and to make the "new" 480mhz freq than use that line before the "120" line.
[Nexus S Android Development] king23adrianc:
so its better to have min 200 or 400 than 100 to have a better sleep state?
[Nexus S Android Development] al_madd:
400 or 440
[Nexus S Android Development] Yusei:
Kernel master franco... Thx :)
[Nexus S Android Development] HeavenlyWinds:
It basically allows you to Overclock in Terminal.

Edit:

Werent you asking was live oc was? :confused:
[Nexus S Android Development] thedudejdog:
That's a ninja edit. Blam!

He must have googled it after posting
[Nexus S Android Development] as6:
I use this line to set the minfreq to 480 and it's working.
[Nexus S Android Development] laidick:
Can anyone please share your working voltage values when using 110%?

thanks!
[Nexus S Android Development] roshga:
true, my bad. setcpu was set to lunch on boot and changed my min freq..
[Nexus S Android Development] JmPTaz09:
Stable as a rock using stock voltages (1250 volts at 1100 and so on); no changes.
[Nexus S Android Development] boostern:
1225

1160

975

850

775

But you have to try every single step for your cpu to find the lowest voltage.
[Nexus S Android Development] caleb1783:
and i uv as follows from the stock voltages...

http://caleb1783.tistory.com/217

at each speed, i tried to make the phone reboot itself by maximizing the phone usage with apps like quadrant standard and moboplayer... if it reboots, increase the volt by 5 and if not, reduce by 5 until i reach the stable voltage~!