View Single Post
Posts: 2,802 | Thanked: 4,491 times | Joined on Nov 2007
#103
Originally Posted by maacruz View Post
Your modification doesn't work because swapon is busybox.
Yeah, it assumes a patched busybox for priority handling, otherwise falls back to current behaviour. The patch I linked to isn't quite complete (it assumes some intermediate changes and doesn't update the "trivial" usage message) but I've already got it working here.

This works, it's already included in the diablo-tweaks package, in the "diabloturbo" thread.
Code:
+       for i in $(grep -v ramzswap /proc/swaps|grep -v Filename|cut -d " " -f 1); do
+               /sbin/swapoff "$i"
+               /sbin/swapon "$i"
+       done
This is fine at boot time, but you may not be able to swapoff if the tablet's been running a while :-(

BTW, anyone know what is required kernel-wise to get a more recent compcache on Diablo? Is it worth pursuing?