yashsingh1/xdaforums huggingface dataset:
[Xiaomi Mi 4C] solis_f:
Well I changed selinux for miui no problems here. What was the issue?
[Xiaomi Mi 4C] waingro808:
Pretty much same as stable. Used OP's script for both.
[Xiaomi Mi 4C] naaiil:
can you upload the script which you edit to enable init.d from gov tuner? because im not expert about script..

thanks..
[Xiaomi Mi 4C] GoldGanja:
I was able to change selinux status too, but couldn't get any statistics from the app. So i couldn't know if it was working or not...

Meh, i'll be a bit upset if someone uses part of my work without asking...so, i can't upload the script (BTW i didn't edited it).

But i can tell you where to find it! Basically the GovTuner project use this script to enable init.d from another xda member

Init.d enabler @ stock kernel / ALL DEVICES / NO BUSYBOX needed

Flash it and you should be good, don't forget to report back!
[Xiaomi Mi 4C] naaiil:
thanks.. will try asap..

Edit: init.d enabler works but i think your script not works, because TAO.log not found.. Try sleep 5 and 120, TAO.log still not found..
[Xiaomi Mi 4C] GoldGanja:
Check /data/system/perfd/default_values and compare it with the one in the OP.
[Xiaomi Mi 4C] ppr01:
Wow thanks for this. I had Mi4c a few days ago and I'm on stable xiaomi eu 7.5.4 rom. Will try this. Using the initd method. No TAO.log found but the default_values are change and the same with the one in OP. Will feedback later this week for the performance.
[Xiaomi Mi 4C] GoldGanja:
It seems that tao.log is not created if the script is executed during the boot, but if you try to run the script manually it will be created... really odd :confused:. Have to investigate.

Anyway just an update on personal battery life ... a couple of post ago i've shared some screenshots...this is what i get when battery is almost done ( 7% left)

Tomorrow i'll try to push v0.9 plus the modded ts_power.sh for the CM TS 13.1 version.

Feedback are always welcome!!! :highfive:
[Xiaomi Mi 4C] AceStroke:
I know this is a complete different subject but i'm using your script on MIUI EU Weekly and saw that you 're using CM TS, hows the sound quality of this ROM using earphone? And do you know If Viper4android Works?

Because my main reason for using MIUI is audio and camera drivers, the quality is just so much better than CyanogenMod ports...

But the battery life on CM TS is so tempting...
[Xiaomi Mi 4C] waingro808:
Definitely better than stock; thanks OP! Fairly happy with these results, but still not a solid 2 day battery life. Dual SIM, Wifi, bluetooth, mobile data on all the time except when sleeping. All battery saving options turned off in Globe ROM MIUI 6.11.10. I don't want to accept that I have to charge this phone every day :( Tempted to try CM now...
[Xiaomi Mi 4C] nachtwacht:
Maybe a stupid idea... but do you realy need GPS on all day ? Can not imagine you are using it all day... I actualy can also not imagine that the GPS is actualy using power when the screen is off. Very curious if it would make a difference if you would turn the GPS setting off all day and only turn it on if you realy need it (the app needing it will do it automaticaly I think)
[Xiaomi Mi 4C] waingro808:
GPS is not on all day. Look at the picture. What are you talking about?
[Xiaomi Mi 4C] nachtwacht:
**** in my eye's :)

I was referring to the green line, misread the picture :)
[Xiaomi Mi 4C] solis_f:
Do you know where the default values are stored in cm roms? I mean when you have no script applied or anything, where does the rom find the default stock values in a cm rom?

Edit: Found it! [MENTION=4440904]GoldGanja[/MENTION] a little request here. Can you please make a same profile like 0.8 but with a little bit more performance oriented? Something like ButterFly profile from sonicron

Edit 2: Check this out! I have found it in the chinese mi4c miui forum

https://drive.google.com/open?id=0By5PHlhkGX-oTWpiOXBHaHkxdmc
[Xiaomi Mi 4C] ppr01:
agree to this. want to also try butterfly too.
[Xiaomi Mi 4C] GoldGanja:
Sorry guys, not very active this days cuz of work! Coming back soon!!! Anyway [MENTION=6537267]solis_f[/MENTION] the startup config of the governor is indeed inside the init.qcom.post_boot.sh, even in miui rom is there.

