Have you at least read along?
Plus you have posted zero concrete info/output.
This isn't ESP Developers.
Plus you have posted zero concrete info/output.
This isn't ESP Developers.
I posted my issue and defiant 7 posted some questions /ideas of which I responded to and did not get an answer. Yes i have read the entire thread. I have attached a screenshot that shows exactly what I have already said. I also tried swapon /data/media/0/swapfile with the same resultsHave you at least read along?
Plus you have posted zero concrete info/output.
This isn't ESP Developers.
TY yet again...Zep and his famous one liners...you're like the Rodney Dangerfield of bash, lol :laugh:.Umm... Easier way to get free space...
Code:freemb=`busybox df -m | grep $storage | awk '{print $((NF-2))}'`
I go to sleep and you solve all my problemsIf so, do:
swapon /data/media/0/swapfile
nice glad to hear it...I will edit and attach a new test version to this post sometime today, which should fix this jb related issue and give the script full functionality...it seems jb migrates data to /data/media/0.Hey it works now. I reflashed v4, ran swapit to create the swapfile then swapon /data/media/0/swapfile and no more errors. Free command also shows swap being used. Thanks so much zep and of course defiant07.![]()
Sent from my GT-P7500 using Tapatalk HD
- should be more compatible with jb roms via the new ability to choose where the required files will be made - thanks to Zep
- new method of detecting storage location and some optimization of code - thanks to Zep
- added V6 SuperCharger style 'power shift' scripts aka "Super Stupendous Switch Swap Scripts" (ahh...gotta love alliteration) for: swapon, swapoff, swappiness=0, swappiness=20, swappiness=40, swappiness=60, swappiness=80, swappiness=100
- improved dialog
Sorry...went to sleep.I posted my issue and defiant 7 posted some questions /ideas of which I responded to and did not get an answer. Yes i have read the entire thread. I have attached a screenshot that shows exactly what I have already said. I also tried swapon /data/media/0/swapfile with the same results
Sent from my Galaxy Nexus using Tapatalk 4 Beta
Swap does not work with that command either. The swap file is created but not enabled. And no worries on not responding injustice saying i had provided some info. Glad you responded and don't care how long it took lol. ThanksSorry...went to sleep.
So swapon /data/media/0/swapfile worked? No errors? Swap is working?
If yes, then see my above reply to @eushaun99.
You're welcome.TY yet again...Zep and his famous one liners...you're like the Rodney Dangerfield of bash, lol :laugh:.
I go to sleep and you solve all my problems. I'm getting tired of saying it, but...thanks, your efforts are most appreciated.
nice glad to hear it...I will edit and attach a new test version to this post sometime today, which should fix this jb related issue and give the script full functionality...it seems jb migrates data to /data/media/0.
storage=`busybox mount | awk '/vold/&&/sdcard/{print $3}' | awk 'NR==1'`
if [ ! "$storage" ]; then storage=/data; fi
storage=`busybox mount | awk '/vold/&&/sdcard/{print $3}' | awk 'NR==1'`
if [ "$storage" ]; then
echo " Pick (e)xternal sd card or (d)ata partition? "
read location
case $location in
e|E);;
d|D)storage=/data;;
*)Learn how to type!;;
esac
else storage=/data
fi
/system or /data or /cache don't show up?Using a Samsung Galaxy Nexus (toro) running uxylon jb 4.2.2
I tried the commands posted to find storage location and got these results...
Sent from my Galaxy Nexus using Tapatalk 4 Beta
su
cat /proc/cpuinfo
That output from the mount command looks straight funny style to me for the reasons noted by Zep.Swap does not work with that command either. The swap file is created but not enabled. And no worries on not responding injustice saying i had provided some info. Glad you responded and don't care how long it took lol. Thanks
Sent from my Galaxy Nexus using Tapatalk 4 Beta
My fake SD card is mirrored atThat output from the mount command looks straight funny style to me for the reasons noted by Zep.
If the vTEST_2, which I will post after I give it a test run, does not work for you (note: I doubt it will work since you seem to lack /data): look around on your device and there should be at least one other place where all the contents of /storage/emulated/legacy are mirrored. Give me the name(s) of the mirrored location(s) and if worse comes to worse I can make a custom version that should work with your rom (the script would only require marginal revisions).
Although I'm not 100% certain, I am fairly confident that it is an issue with your kernel being that swapon gave that error for all those locations (unless there is some other undiscovered location).My fake SD card is mirrored at
/mnt/sdcard/
/sdcard/
/data/media/0/
/storage/emulated/0/
/storage/emulated/legacy/
/storage/sdcard0/
Tried swapon at all those paths and get function not implemented
Sent from my Galaxy Nexus using Tapatalk 4 Beta
Switched kernels and used /data/media/0/Although I'm not 100% certain, I am fairly confident that it is an issue with your kernel being that swapon gave that error for all those locations (unless there is some other undiscovered location).
Your kernel thinks it is capable of swap being that 'swap' or 'swp' is listed under 'features'/you pass the test at the beginning of the script, but for whatever reason swapon and swapoff are not properly implemented in the kernel.
I would advise talking with the maker of your rom/kernel. Are there other users of your rom that have successfully enabled swap via some other script, an app, or command/terminal based method?
Awesome...I am glad to hear it :good:.Switched kernels and used /data/media/0/
And it finally works! lol. Thanks for all the help.
Sent from my Galaxy Nexus using Tapatalk 4 Beta
Test 2 working fine here...no more errors finallyAwesome...I am glad to hear it :good:.
Did you try TEST_2? It is attached to post #43. When it asks you to choose location, choose /data and it should be fully functional for you :fingers-crossed:.
Yeah, finallyTest 2 working fine here...no more errors finally
Thanks again for all you've done and I'm sure you will continue to improve this script further as time pass. Another thanks for giving me credits although I didn't really do much.
I have another question if you don't mind. You said in v6 swappiness is set to 20. So if I set a different value here wouldn't it conflict or something?
Sent from my GT-P7500 using Tapatalk HD
echo "$(cat /data/swappinessvalue.txt)" > /proc/sys/vm/swappiness
v5
- should now be compatible with jb roms via the new ability to choose where the required files will be made - thanks to @zeppelinrox
- new method for detecting storage location and some optimization of code - thanks to @zeppelinrox
- added V6 SuperCharger style 'power shift' scripts aka "Super Stupendous Switch Swap Scripts" (ahh...gotta love alliteration) for: swapon, swapoff, swappiness=0, swappiness=20, swappiness=40, swappiness=60, swappiness=80, swappiness=100
- improved dialog
That's nice.Switched kernels and used /data/media/0/
And it finally works! lol. Thanks for all the help.
Sent from my Galaxy Nexus using Tapatalk 4 Beta
With the other kernel when i did that command swp was listed. That's who initially I ruled out the kernelThat's nice.
But not surprising.
The issue isn't actually fixed because the script assumed the other kernel is fine.
If you had done the cat /process/cpuinfo command with the other kernel, that output would have been informative.
V5 works as it should. Thanks again.Released v5...major update.
Should now be jb compatible and added 'shift' scripts. Note: JB users will probably have to select data partition for their swap file location.
Also note v5 is the same as vTEST_2, so anyone on that version need not update.
yes but what if there is something else that's a little different about it.With the other kernel when i did that command swp was listed. That's who initially I ruled out the kernel
First let me say sorry for any inconveniences my script has caused you.Really love this swap, but everytime I reboot end of bootloop.. any solution? My phone is ram 512mb, I make 350mb swap,50 values.
Sent from my HTC Explorer A310e using xda premium
echo "waiting" > $LOG