yashsingh1/xdaforums huggingface dataset:
[Redmi Note 2 General] cafezeenuts:
[MENTION=5952980]jajk[/MENTION] I've been using your skinny miui for the last few days now, its been great so far with no FCs.

But I'm having some issue getting zram to work.

This what i type in the script

echo 536870912 > /sys/block/zram0/disksize
# /system/bin/tiny_mkswap /dev/block/zram0
# /system/bin/tiny_swapon /dev/block/zram0

When i type "free" in terminal app swap is 1048560

What am I doing wrong?

Cheers
[Redmi Note 2 General] jajk:
[MENTION=2771703]cafezeenuts[/MENTION] Check that you have tiny_mkswap and tiny_swapon in /system/bin. If not, download from the link below and put them there with 0755 permissions of course.

Uncomment the 2nd and third lines, reboot and you should be good. Typical free mem should be around 1.2GB as reported by the MIUI task manager (short press menu button) once background tasks are cleared.

Missing zram commands:

https://drive.google.com/open?id=0BwdRTuyj12_yMG42UF9VNzh2azQ

There is a script /system/bin/init.atmel_ts.sh that is called from init.rc on every boot. I think this is intended for another device like so many things in this boot image.

I have renamed this on my phone so it will not run and can't see any side-effects so far. Can someone else try this out and report back? If it proves to be another useless entry, I will disable it in init.rc in future boot.img

Any feedback on the GPS problems??? Does adding back tunman fix it?

Further on the previous post about changing timer_rate value. If anyone wants to try this, just drop the value down in increments of 1000 until you get to a point where the idle starts spending more time floating around 806MHz and then go back up in value till it sits back on 403MHz most of the time. I have settled on 35000 as the new best value for being fully skinny on latest boot.img.

Remember you have to re-execute the script before changes take effect:)

Notice: A new boot.img is just around the corner once feedback is in on GPS issue fixed or not and init.atmel_ts.sh question answered. There is no more juice left to squeeze out of the boot.img after that:(
[Redmi Note 2 General] slumslayer:
Still not working :

New boot.img

Older, without lastest modifications

There is no 'searching for GPS' notification, nothing to indicate that it's trying to get a GPS fix.

With the older image, it get a fix directly, and there is a GPS location notification.

Hope that helps!
[Redmi Note 2 General] jajk:
[MENTION=4229343]slumslayer[/MENTION] Can you have a look at the locales referred to in default.prop of the new and old image? I changed it from the original China to Australia/Brisbane but someone else changed it to Europe/London when other mods were made. It could be the start of WWIII if this keeps up;)

Like I say, GPS works for me so it has got to be something else which could be the locale?
[Redmi Note 2 General] exiacruzalta:
i have disabled the init.atmel_ts.sh and flash. boot up fine,no crashing and as far as i used the phone the apps still work. no problem i guess :p one more thing, the kernel version shows unavailable.. is that normal?
[Redmi Note 2 General] cafezeenuts:
[MENTION=5952980]jajk[/MENTION] So this is what should be in the script?

echo 536870912 > /sys/block/zram0/disksize

/system/bin/tiny_mkswap /dev/block/zram0 /system/bin/tiny_swapon /dev/block/zram0

I have tiny_mkswap and tiny_swapon in /system/bin. Set 0755 permissions

reboot and free mem is around 1.2GB as reported by the MIUI task manager.

But in terminal is still showing swap is 1048560 0 1048560

It's that normal?

Cheers
[Redmi Note 2 General] jajk:
[MENTION=2771703]cafezeenuts[/MENTION] Exactly like the following:

echo 536870912 > /sys/block/zram0/disksize

/system/bin/tiny_mkswap /dev/block/zram0

/system/bin/tiny_swapon /dev/block/zram0

Terminal should show 524284 as the size.

[MENTION=7287632]exiacruzalta[/MENTION] That kernel is from 6.2.25 and doesn't report a version for some reason.

I am rebuilding a boot.img to solve the GPS issue faced by some so watch this space.
[Redmi Note 2 General] DarthJabba9:
That is not the cause of the problem. I have already tested that.
[Redmi Note 2 General] slumslayer:
Attached is a diff between the version with GPS and the one without

