yashsingh1/xdaforums huggingface dataset:
[G1 Android Development] pershoot:
the difference would be the memory allocation in 32a.

this is what i want you to do. uninstall setcpu. go to recovery, clear cache, flash cm5t4, flash -xtra kern update which is applicable to your device, flash gapps, reboot. no other addons. when you are back in, install setcpu 1.52a, autodetect, min: 122, max: 576, onboot, ondemand, turn off auto refresh.

when that is done, reboot the device. wait till lockscreen, then wait 1 minute. now use the device. if at any time you experience this lag or wierdness (that isnt normal lag from having 4 browsers open or 5 apps running continuously, etc.), post a logcat and a dmesg.

thx.
[G1 Android Development] ceas909:
ok will try that out but like i said im using the 32b kernel on my 32a(mt3g 1.2).. will that cause any issues... ive tried the 32a version but will not boot...
[G1 Android Development] pershoot:
Re: ToAsTcfh Overclock Kernel Patch :: Downloadable Kernels For G1/32B/32A

Im unsure at this time. But we can troubleshoot and see what comes of it.
[G1 Android Development] ceas909:
ok well ill try it out..ill report back tommorow..ill give it about 24 hrs before i let you know of the outcome...

p.s. i know cyanogen source supports the mt3g fender/1.2 because of zinx efforts so i dont think using the 32b kernel does matter....

thanks
[G1 Android Development] tnpapadakos:
test 5 is out

Latest version: 5.0.7-DS-test5 - 05/13/2010

Download: http://cyanogenmod.googlecode.com/files/update-cm-5.0.7-DS-test5-signed.zip
[G1 Android Development] anomalous3:
I believe the problem is with SetCPU, not with the kernel itself. Unfortunately the phone acts and benchmarks as if it is at the reported bogomips (i.e. at 576 MhZ with ~450 bogomips reported, it benchmarks much lower than it should on multiple benchmarks). When SetCPU is uninstalled and an alternate CPU control method is used, such as the overclock widget or a startup script to define the min, max, and up_threshold, it behaves properly.
[G1 Android Development] pershoot:
version 1.53 just came out. see if that helps thing.
[G1 Android Development] pershoot:
is the latest 2.6.33.4-oc-uv-|xtra|-fp working out for everyone running it (aside from the 2 user accounts of issues)?
[G1 Android Development] philosophics:
I don't seem to be having a problem.

Although, my device does weird things when booting.

How would I go about getting a full logcat of the ENTIRE boot process with win7?

I would like to show it to a few people, including you, pershoot.

My device almost always reboots while booting everytime and I would like to know why...
[G1 Android Development] pershoot:
Re: ToAsTcfh Overclock Kernel Patch :: Downloadable Kernels For G1/32B/32A

Does it happen on stock?

You can do adb logcat >file while booting.
[G1 Android Development] Super Jamie:
I have two phones. One's an American TMO G1, one's an Australian Vodafone Magic 32B.

Both phones are running Dwang 1.17.1 (a speedy AOSP Donut) at the moment. I tried all the kernels in the OP on my G1, ended up settling for Pershoot's 576MHz without "xtra".

On the G1, SetCPU (v1.5.2a) works fine. I can set frequency and benchmark at over 2.5 MFLOPS using Linpack. Using "userspace" governor it doesn't seem to want to slow down beneath 480MHz when resting (I'd set low freq to 254MHz) though perhaps me playing with the phone is affecting that.

I tried the same 576MHz kernel on my Magic with the latest SetCPU (v1.5.3) and found performance was worse than Dwang's kernel at 528MHz. I tried setting to "performance" to keep speed at max, and to "ondemand" with no Advanced as explained earlier in the thread but that made no difference. My Linpacks were all around 1.x MFLOPS.

Seeing anomalous3's above post I installed OverclockWidget, set custom frequencies and overclocked to 576MHz. Linpack is back up around 2.45MFLOPS.

Pretty strange?
[G1 Android Development] philosophics:
Yes it does. I am using your most recent oc boot.img as of now but yes, it does do it on stock but I don't know what you mean by that adb logcat >file while booting.

And what's the difference between the .img's one's got xtra in the name which is what I'm using cause I like extras but I don't know what the difference is...

Can you please explain?
[G1 Android Development] pershoot:
you all with setcpu issues should report them to coolbho. he is the author. you can find his thread in the apps section.

remember with my kernel set, do not even set threshold. only cpu governor: ondemand, min: 122, max: 576, however you accomplish that (userinit, oc widget, etc.).

