yashsingh1/xdaforums huggingface dataset:
[Nexus S Android Development] dsellers2:
Goto system/etc/init.d/ in root explorer. Long click on 98tweak and open in text editor. Make sure you have read/write permissions. Then change echo 1 to echo 0 on the following line and save.

echo 1 > /sys/class/misc/deepidle/enabled

Save the file and reboot.

Then it will be disabled by default even after a reboot.
[Nexus S Android Development] polobunny:
Ah I think I won't get any reboot with this kernel. TEUV-05102011, 90 hours uptime so far. Ondemand 98%. :)
[Nexus S Android Development] isikh:
Link? :)

Thank you for the help!
[Nexus S Android Development] sinik420:
Pic or it didn't happen
[Nexus S Android Development] nadiros:
I just gotta chime in and express my love for TEUV-S22-29102011c !

Thanks morfic :D & simms :D

By the way - running BM's MIUI 1.10.28 with the 98tweak deleted.... Do I gotta ?
[Nexus S Android Development] polobunny:
Link:

http://morfic.euroskank.com/simka/TEUV-NS-05102011.zip

Screenshot:

Don't think I'm switching this setup until deep idle is perfected. :)

Edit: Oh and excuse the french. It's the number at the bottom. :P
[Nexus S Android Development] tehgeekguy:
That's good to see that you haven't had any reboots, but Uptime != On-battery time.
[Nexus S Android Development] polobunny:
I have in no way mentioned that it was battery time though. ;)
[Nexus S Android Development] GeezyAF:
Echo 0 to turn off DI.

New market is cool, simms. Thanks.

You definitely do need to delete your current market from system/app. Then copy the new one over and set the permissions and reboot.
[Nexus S Android Development] tehgeekguy:
I didn't say you were, it was more of an educational thing, since I think some people may read it and get confused.
[Nexus S Android Development] red_skittles:
Does the race to idle effect also apply when the screen is on and the phone is in use? I'm running TEUV and I find that some apps like Facebook or Reader take longer to load than they would with a higher clocked kernel. I'm assuming that when the processor isn't under heavy load the frequency drops down so are there any positive effects of running at a higher frequency and finishing tasks faster or does the increased voltages needed for higher frequencies cancel out any of the benefits of race to idle (or race to lower frequency) when the phone is in use.
[Nexus S Android Development] polobunny:
You're right. My apologies!