You want a mi4c version of butterfly? i can do that but don't see the point, just use butterfly as it is... anyway i can arrange that.
[Xiaomi Mi 4C] solis_f:
Not really a butterfly! I can apply that myself if I want to, no point in asking you to do that for me :p But something a just a little bit more aggressive than your script. I love your work on 0.8 bit I noticed some stuttering from time to time.
[Xiaomi Mi 4C] GoldGanja:
LoL ok ok, just wait for v0.9 and we'll see how that go... :fingers-crossed:
[Xiaomi Mi 4C] solis_f:
:highfive: thanks a lot! If you need anything just pm me!
[Xiaomi Mi 4C] waingro808:
Agree, there is some stuttering and lag in v0.8.
[Xiaomi Mi 4C] djtutis:
I can confirm that there is shuttering and lag in v0.8...
[Xiaomi Mi 4C] ppr01:
Still can't make my battery last at least a day. I think I'm not that of a heavy user. I only had 3 hours SOT with 9% left. Data was only used atleast 6 hrs. Had a couple of messaging apps (FB, Messenger, Viber, Telegram) Spotify when riding going to and off to work only. Not an hour of emails,browsing and videos. I'm on MIUI.eu 7.5.4 stable.

Also this got me confused. Used Ex Kernel Manager and didn't saw the Touchboost option. The kernel setting based on Nexus5x (listed in OP) must turn off the Touchboost to benefit from the settings. Does this mean your script won't work? Is Mi 4C really supported?
[Xiaomi Mi 4C] DJTOMATO:
Hello

Would anybody provide a tutorial to install this? i have xiaomi.eu_multi_MI4c_6.11.17_v8-5.1. ROM

thx
[Xiaomi Mi 4C] solis_f:
Our kernel does not support touchboost so no need to turn it off. It's not there by default. The script will work exactly as said just ignore the touchboost part!

just place the tao file in the /system/etc/init.d folder and give it 755 permissions
[Xiaomi Mi 4C] DJTOMATO:
so what's with thermal-engine-8992.conf then?
[Xiaomi Mi 4C] solis_f:
Oh sorry I forgot about that! Place it in system/etc and replace the old one
[Xiaomi Mi 4C] DJTOMATO:
i rebooted and there's not TAO.log :confused::confused:
[Xiaomi Mi 4C] solis_f:
Check here /data/system/perfd/default_values
[Xiaomi Mi 4C] DJTOMATO:
Thanks for the help, Im trying this in a phone with CYANOGENMOD 13.1, it seems init.d is not enabled, so im using kernel auditor.

1. There is no TAO.log in /data/system/perfd/default_values or in sdcard/

(it only appears when i apply it manually)

2. i double checked the apply on boot setting but it seems the script only applies when i do it manually.

3 is there any way to automate this? and how to confirm it's really applied?

4. in data/system/perfd/ default_values does not exist perfd folder is empty
[Xiaomi Mi 4C] solis_f:
Check if there is system/su.d

If yes put the tao file in there and reboot! Check with kernel auditor if the values are applied
[Xiaomi Mi 4C] DJTOMATO:
there is no system/su.d
[Xiaomi Mi 4C] solis_f:
Check few pages back. GoldGanja says something about cm13.1 working differently from miui
[Xiaomi Mi 4C] reddsmokee:
I appreciate your work but you are not guilty. The worst battery life that i've ever seen. It's something like 1000 mah.
[Xiaomi Mi 4C] :
Working but there is some stuttering and lag in v0.8. v0.7 there is less lag or is equal?
[Xiaomi Mi 4C] waingro808:
Much less
[Xiaomi Mi 4C] :
I'll give it a try. Thank's for the reply. Finally this phone last's for a day :fingers-crossed:

14h of batery. 4h of screen. wi-fi and mobile data almost always on. and hard use. facebook messenger used almost 20% of batery so... and 16% batery remaining
[Xiaomi Mi 4C] Cozzmy13:
That's... bad. It's really not a good screen on time or battery time.