do you have adb setup?

if not, search adb in these forums, and youll find how to set it up.

then plug it in while booting and do a (in a cmd prompt): adb logcat >FILE

that FILE will contain your log.

for -xtra - search on droidbasement and under the very first dream/sapphire post i made for the kernel, youll come to see it.
[G1 Android Development] philosophics:
So in other words, I would type something like

???

And also, could you post a link of the description of the 2? I seem to be a little lost on a forum site I've never been to. Sorry for the ...... noobiness of the situation...
[G1 Android Development] pershoot:
it was 3 pages down on droidbasement

xtra contains:

-Deadline I/O Scheduler

-Some more cgroup options

-V4 Block Device and Data Integrity Support

-Namespaces support (excluding network)

-ERRATA 411920 applied

for logcat redirection to a file, that is correct.
[G1 Android Development] defconoi:
pershoot, does your latest kernel and jit hack work on test-5? Also what settings are you running for performance?

thanks

defcon
[G1 Android Development] pershoot:
yes and i just posted the reccomended settings 2 posts above yours.

JIT is not stable, and it really stuffs things up. i wouldn't run it.
[G1 Android Development] philosophics:
So in ... lame mans terms... What exactly does that mean?

I'm sorry, I just don't get it. Is there any performance difference between the 2?
[G1 Android Development] pershoot:
Re: ToAsTcfh Overclock Kernel Patch :: Downloadable Kernels For G1/32B/32A

Go to google and search.

It all aims to try to get more efficient and boost performance where applicable.
[G1 Android Development] Super Jamie:
Out of interest pershoot, is there any reason you recommend 122MHz specifically as a lower limit? With stock kernels I usually set my min to 245MHz, or does that not work in this instance?

Btw thanks for building these kernels and putting them in flashable updates. It makes the process of trying the overclock very easy :)
[G1 Android Development] philosophics:
Well in that case, you'll enjoy looking over this logcat...

It just happened to be one where it reboots during a reboot
[G1 Android Development] pershoot:
for maximum power savings when idle, and it is also designed to have next to no wake up lag.
[G1 Android Development] defconoi:
pershoot, thanks for taking the time to build kernels, when I asked you what settings you use, I actually meant.. How is your G1/MT3G set up? Compcache? Swap? which kernel? Any sysctl tweaks? etc..

Also why not overclock past 576?
[G1 Android Development] pershoot:
that logcat does not tell me why it rebooted (with the last entry being your weather widget).

get last_kmsg from /proc on the phone and post it.
[G1 Android Development] pershoot:
my g1 is not setup like you all would have it setup as a daily phone. i have an n1 now. the g1 is only used for testing and a backup phone, should the n1 go south.

>576 is not stable for the masses.
[G1 Android Development] philosophics:
Once again, I apologize for being just a themer,

What is the adb command for that?
[G1 Android Development] pershoot:
adb pull /proc/last_kmsg .
[G1 Android Development] philosophics:
Here ya go mang!
[G1 Android Development] animefans:
Just to report back that I don't see any unusual battery issue with your kernel

Great OC & UV kernel!
[G1 Android Development] philosophics:
This might sound like a stupid question but what does

fp stand for?

uv stand for?
[G1 Android Development] alabasta10:
Re: ToAsTcfh Overclock Kernel Patch :: Downloadable Kernels For G1/32B/32A

Uv- undervolted and fp-floating point

-------------------------------------

Sent via the XDA Tapatalk App
[G1 Android Development] philosophics:
Ah. That makes sense now. I had a guess that would be what it was but I was still confused about fp.

Thanks mang!
[G1 Android Development] dumfuq:
the g1 is evil and must be abused

oc825-cm-5.0.7-test5-boot.img

updated source. As usual this will not boot without advanced tweaking.
[G1 Android Development] XxKOLOHExX:
Anyone got some good reading for kernel based stuff?? Got the stuff from a couple pages back and doing research so i can learn but any Books to borrow or sites to read would be gladly appreciated. Got a 2 month summer and want to try and see if i can learn some basics :D

Thank you,

XxKOLOHExX :D
[G1 Android Development] ceas909:
@parshoot

ok so been running your kernel.. i set it up as you instructed..

still seeing some lag... and noticed my MFLOPS have dropped compared to running cm build with stock kernel...

stock kernel MFLOPS= 2.0-2.5

Your Kernel MFLOPS= as low as .9-2.4

Again I'm running your 32b xtra kernel on a MT3G 1.2(32a)

attached my logcat and last_kmsg in a zip file.

