yashsingh1/xdaforums huggingface dataset:
[EVO 4G Android Development] tommytomatoe:
I poated in wrong thread.

Some how my charger cable broke today. The stock one.(my cats. I know it) My cheap eBay one broke two weeks ago. Cheap stuff. I went into best buy just now to get because I need it! End up getting a nook color charger because it was cheaper than the other stuff for same quality (14.95$ and tax). I got to play with the thunderbolt. It is practically identical to evo. I'm not impressed with it as far as improvements. A couple of set backs actually. Although the kickstand is gigantic, really, it is made of cheap feeling plastic. Not like our steel evos. Also the usb charger is on the side where the phone would sit if using kickstand. I knew that previously but I didn't think anything of it. It really takes away the function of the kickstand if you need to charge and play. Just my thoughts. Hehe. I'm kinda in a site mood so thought id rant. Thanks for attending.
[EVO 4G Android Development] xxRAMOTHxx:
Jade.....can you say SPB????
[EVO 4G Android Development] jadeboy7:
Exactly what I was thinking when I saw it :D.
[EVO 4G Android Development] nick1313:
Agree 100%
[EVO 4G Android Development] selders59:
SPB like this?

Into the darkness "Van MikaZoid" shall bring light
[EVO 4G Android Development] localguyincali:
Sorry trying to catch up here on reading this script for setCPU, i have my setCPU set to 1152max 128min scaling conservative, under profiles i setup one for screen off 245max 128min scaling set to conservative aswell,

how can i combine that also for a profile in that script? and once it put in system/etc/init.d will always run that setting even after rebooting?
[EVO 4G Android Development] xxRAMOTHxx:
Exactly.... HTC is ganking good ideas... check out the video Jade posted...
[EVO 4G Android Development] jadeboy7:
I'm not sure how you would do a screen off profile using the script. You may just have to keep SetCPU for that.
[EVO 4G Android Development] localguyincali:
Well i'll just try and run the script without screen off profile, delete setCPU and see how it runs.
[EVO 4G Android Development] strongsteve:
#!/system/bin/sh

echo "128000" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq

echo "1152000" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq

echo "conservative" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor

It will set up everytime you boot just like that without need for setcpu. I personally think that profiles are unnecessary and highly overused.. just my humble opinion.
[EVO 4G Android Development] rsol0328:
Does anyone know if changing the dialer background as per Localcaliguy's instructions work on MIK v4.6 BII? Cause i can't get it to work. Thanks in advance.
[EVO 4G Android Development] localguyincali:
Cool! just copy n paste those codes you just posted into a txt file (notepad?) and name it setcpu? without the .txt correct?
[EVO 4G Android Development] strongsteve:
Yes.. if using root explorer, place in system/etc/init.d also, I named mine 99setcpu so that it would execute last. Place a checkmark in all permissions just to get it covered.

I can honestly say that my phone seems to run smoother without setcpu and profiles and just setting the parameters via an init script.
[EVO 4G Android Development] localguyincali:
Yes gonna use root explorer, ok i removed the .txt file but pop up came up saying wont be able to read? i guess no ext,? untill i load onto cell right?
[EVO 4G Android Development] strongsteve:
correct. Once you change the permissions, the file will become executable just like the other scripts in the init.d folder
[EVO 4G Android Development] aaronw143:
My finance is already tired of me saying how bad I want the EVO 3d ;-)

Let's hope for her sake that its not a June release!

This is my EVO, there are many like it, but this one is mine....
[EVO 4G Android Development] localguyincali:
ok i moved into that folder, i long pressed it went to properties says readable YES writeable no. hiddin no that sound right? gonna do a reboot now
[EVO 4G Android Development] nick1313:
I long pressed and just checked everything. Is there another place to check if the cpu is clocked at that speed? Other than OS monitor and setcpu?
[EVO 4G Android Development] strongsteve:
The file should have that little badge with a star in it ;)
[EVO 4G Android Development] strongsteve:
use root explorer to navigate to /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq and see what it says ! :D

also, do a linpack test and choose save.. see what it says
[EVO 4G Android Development] Admiral2145:
Evo. 3d comes with android. 2.4 and sense 3.0.....I'll post the link later....
[EVO 4G Android Development] aaronw143:
Either that was a typo or I'm way outta the loop...

This is my EVO, there are many like it, but this one is mine....
[EVO 4G Android Development] localguyincali:
i opened that up under properties 0 bites is all i see. also i dont see a badge from my above post.

edit i open it it says 998400
[EVO 4G Android Development] nick1313:
Still was the old number, but I noticed I had another file in there with the 99 beginning so I changed it to 98..not sure if that would matter but we will see. rebooting now.