Here's my Mi4c

http://i.imgur.com/Lj0yHtl.png

http://i.imgur.com/s6a7clT.png

http://i.imgur.com/nDkQaAx.png
[Xiaomi Mi 4C] waingro808:
Well good for you, but his results aren't bad. Everyone has their own usage.
[Xiaomi Mi 4C] andrei80:
Did you disable gsm for the last half of the day? That's when the plunging battery curve has settled...that's cheating :)
[Xiaomi Mi 4C] Aladar42:
Any way to uninstall this? Sincenapplying battery life shrank to 3 hours or so.
[Xiaomi Mi 4C] waingro808:
delete the file
[Xiaomi Mi 4C] Aladar42:
Can't. The file manager won't let me, even in root mode. I also had to install it thru shell, not just copying the file into init.d
[Xiaomi Mi 4C] :
I have init.d suport and it's working. Now the stupid question. If I remove the root, it will keep working or not?
[Xiaomi Mi 4C] nevland:
sorry newbie question here, if my perfd folder has no default_values what should i do.. tq
[Xiaomi Mi 4C] wenjian065:
i like this but i am cm12.1 and data/deffault_values must this value??
[Xiaomi Mi 4C] andrei80:
Just tried this script via Kernel adiutor. Had to also install busy box to make it work.

The effect seems a little odd to me. All cores seem to at 600/633(little/big) instead of 3xx as default, none would stop unless temperature got too high and a big core stopped and script was not applied at startup, had to execute it manually. Is that normal? I have last weekly MIUI from xiaomi.eu 6.12.15. Thank you!
[Xiaomi Mi 4C] solis_f:
Check permission for kernel auditor to start on boot. Also if using the first script, v0.7, the frequencies are normal
[Xiaomi Mi 4C] andrei80:
0.7 , thought beta means possible bugs... Also thought allowing CPUs to idle lower was better for power saving. Is 0.8 safe to use in MIUI 8.1?
[Xiaomi Mi 4C] waingro808:
Yes, it's safe, but phone is noticeably slower with v0.8.
[Xiaomi Mi 4C] solis_f:
[MENTION=4440904]GoldGanja[/MENTION]

I haven't tried your new 0.9 script but I'm going to and I will send feedback here!

Just a quick question though: Sched_downmigrate value never gets changed for me using your scripts. Is it just me? Any suggestions? Thanks in advance and for your efforts!
[Xiaomi Mi 4C] djtutis:
I can confirm that 0.9 version is the the smoothest of all... Battery life is the same as 0.8...
[Xiaomi Mi 4C] GoldGanja:
Only sched_downmigrate? this is odd, i double checked the syntax but no error found... is it possible that somehow with another tool you have changed the permission to that file?

Try to change it manually via terminal and see what the shell response is...
[Xiaomi Mi 4C] solis_f:
This what I get, it seems to that permissions cannot be changed.

This was happy ever since I got this phone, no matter the ROM. It was always been like that.
[Xiaomi Mi 4C] solis_f:
Sorry forgot the picture!
[Xiaomi Mi 4C] solis_f:
Also tried this but it doesn't make a difference!
[Xiaomi Mi 4C] solis_f:
Sorry wrong picture... Why can't I edit/add pictures through xda labs app?
[Xiaomi Mi 4C] GoldGanja:
if you "stat -c %a" the file... what is the current permission level?

1|root@libra:/proc/sys/kernel # stat -c %a sched_downmigrate
644

this is mine...plus check if the file owner and group owner are correct

root@libra:/proc/sys/kernel # ls -la sched_downmigrate
-rw-r--r-- 1 root root 0 2017-01-02 11:58 sched_downmigrate

sched_upmigrate works? crosscheck with that.
[Xiaomi Mi 4C] solis_f:
the commands return the same results. It's weird, after some testing I see that it sometimes gets applied and some others not ! By the way how do you come up with this values? I'm interested and governor tunable values tweaking. If you have in mind any good read that explains how to calculate these values, please share or PM me ! Right know I'm experimenting with full 6 core hot-plugging. If it turns out to be good, I will definitely share here too.