Hope this helps let me know if anything else is needed..
[G1 Android Development] Super Jamie:
I have been playing round with this a bit more.

Watching the CPU speed in realtime, I think that 122MHz is just too slow with the thresholds for ramping up. Even basic phone functions seem to tax to CPU enough to keep usage above the threshold where it needs to run faster.

Using my init script I've done:

echo 576000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq;
echo 245760 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq;
echo ondemand > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor;

Now I have performance as expected, it ramps up quickly and Linpack gives me almost 2.6MFLOPS which is pretty impressively fast for a 32B.

Maybe it's the default "userspace" scaler on Donut? I've never seen this on Donut before so I don't know what it is. Maybe it only works on Eclair?

I made a post in the SetCPU thread too, I'll see what coolbho says and report back if there's anything relevant. Otherwise I think I'm all good and running happily at 576MHz with battery saving too :D

I think each individual handset will probably be different. My G1 seems stable right up to 633MHz (2.75MFLOPs) using this kernel. infinitybiff posts in his OC thread that his works fine on 652MHz, but that just makes my phone reboot. Like how you can get different computer CPUs of the same model which overclock differently, it's pretty likely different batches of MSM7Ks will overclock differently too. Maybe some lucky people will have 32Bs which will do 700MHz?
[G1 Android Development] tnpapadakos:
tried flashing this new boot.img several times with Test5--getting "out of memory" errors ending in "error writing boot: No space left on device" when flashing this....never happened before on this device, done these many times, and i have over 200 MB free on my internal storage...?? problem with the image?
[G1 Android Development] goofyog:
You need to let a2sd working go to: Settings->Applications->turn on a2sd
[G1 Android Development] tnpapadakos:
thanks, i DID have a2sd off, and turning it on solved the problem, why would this be? never had to do that before, its a kernel, not an app...weird

as i said, i have 200 MB free on my internal

stable at 614, and flying
[G1 Android Development] ChriDDel:
I have the same problems.

flash_image boot boot.img gives out of memory.

And i have apps2sd on.

The problem beginns with cm 5.0.7.

The same boot.img can be flashed with fastboot without any problems.
[G1 Android Development] rps13:
Re: ToAsTcfh Overclock Kernel Patch :: Downloadable Kernels For G1/32B/32A

A question for all the people running a kernel faster than 576mhz, have you noticed any real gains over 576 because I compiled my own kernel that goes to 633 but I get the same benchmark results in linpack and setcpu. I used pershoot's governor and frequency table as my base, so maybe that's a problem?
[G1 Android Development] xaueious:
Yes there are real gains over 633 if your phone can handle it
[G1 Android Development] rps13:
Which frequency would that be exactly?
[G1 Android Development] Jigga0o7:
Yeah I have the same problem. Was able to install that kernel just one time, and it was stable all the way up to 691 mhz which was 2.95 in linpack. Felt like I was using a nexus one or something.
[G1 Android Development] xaueious:
I never flashed boot.img with flash_image before. Just do fastboot.
[G1 Android Development] pershoot:
if you make no refinements to cpu_ondemand, then yes, you will absolutely get lag at 122, and even from 245. you can go ahead and look at my github for the values i use in my kernel set to eliminate this/keep it minimal.
[G1 Android Development] schtuka:
i had same issue, but after removing all widgets from screens and killing all applications with free memory it worked in terminal.
[G1 Android Development] pershoot:
im not concerned over synthetic benchmarks. each app will report different due to the optimisations im using. i am concerned over this 'lag'. when do you see this lag? what is the scenario? any apps holding you down that you have constantly running in the background?

ill look at your log a lil later.
[G1 Android Development] ttabbal:
flash_image works fine in recovery as well. Of course, if you're rebooting anyway, I suppose fastboot isn't really much different. :)
[G1 Android Development] pershoot:
can you please uninstall setcpu, reboot, and then once in, in a terminal (as root), do this:

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

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

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

please report back.

thx.
[G1 Android Development] schtuka:
you mean if you have external keyboard?
[G1 Android Development] Jigga0o7:
Thanks brother! Got it to work with your tip! I see myself going back and forth between Pershoot and Dumfuq's kernels. I wish we could have the best of both worlds.
[G1 Android Development] rps13:
To flash a kernel through terminal do this

mount -o remount,rw /system (maybe not necessary)
mount -o remount,rw /
cd /directory of kernel
flash_image boot boot.img

if it gives you errors, just execute

flash_image boot boot.img