Maybe this part ? I'll give it a try and comment it in my boot.img to see if it's the culprit

EDIT: I've modified my image so that the only diff is this one (in init.mt6795.rc), it definitely is the culprit! Without it, no GPS.

-service agpsd /system/bin/mtk_agpsd
- class main
- socket agpsd stream 660 gps system
- socket agpsd2 stream 660 system inet
- socket agpsd3 stream 660 system inet
- user gps
- group gps inet sdcard_r sdcard_rw misc radio
-
-service wifi2agps /system/bin/wifi2agps
- class main
- user wifi
- group gps inet
-
-service mnld /system/xbin/mnld
- class main
- user gps
- group gps inet misc sdcard_rw sdcard_r media_rw system
- socket mnld stream 660 gps system
[Redmi Note 2 General] exiacruzalta:
waiting for it m8 :highfive:
[Redmi Note 2 General] jajk:
[MENTION=4229343]slumslayer[/MENTION] Exactly the problem. That chunk is a mystery deletion - certainly not intentional.

[MENTION=7287632]exiacruzalta[/MENTION] Wait no more.....

This boot image fixes the GPS stuff up plus disables the atmel script and a couple of repeats paired back to single entries. I can't see any more reductions so if there are no faults, this is final for the boot.img.

https://drive.google.com/file/d/0BwdRTuyj12_yVFRfdVVKT3NkNlE/view?usp=sharing

By default, you now all live in Brisbane Australia which beats London or Shanghai hands down:D
[Redmi Note 2 General] exiacruzalta:
lol going for the kill :silly: testdrive time :D
[Redmi Note 2 General] cafezeenuts:
[MENTION=5952980]jajk[/MENTION] I have try everything, still no luck on the zram showing up in terminal as 524284 in swap. I give up lol...

Here is my script I'm using maybe there is something wrong with it.

#!/system/bin/sh

echo 806000 > /sys/devices/system/cpu/cpufreq/interactive/hispeed_freq
echo 80 > /sys/devices/system/cpu/cpufreq/interactive/go_hispeed_load
echo 90 403000:75 806000:80 1183000:84 1326000:88 1469000:92 1625000:96 1781000:99 > /sys/devices/system/cpu/cpufreq/interactive/target_loads
echo 40000 > /sys/devices/system/cpu/cpufreq/interactive/timer_rate
echo 10000 > /sys/devices/system/cpu/cpufreq/interactive/min_sample_time
echo 20000 > /sys/devices/system/cpu/cpufreq/interactive/above_hispeed_delay
echo 10000 > /sys/devices/system/cpu/cpufreq/interactive/timer_slack

echo 1781000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
echo 1781000 > /proc/cpufreq/cpufreq_limited_max_freq_by_user

echo deadline > /sys/block/mmcblk0/queue/scheduler
echo 256 > /sys/block/mmcblk0/queue/read_ahead_kb

echo 536870912 > /sys/block/zram0/disksize
/system/bin/tiny_mkswap /dev/block/zram0
/system/bin/tiny_swapon /dev/block/zram0

echo 300 > /proc/sys/vm/dirty_expire_centisecs
echo 500 > /proc/sys/vm/dirty_writeback_centisecs

echo 512 > /proc/sys/kernel/random/read_wakeup_threshold
echo 1024 > /proc/sys/kernel/random/write_wakeup_threshold

echo 1 > /proc/sys/net/ipv6/conf/wlan0/disable_ipv6
[Redmi Note 2 General] DarthJabba9:
With this version, GPS now works - whether we claim to live in Shanghai or Brisbane or London (I believe it was already established that this was not the cause of the problem).
[Redmi Note 2 General] Xabadou:
Have you a blank line at the end of the script?
[Redmi Note 2 General] DarthJabba9:
[MENTION=2771703]cafezeenuts[/MENTION] The zram0 stuff doesn't work here either.
[Redmi Note 2 General] jajk:
[MENTION=5850987]DarthJabba9[/MENTION] It does make a difference if you live in Brisbane or thereabouts - you don't need a weather app because it is beautiful every day:)

