yashsingh1/xdaforums huggingface dataset:
[HTC EVO 3D] Scott:
Got it. Check your email, I just responded.
[HTC EVO 3D] Scott:
mikeyxda is the winner.

The file is not a text file nor is it just a placeholder / binary file.

Its actually an executable and or library file. If you mod it with a text editor it will destroy the file.

You can however mod it with a hex editor to make changes but no familiar with this file so unsure of the actuallity of doing it and the changes sticking.

How do I know all this? I am a genius! No, thats not it.... Actually... The file clearly tells you what it is.

The frist 4 bytes of the file indicate the file type. Its an ELF executable / library

Here is more info on ELF files: http://en.wikipedia.org/wiki/Executable_and_Linkable_Format

But Mike is correct.
[HTC EVO 3D] selders59:
What does the file that was posted a few pages back do? Just asking cause you guys are the masters of this stuff. Want my 3D to perform at its best.

"From my Clean World"
[HTC EVO 3D] Scott:
Post the file again and I will look at it. I am not sure the file you are referring to.

(Its slow at work, hehehehe)
[HTC EVO 3D] Lrod0175:
Check your email

LROD'S DE 3D
[HTC EVO 3D] Lrod0175:
The best way might be just deleting or renaming the file, but we'll see because the System does look for this file when the phone comes out of it's sleep mode( screen off)

LROD'S DE 3D
[HTC EVO 3D] selders59:
It is the Core1OnDemand zip file that lrod posted on page 301.

"From my Clean World"
[HTC EVO 3D] Scott:
IDK because I ahve not looked at it.

Let me clarify what I said earlier as I may not have stated my intent correctly...

This is a an ELF binary file that is an EXE / DLL equivalant on a PC. This is common linux format as you can see almost every single file on the phone is ELF except for APK.

Dont beleive me... Take any file in /bin/ and open it and tell me the first 4 digits. They are ELF binaries.

If you edit these files with a standard text editor you stand a good chance of destroying them. Then again it also depends on the txt editor.
[HTC EVO 3D] jbermi:
started playing around with simi folder widget...makes my home screen nice and clean..
[HTC EVO 3D] Scott:
Ok, I was correct...

Look at this post: http://xdaforums.com/showpost.php?p=16950607&postcount=2

You can see that its an exe file be called from the first boot when RAMDISK decompresses.

You would be smarter to modify the entries int he ramdisk than to modify the file directly. Once again... Take it for what its worth... Its the internet. Until I can get home and get 100% proof I can only go on what I think. And I think you guys are modding an exe file and that wont work.

BUT....

mpdescion is equal to a Windows DLL file. It gets called as a service like a DLL file does.
[HTC EVO 3D] selders59:
Oh I believe you Scott. I know nothing about the file systems so all I can do is ask questions and do what you guys that know this stuff say to do.

"From my Clean World"
[HTC EVO 3D] selders59:
Man have weak signal where I am. I believe you Scott. I know nothing about the file system so all I can do is ask questions and follow what you guys that know this stuff say to do.

"From my Clean World"
[HTC EVO 3D] LfnsR:
Yep, got that too!
[HTC EVO 3D] selders59:
Ok I had saved the old mpdecision file as .bak when I changed the governor. So I just deleted the one I modified that was 12.68kb and renamed the .bak one back to mpdecision and it is at 9.7kb. I definitely know the temp sensor in system tuner is way off.

"From my Clean World"
[HTC EVO 3D] Scott:
So what is the difference compared to results and expected results?

Also as a control... try deleteing th file out right or just placing in a null file.
[HTC EVO 3D] selders59:
Ok one question, what would be causing the spikes in the frequencies and cpu load when phone is basically not being used? Is it suppose to spike like this? This can't be good on battery life?

"From my Clean World"
[HTC EVO 3D] baktasht:
Background processes are always running even if you are not manipulating the phone.
[HTC EVO 3D] Scott:
What file are you using?
[HTC EVO 3D] baktasht:
Battery life definitely suffering with the mpdecision file gone. Added it back in for now.
[HTC EVO 3D] Lrod0175:
OK, let see what other inputs we get from this.

LROD'S DE 3D
[HTC EVO 3D] Scott:
I would like to know what happens under the following circumstances:

stock mpdescion

modded mpdesction

no mpdescion

nulled mpdescion

Unfortunately I dont have the time or patients to test all this so I am leaning on all of you.

From the results gathered we will be able to form a conclusion.
[HTC EVO 3D] selders59:
Ok with the original mpdecision file back quad dropped back to 2500. Not bad cause the gain was only 250 higher with it modded. Was going to delete file but seen someone already tried it and said battery definitely suffered.