EDIT: Nope still the same.
[EVO 4G Android Development] strongsteve:
Go to the script file and long press. Choose permissions and then check every box and save. Then reboot.
[EVO 4G Android Development] localguyincali:
same here another file named 99complete.. sory for noob question how you do a linpack test? lol
[EVO 4G Android Development] nick1313:
Did that twice.
[EVO 4G Android Development] localguyincali:
i dont have permission in the menu when i long press, i gave myself root permission also.
[EVO 4G Android Development] strongsteve:
That number really doesn't matter. As long as the script has the proper syntax and permissions. It should have a badge with a star in it.
[EVO 4G Android Development] tommytomatoe:
In the top bar you should see a tab called mount r/w. I don't know if you've pressed that. Sorry to just jump in.
[EVO 4G Android Development] jadeboy7:
Linpack is a benchmarking app in the market.
[EVO 4G Android Development] aaronw143:
It's doin it again!!!! VERY negative mAs WHILE on the charger!!!!

This is my EVO, there are many like it, but this one is mine....
[EVO 4G Android Development] coiledwire:
I think if scripts shares the same number, only the first one gets ran. I was experimenting with kernels and scripts, and that's the behavior I remember.

As far as permissions, to match other scripts they need the following:

- read > all

- write > only user

- execute > all

And its possible to have a script with a screen off profile. I believe you have to check the values of some files in /sys/power. I want to say you have to check the "wait" files. You'd have to give me a while to get to my PC with this information.

Sorry if I'm speaking out on known subjects; as usual, I'm late to the conversation.
[EVO 4G Android Development] localguyincali:
i did that through settings ROOT OPTIONS, but when i long press file there is no permission to choose
[EVO 4G Android Development] coiledwire:
Aaron, remember my jacked up charging graphs? I flashed back to 4.3.1 sbc, and my charging profile is way different (as in normal) compared to 4.3.4.
[EVO 4G Android Development] tommytomatoe:
Steve, I know that you know what you're soing, but It's generally best to match the permissions with similar files. I speak from experience when I played around with a tweak a little while ago. But I am not familiar with what you're doing. Just thought id throw that in.

