yashsingh1/xdaforums huggingface dataset:
[Nexus S Android Development] jodtalingchan:
you create the file under init.d and here I would do.

use terminal

run su

# cd /system/etc/init.d

# touch 99deepidle

you will see the file you just created now you can edit it. Put that script in and save. set permission same as others

let me know if you have a question
[Nexus S Android Development] jodtalingchan:
you know Mike I run 1300/200 interactive and this gave me good batt life with deepidle enabled. well, as you mention you don't want to load cpu but just give you info :)
[Nexus S Android Development] jeffkhlam:
I flashed 9.0 but my battery still dropping like normal even I put it in airplane mode during my sleep last night(7 hrs). then I put it back to normal mode, the drain is same similar to the past 7hrs during airplane mode. the battery drain during airplane mode is therefore worse than than of v8.0. I checked using CPU spy, it did say that 85% of time was in deep sleep mode.

how come?
[Nexus S Android Development] mike216:
Ill give your settings a shot but why do we have to run so high to get the battery conservation

Interactive is a beast but when I watch my system panel app the cpu throttles kind of high compared to ondemand? Does that really not mean much or is deepidle working better on interactive

Sent from my INTERACTIVE NSCOLLAB
[Nexus S Android Development] Arkaknio:
Got some problems with car bluetooth using v9.0 (got a Fiat Punto with Blue&Me). The BT connection suddenly disconnects and takes a while to reconnect (at least two minutes). It happened 3 times, and one of them came with a reboot.

v_v

Think is a deep-idle related issue, maybe BT chip is beign forced to go idle when he should keep working.

Any idea MK?

P.D: Amazing kernel, good job!!
[Nexus S Android Development] SA-07:
Yeah ezekeel has a bug fix for that

I will put it in v9.5

p.s. try MatrixRom :D
[Nexus S Android Development] jodtalingchan:
never try ondemand but will give it a shot to compare
[Nexus S Android Development] DaX05:
Good!! Lol
[Nexus S Android Development] SA-07:
haha yeah!!
[Nexus S Android Development] ro_explorer:
Hey ... mathkid .. almost one day passed over my phone with your 9.0 with deepidle disabled ...

here are the snapshots.

Amazing work. I can't wait for your 9.5 with the latest bugfixes in place so I can give one more shot to the deep idle.

P.S.: When do you sleep? You're active 24/7 on this topic.
[Nexus S Android Development] SA-07:
lol.... I do sleep xD
[Nexus S Android Development] casca:
I've seen my battery drain faster with deep idle enabled so I'm back to cfs 9.0 with deep idle OFF.

Weird as it may seem, today I've had two insert PIN requests after flashing the "off" version...don't know why but will see if it happens again.
[Nexus S Android Development] gouthamsn:
I guess with deep idle i am having problem with USB tethering ...net drops after a while .. If i unlock it becomes fine ..
[Nexus S Android Development] coloxim:
sorry...but how can set liveoc after a reboot?

beacusa if I edit the file after the reboot come back to 100
[Nexus S Android Development] ro_explorer:
install Script Manager from market.

Use this one to create/edit a script in /etc/init.d and set it up to be executed at boot. ... that's all
[Nexus S Android Development] arthofer:
Is it possible that Stock Cyanogenmod 7.1 has no init.d support?

Or is it me and i'm too stupid to find the folder

/system/etc/init.d/

or

/etc/init.d/

Has someone got any advice or solution?

