The Following 5 Users Say Thank You to maacruz For This Useful Post: | ||
![]() |
2008-09-11
, 12:43
|
Posts: 755 |
Thanked: 406 times |
Joined on Feb 2008
@ UK
|
#2
|
![]() |
2008-09-11
, 14:26
|
Posts: 1,101 |
Thanked: 1,185 times |
Joined on Aug 2008
@ Spain
|
#3
|
You say plugging in a usb cable works, but you can't remove the memory card manually? - isn't the tablet using a similar method to temporarily turn off the swap when it provides access to the memory cards via usb as it does when a memory card is removed?
![]() |
2009-07-19
, 13:29
|
Posts: 17 |
Thanked: 1 time |
Joined on Jun 2009
|
#4
|
![]() |
Tags |
hack, mmc boot, swap |
|
I have managed to put the swap file in the external mmc fat partition and make it work like the default in the internal mmc.
This is only recommended when booting from mmc, as it requires editing a couple of startup scripts, and you can't remove the mmc. Doing it when booting from flash and then removing the mmc will have quite an ill effect if the swap file is not previously disabled. If you use brontide's hack (see http://www.internettablettalk.com/fo...ad.php?t=22408) this is highly recommended, as the increased swappiness may wear the flash memory much faster.
The mount/umount and control of mmc and swap is done by the daemon ke-recv (recently opensourced). This daemon has some provisions to put the swap file in the external mmc, but unfortunately it is not finished and will not work easily. The right thing to do is to finish the ke-recv implementation, along with the control panel applet (is the later closed source?), this is nothing but an ugly hack with some enviroment variables and startup scripts, but it works.
Edit /etc/osso-af-init/af-defines.sh, go to the end of the file, and just after the last "export" line (line 140) and before the "fi" line the following lines:
Look for the lines:
This has been tested in a N810 running Diablo.