yashsingh1/xdaforums huggingface dataset:
[HTC EVO 3D] mrg666:
Thanks for the info. I will probably not be able to fix this without breaking the compatibility with other ROMs.
[HTC EVO 3D] mrg666:
MiRaGe kernel is updated for both ICS and JB builds. See the download links in the OP.

Linux 3.0 goes end-of-life with 101 patch.

Cheers!
[HTC EVO 3D] Obeezy562:
Does this mean no more updates for mirage kernel ?? :(
[HTC EVO 3D] mrg666:
"End of life" is for Linux 3.0 series not MiRaGe. But this kernel is also at a very stable state and I have been in the maintenance mode since some time. Anyway, I will be here to fix when necessary.
[HTC EVO 3D] Obeezy562:
Gotcha, I read on the linux sight the 3.0 series has come to an end , to upgrade to 3.10 series . Is it possible to run that version of linux on shooter ?
[HTC EVO 3D] bigwillyg:
That sounds tricky. I have heard from other devs that they had to strip 3.4+ to bare minimum and the "O" flags down to 2 to get it to boot. But I may be off the mark.
[HTC EVO 3D] mrg666:
Well, it is not feasible upgrading to 3.10 at this point. It is too much work without much return. Although the version number is 3.0.101, there are so many components already backported from 3.4 and 3.10 kernels. Just have a look at the list of changes. I have picked some of my commits from this kernel as an upgrade for the 3.4 Mako kernel I have been working on :)

I worked a little on the 3.4 kernel for shooter. I can tell you there were really hairy problems :)
[HTC EVO 3D] Obeezy562:
I know I've read every change you've done in the kernel you've backported many things lol that's a reason why mirage kernel is the best ;) can't thank you enough for all your time and effort on this especially with your new nexus 4 and still updating us :good:
[HTC EVO 3D] tvall:
will the mako kernel on your github work on cm10.2? I haven't paid much attention, but over seen people complain about incompatibility with custom kernels.

/offtopic
[HTC EVO 3D] mrg666:
I don't really know if MiRaGe-mako will work with CM10.2. I haven't paid attention to CM either since I am only interested in pure AOSP with Nexus 4. 4.4 is coming soon! I can't wait to flash the OTA and download the source code :)
[HTC EVO 3D] Hedied4me:
If I could afford a new phone and anything but Virgin M I'd follow you to the Nexus 4. I can tell your a good develop just from running this kernel for the past month.
[HTC EVO 3D] SketchyStunts:
In waiting for the nexus 5. Going to a custom prl again so I an get booted & switch carriers. Still no lte or even wimax in my area with sprint.

Plus on my 4th evo 3d in a year & just had to replace the digitizer today on a 2week old refurbished phone. You Sir, have kept my spirits up, keeping this device kicking.
[HTC EVO 3D] mrg666:
Sultanxda (android1234567) has improved the memory map mod and I have been testing his latest patch with CM10.2 since last 3 days. The available RAM for user space is 848MB, up 50MB from 798MB. There were no reboots, instability, no problems. Here is the test kernel

for JB

.

http://www.mediafire.com/download/3ir6g40mnv8i7a9/MiRaGe_shooter_test_kernel_1012_jb.zip

Give it a try if you want to test and post here your feedback. Please don't bother ROM developers with the problems in this test kernel.

Thank you, Sultan.
[HTC EVO 3D] SketchyStunts:
No issues so far. Running great
[HTC EVO 3D] Hedied4me:
Same here
[HTC EVO 3D] mrg666:
Thank you guys. Please keep testing, one day is not enough.
[HTC EVO 3D] wigginst:
Have had some reboot and freezing but had flashed it over killjoy script. Have now uninstalled the script to see if that was the issue.
[HTC EVO 3D] gonk24:
Flashed yesterday evening. Nothing abnormal to report so far. Running great.
[HTC EVO 3D] wigginst:
Update: ran with no issues without killjoy script overnight. Reflashed killjoy and had reboots again. Uninstalled the script and back to no issues. Something in my setup clearly doesn't work with those two together so now just running the kernel and all seems well.
[HTC EVO 3D] SketchyStunts:
No reboots for me on Hood Pope & I have the ROM odexed, xposed framework, xblast, xprivacy, greenify, viper fx, & killjoy installed.
[HTC EVO 3D] wigginst:
Hmm, I have almost that exact same setup up but with killjoy on it rebooted every couple of hours. Without it, none.
[HTC EVO 3D] Master Gowa:
As always... I appreciate your updates. Running the 1012jb test kernel on Hood Pope for 2.5 days with no issue. :good:
[HTC EVO 3D] wigginst:
Sketchy have you tried the xhalo module with hood pope?
[HTC EVO 3D] SketchyStunts:
I have not but I'll try it out today.
[HTC EVO 3D] wigginst:
I had wanted to try it especially since it sounds like it works great with floating notification but have not had a chance yet.
[HTC EVO 3D] mrg666:
I think this testing was successful and we can keep this memory map in the stable builds. I have updated the JB build with the memory map patch merged in the OP. Thanks to Sultan (android1234567) for his gift to EVO 3D community. ICS version hasn't been updated.