aaaaand I talked too fast. Guess my maximum uptime got around 91 hours and a half. When I left work my phone rebooted. :(

I know it's close to stable, but it sucks that it's not perfectly stable.

Edit: Whaaat, nothing newer than znteuvs? PSH. I'm having withdrawals.
[Nexus S Android Development] tehgeekguy:
Isn't that how it always works? As soon as you post something awesome, something happens and ruins the whole thing :(
[Nexus S Android Development] polobunny:
I was quite happy since I always had 2-3 days then a reboot. Thought I'd go forever without one for some reason. Totally jinxed myself. :p

Guess I'll be flashing TEUV-S22-30102011b and disabling deep idle!

Question for anyone in the know, does the "b" stand for BFS per chance? Or a rev?
[Nexus S Android Development] GeezyAF:
Revision
[Nexus S Android Development] polobunny:
Any idea what morfic changed between both?
[Nexus S Android Development] morfic:
With the latest deep idle patch there shouldn't be anymore reboots.

After Ezekeel started working with/looking at newer code instead of the old 2.3.3 code, he quickly found the issue and fixed it.

Kernel will be up soon.
[Nexus S Android Development] polobunny:
Party hard!
[Nexus S Android Development] some_random:
was about to ask the same question but you beat me to it

I would also like to know what TEUV-ELP.zip is
[Nexus S Android Development] king23adrianc:
yeah! i m waiting :D
[Nexus S Android Development] morfic:
stuff found in simka are for the most part just version in between released version, the sometimes cryptic abbreviations are only useful to me, to keep a reminder in the name when testing one thing or another.

crackflashers won't ask what it is and flash anyway, frying their phone in the process, just like my phone fried 50 times already, others wait for new links on www.derkernel.com and are safe.
[Nexus S Android Development] some_random:
maybe I am not a true crackflasher then haha :P
[Nexus S Android Development] Naa Laa:
When do we see an update on www.derkernel.com? Call me the safe guy! Its always tempting to flash one from simka folder.:p
[Nexus S Android Development] polobunny:
Flashing takes 5 minutes anyway. Just make sure you don't get late for work!

(True story, flashed Matr1x 9.5 and it crashed on me during the night, got late 30 minutes at work, don't flash a kernel before going to bed!)
[Nexus S Android Development] morfic:
I would hit thanks button twice on this one if i could.
[Nexus S Android Development] morfic:
http://goo.gl/nkAFL TEUV-S22-02112011

Latest TEUV with latest EZEkeel patch addressing the reboots in certain cirucmstances.
[Nexus S Android Development] franciscofranco:
I'll thanks for you.
[Nexus S Android Development] some_random:
I have done this and learnt my lesson.... I did this phone decided go to a black screen which required a pull battery but thats no good when you need an alarm to go off in the morning... 3 hours after my alarm was meant to got off for work I woke up thank god I didn't get into too much trouble... now I have my alarm clock next to me set to like 10 minutes after my phone so go off so that if the worst happened that my phone doesn't work I'm not too late haha
[Nexus S Android Development] simms22:
thats almost a nightly ritual for me, flashing kernels right before bed. and the phones alarm clock is my only alarm clock. 2 times in the past 3 years my android hasnt woken me. both times it was cm's fault :)
[Nexus S Android Development] polobunny:
Sadly my NS is a taaaad less tolerant than yours. :P
[Nexus S Android Development] some_random:
living life on the edge there simms :P
[Nexus S Android Development] morfic:
And as always, keep in mind battery stats won't be any good until a few charge cycles in.
[Nexus S Android Development] simms22:
if im gonna be a crackflasher, might as well be that crackflasher all the way :)

besides, 99.999999% of the time i wake up a minute right before the alarm should go off ;)
[Nexus S Android Development] joker2wild:
Morfic, bro I have tried everything short of field stripping my NS4G, but I cannot get any of your kernels to run on my phone. I am always stuck at the Trinity Logo (which I might add is very cool looking). I have read this entire thread to no avail. Help a brother out.....lol

sent from my ICS-powered NS4G
[Nexus S Android Development] some_random:
just flashed TEUV-S22-02112011.zip seems good so far booted up fine, just charged to "100%" or full at least according to the NS and cleared battery stats so I shall let you know how the battery gets on
[Nexus S Android Development] catchsomezz:
was suffering from reboots before....

so far 10 mins with screen off, no reboots! (which is 10 minutes longer than before :P)
[Nexus S Android Development] simms22:
what rom are you running? it wont boot on the ics port.
[Nexus S Android Development] Dr_Ownage:
Just coming back from the ICS B8 :P god i love that ice creamy goodness :P

I find that i get no weird colours when using the stock ICS kernel nor do i get the issue with the sdcard not mounting...

about to do a full wipe flashing latest CM with the new 0211 kernel :)
[Nexus S Android Development] simms22:
good luck!

if it seems likes its sitting on that s22 splash screen too long, let it sit there for a minute or so.
[Nexus S Android Development] polobunny:
Yeah definitely, first boot after clearing dalvik and fixing permissions always takes around a minute or so. Just enough to make me think it won't boot and I'll have to wipe my data, the data I didn't do a backup of. :P
[Nexus S Android Development] noobiekins:
I just realized that with my usage(2 hours screen on, 5 mins - 10 mins call, 8 hours music) I'm pulling 1 and a half days with TEUV. I need to lower this to 1 but I don't want it to drain on like it's on speeds when it's not idle. Could you do a 1.44ghz or 1.1ghz with the updated deep idle patch please? :D
[Nexus S Android Development] joker2wild:
I am running MIUI Brainmasters ROM 1.10.28. I was trying to flash the NS COLL rom from ACS. I did a complete wipe , even downloaded your dalvik wipe zip. And ran that. After doing that flash rom, then your kernel. After having my phone sit on the simms22 bootscreen for 10 min, went to restore previous backup

