[SOLVED] fjfalcon swap not working on dexters 1.3, with bug patch. Ideas? - Milestone XT720 General

Hey guys,
I've fastbooted into the fjfalcons kernel successfully and it shows in the info but when I go to set cpu all the swap mem is zero. I tried all the versions of the kernels no idea whats wrong it boots, everything is fine but nothing shows on set cpu. Any help would be appretiated thanks!

busybox swapon /dev/block/mmcblk3 in adb shell or terminal - try it.

Doesn't work this is what I get...
# busybox swapon /dev/block/mmcblk3
swapon: can't stat '/dev/block/mmcblk3': No such file or directory

sohrab.naushad said:
Doesn't work this is what I get...
# busybox swapon /dev/block/mmcblk3
swapon: can't stat '/dev/block/mmcblk3': No such file or directory
Click to expand...
Click to collapse
I think it should be mmcblk0p3
Sent from my Milestone XT720 using XDA Premium App

Mioze7Ae said:
I think it should be mmcblk0p3
Sent from my Milestone XT720 using XDA Premium App
Click to expand...
Click to collapse
Thanks, Mioze7Ae lemme try it out
Edit: The command went through, but when I fastboot back into the kernel, still no swap :S Okay I tried again. Swap cached is 0 and swap total and swap free are 91 mb is that okay? Free and total are the same...thanks Mioze7Ae

If this is normal, I just wanted to ask do I have to issue the busybox command everytime or just this once? Thanks
Edit: Got it working, I didnt have any apps open. Thank you so much guys!

sohrab.naushad said:
If this is normal, I just wanted to ask do I have to issue the busybox command everytime or just this once? Thanks
Click to expand...
Click to collapse
Bugfix3 doesn't have swap built-in. I'll make a patch to add it, but it probably won't be before tomorrow.
Sent from my Milestone XT720 using XDA Premium App

Alright, that would be great. Take your time ill just issue the busybox command if my phone reboots or runs out of battery.

sohrab.naushad said:
Alright, that would be great. Take your time ill just issue the busybox command if my phone reboots or runs out of battery.
Click to expand...
Click to collapse
You could also try rusmod. I consider that the successor to bugfix3.
Sent from my Milestone XT720 using XDA Premium App

Related

Auto Swap ----- linux-swap

Thanks to JAC for telling me how to do it, and to Denkai for providing all the necessary parts.
This is a modified ap2sd.sh to auto run the linux-swap partition on boot.
adb remount
adb shell rm /system/bin/a2sd.sh
adb push /pathtofile/a2sd.sh /system/bin
adb reboot
this can be done in terminal too.
The file is attached.
NOTE: I HAVE ONLY TESTED THIS ON JACHERO2.3.2 use at your own risk.
Please reference this thread http://forum.xda-developers.com/showthread.php?t=531988 to see what swap method I'm talking about.
What build is this for?
I am using soulife's rogers with a modified a2sd and this would definitely put my phone in a boot loop.
AWESOME! Thanks ccyrowski!
boogie1077 said:
What build is this for?
I am using soulife's rogers with a modified a2sd and this would definitely put my phone in a boot loop.
Click to expand...
Click to collapse
For JACHero 2.3.2
Where does init.rc go? On system/sd?
is it necessary to use swapper after this.. should we turn swapper off?
ComplexMinded said:
is it necessary to use swapper after this.. should we turn swapper off?
Click to expand...
Click to collapse
don't use swapper.
You have to have three partitions on your sdcard to do this
fat32
ext2 or ext3
linux-swap
it is.. I just wanted to be 100% sure.. just wonderling I also saw a format for linux swap2.. any difference?
I know it has been asked already. But were does init.rc go?
Z҉A҉L҉G҉O̚̕̚ said:
I know it has been asked already. But were does init.rc go?
Click to expand...
Click to collapse
Don't worry about the init.rc
Ok. Thanks for answering.
can someone check for vers. 2.3.3?
for me it's not working
ibu2002 said:
can someone check for vers. 2.3.3?
for me it's not working
Click to expand...
Click to collapse
im about to test it out right now
will report back with updates :-D
bigballa said:
im about to test it out right now
will report back with updates :-D
Click to expand...
Click to collapse
Worked fine for me.
Just actually included it in a ROM I whipped up from JAC 2.3.3 so you can flash the ROM with three partitions (swapper app already removed) and everything loads up for you without you doing anything.
Any requests for additional things to be removed?
i followed your instruction but after the reboot there was no swap.
ibu2002 said:
i followed your instruction but after the reboot there was no swap.
Click to expand...
Click to collapse
Is the third partition on your sdcard "linux swap"?
Open terminal
$ su
# free
If you want ill upload the rom i made for myself with a few customizations. It will do everything for you.
yes the third partition is linux swap and if i use denkai's method it works.
After a reboot the swap settings are lost and #free prints only 0 within swap.
man xda is so slow lately
c:\Android>adb shell free
total used free shared buffers
Mem: 98908 97152 1756 0 32
Swap: 0 0 0
Total: 98908 97152 1756
Click to expand...
Click to collapse
its not working for me
i put the script in the correct area
but its not swapping anything
i know it says its for 2.3.2 but im trying it on 2.3.3 maybe thats why
ibu2002 said:
yes the third partition is linux swap and if i use denkai's method it works.
After a reboot the swap settings are lost and #free prints only 0 within swap.
Click to expand...
Click to collapse
so how do we get the swap to start back up? thats the question

