yashsingh1/xdaforums huggingface dataset:
[Nexus One Android Development] intersectRaven:
It's a minor update so I only advertised it on my twitter. Anyways, the only change was to the compiler optimization which I reverted back to VFPv3 from NEON and from soft float to hard float. :)
[Nexus One Android Development] terente0081:
I'm having some problems. I've tried to install the CAVS CM6 2.6.38.2 NOBOOST kernel, both 0401 and 0402 branches, it loop reboots on X.

Went back to CM6 CAVS 2.6.37.6 NOBOOST 0331 release, the SS4N1 is not working any longer. I enter the SS4N1 GUI, I load the settings from SD Card but when I try to Apply the settings I get an error saying that SS4N1 process could not be restarted. Any pointers?

I've tried:

- re-entering SSCFG and re-Applying the settings, same problem.

- rebooting the phone and retrying to apply the settings, same problem.

- rebooting in Recovery, wiping caches and reflashing the kernel + ss4n1, same problem.

What more can I try? What's wrong and why won't the settings apply? I don't know why, I believe it has to do with the file permissions.. could it be?
[Nexus One Android Development] ch33kybutt:
Try again with "su" then "sscfg". If still no joy, then re-apply the update zip.
[Nexus One Android Development] Timdor:
I'll do this today, where can I find last_kmsg? How long should I let it sit on the X before I can conclude it isn't going to boot?

Lastly, if it doesn't reboot on it's own, a battery pull then recovery boot is all I need to do?
[Nexus One Android Development] intersectRaven:
When you boot into recovery, the output for adb shell cat /proc/last_kmsg is what you need to provide. If it doesn't restart, just battery pull and boot IMMEDIATELY to recovery. :)
[Nexus One Android Development] Timdor:
Thanks so much for all the help. I'll go do this now.
[Nexus One Android Development] terente0081:
It was su then sscfg from the beginning and I've never tried it without the su.

What update.zip? You mean re-apply / re-flash ss4n1? I've done that too with no success.

Somehow, after I attempted to flash the 2.6.38.2 CM6 CAVS kernel, something went wrong and now I can't apply the SS4N1 script that I was able to apply before, without a problem.
[Nexus One Android Development] Timdor:
Done.

http://pastebin.com/jLJufJj0

I let it sit on the X for about 10 minutes before I pulled the battery.
[Nexus One Android Development] redstar3894:
Dude! PASTEBIN! :rolleyes:

Sent from my Nexus One
[Nexus One Android Development] Timdor:
Not my fault the XDA app doesn't do anything about the code tag :p
[Nexus One Android Development] ch33kybutt:
@Timdor

Can you post your /etc/ss4n1.conf on pastebin? dmesg log shows lots of "out-of-range" when trying to enter your voltage levels, so I'd like to check the undervolt values you're trying.

Your dmesg log has also shown me the following ...

[ 23.490081] init (1): /proc/1/oom_adj is deprecated, please use /proc/1/oom_score_adj instead

and

[ 25.510772] CPUFREQ: Per core ondemand sysfs interface is deprecated - up_threshold

which tell me that newer kernels use different parameters now for both oom-killer and cpufreq processes. I've since fixed oom-killer, but not cpufreq (just too much to change in the script and it's already 3am here ...)

You can get the latest SS4N1 (20110403) from my sig below.
[Nexus One Android Development] Timdor:
http://pastebin.com/WNdkYJ9Q

I'm downloading the newest SS4N1. IIRC I selected "moderate battery savings" and modified from there.

I'll start from scratch with the newest one and see if that helps
[Nexus One Android Development] ch33kybutt:
@Timdor,

Don't choose any preset yet. Just install latest SS4N1, enable it with default config and restart (with fingers crossed).
[Nexus One Android Development] Timdor:
lol oops. Let me battery pull and start over with the default config.

**EDIT**

Looks like it's hung up on the X with a fresh 20110403 SS4N1 flash, reboot, enable SS4N1, reboot, hang. I'll upload the last_kmsg and ss4n1.conf after I let it sit for a few.