T
[EVO 4G Android Development] tommytomatoe:
It's not in settings ROOT OPTIONS in root explorer... its just on top bar where it says which directory you're in. Next to where it says /system/ for example it should also have mount options.
[EVO 4G Android Development] aaronw143:
Charging is fine... But for some reason if it dies... It's done this twice now... But if I don't let it die (same thing today didn't catch it in time) but its been on the charger for almost 12 min with VERY negative mAs... How can it die from no battery but have 900+ negative mAs and still be alive?

Edit: I lied! 20 min!

This is my EVO, there are many like it, but this one is mine....
[EVO 4G Android Development] localguyincali:
this is where i am init.d folder
[EVO 4G Android Development] strongsteve:
You may be right. I have always had all permissions checked without a problem. I say to do that for simplicity sake but in that case.. check all permissions except group write and others write :D
[EVO 4G Android Development] tommytomatoe:
I see. It appears you are using es file manager. I was referring to root explorer which is worth the price you pay for it.
[EVO 4G Android Development] strongsteve:
hmm.. that doesnt look like my root explorer.

Can you do adb?

1. adb remount

2. adb push setcpu /etc/init.d/

3. adb shell chmod 755 /etc/init.d/setcpu

4. adb reboot
[EVO 4G Android Development] tommytomatoe:
Steve he is on es file manager.
[EVO 4G Android Development] nick1313:
Here's what my file and permissions look like for the setcpu. Doesn't work. I've tried checking all too.
[EVO 4G Android Development] localguyincali:
i havent dived into ADB yet, is there terminal command i can use? i'll dload that real fast or go get root explorer?
[EVO 4G Android Development] aaronw143:
I gotta upload my taser video!

This is my EVO, there are many like it, but this one is mine....
[EVO 4G Android Development] strongsteve:
Hmm.. try putting a blank line between each echo command..
[EVO 4G Android Development] 12gaugejoe:
holy crap I cant stop laighing
[EVO 4G Android Development] coiledwire:
setCPU with screen off profile in a script!

All,

Dr Ryder (raiden89) wrote this script for his ROM, Eternal Prophecy.

This script has both awake and sleep profiles built into it, and its been verified to work.

Edit the constant values at the top of the script to select your max, min, and governor for awake and sleep.

Put it in /system/etc/init.d folder, set permissions to match (upside down "U"), reboot, and it should work.

If you use this script, stop by Raiden89's thread linked above and give him thanks. :)

Enjoy!

Edit: Forgot to rename it. When you download this script, remove the ".txt" extension that I had to add to attach it.
[EVO 4G Android Development] aaronw143:
Still negative and at zero!!!!!!!

This is my EVO, there are many like it, but this one is mine....
[EVO 4G Android Development] tommytomatoe:
@cetac, thanks for not capping the cat. Hehe poor girl would have been toast. Sad. But nevertheless a super good laugh for me. I knew exactly where you were going the moment you said taser. Hehe.

@California dude, adb is a must have. But if will be faster for your purposes tonight to just buy root explorer....
[EVO 4G Android Development] jadeboy7:
Are you sure the numbers and governor name should be in quotes?
[EVO 4G Android Development] agentphantom:
Gracie told you not to do it. Ha ha ha
[EVO 4G Android Development] nick1313:
Got it. I copied and pasted what you put in the thread and it added a space at the end of the line for the two scaling max/min. I deleted that space out and rebooted and good to go. So localguy just do that. edit that file within file explorer and make sure there isn't a space at the end. If you want I can upload my file for you.
[EVO 4G Android Development] nick1313:
Yes it is..check my sig for the directions I updated for installation. And root explorer is a must buy..kind of like tb
[EVO 4G Android Development] strongsteve:
yes 10char
[EVO 4G Android Development] jadeboy7:
@cetac

Edit: Ok, now that I can type again after I stopped laughing......wow. I think that's all I can say.
[EVO 4G Android Development] coiledwire:
Guys, check my post a page back.

SetCPU in a script.
[EVO 4G Android Development] aaronw143:
Alright... Unplugged it... It died... I booted it back up and it was at 58%....

This is my EVO, there are many like it, but this one is mine....
[EVO 4G Android Development] cetac:
Just for the record that was not me. I copy & pasted an email I received with that story in it. I am not near brave enough to even try being tazed. :eek:
[EVO 4G Android Development] strongsteve:
here is my script that works great! just remove .txt and add your values
[EVO 4G Android Development] cetac:
Sounds like your battery status is getting stuck. Weird :confused:
[EVO 4G Android Development] aaronw143:
I would understand that... But 809-999 negative mAs???

This is my EVO, there are many like it, but this one is mine....
[EVO 4G Android Development] selders59:
If you do not mind can I get a copy of your script nick?

"Walk by Faith not by Sight"
[EVO 4G Android Development] selders59:
Deputies here taze each other regular here so they can get use to the effect. I think they just enjoy flopping around on the coffee shop floor.

"Walk by Faith not by Sight"
[EVO 4G Android Development] nick1313:
Thank you for that. I'll hit up the other guy too.
[EVO 4G Android Development] aaronw143:
That's why I've been tased! I didn't flop though... I raised a gun and shot while being tased!

This is my EVO, there are many like it, but this one is mine....
[EVO 4G Android Development] nick1313:
Actually just use this one that coiledwire posted. Link

I've attached mine as well if you don't want the screen off. Profile stuff that's included in the link above. Just take out the .txt
[EVO 4G Android Development] coiledwire:
Selders, check my post for a script with a screen off profile.

Strongsteve has a script at the top of this page that works well if you don't use a screen off profile.
[EVO 4G Android Development] chefdrew:
I know this is old but I am wondering if I freeze the market updater, does that freeze it from updating the rest of the apps or just the mikmarket?
[EVO 4G Android Development] tommytomatoe:
It only freezes the mikmarket from updating itself. Apps and other things will update fine. :-)
[EVO 4G Android Development] chefdrew:
Great. Thanks for the quick response.
[EVO 4G Android Development] localguyincali:
ok heres the script i dloaded, i changed smartass to conservative and changed the values to what i use, can someone look it over make sure all is fine? im gonna go get root explorer... thanks

#!/system/bin/bash

AWAKE_GOVERNOR="conservative"

AWAKE_GOVERNOR_FREQENCY_MAX="1152000"

AWAKE_GOVERNOR_FREQENCY_MIN="128000"

SLEEP_GOVERNOR="conservative"

SLEEP_GOVERNOR_FREQENCY_MAX="245000"

SLEEP_GOVERNOR_FREQENCY_MIN="128000"

(while [ 1 ]

do

AWAKE=`cat /sys/power/wait_for_fb_wake`

if [ $AWAKE = "awake" ]; then

echo $AWAKE_GOVERNOR > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor

echo $AWAKE_GOVERNOR_FREQENCY_MAX > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq

echo $AWAKE_GOVERNOR_FREQENCY_MIN > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq

AWAKE=

fi

SLEEPING=`cat /sys/power/wait_for_fb_sleep`

if [ $SLEEPING = "sleeping" ]; then

echo $SLEEP_GOVERNOR > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor

echo $SLEEP_GOVERNOR_FREQENCY_MAX > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq

echo $SLEEP_GOVERNOR_FREQENCY_MIN > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq

SLEEPING=

fi

done &)
[EVO 4G Android Development] nick1313:
I think you should be fine..just as long as you leave that text file as is and just put in the values you did and move it and set permissions.