I am certainly not suggesting that you had anything to do with the stuff up - it was all me:(

[MENTION=2771703]cafezeenuts[/MENTION] The script looks O.K, check what Xabadou mentioned. It is something wrong your end as others definitely have zram working as do I.

You need to confirm that init.d script has actually run by navigating to /sys/block/zram0/ and making sure disksize reads 536870912.

If you are on an earlier version of boot.img, I recommend updating to the latest one back a few posts.
[Redmi Note 2 General] cafezeenuts:
[MENTION=6199310]Xabadou[/MENTION] Yes there is a blank line at the end of the script. CPU limit is working fine so i know the script is working, but the zram is not working me.

[MENTION=5850987]DarthJabba9[/MENTION] Good to know its not only me having some trouble on that issue, could it be that it only works on specific roms???

BTW i'm using 7.1.4 china stable rom.
[Redmi Note 2 General] jajk:
[MENTION=2771703]cafezeenuts[/MENTION] So am I. So what is the difference that it works for me on the exact same 3 lines? You will already have had the 3 files so no need to replace them? double check permissions set to 0755 and owner set to root shell if they were replaced.

You previously reported terminal showing around 1GB swap which will be the mobiservice / mcd service still active (now disabled in new boot.img). That may be your only problem?
[Redmi Note 2 General] exiacruzalta:
yeah, probably the mcd mobicore still running as mine shows swap 0 0 0 until i uncomment the two lines in the script. Thanks [MENTION=5952980]jajk[/MENTION] for the new boot, runs well but need to wait and see as i reflash the rom for this last boot image to see the performance. at least i know my boot runs cleaner, other maybe placebo :p
[Redmi Note 2 General] jajk:
[MENTION=7287632]exiacruzalta[/MENTION] Placebo free zone - leave that for others. Every change is done for a reason.

It could be for reduced boot time, less wear on memory, reduced memory usage, lower background activity, close backdoors to China or higher performance.

Not everything can be measured in performance terms.

The big problem is that we adapt to the new level of performance too quickly and forget how crap the original is:)
[Redmi Note 2 General] cafezeenuts:
[MENTION=5952980]jajk[/MENTION] I have reflash the rom with your new boot image.

Swap in terminal is showing 0 0 0 now.