sent from my ICS-powered NS4G
[Nexus S Android Development] Maximilian Mary:
Have you tried T12?
[Nexus S Android Development] Maximilian Mary:
You went almost 4 days without flashing a kernel?

:eek:
[Nexus S Android Development] polobunny:
I know right. I was going for stability. And it failed, so I flashed latest TEUV then just now TEUV-S22-02112011 :P
[Nexus S Android Development] sinik420:
already resolved :p
[Nexus S Android Development] Naa Laa:
I have learnt my lesson the same way - which made me turn the safe guy!

Have been late to work 3 times in last two months. :-)
[Nexus S Android Development] droidance:
Can I flash Trinity over ICS SDK port?
[Nexus S Android Development] theallian:
nope. no custom kernels on ics
[Nexus S Android Development] melvinchng:
You will cry if you do that.

Accidentally sent from my Google Nexus S using XDA Premium
[Nexus S Android Development] benrees21:
Just flashed latest TEUV. All good so far. Thanks Morfic.

Sent from my Nexus S burning on NSCollab and Morfic's TEUV Kernel!!!
[Nexus S Android Development] window7:
hahahahaha!!!!
[Nexus S Android Development] Serious_Beans:
Finally deep idle without reboot! Thanks, it's working awesome so far...as usual though with all of your kernels (except for the one with reboots lol)
[Nexus S Android Development] polobunny:
And Ezeekeel just got another patch hot out of the oven. Hitting a kernel near you! :cool:
[Nexus S Android Development] Serious_Beans:
Nice, can't wait ;) November is off to a good start :D, new Kernel for Galaxy Tab and finally deep idle working on my Nexus
[Nexus S Android Development] king23adrianc:
btw guys, TEUV 0211 is default to be screen off max freq disabled, so go change to 1 to enabled to have a better battery life :p
[Nexus S Android Development] Naa Laa:
Noob question - how do I do that?
[Nexus S Android Development] king23adrianc:
use root explorer

system/etc/init.d/

98tweak, remember to change to read and write, then edit

change echo 0 to 1, so its like this

echo 1 > /sys/devices/system/cpu/cpufreq/lazy/screenoff_maxfreq
[Nexus S Android Development] italia0101:
What exactly does that do?
[Nexus S Android Development] benrees21:
Thanks. :-)

EDIT: I open in file editor and save it but then when I open it again it's back to 0. ??

Nevermind Root Explorer got the job done!

Sent from my Nexus S on Morfic's TEUV Kernel and some help from Tapatalk!
[Nexus S Android Development] italia0101:
Also once I enabled it and ran the script it says directory non existent
[Nexus S Android Development] Maximilian Mary:
As it should be. In it's current state, max_freq will cause the phone to daintily sip battery juice with its pinky out IF conditions x, y, and z are met. And if not, it will guzzle it like cheap wine.
[Nexus S Android Development] Serious_Beans:
What would conditions xyz be? Are you saying that it's not better on battery life?
[Nexus S Android Development] :
Tried teuv s22 from yesterday but reboots for me
[Nexus S Android Development] Maximilian Mary:
No camera bug and nothing causing frequent wake locks. The theory behind race to idle is that the faster it can accomplish tasks, the more time it can spend in idle. If something is preventing it from going to idle, it runs constantly, but now at 400 instead of 100.