Edit: It seems that when I execute the script manually everything gets applied fine. When I let it apply itself through init.d the /proc/sys/kernel values are getting messed up. Sometimes it is upmigrate, sometimes downmigrate, sometimes both.

Also, minimum 633600 MHz for big cluster sometimes gets applied sometimes not, but most of the times not (But most likely it's just not detected by EX Kernel Manager since big cluster is almost always off)
[Xiaomi Mi 4C] andrei80:
Tried version 0.9. Little cores idle at 384, big cores stay offline while not needed and GPU idles at 180mhz, so all seems fine. Phone subjectively seems a bit slower when scrolling(in Facebook, where there are autoplaying movies mostly). Battery drain overnight doesn't seem better, it still burns about 1%/hour whick sucks...my last phones lost 1%/night. SOT seems a bit improved(Miui 8.2 weekly, about 3,5h default vs about 4h with script). Antutu performance decreased from 70+k to 61k. It might be more consistent though...

Just updated the rom last night and it unrooted automatically so I am using it without script for now(Kerned adiutor doesn't work without root, so settings don't apply)
[Xiaomi Mi 4C] IcyGlacial:
im using v0.9 on cm 13 ts, i have no perfd file, is it normal? [MENTION=4440904]GoldGanja[/MENTION]

---------- Post added at 03:59 PM ---------- Previous post was at 03:58 PM ----------

btw i get 5hrs ++ sot with wifi use and 4g sometime with this tweak and thermal config
[Xiaomi Mi 4C] waingro808:
TS CM13 already does most of the same things, such as turn off big cores and GPU idle at 180mhz, so no real point in using this script. Check CPU-Z app.
[Xiaomi Mi 4C] :
Can we use it on nougat releases? Battery drain remains with the new version and this script helped me a lot in lollipop
[Xiaomi Mi 4C] Panic84:
I tested last script and is very laggy in scrolling. Miui7 (5.1) Gpu I think is the problem
[Xiaomi Mi 4C] liddx:
Seems like this thing is broken. Nice try though.
[Xiaomi Mi 4C] eginugraham:
Mine are not saving,

Tried emulate init.d and then copy paste the script as you said, and save icon, but theres no saved items there, what did i miss?
[Xiaomi Mi 4C] _igaum:
Does this script help with overheating?
[Xiaomi Mi 4C] _igaum:
PLEASE how can I check if the script was applyed?
[Xiaomi Mi 4C] Yosh2897:
I cannot copy that file, why? I'm using x-plore but it won't copied
[Xiaomi Mi 4C] halftwistlanc3:
i cant find TAO.log on sd i just manually paste the file to init.d from sdcard ang the thermal.conf in etc as well what about the permission of script after pasting? is there anything i need to change ?
[Xiaomi Mi 4C] wkobaint:
It means the script not running.

I think using kernel adiutor is the most easy step.

You just see the step on the OP.

Better do not changes your's default thermal config to safe your devices from over heating.

In my experience, with the last update config it's quite good for daily gaming and chatting.
[Xiaomi Mi 4C] Gekass:
Hi,

Is the script compatible with aicp 12/13.1 rom?
[Xiaomi Mi 4C] wkobaint:
Yup. It's compatible
[YU Yureka Q&A, Help & Troubleshooting] Arun yu:
I am Using Custom Roms From Last 5 Months. I ve installed cwm recovery in My yu yureka. Recently changed my Custom ROM To CR droid. It was Going smooth and neat. I Got bored of CR droid. Tried To change my ROM to miui Through cwm Got bootloop

Then I have restored my old CR droid ROM through cwm. And then I flashed Twrp 3.0 . and again I tried to flash miui ROM again got bootloop. And then again restored to CR droid which I have backed first. And then downloaded the Resuccurtion remix ROM and flashed through Twrp it booted up. And again I tried flashing miui Through Twrp. Phone started restarting again and again continuously and then went to my recovery tried restoring my old ROM phone booted up and I was using the same ROM. Next morning when I wake up phone rebooting again and again. Went to recovery , tried cleared system / factory reset Phone still rebooting. Made clean wipe flashed new ROM phone still rebooting

Don't know what to do. Then I flashed stock ROM using fastboot mode , flashed successfully phone booted up after completing setup wizard the phone started rebooting Help me to get rid out of this thanx :good:

Sorry for long explanation
[YU Yureka Q&A, Help & Troubleshooting] fakhrul__hasan:
I have same problem here after miui 8

waiting for solution

hope someone will solve
[YU Yureka Q&A, Help & Troubleshooting] 221Bhadru:
I have a similar case my device is in bootloop untill charger is connected.

I had similar(all most same) trouble you mentioned before and my bad luck i still dont have a solution :crying:
[Android Q&A, Help & Troubleshooting] AayAayRon:
Can someone please provide me a list of bloatware and apps of the xolo era 4g which are okay to uninstall after root?

Thank you
[Android Q&A, Help & Troubleshooting] CheifX:
I can do that

Yes I will love to answer but first tell me which Android version you have rooted:o
[Android Q&A, Help & Troubleshooting] AayAayRon:
I had just rooted again couple of minutes ago. It's Marshmallow

Android version: 6.0

Thanks for your help :) appreciate it :victory:
[Upgrading, Modifying and Unlocking] raffoaddicted:
Hi all,