**EDIT 2**

Looks like I jumped the gun, it was booted up when I got out of the shower. Is the boot up process supposed to be longer with this script?
[Nexus One Android Development] Timdor:
Well, I decided to restart the phone and I'm sitting for 10m and counting on the X
[Nexus One Android Development] sir*mez:
I did the same, i was going to post the same. I left the nexus at the x and went to watch the yankees game on tv and after watching a inning i went back to see that it booted.
[Nexus One Android Development] Timdor:
Took about 20 minutes to boot up but it finally did it.

If it helps, here's the last_kmsg:

http://pastebin.com/DnUnZ3rr

and SS4N1.conf:

http://pastebin.com/GneFr4yY
[Nexus One Android Development] sir*mez:
heres my last_kmsg with SS4N1.conf at the end:

http://pastebin.com/f46GzwYu
[Nexus One Android Development] intersectRaven:
I think you booted correctly right? It was just long? If so, provide the kmsg not the last_kmsg. :)
[Nexus One Android Development] Timdor:
Damn, mine was after a successful reboot too. Does that mean I need to do it again and provide kmsg as opposed to last_kmsg?
[Nexus One Android Development] intersectRaven:
Yes. Also, if you booted correctly, you don't need to go to recovery. Just forward the kmsg. If you booted into recovery, forward the last_kmsg. :)
[Nexus One Android Development] Timdor:
Alright, I'll post back up in about half an hour. Going to reflash CAVS & SS4N1 w/ the default setup and boot it.
[Nexus One Android Development] sir*mez:
KMSG

Heres the kmsg after the last 30 min boot up:

http://pastebin.com/YQNgd6SJ

this is the longest i've gone without paying attention to my phone in the past 2-3 hours because of the long boot up, lol. :p I actually mixed a couple of tracks to get my mind off the wait. :D
[Nexus One Android Development] intersectRaven:
Hmmm...for some reason, your N1 is booting up at 245Mhz which is why it's so slow. :confused:

SS4N1 (the script) is starting WAAAAY too early.
[Nexus One Android Development] ch33kybutt:
I see that too. But script will set it to AWAKE mode by default, so cpu freq should not be pegged to 245. Wondering why it only happens to some phones, though, since it works as it should on mine.

@Timdor, please run "adb logcat" in a dos shell on your PC, then boot, so we can see all process logs from boot. Post the log on pastebin, if you can.
[Nexus One Android Development] intersectRaven:
AVS Kernels updated!
[Nexus One Android Development] intersectRaven:
Just like to add that some background applications also do things while appearing to be suspended thus still consuming system resources. :)
[Nexus One Android Development] metalhead8816:
Can you list how these voltages differ from say kmobs undervolted kernel?

What is his lowest value compared to yours on the 850mV kernel?

I assume it won't go below 850mV but what is the minimum for kmobs' kernel?

Thanks.
[Nexus One Android Development] intersectRaven:
The lowest value in kmobs' kernel is 1000mV while pershoot's latest is at 950mV. Please note that I don't perform any overclocking. As for listing the voltages' difference between non-AVS and AVS, that is quite not possible since AVS reacts differently to each CPU depending on a variety of factors. The only constant here is the minimum voltage by which AVS can underclock if the CPU allows it. :)
[Nexus One Android Development] metalhead8816:
That's what I figured. I just wasn't sure about kmobs' lowest value. Thanks for the info.
[Nexus One Android Development] hah2110:
I think that is atrocious when I was barely using my phone and people are claiming over a day battery life with moderate-heavy usage. Now I do NOT want to start a flame war with anyone but my BlackBerry Onyx (9700) could go 2-3 days of hardcore usage. Now, obviously, I get the smaller screen, less powerful processor, less capable, etc.... but still... TRIPLE the battery life of my N1 when others are claiming half of the 9700s battery life seems weird and inconsistent.
[Nexus One Android Development] exelinguy:
I feel that battery life depends on a lot of factors and words like "moderate-heavy usage" are quite subjective. The ROM and Screen brightness makes a huge difference and so does the use of gps, wifi, sync, listening to music, etc. I use MCR Desire which seems to be much heavier on the battery than stock. Some days, when I don't play games all the time and let the phone sleep, my battery hardly drains. Other times, when I'm free, I am testing, experimenting and playing- I can drain it in 4-5 hours.