Edit: I'm not saying it's not better on battery life. From what i've read, it's just not consistently better for all users. And for those whom it's not better, it may be noticeably worse.
[Nexus S Android Development] Serious_Beans:
Oh alright, thanks
[Nexus S Android Development] dsellers2:
Its not clear if it should be enabled or disabled. I guess the question to you in your terms is If I enable it will sip or guzzle? :)
[Nexus S Android Development] Maximilian Mary:
That depends on your setup. The best way to find out is to enable it and compare your deep_idle stats to what's been posted on ezekeel's thread.
[Nexus S Android Development] benrees21:
Just unlocked my phone and my status bar has disappeared lol.

Sent from my Nexus S on Morfic's TEUV Kernel and some help from Tapatalk!
[Nexus S Android Development] Naa Laa:
Where can I find "deep_idle" stats for comparison? Do you use an app for it?

Thanks!
[Nexus S Android Development] Maximilian Mary:
Terminal emulator:

cat /sys/class/misc/deepidle/idle_stats
[Nexus S Android Development] italia0101:
Does deep idle work on stock rom? I just went to stats and it shows

$ export PATH=/data/local/bin:$PATH

$

$ cat /sys/class/misc/deepidle/idle_stats

idle state total (average)

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

IDLE 5632225ms (2ms)

DEEP IDLE (TOP=ON) 0ms (0ms)

DEEP IDLE (TOP=OFF) 0ms (0ms)

$

$ cat /sys/class/misc/deepidle/idle_stats

idle state total (average)

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

IDLE 5647174ms (2ms)

DEEP IDLE (TOP=ON) 0ms (0ms)

DEEP IDLE (TOP=OFF) 0ms (0ms)

$
[Nexus S Android Development] polobunny:
Stock rom has no init.d support thus it cannot enable deep idle at boot. You can use a script manager though to run it at boot.

From your log here it's not enabled.
[Nexus S Android Development] italia0101:
Yea I did that using script manager ... and it comes through as 1 when I check it.. still off as you can see here

$ export PATH=/data/local/bin:$PATH

$ echo 1 > /sys/class/misc/deepidle/enabled

$ cat /sys/class/misc/deepidle/enabled

1

$ cat /sys/class/misc/deepidle/idle_stats

idle state total (average)

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

IDLE 5917716ms (2ms)

DEEP IDLE (TOP=ON) 0ms (0ms)

DEEP IDLE (TOP=OFF) 0ms (0ms)
[Nexus S Android Development] italia0101:
Ok not sure what's going on.. now its showing this.

$ export PATH=/data/local/bin:$PATH

$ cat /sys/class/misc/deepidle/idle_stats

idle state total (average)

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

IDLE 946113ms (1ms)

DEEP IDLE (TOP=ON) 15781ms (42ms)

DEEP IDLE (TOP=OFF) 0ms (0ms)

$
[Nexus S Android Development] Kanibull:
Can someone link me to the simka folder please?

Edit--------- found it
[Nexus S Android Development] benrees21:
export PATH=/data/local/bin:$PATH

$ export PATH=/data/local/bin:$PATH

$su

# cat /sys/class/misc/deepidle/idle_stats

idle state total (average)

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

IDLE 1194595ms (2ms)

DEEP IDLE (TOP=ON) 0ms (0ms)

DEEP IDLE (TOP=OFF) 0ms (0ms)

#

That's what I get, it ain't entering deep idle.

Sent from my Nexus S on Morfic's TEUV Kernel and some help from Tapatalk!
[Nexus S Android Development] red_skittles:
http://morfic.euroskank.com/simka/?C=M;O=D
[Nexus S Android Development] italia0101:
Oo so after everything I figured it out.. I had Bluetooth on but not connected .. now I have deep idle on properly..
[Nexus S Android Development] Naa Laa:
I made changes to the 98tweak using root explorer and I am getting the same results like the quote below. Anything missing here to enable deep idle?
[Nexus S Android Development] italia0101:
Write cat /sys/class/misc/deepidle/enabled

Do you get 1?
[Nexus S Android Development] Naa Laa:
Yes.