[Script] Darkness in the dark hours

hi everyone
I present to you:
Darkness in the dark hours​
this is a pack of:
- a script I made
- Gscript lite
- Screen filter(optional, but recommended)
I strongly recommend to you to read the whole post and only then apply my script!
A lot of users tried to find a way to do this, so I polished my script I used for Eternity to make it universal(hopefully )
this script made to work with rooted 2.1+ firmwares and busybox properly installed.
1. Install Gscript lite
2. To make this script revertable on the newer brand of kernels, you will need to add one line to hw_config.sh (because I just don't trust init.d scripts)
run this from adb or any terminal emulator from phone as superuser
Code:
echo "\n\n\nrm /data/noled_tmp_reverse.prop" >> /system/etc/hw_config.sh
3. in Gscript choose Add a script and name it whatever you want(e.g. NOLed) and paste these lines in it
Code:
#! /system/bin/busybox sh
# "turn off keyboard and notification LEDs" for ANY android firmware
# this script needs su access
# made by Adolf1994
# thanks for the help diimaan
# maybe final version - revertable
# requires hw_config.sh modification to be properly revertable
DIR=$(cd /sys && find | grep brightness | cut -c 3- | cut -d : -f 1 | head -n 1)
LED=/sys/$DIR
LED1=$LED:rgb1:red/brightness
LED2=$LED:rgb1:green/brightness
LED3=$LED:rgb1:blue/brightness
LED4=$LED:sled/brightness
if [ -s /data/noled_tmp_reverse.prop ]; then
chmod 00644 $LED1
chmod 00644 $LED2
chmod 00644 $LED3
chmod 00644 $LED4
rm /data/noled_tmp_reverse.prop
else
echo 0 > $LED1
echo 0 > $LED2
echo 0 > $LED3
echo 0 > $LED4
chmod 00444 $LED1
chmod 00444 $LED2
chmod 00444 $LED3
chmod 00444 $LED4
echo 1 > /data/noled_tmp_reverse.prop
fi
exit
4. tap on "Needs SU" then save
5. run the script and enjoy surfing at night without the annoying hw leds
(most likely you WILL get stderrs on 2.2+, but it's normal)
Note: if you get EMPTY stderrs, that's no problem. BUT if something is shown next to the stderr, like permission denied, then please report
optional. install Screen filter from market: https://market.android.com/details?id=com.haxor&feature=search_result
This is only for 2.1 and/or 2.2. On 2.3 I experienced a problem that's I couldn't press install in package installer activity. I nearly reinstalled the whole thing. You've been warned!
Night is over? Just run the script again and wait till the LEDs light up.
If You Don't Like LEDs At All, This Pretty Line Will Disable Them At Startup
http://forum.xda-developers.com/showpost.php?p=17514012&postcount=27
Q: Why modifying hw_config.sh?
A: Because if you reboot your phone while the leds are off, there will remain a file that normally indicates how the script should act upon running it. That one particular file should not present after boot.
Q: I'm on Wolfbreak's ROM. Won't that mess tweaks up?
A: In no way. Impossible. Unless you didn't follow steps properly.
hope you like it
and don't forget to press thanks button
can I use script manager to run this at boot?
I think it'd be fine
the script didnt work for me i went to my dolphin browser copied text pasted it saved i run it it showed up stderr twice that's it?
shahkam said:
the script didnt work for me i went to my dolphin browser copied text pasted it saved i run it it showed up stderr twice that's it?
Click to expand...
Click to collapse
i cant paste the text corectly ffs i think thats the problem can you upload the script as ".sh" so i can load it whit gscript?
shahkam said:
the script didnt work for me i went to my dolphin browser copied text pasted it saved i run it it showed up stderr twice that's it?
Click to expand...
Click to collapse
from gscript I get a bunch of stderrs, too. however, from a terminal emulator it runs fine, so no problem.
It's the most noticeable if the phone is on the charger, because you will see that the led suddenly switches off.
you can revert the script back with a simple reboot.
Sorry for being a noob, but what does this do? :$
It disables the l.e.d.s. It should be made a little clearer in op.
Is there a script to turn them back on?
Sent from my X10a using XDA App
AyDee said:
It disables the l.e.d.s. It should be made a little clearer in op.
Is there a script to turn them back on?
Sent from my X10a using XDA App
Click to expand...
Click to collapse
sorry if I wasn't clear. I'll fix it soon
and change it to revertable, too
Adolf any clue why it didnt work.for me and i kept having stderr thingy
Sent from my X10i using XDA Premium App
shahkam said:
Adolf any clue why it didnt work.for me and i kept having stderr thingy
Sent from my X10i using XDA Premium App
Click to expand...
Click to collapse
since they are empty it's ok
Huh? I think i wasnt clear i used your script and when i ran it whit gscript i got twice stderr message twice one under the other like this
Stderr
Stderr any clue why?
Sent from my X10i using XDA Premium App
shahkam said:
Huh? I think i wasnt clear i used your script and when i ran it whit gscript i got twice stderr message twice one under the other like this
Stderr
Stderr any clue why?
Sent from my X10i using XDA Premium App
Click to expand...
Click to collapse
for this script only gscript gives empty stderrs. if I run it with a terminal emulator/adb there's no stderr.
it's a problem of gscript
@Adolf or @My_Immortal
any new experiments with sd card mounting?
There was some interesting posts by one shaun in link2sd thread! he's using x10! somehow he managed to find more free space in /system than in /data!
so no need of an extra partition, you can just run the script to mount the /system as rw on boot and then link the link2sd mount point to it! I sent a PM to him about how is it working! let's see...
Ohhh but i tried terminal too pasted the script and nothing happened?
Sent from my X10i using XDA Premium App
I use this script most nights now, thanks Adulf! perhaps a mod to the script could be to set an expiry time value? (or is this not possible!)
diimaan said:
@Adolf or @My_Immortal
any new experiments with sd card mounting?
There was some interesting posts by one shaun in link2sd thread! he's using x10! somehow he managed to find more free space in /system than in /data!
so no need of an extra partition, you can just run the script to mount the /system as rw on boot and then link the link2sd mount point to it! I sent a PM to him about how is it working! let's see...
Click to expand...
Click to collapse
There are currently 190 MB free in my system partition, 219 MB in data and 11 GB in my sdcard, so I really want to use Links2SD on an ext partition in my SD, rather than anywhere else!
But it's nice that there's progress!!
My_Immortal said:
There are currently 190 MB free in my system partition, 219 MB in data and 11 GB in my sdcard, so I really want to use Links2SD on an ext partition in my SD, rather than anywhere else!
But it's nice that there's progress!!
Click to expand...
Click to collapse
190 mb? that's far less you should clean up some junk in your system then!
btw this is the msg I got from shaun! you can check how it works!
http://forum.xda-developers.com/show...&postcount=834
Should explain how to do it, just need to add commands to a start up script that is editable on your phone, that runs before the GUI is started. Dunno how I would create a universal script as you will need to edit diff files on diff phones.
If there is anything you don't understand from my post I'll try and help.
Click to expand...
Click to collapse
Brilliant this is exactly what i wanted, thanks Adolf !!
[email protected] said:
I use this script most nights now, thanks Adulf! perhaps a mod to the script could be to set an expiry time value? (or is this not possible!)
Click to expand...
Click to collapse
Adulf... hehh, funny
yyeeeeaaaaaaahhhh...no
that'd be a bit complicated.
but this is why it's revertable

[Q] fjfalcon swap

Is there a way that i can reinstall the swap directly from my xt720 without have to hook to my computer or be at home? If so would someone please be kind enough to share this info with me.
Nope. Because of Motorola's locked bootloader, we have to use fastboot over USB.
Sent from my Milestone XT720 using XDA Premium App
Could I do this from my honeycomb tab??
Sent from my XT720 using XDA App
vari9 said:
Could I do this from my honeycomb tab??
Sent from my XT720 using XDA App
Click to expand...
Click to collapse
Cant see how you could, knowing you need Android SDK and fastboot to boot the kernel. So I guess no.
can i do fastboot from a mac or linux emulator? cos my external hdd just crashed and i have my windows VM on it which i use for rsdlite.
Yes you can.
All you need is kernel: http://xt720.ru/Files/Kernel/boot2.img
And fastboot tool: http://xt720.ru/Files/Tools/fastboot
Don't forget chmod +x to fastboot and run it as root(or use sudo)
fjfalcon said:
Yes you can.
All you need is kernel: http://xt720.ru/Files/Kernel/boot2.img
And fastboot tool: http://xt720.ru/Files/Tools/fastboot
Don't forget chmod +x to fastboot and run it as root(or use sudo)
Click to expand...
Click to collapse
is this boot2.img different from the original boot.img kernel that you posted initially?
Well, that last version that i created long ago...
Added ThumbEE and other optimizations/..
But it was created long ago.. i think.. =)
fjfalcon said:
Well, that last version that i created long ago...
Added ThumbEE and other optimizations/..
But it was created long ago.. i think.. =)
Click to expand...
Click to collapse
Oh okay.. hahahaha!!
I was not updated, I folllowed reverendkyle's tutorial and used the boot.img that was posted on the tutorial video, i was not aware that there was an updated one. I'll push this new (for me it's new) one now.. LOL Thanks!!
**EDIT**
Kernel is now showing as "[email protected] #7" would this be correct?
Yes, cheater - mine username, and chernyak - hostname of mine work machine.
hi all,
i have installed Khal's MIUI XT-Final V2 rom, when i do install fjfalcon kernel to enable swap on my phone via adb it works fine but after normal reboot swap partion shows 0KB.
if i do a quick reboot its shows the cache.
i dont face this problem before in khal's steel blue rom...
is this a bug with rom or something to enable on kernel...
guys, pl help me on this...
thanks
Ash
abkrish26 said:
hi all,
i have installed Khal's MIUI XT-Final V2 rom, when i do install fjfalcon kernel to enable swap on my phone via adb it works fine but after normal reboot swap partion shows 0KB.
if i do a quick reboot its shows the cache.
i dont face this problem before in khal's steel blue rom...
is this a bug with rom or something to enable on kernel...
guys, pl help me on this...
thanks
Ash
Click to expand...
Click to collapse
It's always been that way. You have to fastboot to get the custom kernel with the locked bootloader.
Thanks for ur great info 3rdstring.....
Cheers
Sent from my Milestone XT720 using XDA Premium App
fjfalcon said:
Yes you can.
All you need is kernel: http://xt720.ru/Files/Kernel/boot2.img
And fastboot tool: http://xt720.ru/Files/Tools/fastboot
Don't forget chmod +x to fastboot and run it as root(or use sudo)
Click to expand...
Click to collapse
am i supposed to adb reboot into bootloader and from there reboot the phone into fastboot? what am i supposed to type on a mac? because you need the boot.img to be in a specific directory on windows, but im not sure about doing it on mac. should i put the boot2.img into the android sdk too? sorry for asking so many questions, but i dont wanna risk bricking or anything. thanks!
edit: after i watched reverendkjr's vid again i decided to try and i put the boot into platform-tools and from there i rebooted into bootloader, and then typed fastboot boot boot2.img and now my phone is on [email protected] #7
but just curious, what was the chmod + x for?
Allow to launch fastboot binary.
I'm on XDA-SPECIAL-HELLMONGER-RC2. when I run - chmod 777 /system/etc/unit.d/00_swapon it fails and says"Read only file". And swap is not enabled by fastboot.. wondering what am i doing wrong?
Sent from my XT720 using xda premium
I'm here to learn something
brianlili said:
I'm here to learn something
Click to expand...
Click to collapse
Brian! Welcome! There's a thread about your ROM here: http://forum.xda-developers.com/showthread.php?t=1206018
You may need to post 10 times before you can reply there though. So, how's the weather?
which one should i use for cm6.3 rc3? havent fastbooted for a long time. ive tried boot2 but when i fastboot, setcpu doesnt show any swap. in my notifications, android keeps "checking sd card for errors". any help?
For now, is there any way to fastboot fjfalcon's kernel without using any PC?
I've heard something about hot reboot that reboots the phone but keeping the fjfalcon's kernel.
Thanks for the info.

market fix for download limitaton-froyo based old market (doesnt work on new market)

forgot to post this before but if you ever have issues downloading files that are beyond 30 mb
here do this from adbshell
umount /cache
busybox mount -o rw,remount -t rootfs /
rmdir /cache
mkdir /data/cache
ln -s /data/cache /cache
that will remove the 40 mb limit of the market (shouldnt apply to gingerbread)
Download all files app also works.
Sent from my SGH-T959V using XDA App
The adb script doesn't work on gingerbread kh2
RaverX3X said:
forgot to post this before but if you ever have issues downloading files that are beyond 30 mb
here do this from adbshell
umount /cache
busybox mount -o rw,remount -t rootfs /
rmdir /cache
mkdir /data/cache
ln -s /data/cache /cache
that will remove the 40 mb limit of the market (shouldnt apply to gingerbread)
Click to expand...
Click to collapse
Sent from my SGH-T959V using xda premium
So gingerbread is not limited right?
Cuz im trying to DL a game called third blade from the market and it says i dont have enough space.
Email the dev and they said it should DL and then install to SD card but doesnt...
Ideas?
Sent from my SGH-T959V using XDA Premium App
poopypoo13 said:
So gingerbread is not limited right?
Cuz im trying to DL a game called third blade from the market and it says i dont have enough space.
Email the dev and they said it should DL and then install to SD card but doesnt...
Ideas?
Sent from my SGH-T959V using XDA Premium App
Click to expand...
Click to collapse
then your gb is limited..... u can try it but i cant guarantee how well it works for gb i know it works froyo
ive had the same problem ive just downloaded from another source and installed on my phone works fine but it doesnt have apps2sd
Will try as soon as i get home
Sent from my SGH-T959V using XDA Premium App
RaverX3X said:
forgot to post this before but if you ever have issues downloading files that are beyond 30 mb
here do this from adbshell
umount /cache
busybox mount -o rw,remount -t rootfs /
rmdir /cache
mkdir /data/cache
ln -s /data/cache /cache
that will remove the 40 mb limit of the market (shouldnt apply to gingerbread)
Click to expand...
Click to collapse
Hey Raver. I need your help in trying to figure out a way to get into adb/shell so I can fix my market limit. if you can point me in the right direction, that would be great as-well. Thx.
Download terminal from market.run the commands from there, no need for adb.
Sent from my SGH-T959V using Tapatalk
Somairotevoli said:
Download terminal from market.run the commands from there, no need for adb.
Sent from my SGH-T959V using Tapatalk
Click to expand...
Click to collapse
Okay I downloaded terminal. As soon as I enter the first command, it tells me that "umount/cache: not found". Am I spelling/typing it correct? Please advise. Thx.
This is the first command line when the program starts:
$ export PATH=/data/local/bin:$PATH
So where would I go from there?
Type su to gain root. That should allow you to run the commandd
Sent from my SGH-T959V using Tapatalk
when i wrote this we had froyo primarly and gb didnt have the market issue at all you can try it on gb but alas it prob wont work
Somairotevoli said:
Type su to gain root. That should allow you to run the commandd
Sent from my SGH-T959V using Tapatalk
Click to expand...
Click to collapse
Thx for your help. Gained su and was able to input the command, but when I go to install, it tells me "Error; Package file is invalid". Never thought installing Adobe Air would be this troublesome. Thanks again for your help. Now back to the drawing board for me.
---------- Post added at 04:40 PM ---------- Previous post was at 04:39 PM ----------
RaverX3X said:
when i wrote this we had froyo primarly and gb didnt have the market issue at all you can try it on gb but alas it prob wont work
Click to expand...
Click to collapse
I just tried it and it didn't work lol. What would you suggest? I'm currently running your Audiophile FTW ROM.
xolanir said:
Thx for your help. Gained su and was able to input the command, but when I go to install, it tells me "Error; Package file is invalid". Never thought installing Adobe Air would be this troublesome. Thanks again for your help. Now back to the drawing board for me.
---------- Post added at 04:40 PM ---------- Previous post was at 04:39 PM ----------
I just tried it and it didn't work lol. What would you suggest? I'm currently running your Audiophile FTW ROM.
Click to expand...
Click to collapse
have google remove the cap off the new market this worked fine on the old market but alas we all know where that market went lol
RaverX3X said:
have google remove the cap off the new market
Click to expand...
Click to collapse
Man, now I have to throw my weight around with those Google and Adobe devs ;p. Guess I'm SOL then. Lol!
Sent from my SGH-T959V using xda premium
i changed the title of the thread so people quit trying it now lol because it used to work it dont work anymore just let the thread die
Okay so now here's the question of the day: how do I fix the "Error invalid package file issue"? Happens each time I try to install anything from the Market.
Sent from my SGH-T959V using xda premium
xolanir said:
Okay so now here's the question of the day: how do I fix the "Error invalid package file issue"? Happens each time I try to install anything from the Market.
Sent from my SGH-T959V using xda premium
Click to expand...
Click to collapse
try clearing the market data and market cache P
RaverX3X said:
try clearing the market data and market cache P
Click to expand...
Click to collapse
That was the first thing I tried and it didn't fix it. If that don't work, what should I do next? Sorry for the headache.
Sent from my SGH-T959V using xda premium

FOR3V3R ROOT for Bionic - applicable for the A2?

http://droidmodderx.com/bionic/maintain-root-through-any-update-bionic-with-forever-root/
Anyone want to give it a try? It seems like it should work for the A2- all it does is change permissions of su and Superuser.
EDIT- hm that's strange, it seems to change the file's permissions to what they already are?
Yeah, it is for after an upgrade, which changes the perms to 000. So by putting the chmod command for su and Superuser.apk in the mount_ext3 script it will do it on EVERY boot even if it is not needed, so after an update, it will save you a ton of headache. I did it on mine, but we won't know how it works until after an upgrade.
Jim
Sent from my MB865 using xda premium
I'd like to try it but im nervous. I don't wanna boot loop.
jimbridgman said:
Yeah, it is for after an upgrade, which changes the perms to 000. So by putting the chmod command for su and Superuser.apk in the mount_ext3 script it will do it on EVERY boot even if it is not needed, so after an update, it will save you a ton of headache. I did it on mine, but we won't know how it works until after an upgrade.
Jim
Sent from my MB865 using xda premium
Click to expand...
Click to collapse
Ok thanks for verifying that it works. This should be very helpful to people involved in the pre-update soak if they want to keep root... so long as it works.
I'm working on a tool kind of like this (http://forum.xda-developers.com/showthread.php?t=1279825), except it's got a Java GUI instead of a command line interface. It will include the 43V3R root... if it doesn't catastrophically fail then I'll release it sometime soon
Sent from my MB865 using Tapatalk

Categories

Resources