"From my Clean World"
[HTC EVO 3D] LfnsR:
Completely stock DE 2.0.
[HTC EVO 3D] selders59:
Maybe I should do a fresh install then try the latest anthrax.

"From my Clean World"
[HTC EVO 3D] Scott:
If you start swapping up kernels that completely nullifies any current results. All testing has to be on an indentical platform to be reliable. And even then...
[HTC EVO 3D] Lrod0175:
Modded: stable, great performance, battery life 14 to 16 hours.

Not modded: stable, little lag sometimes, battery is same for me.

LROD'S DE 3D
[HTC EVO 3D] Scott:
Well then...

So... one last question at this point...

The mpdescion file... Did you mod it yourself or is it the one you emailed me from Treve? And... Have you tried to mod one yourself and if so waht are the results?

Also.... Can you take a look at this post and give your input please?

http://www.scottsroms.com/showthread.php?440-Random-reboots

Is that a solid kernel for my builds?
[HTC EVO 3D] speedyd718:
my phone seems fine with the modded file, but battery is a bit worse, but my anthrax 1219 kernel stopped borking (it will stop activating cpu1, it will just sit at the min 384) with the modded mpdecision file.
[HTC EVO 3D] Lrod0175:
I modded the first one myself, the second one was treve's, I sent you that one so you can compare both.

I am gonna go to the thread in a few.

---------- Post added at 12:20 AM ---------- Previous post was at 12:19 AM ----------

the argument is gone far enough, I modded the mpdecision file using xvI32, now I've told you guys that u can use es file explorer, this is what I use when I do editing on my phone, etc, if you use a hex editing like xvI32 (its easy by the way, or maybe not, lol) it's clear that the spaces between the lines are there and nothing gets replaced, I may be wrong sometimes (well maybe a lot of times) but I will never tell you guys to do something I have not done in my phone myself, yes I use es file explorer, I'm not in my home or laptop computer most of the time, I do things on the fly as most of the times I'm on the road, and i have found es file explorer to be reliable.

If you use es file explorer the file does not get corrupted, you can check it yourself, download xvI32, open the regular mp file look at the spaces, then open the mp edited by es file explorer, you will find all the lines and spaces there, hence file is not corrupted, if it is then xvI32 is showing the wrong info, I have always used es file explorer since my og days, it has never let me down when editing, again i understand the concern as we all want to get the best possible performance and battery life, even though for me performance is king.

Modded( by me) with es file explorer.

Standard mpdecision( comes with DE 2.0 and all 3ds, sorry, grolsh are getting the best of me)

Look at the interactive ondemand (first pic)

Then look at the userspace ondemand (second pic)

All the spaces and lines are there.
[HTC EVO 3D] Scott:
There you go, now we now.

lol
[HTC EVO 3D] selders59:
Ok so now we know editing with es file explorer does not corrupt the mpdecision file. Now is this using the text editor? Or which editor with es?

"From my Clean World"
[HTC EVO 3D] Lrod0175:
Es note editor.

Don't try the hex, lol, it's all messed up.

LROD'S DE 3D
[HTC EVO 3D] selders59:
Well good morning all in the world of Clean. Well used es note editor to edit mpdecision file. Let's see how she does today. Oh lrod, what is the usual benefit of flashing the core 1 file you made?

"From my Clean World"
[HTC EVO 3D] Lrod0175:
Good morning selders.

None, other than the governor, I've made one with interactive for my personal use, but I'm on ondemand now.

LROD'S DE 3D
[HTC EVO 3D] Scott:
http://xdaforums.com/showpost.php?p=17456447&postcount=7630
[HTC EVO 3D] guitardoc64:
Mike, I agree with your findings. The thread Scott linked is a good read.

Sent from my Clean ROM 3D
[HTC EVO 3D] mikeyxda:
I've reviewed that and several other threads. I'm still not sure about this whole deal. If you try to check on the service "mpdecision", the system says there is no such service. When you list all services, mpdecision is not a service either. So I'm not sure that line in init.shooter.rc does anything. I've not found any way to make a performance difference except deleting the mpdecision file which forces both CPU's online all the time.

Mike
[HTC EVO 3D] doeboy711:
Well I think I messed up my file because I have been getting random reboot's, but now I have renamed the file with .bak and haven't got a random reboot in a while. So can someone post a correct mpdecision file? Thanks in advance
[HTC EVO 3D] Scott:
You cant always see every service running (HINT: CIQ services). Have you connected to ddms and watched?