Also, the deep idle folder is also not present. But thats the smaller problem since i would need init.d to acess it
[Nexus S Android Development] ro_explorer:
The /etc/init.d and also the /sys/class/misc folders are nor REAL folders. Those are sym-links (symbolic-links for the ones used to the Linux enviroment). The problem is that Root Explorer (the most common file explorer used on rooted devices) does not have the ability to see and use the sym-links. That why one will need to use another file manager with the soft-links capabilities .. such as Android Mate (free on market).
[Nexus S Android Development] AnthonyAldrete:
How do I enable deep idle?
[Nexus S Android Development] sterescugabriel:
deep edle is enabled by default
[Nexus S Android Development] MistaJae:
Just wanted to say I upgraded to from 8.5 to 9 and this kernel is AMAZING! I took my phone off the charger at 7am and I have 70% battery left (at 2.45pm). Normally I have around 60% with similar time/usage. Deep idle is working well (according to CPU spy). I noticed my phone hasn't used 200mhz or 400mhz AT ALL! Is that normal?

BTW, I'm using OnDemand @ 1000/100mhz (on SuperOSR 2.0.6 ROM).

So far, I am loving this kernel. I'll continue with it for a few days to see how things go.

Thanks MK!
[Nexus S Android Development] the_trade_place:
I keep getting random re boots. Possjbyl the UV?
[Nexus S Android Development] SA-07:
Yeah, raise all voltages by 25
[Nexus S Android Development] ro_explorer:
Cpu spy will show the DEEP SLEEP state of the cpu, not the deep idle. Deep idle and deep sleep are different situations.
[Nexus S Android Development] AnthonyAldrete:
So I keep getting random reboots when the phone is turned off and trying to turn it back on. Screen stays black but the backlights turn on. It stays like that for about 5 minutes and then reboots itself. I just left everything as is didn't change the CPU just did a wipe dalvik and flashed? Can someone help me troubleshoot this issue?
[Nexus S Android Development] AnthonyAldrete:
So far I have had to crashes since I pulled it off the charger. First time happened while I was listening to music and went to turn the phone to check the time and heard a constant skipping on the music and lasted for about 3 minutes until finally rebooting it self. Then the second time crashed again for basically the same reason, went to wake the phone up to check the time and stayed on a black screen until it rebooted again? Anyone having issues like I am please advise thank you ;)
[Nexus S Android Development] ro_explorer:
These are common simptoms of too low voltages for given frequencies.

Try to boost the voltages a little (by 15mV for example).
[Nexus S Android Development] SA-07:
Raise all voltages by 25
[Nexus S Android Development] mike216:
Hey MK deepidle is working fine for me know even at 1000 100 I left it off the charger over night and only lost 3% in 8 hours

That firs day my phone charged really fast so I had a feeling something wasn't rite but last night it charged like normal and battery is holding up like normal 100 1000 interactive,I'm really glad because this one is nice and quick and I definitely wanted it to work

Sent from my INTERACTIVE NSCOLLAB
[Nexus S Android Development] SA-07:
Yeah that sounds better haha

I was shocked before haha
[Nexus S Android Development] jeffkhlam:
using 9.0, battery drain fast in airplane mode: 2% per hour! seems drain faster than normal idle mode to me. anyone experiencing similar? tried lazy and ondemand, same draining. wiped dalvik before upgrading from 8.0 to 9.0.

any advice?
[Nexus S Android Development] SA-07:
2% per hour is good lol
[Nexus S Android Development] stuff:
my device has been having the sleep of death or whatever.

That mean voltages are too low?
[Nexus S Android Development] SA-07:
you should disable deep idle then

use the echo command and replace the '1' with '0'
[Nexus S Android Development] jeffkhlam:
it was less than 5% for 7-8 hours on airplane mode with 8.0.
[Nexus S Android Development] SA-07:
this is with or without deep idle?
[Nexus S Android Development] jeffkhlam:
8.0, without

9.0, with deep idle
[Nexus S Android Development] SA-07:
try disabling deep idle on 9.0 and lemme know
[Nexus S Android Development] stuff:
I'm gonna increase voltage by about 25 then let it sit for a bit. If I still get it, I'll disable it.

Not sure why it wouldn't work properly on my phone but would on others. :S
[Nexus S Android Development] SA-07:
Haha ok, lemme know!
[Nexus S Android Development] casca:
Hello Math, like i said i am with deep idle off,cfs and 9.0 since 7am.battery is now with plus than 10h with wifi and 3g enabled all the time and 52% left which for me is very nice but i had to insert my sim pin 3 times now...is this normal? What could be causing this?