Although I had switched to Nexus 4 recently. I was still keeping my beloved EVO 3D. But I had to sell it yesterday to fund the purchase of another device (a GS3). This is the only way I can continue with my development addiction. :o

So this concludes my development for EVO 3D since I don't have the device for testing anymore.

Thanks to all of you, this has been real fun. See you all around.
[HTC EVO 3D] bigwillyg:
See you in the gs3 forums :)
[HTC EVO 3D] mrg666:
I will find you there, Bigwilly. :)
[HTC EVO 3D] bigwillyg:
Beware though, that gs3 source is an error filled mess. Even completely stock when running it through linaro.
[HTC EVO 3D] HappyBirthday:
Happy you've got your hands on some better phones but have to admit it bummed me out to read, can't thank you enough for sharing skills with everyone!
[HTC EVO 3D] mrg666:
Actually, I am not surprised to hear that. I have done the Galaxy Reverb kernel recently and it was the worst kernel source I have seen. Apparently, there is another Samsung kernel to clean up. GS3 will also be fun as I see. Samsung might switch to 3.4 kernel with the 4.3 update though. We will see soon.
[HTC EVO 3D] mrg666:
EVO 3D is still a very nice device. I wish I could have kept it. But I feel that my kernel project was done and it had to be wrapped up. If you remember, I had posted earlier that this project was going into the maintenance mode. So this is just the next step. Thank you for the nice words.
[HTC EVO 3D] SketchyStunts:
Thanks mrg666, you did wonderful things here. Our device is now terminal & on life support. Haha
[HTC EVO 3D] mrg666:
Thanks SketchyStunts. I have tested the latest JB kernel with dastin's CM10.2. It was working great and, you know, that is the latest Android as of now. EVO 3D is still going strong and it is fully supported, as I see.

BTW, is that your bike in your avatar?
[HTC EVO 3D] SketchyStunts:
Trust me, super grateful & happy we are on 4.3.