make sure you don't have any extra spaces and what not.
[EVO 4G Android Development] coiledwire:
Looks right to me.

Get it going and check to see if your frequencies are changed for your awake profile to make sure it's working.

If its all looking good, use that link to raiden89's ROM and hit him up with a thanks.

Edit: And don't forget to remove the ".txt" extension when you are placing it in the init.d folder.
[EVO 4G Android Development] vopwriter:
This worked swimmingly. Thanks for posting. Have pushed your thanks button as well as raiden89. Can't wait to see how it sleeps tonight with the screen off profile.
[EVO 4G Android Development] localguyincali:
ok i moved file into init.d folder long pressed gave permissions, rebooting now

EDIT- rebooted now what?
[EVO 4G Android Development] coiledwire:
Aaron, I really do think there's something screwy going on with 4.3.4 sbc charging profile. After my jacked up charging that I posted with 4.3.4, I reflashed every version of 4.3.4 sbc and they all looked the same. Then I went back to 4.3.1 sbc and the charging returned back to normal (same everything else).

I sent a PM to netarchy with my screen shots and asked if he could double check 4.3.4 sbc coding.

Anyways, this may or may not apply to your problem, so just FYI.
[EVO 4G Android Development] vopwriter:
Now check with setcpu or OS Monitor to see if your custom awake profile stuck. : )
[EVO 4G Android Development] coiledwire:
Check this file with root explorer (open as text file):

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

This should show your OC value if the script worked.
[EVO 4G Android Development] localguyincali:
you mean i have to install setcpu again? i thought the whole reason of this script so we dont have to use that app?
[EVO 4G Android Development] vopwriter:
Or that... : )

Edit: if you do it my way, you can just uninstall after confirming its running.
[EVO 4G Android Development] localguyincali:
yes i removed the .txt before i put it on my sdcard
[EVO 4G Android Development] localguyincali:
says 1152000
[EVO 4G Android Development] vopwriter:
Sounds like you're good.
[EVO 4G Android Development] coiledwire:
Nice! :)

Thanks to Strongsteve for getting us started with this script talk, and thank raiden89 for creating this script for screen off profile.

[I'm just the bringer of good info (when Jade is not around ;) )].
[EVO 4G Android Development] localguyincali:
ok something wrong? i installed setcpu just to be sure, im set at 1152000max min 128000 scaling conservative thats fine what i have in script, but no profile is set for screen off it was all blank.
[EVO 4G Android Development] jadeboy7:
Since when are you around so early ;)? Jkjk :p. Finally finished class. And thanks to both you and steve for all the help and info.
[EVO 4G Android Development] jadeboy7:
Profiles are a SetCPU thing but the script basically does the same thing.
[EVO 4G Android Development] coiledwire:
Yea, I'm around a bit early today. But you've still probably given out all of the free cookies for today. :)
[EVO 4G Android Development] localguyincali:
check my post, my screen off isnt set in setcpu i installed to make sure and its empty?
[EVO 4G Android Development] jadeboy7:
I hope not for your sake. I already planned on checking when I got back to my computer :).
[EVO 4G Android Development] localguyincali:
ahhh, ok had me thinking why isnt my screen off profile showing anything like enabled but its in the script calling it when screen is off?
[EVO 4G Android Development] jadeboy7:
Technically, when the phone is sleeping from what I saw but it's pretty much the same thing (at least you hope it's sleeping when the screen is off ;)).
[EVO 4G Android Development] coiledwire:
The script is polling that wait_for_fb_sleep to have the value "sleeping", when it has that value, it assigns values for max, min, and governor. Without tearing apart setCPU, I believe this is the same way the app does it.

And one other bit of info. If you'd like to adjust the conservative parameters (like in setCPU "advance" tab), you can navigate to /sys/devices/system/cpu/cpu0/cpufreq/conservative and edit those files there.
[EVO 4G Android Development] vopwriter:
Good call with that, jade (he said a little sheepishly...)
[EVO 4G Android Development] localguyincali:
Well i went back to my old kernal, it sleeps better, plus off charger i stayed at 100% longer in the negatives. this morning on new kernal it was dropping faster like in half hour.
[EVO 4G Android Development] coiledwire:
Here's some interesting data. On the left is 4.3.4 sbc. On the right is 4.3.1 sbc. Everything else is the same (battery, ROM , charging cable, etc). I tried every 4.3.4 sbc kernel as well; all of them looked like this.