After using Raven's 850 mV kernel I can see around a 20% difference in my battery because every time the phone goes to sleep I save battery. It now charges in about 2 hours even when connected to slow usb when it is in sleep.

Try to drain it off completely (turn it on 2-3 times even when it shuts of on its own) and charge it till the green light comes on. People say that will help calibrate the battery.
[Nexus One Android Development] hah2110:
This isn't accurate. It is actually bad to drain LiOn batts.
[Nexus One Android Development] rj3005:
It's bad for LiOn to be deep discharged, however the phone will shut itself off before this state. It's much worse for Lithium-ion to be fully charged and or high temperatures; a full Lion battery at 25 degrees Celsius will loose 20% of it's capacity a year. If you really would like to prolong the life of the battery it should be kept below 70% of it's capacity.... or you just buy a new one from time to time.
[Nexus One Android Development] overground:
the quick brown fox jumps over a lazy dog. (Post deleted but will live forever in quotes :p)
[Nexus One Android Development] hah2110:
Did you search the market for juicedefender? I found it fine.
[Nexus One Android Development] overground:
Hmmm, weird...only thing I get when I search "juicedefender" is Ultimate Juice. I check other apps by the developer and it's not there. His other apps are such as SeePU and the rest are listed.

EDIT2: My market still can't find it. Checked on a G1 running CM4.2.15 and nothing either...so if anyone can still pull it and send it, would be appreciated.

Back on topic. Anyone else getting a frozen setting (no scaling) when using the conservative governor via SetCPU? It scales using Ondemand fine.
[Nexus One Android Development] rjhay22:
Here's a link for juice defender.

http://www.latedroid.com/2010/01/juicedefender.html

I also find ONdemand settings better than the conservative set.
[Nexus One Android Development] overground:
Thanks for that (been there already), but there's no valid market link there. For me at least. The QR code returns invalid.
[Nexus One Android Development] rjhay22:
Damn that sucks maybe the trial version isn't available in the market anymore, I can't find it ad well.
[Nexus One Android Development] intersectRaven:
Updated!

20100414_0957:

Non-AVS:

http://www.mediafire.com/?zdoj0zjxmyw

AVS (800mV):

http://www.mediafire.com/?jjig5ztmddg

AVS (825mV):

http://www.mediafire.com/?ueihng4gnnd

AVS (850mV):

http://www.mediafire.com/?nnzyqjctnzn

AVS (875mV):

http://www.mediafire.com/?wnnynf4yxyk

AVS (900mV):

http://www.mediafire.com/?h2bdyqhdmyl

AVS (925mV):

http://www.mediafire.com/?zzidwhy2nyw

AVS (default - 1000mV)

http://www.mediafire.com/?jwmjgyid5t3
[Nexus One Android Development] rjhay22:
Bro, which ones changed? all of em? and whats the difference? is it possible for people who cant run the lower mV to run it due to this update? (wishful thinking) lol.
[Nexus One Android Development] intersectRaven:
All of them changed. There is a bluetooth "fix" (considered a hack which is why I enclosed it in double-quotes) and a stability fix for the graphics. As for the AVS thing, uhm...nope? ;)
[Nexus One Android Development] rjhay22:
Damn! my dreams....... Crushed..... hahahaha. Thanks man. Ill check it out, the lowest I can go is 875mV. namputa!
[Nexus One Android Development] intersectRaven:
Bawal mag-mura dito! Ma-ban ka! :p
[Nexus One Android Development] rjhay22:
Wahaha! wag kang maingay :P Pare sa sweldo, donate ako sayo. hehe. Friday na. :)
[Nexus One Android Development] temasek:
Feedback