I have check all the 3 files (tiny_mkswap, tiny_swapon, & tiny_swapoff are in/system/bin, check permissions set to 0755 and owner set to root and group set to shell.

/sys/block/zram0/disksize reads 0
[Redmi Note 2 General] exiacruzalta:
i remember the persist.qualcomm entry :p yeah, the time i realised the significance of this kernel slimming is when i accidentally flashed the original rom, and my phone go crap :silly: and one more thing, the xposed framework is usable now. i used amplify and fix memory leaks. its still applicable for our 5.0.x rom right?

---------- Post added at 06:36 AM ---------- Previous post was at 06:34 AM ----------

have you uncomment the last two line?

# /system/bin/tiny_mkswap /dev/block/zram0 <---- remove #
# /system/bin/tiny_swapon /dev/block/zram0 <---- remove #

i did that and it works :D
[Redmi Note 2 General] cafezeenuts:
[MENTION=7287632]exiacruzalta[/MENTION] Yeah I have try that, didn't work for me >_<
[Redmi Note 2 General] DarthJabba9:
Same here ...
[Redmi Note 2 General] jajk:
[MENTION=2771703]cafezeenuts[/MENTION] This is my current tweak file. Since you are very close to the same setup I suggest trying my revised values for Interactive.

I assure you that zram works just fine. What are you editing your file in? On phone or PC? Copy and paste my text over the top of yours to negate any typo that we cannot see.

#!/system/bin/sh

# Tweak CPU Governor

echo 806000 > /sys/devices/system/cpu/cpufreq/interactive/hispeed_freq

echo 85 > /sys/devices/system/cpu/cpufreq/interactive/go_hispeed_load

echo 90 403000:81 806000:84 1183000:87 1326000:90 1469000:93 1625000:96 1781000:99 > /sys/devices/system/cpu/cpufreq/interactive/target_loads

echo 35000 > /sys/devices/system/cpu/cpufreq/interactive/timer_rate

echo 20000 > /sys/devices/system/cpu/cpufreq/interactive/min_sample_time

echo 20000 > /sys/devices/system/cpu/cpufreq/interactive/above_hispeed_delay

echo 20000 > /sys/devices/system/cpu/cpufreq/interactive/timer_slack

echo 1781000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq

echo 1781000 > /proc/cpufreq/cpufreq_limited_max_freq_by_user

#Tweak VM

echo 300 > /proc/sys/vm/dirty_expire_centisecs

echo 500 > /proc/sys/vm/dirty_writeback_centisecs

#Enable 512MB zram

echo 536870912 > /sys/block/zram0/disksize

/system/bin/tiny_mkswap /dev/block/zram0

/system/bin/tiny_swapon /dev/block/zram0

# Tweak IO Scheduler

echo deadline > /sys/block/mmcblk0/queue/scheduler

echo 256 > /sys/block/mmcblk0/queue/read_ahead_kb

#Tweak Entropy

echo 512 > /proc/sys/kernel/random/read_wakeup_threshold

echo 1024 > /proc/sys/kernel/random/write_wakeup_threshold

#Tweak for wifi router connection issues

echo 1 > /proc/sys/net/ipv6/conf/wlan0/disable_ipv6

#FSTRIM

#fstrim /data

#fstrim /system

#fstrim /cache

[MENTION=7287632]exiacruzalta[/MENTION] Are you talking about normal Xposed framework or the Solar modified one? Not that I want to run exposed on MIUI - already enough layers on top of O.S for me.

Just did a few hours with wakelock detector running to spot any residual nasties but it is looking pretty clean. See anything in Amplify that shouldn't be running?
[Redmi Note 2 General] cafezeenuts:
I have also try jajk zip file containing the 3 tiny_ files...
[Redmi Note 2 General] exiacruzalta:
thats weird, try using my script

[MENTION=5952980]jajk[/MENTION] the Solarwarez one. Your phone is cleaner than mine as i still use Google apps and services and man the apps report so much wakelocks from those Google apps only :crying: the memory leak still there right?as we use 5.0.2 lollipop
[Redmi Note 2 General] jajk:
[MENTION=7287632]exiacruzalta[/MENTION] Did you intentionally want the 2 lines commented out in your script or do you need those uncommented for zram to work?

I have a few Gapps related bits running but the absolute minimum to give me Play Store functionality. I barely tolerate the pervasive behavior of Gapps but the bigger concern was all the china apps trying to make like E.T and call home. They are mostly silenced now:)
[Redmi Note 2 General] cafezeenuts:
[MENTION=5952980]jajk[/MENTION] Thanks for posting your script, i have copy and paste and edit both from phone es file explorer and PC its still not working :(
[Redmi Note 2 General] exiacruzalta:
oops sorry, i posted the original script :p i had uncommented those in my new script but i know those script works so maybe like you said some unseen errors so i'm giving the one i know will work (hope so :D ) well if you guys use mine please uncomment the two lines :) Those china apps has long gone :D only gapps remain lol :highfive:
[Redmi Note 2 General] jajk:
[MENTION=2771703]cafezeenuts[/MENTION] [MENTION=5850987]DarthJabba9[/MENTION] I really do not know why zram is not working for you. If there is a breakthrough, please post cause and solution so others can benefit.

Can someone else report that they have zram working using the method described? So far I know 3 say yes and 2 say no so there is something weird going on.......

Maybe if you set locale to Australia/Brisbane all will work just fine;)

[MENTION=7287632]exiacruzalta[/MENTION] China apps not all gone till tunman disabled
[Redmi Note 2 General] exiacruzalta:
lol, how the locale affects the zram? :D

hmmmm, the tunman is tied to the data saver right?it is tied to a system apps, like Whetstone tied to battery/power saver. last time i removed whetstone, the crash popup fiesta happen :crying:
[Redmi Note 2 General] navvvu:
Hi
[Redmi Note 2 General] exiacruzalta:
hi there matey ohoyyyy :D
[Redmi Note 2 General] jajk:
tunman is a network tunneling manager which allows vpn style connections to be made to predetermine Xiaomi sites (without your knowledge). It is part of the data saving functionality which funnels all your downloads through a Chinese server if you let it. Spyware at its most brutal.....