again and it will work
[G1 Android Development] samsci:
If you are using the terminal to do a Flash_Image and taking widgets/stopping applications do not work, simply go into spare parts and take launcher out of memory. This will allow you to run the Flash_Image and once done, go back in and put the launcher back into memory.

Hope this helps.
[G1 Android Development] ttabbal:
Well, it's not "external", but yes. I forget MT3G users can't use the terminal in recovery. If you have one of the newer recovery images you can use "adb shell" though, which is how I usually do recovery terminal based stuff. Not that helpful if you don't have a computer handy though. :D

FWIW, I'm using dumfuq's latest on CM5-T5 and am running stable at 691 so far. Right now, I'm just using the performance governor and locking the CPU at that freq then letting a game or other stuff run for a while. That tends to crash the system pretty quick if the OC is too high. That reminds me, I need to test without the USB/power plugged in. :D

One tip, I found that SetCPU 1.53's "active widget" was causing "stuttering" for lack of a better term. Even when that home screen wasn't being displayed. Removing the widget smoothed things out a ton. Weird. It must be polling too much or something.
[G1 Android Development] Izord:
I put boot.img onto root and tried this and it wouldn't work, lots of out of memory errors. Tried again like you said, still woudn't work.

So I took boot.img off root and put it on the sd card. First time I got memory errors, second time seemed to work. Rebooting now.

It seemed to have worked.
[G1 Android Development] ceas909:
i see the lag alot when scrolling thru screen and thru apps... 1 or 2 apps running in background.. sometimes none... im trying what you recommended about unistalling setcpu..

p.s. i know cyanogen said not to use any task killer with 2.1 but ive been using it to kill apps running in background to see if it gets better.. but dosent really help..
[G1 Android Development] pershoot:
if you see this kind of lag, i am leaning towards you being stuck on a low frequency. please uninstall setcpu, reboot, and only dial in the aforementioned values.

pls report back.
[G1 Android Development] Ace42:
Do you have any Donut kernels for .29?
[G1 Android Development] ceas909:
did what u asked... so far seems more responsive... do you think it was a setcpu issue?? ill report back later tonight see how its doing..

p.s. about being stuck on low frequency.. when i had setcpu installed i had the widget on home screen and found when i would wake up the phone it would stay in the frequency at around 122 for awhile before it ramped up to 576..
[G1 Android Development] pershoot:
yup. that was the issue. the widget has been known to also bog down the system as well. if anything interferes with my settings for cpufreq_ondemand, there will be issues, if on my kernel set.

now what you can do is pop in those values in to a userinit.sh script, and you're done.

(

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

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

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

)

you should be set from this point. if your not on -xtra, i would flash to -xtra, as deadline should make things a bit more snappier (i like the subtle changes), over CFQ (on non -xtra).

enjoy!
[G1 Android Development] dumfuq:
haven't really tested this much, as i compiled it right before 5.* came out but...

goes up to 672. has frequencies between 528 and 614. Includes the ramhack.

oc672-ramhack-cm-4.2.15.1-boot.img
[G1 Android Development] Ace42:
Thanks, prefer Rhack(will miss UV kernels:()
[G1 Android Development] ceas909:
cool thanks!.. one question though.. is there a way to varify the change in values in userinit.sh?
[G1 Android Development] ttabbal:
Terminal, adb shell, etc..

echo /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor

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

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

See if they match after a reboot. Don't install setCPU if you're doing it this way.

Looks like my G1 tops out at 729 with the dumfuq kernel. Damn. It's, umm... snappy. :D
[G1 Android Development] rps13:
Re: ToAsTcfh Overclock Kernel Patch :: Downloadable Kernels For G1/32B/32A

Sorry forgot to tell you to put the .img in the root directory of your SD card good thing you figured it out yourself
[G1 Android Development] pershoot:
just 'cat' the appropriate sys interface extensions to see if they took.
[G1 Android Development] ceas909:
thanks!...
[G1 Android Development] ttabbal:
Re: ToAsTcfh Overclock Kernel Patch :: Downloadable Kernels For G1/32B/32A

Oh. Yeah. You want cat, not echo. Grrr.

Had to drop the speed down. After the phone got warm in my pocket it would crash when it clocked up. Put it in front of my AC vent in the car to cool it down so I could change setCPU config. :)
[G1 Android Development] vincom2:
My apologies, pershoot. It seems the problem was that your kernel was built with the source that included the lowmemorykiller changes included in test5, so on boot my entire swap partition would be consumed, unlike previous kernels where only about half of it would be. This was rendering the phone extremely laggy; not a problem with either 15 recent apps or the kernel. I disabled swap through adb (because the phone was just that laggy) and now everything seems to be fine. Going to try running without swap for a bit.