I need to flash a factory image on my phone (Gnex maguro).

I found the latest factory image from Google, but I can't use fastboot because as soon as I connect my phone to a PC with a USB cable, it shuts off immediately.

Is it possible to flash a factory image from within a custom recovery (like twrp or cmw)??

Or, at least, is it possible to flash a bootlader image file *.img without using usb cable?

Thanks,

mattia
[Upgrading, Modifying and Unlocking] mrao:
If you have the latest twrp, you have an option to switch between zip and img files
[Remix OS for PC] vk5po:
I love this REMIX OS!!! how good is this !!!

I want to know how to add my HP 8100 SFF elite to the kernel? so that I can get the MOST out of this system.

There are MILLIONS of these PC's on auction sites here in Australia. (probably in most other countries too!!!)

FAMILY 6 MEMBER 37.... i5-650 4 core. It looks very much like the OS uses only one core currently.

I also see a PBLK length error [7]

and a intel_rapl: driver not loaded message on boot up too. ANY ADVICE appreciated guys!!

ALSO would love to use the APP PERISCOPE which actually works PERFECTLY for watching videos, but there is a 5 second DELAY and vey slow FPS

when TRYING to do live video broadcasting.

Any help, advice etc, SINCERELY APPRECIATED.

thanks guys.

John McRae,

LEWISTON , South Australia
[Remix OS for PC] vk5po:
Well that worked..... I guess it is back to windows then............... jeez
[Galaxy S 4 Mini Q&A, Help & Troubleshooting] DoriGuy:
Hello friends,

I flash my s4 mini LTE to that info:

Android version: 6.0.1

CyanogenMod version: cm-13.0-20160418-SNAPSHOT-ZNH0EAO2NJ-serranoltexx

Baseband version: I9195XXUAMF5

Kernel version: 3.4.0-cyanogenmod-gaafcf07 blinky@cyanogenmod #1

1. Since the first day I saw that the NFC is not working.

2. I can count my apps on my two hands because of the ROM that took more than 3GB for the installion files (GAPPS not take so much as far as I know), the bottom line that I don't have enough free space, some numbers: when I connect my phone to laptop I can see that I have less than 100MB free space from 5.32 GB. As you all know the phone have 8GB memory.

When I had the stock ROM of samsung those problems wasn't take part of my day :(

I'm thinking to flash again to stock ROM-it will help? it will destroy the phone (return from 6 to 4)?

Any solutions? :confused:

Thank you for your time
[Xperia Z3 Compact Themes and Apps] bamsbamx:
Be careful

: Only tested by myself in original 23.5.A.1.291 FTF (Android Marshmallow 6.0.1)

This MOD includes:

-Add new Calculator icon to Navigation Bar (shortcut)​

-Add new Music icon to Navigation Bar (shortcut). Allows to choose which app start​

-Move Status Bar clock to the left side​

Steps for installing:

0.-BACKUP YOUR SYSTEM + DATA (IMPORTANT: just in case...)

1.-Copy attached SystemUI.apk to /system/

2.-Set -rw-r--r-- (0644) permissions IMPORTANT

3.-Move that file to /system/priv-app/SystemUI/ and replace the old one

4.-Reboot

If there is anyone interested, I can publish a little tutorial about how to do it and/or publish a Git repo with commits over the original SystemUI APK source

I would like to take the opportunity to announce two of my apps published in the Google Play Store :cool:

Pixel OFF Battery Saver (actually works on LED displays, so has nothing to do with Z3C)

https://play.google.com/store/apps/details?id=com.anrapps.pixelbatterysaver

Disable Application (Lets disable any app with just ONE click and place widgets to quickly toggle enabled status of any app)

https://play.google.com/store/apps/details?id=com.iamaner.oneclickfreeze

Hope you enjoy the MOD... Have a nice day!:fingers-crossed::fingers-crossed:
[Xperia Z3 Compact Themes and Apps] zsszeli199417:
Calculator shortcut isn't working for me on SliMM 3.8. Otherwise.. this little mod is great! :good: :)
[Xperia Z3 Compact Themes and Apps] bamsbamx:
Maybe its not working because you are using the Sony stock calculator. I installed (replaced the stock one) the cyanogenmod calculator and it works
[Samsung Galaxy S7 Questions and Answers] rino757:
I've got the SM-G930UZKAXAA arriving today and after a ton of searching, I can't figure out if there's a stable root for it. Do I use the AT&T method with the engineering image for that device?

Also is there just one thread that has solutions for all the problems rooting seems to be giving it?

Honestly I don't even need root that badly, I just want to use Titanium Backup to bring over my apps from my Oneplus 3, since Helium won't work on an encrypted device.
[Samsung Galaxy S7 Questions and Answers] Calku:
Yes, follow AT&T root directions with EngineeringBoot for G930U. The only problem I had was the wifi saving. There's a couple different ways to fix that. I used S7_or_S7Edge_Fixes_Debloater_V15.zip from: http://xdaforums.com/verizon-galaxy-s7/how-to/how-to-notes-root-install-xposed-unroot-t3411039.
[Galaxy S III Q&A, Help & Troubleshooting] xela1989:
Hello everyone!

I have a small problem that I would like to solve.

I have a Galaxy S3, who has a broken display and then completely unusable.

Now I want to recover the data within it, both from the internal memory to the external one. Most online guides always suggested to enable this blessed "USB debugging", but if the screen is broken, how do I activate it?

So I ask here on the forum, if anyone knows an alternative way to recover the data with broken display (which is not DrFone and companions).

I hope you can help me.

PS: I just found out that it is well locked (by pin or unlock). Therefore even more complicated :( :(

PROBLEM SOLVED:

Well folks, since no one responded, I help you! :)

The problem was solved in a very simple:

Practically we put the screen of another S3, this way of display we could see what we were doing.

Because it was locked with password, after we installed a revocery (CWM or TWRP) and have them mounted the internal memory on the PC (USB Storage Mount), transferred all the data. After we put in Download mode smartphone and a firmware put Odin to remove the block given by password or unlock pattern. Done all this, we then reset the cell as "new", mounted the old screen (the broken), and the end! The everything with simplicity and speed.

I hope to be of help. To ask questions!
[P3300, MDA Compact III General] QuasiCodo:
I'd like to programmatically unload the wifi driver, tnetwln.dll.

In my development efforts, I found that MiniportInitialize() is called only during boot of the P3300. When I use CommManager to disable the wifi, it seems like it only powers down the radio, but does not unload the driver. When I reenable the wifi via CommManager, MiniportInitialize() is not called -- again supporting the idea the driver stays loaded.

I guess this is because the physical device, the TI wifi chip is actually embedded on the board and not truely removed. I am also guessing that the SDIO bus class driver will not unload a device unless it is physically removed.

From my work on SDIO in the past, I seem to remember there is a SDIO register which powers down a slot. If I can do this, it may induce the unload of the driver. Does anyone know of a way to power down a SDIO slot on the P3300?

thx,

((&->