Yep, that's my Honda 600.
[HTC EVO 3D] mrg666:
WOW! :cool:
[HTC EVO 3D] Obeezy562:
I'm guessing the memory map won't be coming to the ics kernel?? :(
[HTC EVO 3D] mrg666:
It can still be done if we work together. Sultan said that he is willing to make another patch for ICS but he needs help from users who can do adb on the PC to get the memory use while 3D recording/playing is active on the phone. I can build the kernel anytime with the new patch. Then you can test it again. I will start by sending a PM to Sultan so that we can do this. If he comes here to give the adb instructions, we can start.
[HTC EVO 3D] Obeezy562:
Awesome !! Can't wait ! Thanks Mrg !! I will see you soon on the GS3! ;)
[HTC EVO 3D] t3khe4d:
stopping thru to say, thanks mrg for the dopeness support on this highly unique phone, sad to hear you had to sell yours, this phone is without a doubt in a league of it's own, more now than ever, at least until they produce another with 3D capabilities, and of course supported with your kernels ;)

I shall carry ma'phone like champ & treat'er like a baby

cheers to you and yur new project.
[HTC EVO 3D] Sultanxda:
ICS kernel memory remap

Hey there, in order to remap the ICS kernel and retain 3D camera functionality I need some memory usage statistics. Gathering these statistics will require ADB knowledge and an ICS ROM with 3D camera support.

Here's what you need to do:

1. Plug in your phone to a computer you can use ADB on

2. On your computer, open a command prompt and perform the usual process to use ADB

3. Run the command "adb shell" (without quotes)

4. On your phone, open the camera application and set it to 3D mode

5. Switch to 3D camcorder mode and set it to the highest resolution available (720p)

6. Start recording 3D video

7.

While the video is recording

, on your computer run these commands in the ADB shell command prompt you opened earlier:

cat /sys/kernel/pmem_regions/pmem_adsp/bits_allocated
cat /sys/kernel/pmem_regions/pmem_adsp2/bits_allocated

Running one of those commands will give output similar to this:

id: 1
bitnum	index	quanta allocated	in MB
0	0	1	0. 3
1	1	1	0. 3
2	2	1	0. 3
3	3	1	0. 3
4	4	1	0. 3
5	5	1	0. 3
6	6	1	0. 3
7	7	1	0. 3
8	8	1	0. 3
9	9	1	0. 3
10	10	1	0. 3
11	11	1	0. 3
12	12	1	0. 3
13	13	1	0. 3
14	14	1	0. 3
15	15	1	0. 3
16	16	1	0. 3
17	17	1	0. 3
18	18	113	0.441
19	131	113	0.441
20	244	113	0.441
21	357	113	0.441
22	470	113	0.441
23	583	113	0.441
24	696	113	0.441
[COLOR="Red"][B]Total usage: 0x329000 (3.160 MB)[/B][/COLOR]
Total allocated pmem size: 0x1800000 (24.0 MB)

The information I need for each command is the Total usage. I have highlighted it in red and bolded it in the above sample output.

Give me that line of output for each command. So I need something like this:

With this information I will be able to remap the ICS kernel :)
[HTC EVO 3D] mrg666:
Thanks, Sultan. I will ready to build the test kernel when you have the patch.
[HTC EVO 3D] Obeezy562:
I will do these steps asap thank you sultan !

i got the outputs.

adsp:

Total usage: 0x1ed000 (1.925 MB)

adsp2:

Total usage: 0x664000 (6.390 MB)
[HTC EVO 3D] Ch1ngl1ng:
Wow, never before have I seen such an improvement in battery life with a change of kernels. Tried lots of kernels, but always got that same old sub-par battery life. Mirage truly blows the rest out of the water. Amazing, thanks for your hard work mrg!
[HTC EVO 3D] Hedied4me:
Agreed
[HTC EVO 3D] hightech316:
Thank you for all your hard work!

Love this kernel!