I havent but I got the day off so I might have some time to play with this. Right now I am deep in MW3! Just taking a break before I head back in...
[HTC EVO 3D] Scott:
Who was doing the Tweaks and UI port from DE to Standard? Was it jBermi?

Who it is let me know how far you got because I was going to work on that today for ver 3.0 of Standard and Senseless. If you havenytyhing done it would save me time...

But Im building a ROM today!:eek: Gonna be the best you EVER saw! :D
[HTC EVO 3D] mayfield103:
Can't wait to check it out. :)
[HTC EVO 3D] jbermi:
wasn't me, but you could use my patch to change standard to DE.
[HTC EVO 3D] mikeyxda:
Scott,

I hope you don't mind me picking apart your souffle. Maybe that's kinda like a hobo picking apart Gordon Ramsay's risotto but I spent all day fooling with this CPU tweaking and I think I have something. ;)

First, I'd like to point out the three scripts that I found which affect CPU settings. Here's the order of the scripts that affect CPU settings like frequency, sampling rate, and such:

/system/etc/init.post_boot.sh - this script sets up the preferred CPU parameters for our CPU. As far as I can tell, these are the first to be applied but they are overridden below.

/system/etc/init.d/02sicktweaks: this script overrides the settings above and changes the sampling rate from 50000 (20 times a second) to 10000 (67 times a second) and also changes the up_threshold from 90% to 15%. The former (sampling rate) override works. The latter (15% up_threshold) does not due to a missing chown so the up_threshold actually stays at 90% but the sampling rate (freq really) does change from 50000 to 10000.

/system/etc/init.5/05sysctltweaks: this script overrides some of the settings a third time.

IMO, monitoring CPU load 67 times a second is overkill, will eat CPU in and of itself, and is the cause of the spikes we see in System Tuner. So I removed the two items in 02sicktweaks (up_threshold and sampling_rate). I also removed 05sysctltweaks entirely since there are only CPU overrides in there. The ones in the first (init.post_boot.sh) are the correct ones, IMO, and shouldn't be overridden by other tweaks in init.d.

Now... in addition to the above, I've deleted my mpdecision file as well, per the previous discussion. This keeps CPU1 online and (I believe, as far as I can tell) lets the CPUs run as Qualcomm designed them without any "interference" from a multi-processor decision file. Because CPU1 is online all the time, I made one additional change. In init.post_boot.sh, I changed CPU1's min freq to 192000 instead of 384000. Now THAT part might need further testing but with the above changes in place, System Tuner shows CPU0 sitting at 384000 most of the time (less jumpy now) and CPU1 sitting at 192000 most of the time. With the reduced sampling freq (50000 or 20/sec) and the second CPU running at 192Mhz, I believe the second CPU is free to idle at a lower frequency without being offline. The result is faster wake time for CPU1 and a snappier phone.

Been a long day so YMMV but I hope this helps.

Edit:

Scratch that 192000 change! CPU1 eventually went offline as previously mentioned. Guess you can't run it that low.

Seems to be working nicely with the settings (384/384) as-is from init.post_boot.sh.

Mike
[HTC EVO 3D] Flak:
I did pretty much the exact same thing yesterday, changed up threshold from 90 to 30 in the boot.sh, left min clock the same. Seems to have been fine all day.
[HTC EVO 3D] R32_Rocky:
Just an FYI for you "clean" folks. For the longest time, I have have had freezes and lockups (no matter which ROM) when using Anthrax kernels, and docking my phone in the Seidio desktop dock. I seemed to be the only one complaining about this problem, perhaps the only one using the Seidio dock? It would happen while docked, or removing my phone off the dock (this is the desktop dock apk, not the car dock apk).

Chad was cool enough to actually go and buy a Seidio dock for testing, and he just sent me the results of his finding. What an amazing dev! Took the time to check even into my seeming single person's problem! But, as can be seen below in the quote, it was a real issue, and could have been overlooked, and maybe someday latter, effected more people.
[HTC EVO 3D] selders59:
It sounds like the brains are at work to actually (which I never thought you could improve perfection) make Scotts Clean roms the 3 heavy hitters on XDA! Can not wait to see what comes out.

"From my Clean World"
[HTC EVO 3D] guitardoc64:
Yep, cool thing is we are all working together on this. In fact since I got into cleanrom, I don't believe I've seen any negative posts that I have seen in other threads. We all seem to be cooperating well, and it shows in the ROM.

