Thanks, but that is the one I found months ago and led me to finding this cause it would not work. I appreciate it though.[ROM] Stock 2.3.5 from Taiwan Sharp SH8188U - xda-developers ....dont know if its on there but its from xda....might help might be old news
Thanks for the feedback.For some reason, something was setting the minimum CPU scaling frequency to 245... I went into the system folder a low and behold it was set to that. SO I did some inspection.
On your try 3 kernel /etc/init/init.qcom.post_boot.sh runs as a service via init.qcom.rc and was forcing the cpu governors and speeds to those levels. I simply commented out those lines in init.qcom.rc and setcpu was able to set things correctly.
I also noticed that the toolbox/getprop does not work, so a lot of the scripts that are in there are misbehaving.
Wifi does not turn off automatically on lockscreen, so the phone never goes into deep sleep, which is a huge problem. I went and looked at the code quickly and noticed the wifi unload script was not seeing screen lock, so I will look around some more to see where the event comes so I may trigger the unload.
Ok, so I built a new kernel and am about to make the boot.img and when I looked, I had the min cpu set at 122880 in the init.rc. So I'll have to search or ask a few of the other devs that have built kernels to see what has to be changed, because the post boot is the same on stock and a couple other X6 variant ROMs that I checked, kernel and ROM. So I have to say it must be in the kernel. No-frills CPU has no issues setting the speed at boot as far as I have seen. This was mentioned on the second or third page when mobstergunz made his kernel. I'll do some research but right now I am almost done with this kernel just need to test it, so hopefully I can get it figured out, but maybe not on this run.
I just included a few things in the kernel that are in the toolbox file like dual sd and a few others but, I don't have source for the Froyo kernels except the Triumph, so I am referencing GB kernels for fixes. Plus I am just starting to learn how to code, I never really looked at code before a few months ago, plus I just got my first android phone about a year ago, so you'll have to excuse my lack of some basic knowledge. I would appreciate if you could explain how the scripts are misbehaving, and any other info would be much appreciated.
I have never had the not deep sleeping issue with this ROM, JD was the culprit for a few people, that was why I suggested ditching JD for now. Wifi shouldn't shut off or go in to deep sleep at the lockscreen as far as I know, but as I said before, you'll have to excuse my lack of some basic knowledge of android. Where exactly did you find the wifi unload script? If it was in a system file and not in a built file, like framework.jar, then lockscreen is not in any of the X6 variant stock ROMs.
Again, thanks for the feedback, specifics definitely help, but sometimes they go over my head. Once I learn something though, it just kinda sticks, so keep the details coming guys.