Possible to throw in some extra governors ?
[HTC EVO 3D] Hedied4me:
He no longer has the phone, so likely not.
[HTC EVO 3D] Obeezy562:
Any news on the ics remap mrg?
[HTC EVO 3D] mrg666:
Nope. Sultan must be busy with other things.
[HTC EVO 3D] Sultanxda:
Been working on CM11 for my Sensation and tinkering with my new Nexus 5. I was also swamped by homework (and I'm going to be again this week), so I didn't get around to remapping. I didn't forget though :)
[HTC EVO 3D] mrg666:
Thanks for letting me know. Enjoy your new Nexus 5.
[HTC EVO 3D] t3khe4d:
yo! I have a question mrg?,...

should "/sys/devices/system/cpu/cpu0/cpufreq/scaling_governor" be:

interactive?

or

ondemand?

3.0.101 says "ondemand"

I'm assuming this setting is the "default"

the reason I ask is I was looking in KT and thought it odd it reported "ondemand" for cpu 0 & "interactive" for cpu 1

in the past I think this was set to "interactive", should it still?

thanks again for the rockin' kernel :good:
[HTC EVO 3D] mrg666:
I have double checked the kernel configuration, It should be "interactive". You might have some app changing that value to "ondemand".
[HTC EVO 3D] Obeezy562:
I have the same issue , ondemand is set by default not interactive
[HTC EVO 3D] mrg666:
If you are not setting it in an app (e.g. nofrills or kernel tuner) than it might be changed by the init scripts. Are you using the stock ROM or a custom ROM? Can you also confirm that if you change it to interactive (using nofrills) it sticks? There might be an issue with the kernel configuration when I built the kernel. I will rebuild the kernels and post here just in case.
[HTC EVO 3D] mrg666:
OK. There are new builds in the OP

- made sure interactive is the default governor

- added a fix for a seemingly harmless kernel message about failing to set the cpu voltage.

Please test and let me know.

If your governor is still ondemand by default after the reboot, it should be because of an app or init.rc.
[HTC EVO 3D] t3khe4d:
in the field, will check when I get home

thx

Evo V 4G

kernel: MiRaGe

rom: Butterz

hboot: jbear 1.57.57

s-off
[HTC EVO 3D] Obeezy562:
It's still set to ondemand :o I rebooted and used different oc apps and it says current: ondemand

I'm on butterz rom which is based on stock and features your kernel by default. I use no frills CPU I even uninstalled and rebooted and reinstalled the app and said ondemand
[HTC EVO 3D] mrg666:
Then the problem should be with init.rc since this was not happening with the stock rom. Can you post /init.rc somewhere? Or you could simply set the governor as you wish with nofrills on boot.
[HTC EVO 3D] Obeezy562:
Heres the init.rc
[HTC EVO 3D] mrg666:
There is nothing related to ondemand in it. We will need to call an exorcist :confused:
[HTC EVO 3D] Obeezy562:
Lmao, ondemand has been the default ever since you put it back into the kernel btw :p its been a while since its been the default and were barely telling you now lol sorry :angel:
[HTC EVO 3D] mrg666:
Yes I know that interactive has been the default governor since the very beginning. Actually it still is

CONFIG_CPU_FREQ_DEFAULT_GOV_INTERACTIVE=y

There is no other setting that determines the default governor. Let me think about another possibility and check the ramdisk in butterz. Fortunately, this is nothing other than a small nuisance. You are able to set interactive as default manually, right?
[HTC EVO 3D] Obeezy562:
whenever i reboot my phone shut off or whatever ondemand is always set as default even on my brothers evo 3d i flashed a new rom and your kernel freshly and ondemand was the default when i opened no frills. its not a bother nor anything just letting you know

btw how can i do this manually? and id like to set the cpu at 1.7 by default since my phone runs perfectly fine at 1.7. thanks :good:
[HTC EVO 3D] mrg666:
Just make the settings as you wish in nofrills and check the "set on boot" option. That should do it.
[HTC EVO 3D] Obeezy562:
I do lol but theres many times where overtime my phone does a hot reboot randomly and the settings go back to ondemand :confused:

also what app or what way do u recommend undervolting?
[HTC EVO 3D] HappyBirthday:
I don't know much about this stuff but was digging around the Butterz ROM zip and noticed that in: system/etc/init.qcom.post_boot.so are scripts to set to ondemand. Just taking a guess.
[HTC EVO 3D] mrg666:
If your phone is doing spontaneous reboots, undervolting can make it worse. I recommend reducing the maximum frequency first.
[HTC EVO 3D] Obeezy562:
I haven't done any changes to the voltage, it happens whenever my ram gets low I guess don't know why , I close all apps .
[HTC EVO 3D] mrg666:
As long as there are not any strange OOM parameters, low memory can't be the problem. EVO3D has enough RAM for all Android versions. You shouldn't need to close apps manually either. Check CPU stability, I suggest.
[HTC EVO 3D] Obeezy562:
I will, btw what rom did u use when u had your EVO 3d ??
[HTC EVO 3D] mrg666:
Stock ics sense
[HTC EVO 3D] Obeezy562:
Did u mod it or change it in any way to improve performance?
[HTC EVO 3D] t3khe4d:
LOL'd XD
[HTC EVO 3D] mrg666:
Yeah, I developed a kernel for it :)
[HTC EVO 3D] t3khe4d:
I can confirm, flashing .93 comes up interactive

flash .96 comes up ondemand

:confused:

Evo V 4G

kernel: MiRaGe

rom: Butterz

hboot: jbear 1.57.57