Sent from my Clean ROM 3D
[HTC EVO 3D] R32_Rocky:
Just curious, I see Chad mentions a lot about his kernel being designed towards 2.3.5 roms, with Sense 3.5 in them. What really is the difference (seeing as I only been using this CleanROM and Cho/Mik's roms)? What benefits would there be going to a 2.3.5/3.5 based Rom? And Scott, will you be messing around with making one?

And sorry to ask, but if I wanted to try a 2.3.5/3.5 ROM, which one? I am not into that all green gingerbread look, or Warm's look. I love how this DE is, with the gorgeous blue, and EVO Bryan's tweaks.
[HTC EVO 3D] Scott:
Wow, thats very cool he did that. Even more cool he figured out the issue. What sucks is how sad it is that HTC did not fix this.

What can you say negatively about the ROM or the Dev? :D

At this time I have no plans to stray away from building out of stock RUU. All the ROMS that are not stock based (2.3.5 / 3.5) always have some non functioning feature (WiMax, WiFi, etc) or some strange bug. I cannot, in good conscience, put out a partially functinoning ROM; therefor I stay with stock builds. Yeah, I am not have the latest and greatest version numbers... But at the end of the day... My ROMS are fast, solid and stable. Thats what people always come back to :cool:
[HTC EVO 3D] Scott:
I think you did good but my only criticism (if you even want to call it that) is the fact that you made the changes int he RAM disk. Why not just make them in the init.d? The entire point of init.d is to allow easier changes to the config without decompiling the ram disk.

Its all choice, it does the same thing but I am looking at it in terms of easy mod.

But to be completely honest with you any changes I make will be in init.d. I hate dealing with RAM disk unless I am swapping zImage.
[HTC EVO 3D] jbermi:
i know I am in the minority...but I am using bcblend(from DE1.2, i swapped boot.img and made sure all the modules were in the zip)

i deleted 02 sicktweaks, virtous OC folder and kernel tweaks from init.d

my phone runs smooth and battery life is great. it may not be the performance hot rod. but it works for me and there is little to no lag in Sense...(only time I have lag usually is when the phone is installing new apps in the background while I am using the phone)

I am perfectly happy with how the phone performs. and how it looks with my modded theme. using simi folder on the home screen.
[HTC EVO 3D] guitardoc64:
Scott I can honestly say that you are my personal favorite dev. You always respond to any questions,issues quickly and without complaint. Plus, you turn out a kickass product. The above is why I've stuck around. My 3D has never been better in performance and stability. Yeah I had a few issues here and there but they were 100% either apk or settings related. Thanks for sticking with us.

Sent from my Clean ROM 3D
[HTC EVO 3D] evo bryan:
hay all how have we been just a update any one looking for red theme shoot me a pm i have a new one that will be out soon and first dibs go to the cleanrom this one took me like 2 weeks to make
[HTC EVO 3D] speedyd718:
mikeyxda,

question, are the 'ondemand' references in the init.post_boot.sh calling out the governor choice? i ask because i'm using the smartassv2 governor, would i want to change these to match my governor? thanks for your help on this.
[HTC EVO 3D] mikeyxda:
There were two primary reasons that I made the changes to init.post_boot.sh instead of init.d. The first is that in observing the behavior of what these files are doing, it seems that init.post_boot.sh is the first script to be executed in the sequence. Being a developer myself, I always prefer to get it right the first time rather than have some code set something wrong and then undo it with something that runs later in init.d by "fixing" it. So my theory was: do it right at the source, then you don't have to fix it in init.d. The original code had init.post_boot.sh setting up all the params for the ondemand governor, then 02sicktweaks would come in behind that and override a few of those to different values, then after that 05sysctltweaks would come along and override them again with yet another set of values.

The second reason is that I did try some of this stuff in init.d and I got some strange results. For example, in trying to set scaling_min_freq for cpu1, it would work about 2/3 of the time but fail 1/3 of the time. All my tweak in init.d did was "echo 384000 > /sys/devices/system/cpu/cpu1/cpufreq/scaling_min_freq" and that worked most of the time but that 1/3 of the time it didn't, I'd look in /sys/devices/system/cpu/cpu1 and there would not even be a cpufreq folder and CPU1 would be offline permanently! It's as if something was trying to access/create that folder when the init.d hit it (if the timing was right) and it f-ed it up so that the directory structure that drives CPU1 (the second CPU) wasn't even created properly. So this basically reinforced my theory that it should be done right the first time rather than trying to fix values in init.d that were put in wrong prior to that in init.post_boot.sh. If you take a look at the values after the phone boots, you'll see that the two attempts in init.d (one in 02sicktweaks and one in 05sysctltweaks) to set the up_threshold to a lower value didn't work. The value sticks at 90 which is the value initially set in init.post_boot.sh. To me, again, that indicates that it should probably be done right in the initial setting of those params (in init.post_boot.sh) because the init.d tweaks are not always even working. My assessment as to why they didn't work was that either those files are either locked or the init.d tweaks were missing a chown or a chmod that allows the files to be changed.

Just looking at the code in init.post_boot.sh, that only affects the ondemand governor if you use that. If you're using smartass, those lines in init.post_boot.sh won't even have any affect on you.

Mike
[HTC EVO 3D] FrickenFracken:
How are you modifying the init.d scripts? Copying them to sd, modifying then copying back? Should I have an option to mount system in TWRP?

Thanks.

--Ben
[HTC EVO 3D] mikeyxda:
Me... I use Root Explorer to copy them to the sd card, use ES File Explorer to copy from the sd card and paste to my network drive on my computer. Then reverse the process to get them back. All that rigamarole just because Root Explorer can't do network (SMB/UNC) drives. If Root Explorer could get to my network drives like ES File Explorer, I'd be so happy!

Of course, I sometimes modify them on my computer because it's easier. If you just want to mod the scripts on the phone, use Root Explorer to go to the /system/etc/init.d folder and just tap on the script you want to modify and use "Text Editor". Oh, before using the text editor, use the little "Mount R/W" button at the top of the folder in Root Explorer so you can modify the file.

Mike
[HTC EVO 3D] curiousGeorge:
No, forcing CPU1 active may interfere with mpdecision, which shows up after a few hours/days of use when the "forced active" CPU1 gets locked to 384MHz userspace. Also, that particular ondemand script is highly wasteful severely detrimental to battery life under moderate use and still requires 'ramp-up' time initially for the CPU to clock to max from idle.

GabersDemand (which is flashable and uninstallable) takes care of all of these issues. http://www.mediafire.com/#mf75b3e8r1vug

It was developed for the one-stage ondemand governor, but should feasibly work with the two-stage as well. TurboCore activates both cores in a logical and appropriate manner by archiving htc's mpdecision and giving full control over the CPU cores to the kernel itself. Please be aware that using both cores (TurboCore) over an extended period will cause noticeably increased battery drain.

This reversible tweak should provide the highest responsiveness without sacrificing battery life or causing any detrimental interference with other system components.
[HTC EVO 3D] AndroidGraphix:
New Bravo Theme V2 Posted on Scottsrom.com.
[HTC EVO 3D] Scott:
HTC Rezound was uncloked today :D
[HTC EVO 3D] mikeyxda:
Been booted and running for 24 hours now without any of the problems you mention. I'm game to try something new though... but your link just opens mediafire. It doesn't link to a file.

Mike
[HTC EVO 3D] speedyd718:
hmm? may i ask why the focus is on the ondemand governor? i thought the smartass gave better performance? just wondering, i'm a noob on all this. thanks again.
[HTC EVO 3D] mikeyxda:
Just because ondemand is a standard governor found in all ROM's, and it can be tweaked to work as well or better than smartass IMO.

Mike
[HTC EVO 3D] Scott:
I think OnDemand is the best. Dont care for smartass to be honest with you.
[HTC EVO 3D] sudhirkhanger:
Does EPST working for you guys? I need to do ##775# to change my PRL.
[HTC EVO 3D] speedyd718:
wow i had no clue. i will have to give it a shot. are there other tweaks besides the ones that have been discussed as of late.
[HTC EVO 3D] Lrod0175:
Hello everyone, after much debate about the mpdecision file, I have decided to mod the different governors that come with the anthrax kernel using HxD to make it easy for you guys to change cpu1 gov.

http://www.scottsroms.com/showthrea...e-with-MPDECISION-file-script&p=3502#post3502
[HTC EVO 3D] Lrod0175:
If the mpdecision file is not modified, it will change the cpu1 governor to userspace ondemand when the screen goes off.

LROD'S DE 3D
[HTC EVO 3D] mikeyxda:
I agree. I've tried all the others and have always come back to ondemand. The key to running ondemand smoothly is to try different up threshold values until you find the sweet spot for your particular device/ROM. Set it low enough that it gets jumpy and is spiking to high speed too much, then raise it a little above that so that when nothing much is going on, it holds 384 most of the time and that frequent spiking stops. That's the sweet spot.

Mike
[HTC EVO 3D] steve97ta:
Holy **** I knew this was coming! Thx lrod!
[HTC EVO 3D] Lrod0175:
MIckey, how's the battery life without the mp file?

LROD'S DE 3D