:confused:
[Nexus S Android Development] belair56:
Next step, turn camera on / off.
[Nexus S Android Development] Naa Laa:
For a second, I thought you were messing with me. But somehow like a magic I was able to get deep idle working for my phone. Thanks!
[Nexus S Android Development] sixstringsg:
For some reason, sometimes the camera gets initialized at boot on some ROM's. It then doesn't shut down. So when you open the camera app and close it, it allows it to shut down properly, and enter Deep Idle.
[Nexus S Android Development] noobiekins:
could someone tell me if facebook's upload manager prevent going into deep idle?
[Nexus S Android Development] benrees21:
Tried the camera trick and it still does not enter deep idle. What is Maps - Network location service?
[Nexus S Android Development] king23adrianc:
camera does work for me..
[Nexus S Android Development] some_random:
deep idle

here are mine

export PATH=/data/local/bin:$PATH

$ export PATH=/data/local/bin:$PATH

$ cat /sys/class/misc/deepidle/idle_stats

idle state total (average)

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

IDLE 3386511ms (4ms)

DEEP IDLE (TOP=ON) 0ms (0ms)

DEEP IDLE (TOP=OFF) 1363707ms (48ms)

$

what is the difference between top=on and top=off and is mine entering deep idle properly?
[Nexus S Android Development] italia0101:
Yea that'd right.. top on is when you have Bluetooth or GPs
[Nexus S Android Development] some_random:
Ok awesome glad mine is working then... I didn't have to open the camera or anything to make it work either.. is that something to do with the rom? cause I'm running the latest gigglebread which seems to be rock solid for me :)
[Nexus S Android Development] italia0101:
I guess yea. I'm on stock rom and had to do the camera thing. Glad its working nnow :-) hope the battery is good. Btw atm I'm set to ondemand 100-880 is that best ffor battery? As some have been saying set min to 400
[Nexus S Android Development] king23adrianc:
its ok, i need to do the camera trick as well, i m running tuesday Taichi cm7 kang
[Nexus S Android Development] some_random:
I don't really know there is an argument that if you set it to 400 then it will be quicker getting to idle and therefore will have better battery.. however 400mhz on the teuv roms has a higher voltage to accommodate the higher clock speed whereas there is no difference in voltage between 100mhz and 200mhz so I am running the min as 200mhz because it should race to idle quicker but it doesn't use more than the lowest voltage on 200mhz anyway
[Nexus S Android Development] dsellers2:
I enable and get much much better results. In fact my phone goes directly to sleep. When disabled it sleeps 50 percent of the time. That's my results anyways.
[Nexus S Android Development] some_random:
so you would recommend turning it on if your stats indicate that your phone is going into deep idle like it should be, like mine is?

IDLE 3386511ms (4ms)

DEEP IDLE (TOP=ON) 0ms (0ms)

DEEP IDLE (TOP=OFF) 1363707ms (48ms)

also the command seems to have something to do with the lazy governor

echo 1 > /sys/devices/system/cpu/cpufreq/lazy/screenoff_maxfreq

does that mean the we would have to run lazy as the default governor to take advantage of this tweak?
[Nexus S Android Development] dsellers2:
If your going to deep idle when enabled then I'd recommend it. :)
[Nexus S Android Development] Naa Laa:
I read some pages back or maybe in a different theard that some people while playing music and screen is off they were able to keep their phone on either 100 or deep sleep. Is that possible? If yes, how do I do it as mine stays on 880 the whole time.

Thanks!
[Nexus S Android Development] simms22:
without deep idle, my phone goes into deep sleep/100mhz every time im listening to music through my headphones, with the screen off. im using the ics google music app, and the official google music app before that.
[Nexus S Android Development] Naa Laa:
I am using miui music player and car bluetooth to listen music. Should I disable deep idle?
[Nexus S Android Development] simms22:
no. both are good. see if theres a difference with music apps, try another one. maybe its the music apps that youre using that are keeping the phone awake.

---------- Post added at 10:02 PM ---------- Previous post was at 10:00 PM ----------