I'm running at stock speed
[Nexus S Android Development] theadb:
Was running great with v.9.0 (1.3/ondemand/vr) for most of yesterday. Smooth and no restarts. Battery life wasn't great though.

Just enabled deep idle.

Will report back.
[Nexus S Android Development] mike216:
Music skips using interactive governor other than that its great please check it out MK

Sent from my INTERACTIVE NSCOLLAB
[Nexus S Android Development] stuff:
It's only been like 45 minutes, but I left it there while watching netflix on my ps3.

Picked up the phone and it woke up normally.

I guess the voltage was too low for my phone (maybe around the 100-200mhz region) and it would just fall asleep and not be able to wake back up.
[Nexus S Android Development] mike216:
That's exactly where I would start! Raise to 950 for 100 and 200 and I would raise the rest of them also a little I left mine about 20 under for the rest and so far so good besides music skipping while using interactive governor

Sent from my INTERACTIVE NSCOLLAB
[Nexus S Android Development] SA-07:
Try ondemand
[Nexus S Android Development] k4str0:
Is the new deep idle bug fix for BT from yesterday in Ezekeel's thread included in 9.0?

EDIT: Found answer 3 pages back. Wait for v9.5.
[Nexus S Android Development] RisinT96:
sorry for dumb question: in what cases/when does the deep idle kick in?
[Nexus S Android Development] mike216:
Ondemand is fine but I like interactive it responds better! Could you fix it for 9.5 please! !

Sent from my INTERACTIVE NSCOLLAB
[Nexus S Android Development] gioyann:
Why my deepidle is turned off by default? And if I enable it then it turn off back at each reboot... O___o
[Nexus S Android Development] franciscofranco:
Interactive is old and it became obsolete a long time ago in my opinion.
[Nexus S Android Development] SA-07:
Download the zip again now and try
[Nexus S Android Development] theadb:
ok all's smooth now MK...

now can you make the battery last as long as it did on Talon? :D
[Nexus S Android Development] mike216:
Yesterday my battery drained like crazy and today I'm averaging loosing 1% every 4 hours,love it MK

100 1000 ondemand

20 under across the board besides 100 and 200/950

For any the had the battery drain when they first flashed give it another shot because deepidle works and it works great

Sent from my INTERACTIVE NSCOLLAB
[Nexus S Android Development] mike216:
Anyone try minimax or no anything about it

Sent from my INTERACTIVE NSCOLLAB
[Nexus S Android Development] SA-07:
Theadb there ya go... thanks mike!
[Nexus S Android Development] jeffkhlam:
anyone tried v9.0 with airplane mode? Battery drains like normal mode for me.
[Nexus S Android Development] mike216:
I don't know if you read my post but if you experienced any battery drain when you first flashed just give it a couple charge cycles because I did and now I'm getting the best battery life I've ever seen! With my data off I'm loosing around 1 2% every 4 hours! Deepidle is amazing give it another chance

Sent from my INTERACTIVE NSCOLLAB
[Nexus S Android Development] stuff:
I'm getting sleep of death about an hr of idle time. Maybe voltages are still iffy? Not sure, but with this I might have to disable deepidle, or I might have to just flash back to 8.5
[Nexus S Android Development] SA-07:
Yeah just disable deep idle
[Nexus S Android Development] AnthonyAldrete:
That's amazing
[Nexus S Android Development] AnthonyAldrete:
So in theory which is suppose to have the best battery life, deep idle enabled or disabled? Just asking
[Nexus S Android Development] mike216:
Why don't you raise your voltages first before disabling deepidle

Sent from my Nexus S
[Nexus S Android Development] mike216:
Have you gotten any sleep of death's

Are you running deepidle still