Thanks for the great work! My phone's indeed snappy with your kernel :)
[G1 Android Development] ceas909:
Re: ToAsTcfh Overclock Kernel Patch :: Downloadable Kernels For G1/32B/32A

Jus reporting back... lag is definitely gone... thanks for your work and support...

-------------------------------------

Sent via the XDA Tapatalk App
[G1 Android Development] vincom2:
Just had my phone soft reboot on me (I had opened 6 windows in browser and was listening to music at the same time to see how it would perform without swap).

Not sure if it's the OCed kernel's fault or a CM problem, so I thought I'd post the last_kmsg here first for pershoot to have a look.

(zipped because it was too big)
[G1 Android Development] pershoot:
something funky going on with d.process.media, and it repeatedly needing to kill it.

can you reproduce this on the stock kernel and or reflash the kernel update and try to reproduce it (clear cache first tho)?
[G1 Android Development] xaueious:
I just wanted to drop by to say that I've been testing 594 MHz for the last little while and it runs stable on my phone. My experience with 614 MHz tells me now to try that for now.
[G1 Android Development] uiterlix:
I'm still with CM5-test3 with the Dumbfuq OC kernel and 64Mb of swap. I have to say this is definitely the fastest combination for me.

Test 4 and 5 are a lot less swap-friendly and I need swap to prevent the homescreen to reload after using any big app.

Would it be possible to create a kernel for test5 without the aggressive low-mem handling ?
[G1 Android Development] xaueious:
Another note to add: the 32A Magic with a 1.76 SPL clocks to 710 MHz with ease. I have one and tried this myself for 2.6.27.6. Linpack is 3.x without JIT.

There are isolated reports of this being true, but there's a lack of serious testers.

I don't have a 32B Magic to actually try if it clocks higher than the G1, but I am really expecting that it does. We need to start a poll of some sort documenting this.

OC kernel builders might want to take this into account when building for EBI1/32A...
[G1 Android Development] tnpapadakos:
32B my results

very stable (no fc whatsoever) on 614

stable on 633 (havent used it much, cant recall any problems, though)

unstable on 652 (reboot upon receiving a call)

CM 5.0.7 test 5

dumfuq's oc825-cm-5.0.7-test2-boot.img

SPL-HBOOT-1.33.0006 (SAPP30000)

Radio-2.22.23.02

linpack 2.9ish on each; NO JIT, NO SWAP, NO COMPCACHE
[G1 Android Development] xaueious:
We probably can use a new thread for that info instead of flooding this one. Who wants to start one.

Provide format, which kernel version you flashed, who built the kernel, which ROM you run, what radio version you have (SPL would be dandy too but not necessary), and what phone devices you have (32B magic, 32A magic, TMobile G1, Rogers Dream, etc)
[G1 Android Development] tnpapadakos:
do it, do it
[G1 Android Development] Ohsaka:
I just had an idea.

Instead of editing userinit.sh all the time, or wondering what setcpu.apk is doing.

How about we just use Gscript to make the changes? You can write .sh files that modify a single value at a time.

set_max_614.sh

set_max_528.sh

set_min_128.sh

set_min_254.sh

set_gov_ondemand.sh

set_up_threshold_95.sh

set_up_threshold_25.sh

list_all_settings.sh

etc,etc. And finally a "set_all.sh" script to set your normal daily use values...

Then you can make the changes in realtime when you get a new ROM or kernel and these .sh files live on the /sdcard partition so they survive wipes.

I'll probably make this for myself and then share, but can anyone think of a reason NOT to do it that way?

Example script:

#!/system/bin/sh
#

$SYS_FILE=/sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq

if [ -e $SYS_FILE ]; then
echo 614400 > $SYS_FILE
else
echo ERROR: $SYS_FILE does not exist
fi;
[G1 Android Development] pershoot:
make one unified script to accept arguments, then supply different gscript links.
[G1 Android Development] Ohsaka:
Good call... Like this?

#!/system/bin/sh
#

$CPUFREQ_DIR=/sys/devices/system/cpu/cpu0/cpufreq
$SYS_FILE="$1"

if [ -e $SYS_FILE ]; then
echo $2 > $CPUFREQ_DIR/$SYS_FILE
else
echo ERROR: $SYS_FILE does not exist
fi;

change_oc.sh scaling_max_freq 576000
change_oc.sh ondemand/down_threshold 15