With or w/o USB Debugging, my usb transfer rate using the above kernel is around 650-750kb/s

Prior to update the above kernel, I was transferring around 300-400kb/s

Almost doubled.
[Nexus One Android Development] intersectRaven:
That was the objective. It should double since an unnecessary communication was removed. :)
[Nexus One Android Development] Timdor:
Will do tomorrow
[Nexus One Android Development] ch33kybutt:
New version of SS4N1 - 20110403A. Check my sig.

# changelog

# =========

# 20110403A

# + added auto-check of kernel version for oom-killer parameter for MAX_PHONE function and sscfg

# + updated check for cpufreq up_threshold for Auto Switch function
[Nexus One Android Development] Timdor:
Will try tomorrow, seriously thanks for all the help. Donations will be going out soon
[Nexus One Android Development] sir*mez:
heres a logcat:

http://pastebin.com/Qr5yRMJF

im going to flash your 20110403A update and I will update if any changes.
[Nexus One Android Development] smalldroid:
After flashed newest ir kernel and ss4n1, my phone work fine. Thanks for your hard work. No hang up X anymore.

Sent from my Nexus One
[Nexus One Android Development] steve.garon:
IR,

Since cyanogen is planning on reverting to 2.6.35.10 claming that this will fix the wonk for now. Are you planning on having a custom kernel with that version too. I dont know if I could live without avs cfs kernel and I dont know anything to build one miself.

This would be greatly appreciated.

Steve
[Nexus One Android Development] intersectRaven:
Nope. My kernels are always for the latest kernel versions. If the wonk had no workaround maybe I'd consider it but since there is, I will have to remain true with the objectives which started this thread. Anyways, I think there are others out there who will could produce 2.6.35 of AVS but as for me, I'll keep going forward even if there are problems along the way. :)
[Nexus One Android Development] temasek:
That's a great news. There are many like me who doesn't wonk and like having everything the latest. :D
[Nexus One Android Development] terente0081:
IR, do you have any ideea why when I flash the newest 38.2 kernel, this one over here:

http://www.mediafire.com/?84w99iuw5pyhyyz

My phone constantly reboots at X? It happened on the previous 38.2 kernels as well.

Also, when I flash an older kernel, 37.6 CM6 CAVS, from 31st of March, I can no longer apply SS4N1. What's wrong? What should I do? A complete factory reset might fix the issue?

EDIT: I've done a nandroid backup, copied all the content of the SD card to PC, Wiped ALL data 3 times, Wiped caches, wiped everything.. Formatted SD card, re-partition SD card with 128 swap, 1024 EXT2 upgraded to EXT3, FAT32 remaining space. Flashed Rod's MIUI-MOD 2.9.2, flashed the latest 38.2 CM6 CAVS NOBOOST kernel, flashed the latest SS4N1, rebooted.

The phone still reboots when it should pass from X to the MIUI boot animation. It's rebooting all the time, never passes X.

Any success stories with CM6 38.2 CAVS NOBOOST and Rod's MIUI-MOD?

Meanwhile, I reverted to 37.6 kernel which is the latest that works for me.

EDIT2: Installed Formel's MIUI, GB, with included pershoot 38.2 kernel. Still, the phone reboots on X. It has to do with the 38.2 kernel, I'm certain of that. What's wrong?
[Nexus One Android Development] theloginwithnoname:
Seeing 1.25MB/s in Win7 - nice job.
[Nexus One Android Development] theloginwithnoname:
SS4N1

Installed this earlier (on an N1 with broken power switch), and turned it on after disabling dewonk.

Rebooted and it "stopped" at X. Thought I'd psuedo-bricked my phone as I couldn't boot into recovery!! (scared myself by reading posts where it got stuck at X)

Turns out it takes an *absolute age* to boot but it does boot. (Have subsequently read that could be due to proc speed defaulting to lowest value - in my case 128000 - at boot therefore it does take a loooong time).