Sent from my Nexus S
[Nexus S Android Development] mike216:
Deepidle is going to get you around 40 50% better battery but it could take two full charge cycles before getting the full benefit,that was my experience

Day two with no sleep of death and I sure as hell hope I don't get them because I love my setup

THANKS MK

Sent from my Nexus S
[Nexus S Android Development] mike216:
If you have to raise all your voltages to stock because the deepidle mod is going to save you more battery then if you would just undervolt so DONT give up man! Come on hang in there lol...

Sent from my Nexus S
[Nexus S Android Development] casca:
hey guys I've got a question...

I'm running Oxygen rom , and it has by default Netarchy kernel.

Was I suppose to encounter any sort of troubles after flashing matr1x?

Is the correct procedure to flash it simply wipe cache, wipe dalvik-cache and then flash the matr1x zip file?

I've switched kernel between dee idle on and off (after having netarchy and matrix 8.5) and yesterday after the last flash(DI-OFF) I was requested to "insert pin" 3 times in the morning... so If anyone can advise, please do.

BTW: I've fresh installed oxygen again, and installed matr1x cfs 9.0 deep idle off over netarchy's (by default in oxygen) and so far no issues, that is why I've made the previous questions.

Sorry for the long post guys, but I'm very curious about these things :)
[Nexus S Android Development] al_madd:
Anybody can help me with this??

facebook is the highest apps drained my juice...

Do I need to change app for facebook?

I disabled notification for facebook...but still eat my juice a lot..

Is this happened to you too??
[Nexus S Android Development] casca:
it didn't, but uninstall that one and try friendcaster instead, it is way cooler that the original facebook app.
[Nexus S Android Development] fleischbanane:
Can you remove BLN and add the newest CM7 kernel-updates?
[Nexus S Android Development] casca:
forgive my question but why would want BLN out of the kernel?
[Nexus S Android Development] theadb:
Did you get any radio dumps? I got 3 last night :(
[Nexus S Android Development] AnthonyAldrete:
I'm getting really good battery life with it being disabled. I'm about to start the day so will report back to see if I'm right
[Nexus S Android Development] X1111:
thanks for your job mathkid , i have a question then sorry if it's repetitive ;)

charging to 100% is only digits for battery percent or a real tweak please ?
[Nexus S Android Development] AnthonyAldrete:
What type of setup were you using to get these results. That's insanely good battery life. Like what voltages were you at gov., frequencies Ect. If you don't mind me asking :)
[Nexus S Android Development] fleischbanane:
Because you don't need it any more for CM7 with the newest nightly!
[Nexus S Android Development] gioyann:
try moving the Facebook app from "phone memory" to SdCard
[Nexus S Android Development] ro_explorer:
My setup is: 2.3.6 STOCK with some default applications removed (I don't use them, no other reason) and with this kernel.

The voltages are the default ones that are being set-up by the kernel with a small UV on 100MHz (895 instead of default 905) and a slight OV on 1200MHz (1340 instead of default 1315).

The governor is SmartassV2.

Anyway, even if I have an uptime of 55hours at this very moment, I got a couple of radio drops, meaning that data went off on both wifi and 3G, w/o any apparent reason. Anyone has a clue about this?
[Nexus S Android Development] Black Coffee:
Is 'Deep Idle' enabled in this kernel or do we need to manually enable it ?
[Nexus S Android Development] ro_explorer:
Now it is enabled by default.

You can check this by looking into /sys/class/misc/deepidle/enabled

Or in a terminal: cat /sys/class/misc/deepidle/enabled

If the value there is "1" then it is enabled.
[Nexus S Android Development] kenvan19:
You dev'd a kernel for the SGS2 already?!?! You're freaking awesome dude.
[Nexus S Android Development] SA-07:
Lmao how did you know
[Nexus S Android Development] stuff:
I've raised them 30 now and so far overnight there wasn't a single problem.
[Nexus S Android Development] got2best:
Can anyone post what the stock voltages are?
[Nexus S Android Development] thoth77:
Matr1x Kernel v9.0 Stock Voltages

I'm using cfs

according to /sys/devices/system/cpu/cpu0/cpufreq/UV_mV_table

1460mhz: 1450 mV

1300mhz: 1380 mV

1200mhz: 1315 mV

1000mhz: 1215 mV

800mhz: 1180 mV

400mhz: 1030 mV

200mhz: 905 mV

100mhz: 905 mV

vs

CM Stock Voltages

1440mhz: 1440 mV

1300mhz: 1390 mV

1200mhz: 1330 mV

1000mhz: 1250 mV

800mhz: 1200 mV

400mhz: 1050 mV

200mhz: 950 mV

100mhz: 950 mV
[Nexus S Android Development] got2best:
Thank you.. I tried changing my phone to 100-1.3 and I get reboots.. what should I change?
[Nexus S Android Development] ro_explorer:
If you get random reboots while the phone is "not used" ... then you should increase the 100 and 200 voltages by ... let's say ... 25

If you get reboots only if you enable the 1200 or 1300 step (like I was getting) then you should only increase the voltage for that step by ... 25 :) ...