Whetstone is a bit of a Trojan and works a bit like an AdBlocker in reverse. It is "whitelisting" connections. Take a look in miuihosts file inside the apk and you will find:

120.134.33.10 thisismiuitest.com

120.134.33.89 api.vip.miui.com

42.62.94.152 api.vip.miui.com

223.202.68.93 market.xiaomi.com

114.54.23.44 app.market.xiaomi.com

220.181.47.186 account.xiaomi.com

106.38.211.99 account.xiaomi.com

42.62.94.93 api.account.xiaomi.com

114.54.23.8 game.xiaomi.com

114.54.23.5 notice.game.xiaomi.com

42.62.94.127 api.ad.xiaomi.com

223.202.68.86 api.miui.security.xiaomi.com

It also prioritizes/favoritizes Xiaomi apps for access to memory (see phone-hdpi-1024.xml inside app for an idea) which is to the detriment of other apps.

Both conspire to allow connections without the user being aware or able to stop it.

Whetstone shouldn't cause a problem if you delete it and is not tied to battery saver.
[Redmi Note 2 General] exiacruzalta:
Wow, that some big hole my info got sucked into. This thing not going to be in my phone anymore :mad:

Tunman cant be deactivated, removed? or redirected to other server, let say google or opera? :D
[Redmi Note 2 General] cafezeenuts:
I got it to work by changing locale to Australia/Brisbane :silly: lol jk

So I finally got the breakthrough after trying so many things. I’m using ES File Explore, the problem I believe is the “Line Terminator” option, please select UNIX Terminators – LF. And maybe Encoding as well, so Select Unicode (UTF-8).

So to recap,

Create file named 01_tweaks in the /etc/init.d folder. Change the permission of the file to 0755 (rwx r-x r-x).

Please select UNIX Terminators – LF in the “Line Terminator” option & Select Unicode (UTF-8) in ES Note Editor.

See attachment screenshot

:victory:
[Redmi Note 2 General] DarthJabba9:
Those have always been my settings.
[Redmi Note 2 General] DarthJabba9:
Miraculously, it's all working now! I can't explain why it is now working. :confused: Perhaps it's because I started remembering with great joy my time in Brisbane and Noosa ...:cyclops:
[Redmi Note 2 General] jajk:
tunman is deactivated in the last boot.img. I was a bit unsure earlier if it affected legitimate vpn activities and some Google spying functions but it does not.

Yep, Microsoft had to be different and re-engineer ASCI codes for itself. I remember using ES File explorer and Microsoft Notepad a long time ago and getting caught out with the same. Notepad++ for PC and QuickEdit for Android are the go.

Everyone happy - that's what I like to see:)

A bit of important news...... the following lines should be immediately removed from your scripts:

#Tweak VM

echo 300 > /proc/sys/vm/dirty_expire_centisecs

echo 500 > /proc/sys/vm/dirty_writeback_centisecs

I have found that these lines can be the source of file system corruption. Even if you have no problem, delete these lines anyway.
[Redmi Note 2 General] jajk:
A bit more housekeeping:

I have re-added com.android.browser.provider and PacProcessor to the safe to delete list since it was FwkPlugin removal that stopped read more in Google Play, not the other 2.
[Redmi Note 2 General] exiacruzalta:
it is all magic :D
[Android Q&A, Help & Troubleshooting] Dr.Berti:
Hi, I was wondering if anyone has any experience with rooting and applying different roms for a "generic" android tablet. In this case, maylong mn-1000. It's a beyond basic tablet that I found laying around the house and I'm wanting to see if there's any possible way to enhance it as it is very slow and very frustrating to work with at the moment. Thank you in advance.
[Galaxy S 4 General] el.elie03:
his is the most current modem for galaxy s4 MODEM HOL1 was very difficult to find please give:good:thanks

if I have helped:o:o:o

LINK:https://drive.google.com/file/d/0B4ITUhyP1fnOYUNIV2Q5WlFYMnc/view?usp=sharing

NOTE: let me know if that is not to raise it again;););)