or maybe its the bluetooth keeping it awake
[Nexus S Android Development] morfic:
http://goo.gl/a0WGX

Time to throw out those wimpy avg deep idle times.

TEUV-NS-03112011 with latest deep idle fixes by Ezekeel

screenoff_maxfreq enabled by default in 98tweak

PM_FAST for wifi power management as a testing option, got request to add to sensation kernel, figured i try it here too.
[Nexus S Android Development] franciscofranco:
Post edited to avoid confusion.
[Nexus S Android Development] king23adrianc:
so, i need to open/close camera app to trigger deep idle again?

i m using cm7 kang 2 days ago.
[Nexus S Android Development] franciscofranco:
It won't drain.
[Nexus S Android Development] morfic:
Now you done it! :eek:
[Nexus S Android Development] some_random:
haha lucky he has removed the post
[Nexus S Android Development] Lazat:
Would have liked to know what he wrote just for the fun of it ;)
[Nexus S Android Development] benrees21:
Cool, on it now. Thanks.

Sent from my Nexus S on Morfic's TEUV Kernel and some help from Tapatalk!
[Nexus S Android Development] cabstrak:
I think TEUV-NS-03112011 has something wrong with data connection.

The 3G / H / G / E icon appears, but it's.. "unusable". It's like I'm not connected. It never turns green too. Can't browse, or do anything with the internet. It's fine if I'm connected to wifi, but something is definitely wrong with mobile data.

When I flash back to TEUV-S22-02112011, everything is normal again.

Can anyone confirm this?
[Nexus S Android Development] Maximilian Mary:
Did you wipe dalvik?
[Nexus S Android Development] polobunny:
Got a reboot during the night using TEUV-S22-02112011. Lazy, maxfreq set to 1, deep idle enabled and working. Almost missed work. ~_~

Back to ondemand with deep idle disabled I guess.
[Nexus S Android Development] italia0101:
Try the new teuv
[Nexus S Android Development] catchsomezz:
looks like touchdown email client is keeps waking up the phone.

anyone use this app that has the same experieence? any thoughts on how to limit the this without disabling syncing outright?

i've been getting about -50mA/10 mins :-(
[Nexus S Android Development] benrees21:
2 SOD's in the last hour on TEUV-03112011, might have to go back to previous build. It's weird because I have exactly the same setup just changed the kernel ??
[Nexus S Android Development] ho0o0o11111:
Rom: Nexus MX 11.26

Kernel: 03112011 TEUV

5 hours passed and No SOD, no mobile/wifi data problem at all, but 1 freeze and had to pull out battery.(after Downloaded app, when using back button to kill Market, it froze)

When switch off the screen, it enter to deep idle without any problem; When listening music, it keep freq to 880 (checked by CPU spy), but seems no extra battery drained at all; according to app system panel, normally when I listen music, CPU usage would be around 30%, with 0311 it just spend 10-20%. Not much battery difference seen though, perhaps it was because the listening time was just 1 hour.

Sorry I just restored my nandroid backup so no screenshots.
[Nexus S Android Development] polobunny:
Can't really afford having a phone not too stable in my pockets for my tasks at all time. I got my planning on there, and it's all fun and games until I miss an appointment or don't wake up for work. :P

I'm a crackflasher, sure, but I gotta work to pay my phone bill! :D
[Nexus S Android Development] :
Had a lot of trouble getting my phone past the animation, then reboots no matter what frequency i set it to.
[Nexus S Android Development] polobunny:
TEUV? Your phone probably cannot withstand the increased bus frequency, or the lowered voltages. :(
[Nexus S Android Development] dsellers2:
Try changing touch down from push to polling and set polling time at 30 minute. It will then only check every 30 minutes instead of every couple minutes. You can also set up peak and off peak times to make the polling delay even longer.
[Nexus S Android Development] benrees21:
Ok no more SOD's yet but the screen is taking 5secs + to wake up sometimes. TEUV-30112011 200Mhz min.