If you still get reboots after this you should increase the voltages further.
[Nexus S Android Development] mike216:
I couldn't agree more but I raised my 100 and 200 to stock 950 volts

Sent from my Nexus S
[Nexus S Android Development] coloxim:
Great kernel..without deepidle I've à good battery life..how can i set a different charge %? Is it possible le?

Inviato dal mio Nexus S usando Tapatalk
[Nexus S Android Development] Fidel Cashflow:
I'm posting this here because I think it's a kernel issue not a ROM issue but I just had my second SOD today (I posted in the Nexus MV thread when I got my first - Wednesday?) I bumped voltage on 1200 to 1325 and now 1335. I didn't disable deep idle primarily because battery life is much better with it on and I'm lazy. But yeah this is starting to suck :(.
[Nexus S Android Development] SA-07:
Increase the min frequency to 400 and lemme know
[Nexus S Android Development] coloxim:
Nooo...can you change it? Please..

Inviato dal mio Nexus S usando Tapatalk
[Nexus S Android Development] gioyann:
I ask it too! :o
[Nexus S Android Development] Fidel Cashflow:
I did and got random reboot but I also dropped the voltage back to 1325 from 1335
[Nexus S Android Development] mike216:
There's a setting in your Facebook app that looks for updates go in there and change it to not look for new post and messages so often

Sent from my Nexus S
[Nexus S Android Development] LionAR10:
Still was getting SOD while music playing on 8.5 ...

- switched back to 9.0 to test voltage change

- set voltages to stock CM

(still had SOD while music playing)

- set to lowest speed 400mhz

(still had SOD while music playing)

- now trying min speed 800mhz

This has been super unstable for me .. but it doesn't show itself right away, it just explodes out of nowhere. The best trigger for it I've seen is to set it playing MP3s (music app) and then wait. It explodes faster then.
[Nexus S Android Development] mike216:
Are you using ondemand

I'm loving it

Sent from my Nexus S
[Nexus S Android Development] mike216:
I actually couldn't imagine a kernel any better (that is as long as I stay reboot free lol..)

These voltages have been working great for me

Sent from my Nexus S
[Nexus S Android Development] LionAR10:
Could the choice in governors cause a SOD?
[Nexus S Android Development] mike216:
When I used interactive I would get really bad music skipping and ondemand has been flawless so ondemand for me it is (I like it better anyways ) so yes I definitely can

And my favorite friend MK could you include ezekiels touch wake patch and the Bluetooth fix to make this the most amazing piece of work ever made in 9.5 lol.. but really its great

Sent from my Nexus S
[Nexus S Android Development] Fidel Cashflow:
Another random reboot :(
[Nexus S Android Development] al_madd:
Which ROM do you have??

try

Ondemand, 100/1200
[Nexus S Android Development] mike216:
Did you try the voltages I posted

I'm also 100 1000 ondemand

Been running since it was released and so far so good so check those voltages out

Sent from my Nexus S
[Nexus S Android Development] Rotellian:
So far v9.0 seems more stable for my phone than v8.5. I couldnt run 8.5 at 1300 or above, but i can with this kernel (had to increase 1460 voltage slightly but thats it).

No random reboots so far and battery seems pretty good. Im down to 72% in 20hrs with a screen usage time of 50 mins! Very impressed, deep idle obviously helps.
[Nexus S Android Development] AnthonyAldrete:
well i raised the voltages by 25 like i was told, it did stop the crashing for most of the day yesterday until i got out of work and plugged in my aux to my car to listen to music, about 5 minutes later it crashed but instead of the music skipping constantly and then reboot 5 minutes later, I only heard a slight skip and then immediately rebooting itself. I was running on stock frequencies, with conservative gov. setting and deep idle disabled. My voltages were :

100m-950

200m-950

400m-1050

800m-1200

1ghz-1250

1.2ghz-1350

1.3ghz-1400

1.4ghz-1450

p.s. on another note, the battery life yesterday i was getting was amazing. I unplugged my phone at 4 am and by 10am I only lost about 5%. By the end of the day usually from listening to music occasionally my battery is at 35% to 40% SOMETIMES, but yesterday doing the same thing my battery was still on about 76% i was shocked, great work !im happy =)
[Nexus S Android Development] franciscofranco:
Been reading people posts and I have to warn again not to use 100 mhz minimum speed. Because its so low it causes more wakeups-from-idle calls which obviously destroys the purpose of idle mode and bye bye battery.
[Nexus S Android Development] al_madd:
damn.,

why I dont know this>??

so how much freq for minimun speed??

200?400??
[Nexus S Android Development] franciscofranco:
Because my previous experience with another phones, because I've studied Operating Systems in college and because it's logical.

I always used 400 as minimum, but I don't know if 200 is enough or not.
[Nexus S Android Development] coloxim:
Really? We have to use 400 for the best battery?

Inviato dal mio Nexus S
[Nexus S Android Development] Ezekeel:
I am not sure that it causes more wakeups, but it in theory running at maximum speed should finish the task quicker and on avarage the CPU can spend more time in DEEP-IDLE or SLEEP. I am still running 110/1320, but I have seriously considered using a screen-off profile with 1320/1320. The only reason I have not switched is that I do not like to have another background process running for this. Maybe I will hack it into cpufreq.
[Nexus S Android Development] franciscofranco:
Yes everything you said is true, but from my past experience having such a low minimum speed causes more wakeups than higher frequency, I've watched it myself and recieved reports from other dev too - we used Powertop to measure it.
[Nexus S Android Development] Ezekeel:
Hmm. That is interesting. Did powertop give any info about a certain process that caused these increased number of wakeups or was this increase across the board for all wakeup sources?
[Nexus S Android Development] thoth77:
live oc

Browser scroll lag removed :)
[Nexus S Android Development] owenmurr:
Does anyone get a flash of green when locking the phone? Or is this normal?
[Nexus S Android Development] mike216:
If I hold two buttons in on accident I get the green screen

Sent from my Nexus S
[Nexus S Android Development] mike216:
If your not using ondemand I suggest doing so because I had problems listening to music using interactive governor but its all good on ondemand

Sent from my Nexus S
[Nexus S Android Development] mike216:
MK how is ezekiel setting his min at 110? I've use set cpu and can only go from 100 to 200 and up for min frequency

Sent from my Nexus S
[Nexus S Android Development] JakeOcn:
He is using live oc
[Nexus S Android Development] mike216:
This is the min frequency that Franciscofranco was talking about?

Sent from my Nexus S
[Nexus S Android Development] mike216:
Does anyone get battery drain from Google +

Sent from my Nexus S