s-off
[HTC EVO 3D] Obeezy562:
.___. Oh really lol I'm talking about rom wise not kernel wise its obvious your kernel increases performance drastically
[HTC EVO 3D] mrg666:
Just frozen the bloat from Virgin and HTC apps via Link2SD, switched to Holo Launcher HD, and (this is not for performance) installed the SRS audio effects for enhanced sound. These were enough for me in addition to the kernel.
[HTC EVO 3D] Hedied4me:
I am sure gonna miss this kernel when I buy the HTC Desire 601 for VM :-[
[HTC EVO 3D] TeChNoC4AzY:
The nexus 5 is here bud!!
[HTC EVO 3D] HappyBirthday:
Some people don't want to drop that kind of money though if a great deal can be had on the 4 which is still a solid phone. ;)
[HTC EVO 3D] tvall:
When he bought his n4, the 8gb was $199, and the n5 was just a rumor.
[HTC EVO 3D] mrg666:
When are you sending my N5? :victory: I can't wait.

Seriously, I enjoy my devices by developing for them. There is almost nothing new in N5 from a developers perspective.

CPU: both quad core kraits

RAM: both 2GB

GPU: A320 vs A330, they are similar

Screen is full HD but I really can't see much difference after 300 dpi without a magnifier.
[HTC EVO 3D] Obeezy562:
I'm with you, just bought a desire for 160 new in box ! Going to miss this perfect kernel thanks for all mrg!!
[HTC EVO 3D] mrg666:
Desire is a nice device. Enjoy your new phone.
[HTC EVO 3D] pbailey212:
Where did you find it for $160
[HTC EVO 3D] TeChNoC4AzY:
Isn't the desire slower than the EVO 3d? :confused:
[HTC EVO 3D] t3khe4d:
nope

http://www.htc.com/www/smartphones/htc-desire-601/
[HTC EVO 3D] Obeezy562:
The desire 601 I gotta say is an amazing phone it's so fast haven't noticed lag , BoomSound I gotta say is pretty amazing I thought it would be cheap but I was wrong lol and I got this on craigslist I saw it for 160 and immediately contacted the seller :D
[HTC EVO 3D] Hedied4me:
I don't see where to buy on that website. I really want that price.
[HTC EVO 3D] mrg666:
I have pulled the patch and rebuilt a test kernel.

link removed

Everyone, please test this kernel if you want to help, especially,3D video recording and playing in the stock ICS ROM . It would be great if you can also test the HDMI output.

Many thanks to Sultan.

Edit: I have removed the kernel after testing showed that latest memory map patch is still not working.
[HTC EVO 3D] wigginst:
Had this been tried on evervolv?
[HTC EVO 3D] mrg666:
http://xdaforums.com/showpost.php?p=45770048&postcount=680
[HTC EVO 3D] SketchyStunts:
Wish you where still developing on this device.
[HTC EVO 3D] busventinc:
+1
[HTC EVO 3D] Ch1ngl1ng:
Gonna miss this kernel when I upgrade to 4.4 :(
[HTC EVO 3D] Hedied4me:
This doesn't work on cm 11. That's odd, worked fine on 4.3.1
[HTC EVO 3D] Ch1ngl1ng:
That's because CM11 uses a hybrid PMEM/ION to get rid of graphical glitches.
[HTC EVO 3D] mrg666:
Thanks for the nice words. I am certainly missing my EVO3D. I wish I could have kept it. I've read some very nice comments about the quality of 4.3 builds (CM and Evervolv). I think the hybrid kernel for 4.4 is indicating both the intelligence of the devs and the growing challenge of keeping EVO3D updated.
[HTC EVO 3D] muziling:
Which configure file I need to use when compile kernel, shooter_defconfig or shooter_config ?
[HTC EVO 3D] mrg666:
Shooter_config is the configuration file for MiRaGe. Shooter_defconfig is the stock configuration. I had given the build instructions in the 4th post in this thread.
[HTC EVO 3D] mrg666:
I have backported two significant changes I have done for the mako kernel.

- I have eliminated the load calculation in autosmp (my hotplug driver). Instead autosmp follows the cpu governor's frequency settings which is a function of load average. This change eliminates extra load average calculation, improves the consistency of autosmp with the cpu governor, and hotplug events become more consistent. See the the changes here

- backported the important changes from Linux 3.13-rc for /dev/random which made a significant improvement in the entropy pool for mako kernel

The difficulty is that these are blind builds since I don't have the device anymore. So I am posting the builds as test builds here. Save your working kernel packages in the SD card before flashing this test build. Please let me know how it goes. I will move these to OP after confirmation

ICS kernel: http://www.mediafire.com/download/5v3n7e4dxgmpfxk/MiRaGe_shooter_test_kernel_01072014.zip

JB kernel (in case there are still users of JB): http://www.mediafire.com/download/cf8ba2ke3idg21m/MiRaGe_shooter_jb_test_kernel_01072014.zip

Cheers!
[HTC EVO 3D] wigginst:
Tried it with 4.3 evervolv but it kept rebooting after gets to lock screen but that may just be an issue with 4.3.
[HTC EVO 3D] catbert77:
Installs and works so far on HoodPope (CM10.2), which is android 4.3.1. Will report back if anything is weird.

Thanks for thinking of us!
[HTC EVO 3D] wigginst:
Went back and did a clean install of evervolv 4.3 and this new kernel. So far everything is working great!

Edit: So now I am thinking the issues I was having with the kernel were somehow related to wimax. When I did the clean install wimax was off. I turned it on (it works on 4.3 Evervolv) and as soon as I did phone started the rebooting cycle it had been doing to me before. Got back in to turn wimax off. Since then: no issues.
[HTC EVO 3D] wigginst:
Running it on my blue tooth dock wifi and blue tooth kept turning on and off.
[HTC EVO 3D] Obeezy562:
Flashed the test kernel for ics , running great so far no bugs or any issues , will keep testing
[HTC EVO 3D] mrg666:
OK, It seems evervolv 4.3 has problems with the kernel. But wimax and bluetooth aren't related to the changes I made in this test build. So please switch to a compatible kernel. Thanks for testing.
[HTC EVO 3D] wigginst:
Thanks for continuing to build for this phone! Just wish I could figure out a way to get it to work fully on Evervolv 4.3. The phone is much more smooth with it.
[HTC EVO 3D] SketchyStunts:
Just flashed on hood pope & all is well so far. I'll report back after a day of running it. Thanks!
[HTC EVO 3D] kr338r:
threw on the new kernel on Hood Pope for VM EVO for ****s 'n giggles, all works fine, no hiccups.

fyi, did a quick bench w/ antutu for curiosity's sake ....

dropped from 11439 to 8693, both max OC.
[HTC EVO 3D] mrg666:
Can you please check with the System Monitor to confirm that second core is not always offline or online?
[HTC EVO 3D] SketchyStunts:
I checked with system monitor, trickstermod, & system tuner & can confirm the second core stays offline.
[HTC EVO 3D] somekid15:
Does battery life seem any better? Performance? I'm on stock hood pope kernel and everytime I check kernel tuner my min/max on both cores reset to 1350 MHz so I'm hoping this will fix that
[HTC EVO 3D] SketchyStunts:
I haven't ran it long enough to tell about battery but its buttery smooth with 1 core active atm.
[HTC EVO 3D] somekid15:
Is CPU 1 not utilized at all? Or is it just used when completely necessary?
[HTC EVO 3D] wigginst:
Flipped back to hood pope now with the updated kernel. So far so good.
[HTC EVO 3D] somekid15:
Flashed mako on hood pope 4.3, and my battery dropped from about 60% to 24%, but it seems to be staying there,hopefully just a bug since I need my phone for another couple hours
[HTC EVO 3D] mrg666:
I think I have fixed the problem. Can you please try the kernel below to see if the second core is turning on and off as expected? This is JB kernel.

http://www.mediafire.com/download/62cjxt8iem38g9g/MiRaGe_shooter_jb_test_kernel_01082014.zip
[HTC EVO 3D] SketchyStunts:
Still remaining offline
[HTC EVO 3D] mrg666:
OK. Can you try one more?

http://www.mediafire.com/download/fr05yl5j81upp58/MiRaGe_shooter_jb_test_kernel_2.zip
[HTC EVO 3D] SketchyStunts:
It's still offline on this one as well
[HTC EVO 3D] mrg666:
Thank you for your patience. I don't see any other problems and I switched the compiler to the latest gcc 4.8 based linaro toolchain. I would appreciate if you can give another try with the kernel below.

http://www.mediafire.com/download/b05ew95k8rmybm8/MiRaGe_shooter_jb_test_kernel_3.zip
[HTC EVO 3D] SketchyStunts:
Still can't get it to come online. Checking system monitor & DJ'ing my notification bar up & down. Lol