

PoJD001 wrote:Ah, right.didn't try it myself in this ROM, I thought it is enabled by default. But probably not the case as you already pointed out. In that case either some swapper app or creating the file in /system/etc/init.d directly to switch on swap on startup.
I actually did that few days back, didn't want to risk to run out of RAM again. So in case someone would find this usefull...I also found out that the swapon does not support -a switch(not sure if an issue of this ROM only). So I avoided mounting the partition via fstab and directly used the block device below.
- Make sure you have a swap partition created on your sdcard. I also assume it is your 3rd partition there - if not, change 0p3 accordingly (to 0p2 should it be second partition, etc)
- Make sure you have debugging options enabled in your phone
- Connect your phone and launch command prompt
- adb shell
- echo "#!/system/bin/sh" >> /system/etc/init.d/05userinit
- echo "swapon /dev/block/mmcblk0p3" >> /system/etc/init.d/05userinit
- chmod 750 /system/etc/init.d/05userinit
- reboot
Now you should see swap being used - again by running free command and seeing non null value in total swap available.





jimjack wrote:Good morning,
the WiFi- hotspot dont't work for me.
It hangs on activating the hotspot.
EU512-HD2, german language
Regards,
jimjack



Return to HD2 Android Development
Users browsing this forum: No registered users and 0 guests