So, a warning/heads-up (especially to those with broken power buttons), be careful what you're doing and be familiar with fastboot (to flash/boot another zImage)!

Is there a more-appropriate thread to discuss this script in? Should one be created? Want to ask more specific questions without spamming the kernel thread.
[Nexus One Android Development] sir*mez:
Welcome to the slow 20-30 min boot up club, lol. We have been discussing this for the last few posts/pages. IR stated that the phone is booting up at 245 mhz (which is why it takes forever) and that the ss4n1 script is starting too early.
[Nexus One Android Development] Timdor:
I'm doing this now. It's sitting on the X while ADB is still saying "waiting for device"

Is this normal?
[Nexus One Android Development] sir*mez:
Yes it is. Once it enters the animation you will see the output. I had to reboot and do the same a couple times to try and get everything. Very long process.
[Nexus One Android Development] Timdor:
I see the output now and the phone is completely booted up. Is this being saved locally or do I have to do it over and export it to a file?
[Nexus One Android Development] ch33kybutt:
SS4N1

Managed to recreate the "Hung-on-X" problem for SS4N1. Seems SS4N1's startup script works fine if dt-a2sd is also running on start-up. This is probably due to how dt-a2sd totally re-conditions busybox, sysinit and run-parts (which affect init.d startup scripts) for it's own use. Provides a beneficial knock-on effect for the threaded while loops in SS4N1. Without dt-a2sd, then plan to have a long wait while waiting for your N1 to boot.

Still looking for how and what exactly is "helping" the init.d scripts, so temporary workaround for normal boot with SS4N1 is ... dt-a2sd. (I'm using 2.7.5.3 b4, so not sure if earlier versions work as well)
[Nexus One Android Development] Timdor:
Is the gain I'll get from Froyo A2SD to DT A2SD really worth the trouble of backing up my SD card? Will I really see my internal storage clear up that much?
[Nexus One Android Development] sir*mez:
I'm using the stable dt-a2sd 2.7.5.2-1. I will check the beta4 version and see if I still get long boot.
[Nexus One Android Development] ch33kybutt:
Like I said, dt-a2sd is just a temp-fix. Working on removing SS4N1's reliance on dt-a2sd ...
[Nexus One Android Development] Timdor:
Oh I understand, I'm just curious. Is there really that much to gain by reformatting my SD card?
[Nexus One Android Development] steve.garon:
No worries. Some ppl are actually saying that 35 wonks too. Anyway, after I posted this, I tried to make your latest kernel wonk and couldnt even manage to do so after 30 calls...

Steve
[Nexus One Android Development] sir*mez:
edit: dt-a2sd beta 04 boots up normal. i guess ill use that for now.
[Nexus One Android Development] intersectRaven:
Hmmm...I had a hunch that it was the problem...wasn't sure though since I didn't want to change my N1s config...
[Nexus One Android Development] Nedlinin:
Looking forward to you figuring this out. My N1/CM7 doesn't seem to like DT.
[Nexus One Android Development] ch33kybutt:
Dropping init.d script method and instead using init.local.rc to start SS4N1 as a service. Seems to work well without DT. Will test further before releasing.
[Nexus One Android Development] ch33kybutt:
New version of SS4N1 20110404. Check my sig for downloads.

# SS4N1 changelog

# ===============

# 20110404

# + changed from init.d script to init.local.rc service to fix "hung-on-X" when not running dt-a2sd
[Nexus One Android Development] Timdor:
This is amazing, thanks a lot!
[Nexus One Android Development] Autinhyeu:
sorry, but what's it??? :) thanks!
[Nexus One Android Development] Timdor:
If you go to IR's MediaFire page, you'll see different kernels. Some say "AVS" and others say "CAVS".

CAVS - Custom AVS

AVS - Adaptive Voltage Scaling (i think)

SS4N1 script will configure the CAVS kernels to under/over clock and under/over volt the processor with the goal of increasing battery life based on how you want to configure it. Think performance vs battery life.
[Nexus One Android Development] bunnahabhain:
Hi intersectRaven,

are the cm6-kernel capable to be used with the desire-port ROM from MoDaCo?

If not, where can i get a working one? :o
[Nexus One Android Development] Autinhyeu:
thanks you :)