sorry for my English this is translated from google:(:(:(

I climbed sorry that this was not already arranged
[Galaxy S 4 General] kenji1996:
flash but modem still same no change
[Galaxy S 4 General] el.elie03:
I climbed sorry that was not right I fix
[Verizon Samsung Galaxy S 4] chaotic_jose:
Hi guys!...i don't know if this is official but I factory reset my phone and flashed OF1 ROM again so I gave it a try to Kingroot android app...so actually I got rooted like in just a minute, I don't know if it changed my kernel...which I believe it's impossible without entering download mode...so here are some screen shoots...View attachment 3636883View attachment 3636884
[Verizon Samsung Galaxy S 4] JagravNaik:
Same, rooted my S4 on OF1 with kingroot last night.
[Verizon Samsung Galaxy S 4] chaotic_jose:
You tried to downgrade the ROM? Im downloading it right now to try to get back to KitKat 4.4.2....so if i succed i'll install CyanogenMod 3
[Verizon Samsung Galaxy S 4] JagravNaik:
You cannot downgrade your ROM if you're on OF1. If you're in OF1 you can download KingRoot and root your phone.
[Verizon Samsung Galaxy S 4] chaotic_jose:
At least will we be able to downgrade OF1 ROM in a near future?
[Verizon Samsung Galaxy S 4] jwhistler:
You will never be able to downgrade OF1. Don't try it...you will brick your phone!
[Verizon Samsung Galaxy S 4] chaotic_jose:
But in a near future at least? And dont worry i know how to unbrick it, i've fooled around with my phone a lot
[Verizon Samsung Galaxy S 4] Matthew M.:
Downgrading through flashfire will hard brick not recoverable with odin, only jtag.
[Verizon Samsung Galaxy S 4] XxD34THxX:
jtag won't work at all... That will probably perma-brick the phone. A qfuse was broken, meaning there is NO way to downgrade....
[Verizon Samsung Galaxy S 4] Matthew M.:
It will, I accidentally flashed an older bootloader in flashfire and was able to recover it with jtag
[Verizon Samsung Galaxy S 4] bltserv:
You need to pull the Kingroot SU. Get terminal emulator and a batch file. Kingroot to SU. File ES to extract the zip. Google is your friend.
[Moto G 2015 Q&A, Help & Troubleshooting] Amirphp:
I have two desktop pc installed windows.

I am using usb wifi adapter in my pc to connect with my moto g3 hotspot.

In my moto g3 i have set the security to WPA2 PSK.

i was able to connect with my pc and moto hotspot and working internet..

But from past two days my usb adapter is taking too much time to connect via motog hotspot. And when connect ...there is limited connectivity showing. And no internet...

I Tried following thigs:

1. Tried another usb adapter with same company with WPA2 psk ...its connected and working internet.

2. I removed security WPA2 psk from my moto g 3 hotspot and set to open...then tried to connect with first usb adapter ...and its connected and working internet.

3. I tried first usb adapter again with wpa 2 psk...but limited connectivity....but with open hotspot...working fine.

Now i checked on many pcs ...its working only with open hotspot...while same adapter with same company working fine with WPA2 psk.

The first wifi adapter was too working fine some days ago with WPA2 psk...but now working only with open hotspot on motog3.

Can any one help me why its not working now with WPA2 psk.

i tested on windows xp sp3, win 7, and win 8.1...but no luck.
[Android Q&A, Help & Troubleshooting] Uptime73:
Hello. I just got the Verizon Ellipsis 10 (QTAIR70 tablet. Is there a working root method for it available? Thanks in advance.
[Android Q&A, Help & Troubleshooting] yakima:
I posted this question about 4 weeks ago and there has been no response yet. It's not even listed as a device on this site. It might be because it is from Verizon. They make it almost impossible to access your own device. This will be the last Verizon device that I buy.
[Android Q&A, Help & Troubleshooting] Rigor75:
Root Help please!

Please help root The ellipsis 10, we really need it is :eek:
[Android Q&A, Help & Troubleshooting] LightningCount1:
I'm in the same boat. Have an Ellipsis 10 and need to find out how to root it.
[Android Q&A, Help & Troubleshooting] garyinskeep1:
Ellipsis 10

Does anybody no how to root Ellipsis 10 im trying to figure it out . IF anyone can help please thanks
[Android Q&A, Help & Troubleshooting] Crash256:
BUMB

Is there any news on this front