I think something's up with 4.3.4 sbc. I sent net a PM.
[EVO 4G Android Development] aaronw143:
Other than every once in a while my negative mAs when on the charger I Never get anything like that!

This is my EVO, there are many like it, but this one is mine....
[EVO 4G Android Development] localguyincali:
thats how mine looked on 4.3.4 the graphs, but i dont give into those much.

EDIT- hmmm i noticed your battery monitor shows empty estimation time mine dont and i have pro version?
[EVO 4G Android Development] tommytomatoe:
Hey gang. I was asked to make this for another rom and I really like it. Since I'm on mikfroyo now I figured I'd make it work specifically for this rom.

Fresh Evo Rosie, credits to flipzmode for original Fresh Evo ROM.
[EVO 4G Android Development] mrwright83:
can you make a black htc keyboard like this for mikfroyo
[EVO 4G Android Development] coiledwire:
Or the mikZ keyboard for mikfroyo.
[EVO 4G Android Development] jedarojr:
Ugghh... Summer... I want 3d now!
[EVO 4G Android Development] tommytomatoe:
PM me this or else I'll lose it in this thread. :-)
[EVO 4G Android Development] jadeboy7:
I thought Chogard had one but it seems he took it out of his mediafire folder........:confused:
[EVO 4G Android Development] localguyincali:
i was just thinking, it be cool if you can use a background like in this rosie for the swype keyboard :D
[EVO 4G Android Development] coiledwire:
Actually, there's a very similar black keyboard that's included with the newest virus ROM (his public beta release).
[EVO 4G Android Development] jadeboy7:
Perhaps, but is it MikOptimized?
[EVO 4G Android Development] mrwright83:
His was swype ( the Black and white color but im going to look again)
[EVO 4G Android Development] localguyincali:
go buy some 3d glasses and pretend while looking at your phone :D :p LOL
[EVO 4G Android Development] coiledwire:
Probably not, but that's your area of expertise. :)
[EVO 4G Android Development] mdixon4az:
Didn't work for me.

This is my script in the init.d folder:

#!/system/bin/bash

AWAKE_GOVERNOR="ondemand"
AWAKE_GOVERNOR_FREQENCY_MAX="1075200"
AWAKE_GOVERNOR_FREQENCY_MIN="245000"

SLEEP_GOVERNOR="ondemand"
SLEEP_GOVERNOR_FREQENCY_MAX="245000"
SLEEP_GOVERNOR_FREQENCY_MIN="128000"

(while [ 1 ]
do
AWAKE=`cat /sys/power/wait_for_fb_wake`
if [ $AWAKE = "awake" ]; then
echo $AWAKE_GOVERNOR > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
echo $AWAKE_GOVERNOR_FREQENCY_MAX > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
echo $AWAKE_GOVERNOR_FREQENCY_MIN > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
AWAKE=
fi
SLEEPING=`cat /sys/power/wait_for_fb_sleep`
if [ $SLEEPING = "sleeping" ]; then
echo $SLEEP_GOVERNOR > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
echo $SLEEP_GOVERNOR_FREQENCY_MAX > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
echo $SLEEP_GOVERNOR_FREQENCY_MIN > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
SLEEPING=
fi
done &)
[EVO 4G Android Development] jadeboy7:
I have his black and white regular keyboard downloaded but if he removed them, maybe there's an issue (highly doubtful) or he doesn't want them out. :confused: I'll have to wait for his input.
[EVO 4G Android Development] jadeboy7:
Not with the HTC_IME. Apprently, that thing is a pain to deal with. And I would need apktool 1.3.2 also :(. It's completely Cho's department.
[EVO 4G Android Development] jadeboy7:
You set the permissions, right?
[EVO 4G Android Development] mdixon4az:
Yes, pushed it via adb and did a chmod 755 on it. did a long folder list and verified the permissions matched the other files in there.

EDIT: Got it. First cut & paste apparently was flawed.
[EVO 4G Android Development] localguyincali:
this value looks wrong? i never saw that value AWAKE_GOVERNOR_FREQENCY_MAX="1075200
[EVO 4G Android Development] tommytomatoe:
What do you mean? As in a picture of my kitty cat? hehe.
[EVO 4G Android Development] nick1313:
I don't have any of that weird crap. What hardware you guys have? Maybe that has something to do with it?
[EVO 4G Android Development] snovvman:
Excellent! Will these packages work okay with 4.2? Cheers.