flashed it, but i dont know how to use it... can you give me some solution? :)

sorry, im newbie with this script :(
[Nexus One Android Development] Timdor:
No worries, I was too until just a few days ago ;)

SS4N1 is disabled by default. On your phone, open your launcher, and open Terminal Emulator.

First, request root privileges:

$ su

Your prompt should now be:

#

Now run:

# sscfg

You will now be in the config menu for the script. Press 1 to enable SS4N1, 6 to apply settings, then reboot. You should boot normally and have SS4N1 enabled.

If you want to customize the config (for better battery or better performance), just follow the onscreen directions in the tool. Load a preset profile and then configure it. Just be sure to customize the AWAKE/SLEEP modes so the OV/UV values are both 0. From what i've read, this is a decent config for battery savings (48% remaining after 17hrs):

Awake:

Governor: ondemand

Min: 128000

Max: 998400 (stock speed, I've OC'd to 1113600 and it works fine)

Threshold: 95

Sleep:

Governor: conservative

Min: 128000

Max: 384000 (to avoid slowness when coming out of sleep)

Threshold: 95

When changing these settings, from the main menu select customize settings. From here, select either awake or sleep and then select 1 for the CPU Frequency Table. Before you finish each Awake/Sleep mode, be sure to select 2 "Customize CAVS - set min & max UV values" and set them both to 0 for BOTH awake/sleep modes.

Before you save and quit the config, be sure to Save settings to SD card (Main menu > 5 > 1) and then apply settings (Main menu > 6) and reboot!
[Nexus One Android Development] Autinhyeu:
Thanks, you're the man :D :D :D
[Nexus One Android Development] den_breacker:
So I'm using 2.6.37.6_CAVS-CM6-NOBOOST_CFS_20110328_0903 and signed_ss4n1_20110329 for the last 4 days.

Battery life is extremely good! 48 hours and still having 30% left. :-)

I really love this setup!

But since I flashed this kernel with ss4n1 I can't install or remove apps anymore.

My phone does a soft reboot every time I try to install/remove an app.

Can someone help me out with this, please?

thanks in advance!
[Nexus One Android Development] Timdor:
Try to flash SS4N1_Undo and flash the newest SS4N1, I think it's 20110404.

Check ch33kybutt's sig for a link.

Or, click -> http://www.mediafire.com/?qo70zh7zbrldu
[Nexus One Android Development] den_breacker:
You think the problem is caused by ss4n1 ?

I'll try it out en keep you posted!

thanks!
[Nexus One Android Development] Timdor:
Not sure. Just an idea.

You could always just undo SS4N1 and reboot and see if the problem is still there.
[Nexus One Android Development] den_breacker:
I undid SS4N1 and the problem is still there...

It has to do something with the kernel I think?

I'll update to the latest version.
[Nexus One Android Development] ch33kybutt:
Please post /proc/last_kmsg and latest logcat to pastebin.com so we can check.
[Nexus One Android Development] gregferns:
--

Ok, flashed this and now it doesnt hang up on X.

Will inform later about battery life..

Cheers ,, keep up the good work guys :)
[Nexus One Android Development] heyodee:
@ch33kybutt

If using your script, will mean drop SetCPU, correct?
[Nexus One Android Development] ch33kybutt:
Generally, yes. But if you want to use SetCPU with SS4N1, then make sure you disable Autoswitch for CPU frequency governor on SS4N1...

> [4] Customize settings

>> [1] Enable/Disable features

>>> [9] Disable Autoswitch for CPU frequency governor
[Nexus One Android Development] Autinhyeu:
When i enable your script, my phone is reboot while i transfer data with my laptop :(

i'm on #35, latest IR's kernel with CAVS-CFS version, latest your script...