On Thursday 23 February 2006 01:34, David D. Hagood wrote: > [EMAIL PROTECTED] wrote: > >> Any suggestions? > > > > How about hooking swapoff to the hotplug event for the MMC card > > cover opening? Maybe even insertion also.
Yes, I really would like to try this, but I do not know how this has to be done. Can anybody lend me a hand? (Of cause I would make this feature optional, with an enable/disable checkbox in the settings.) > Yes, *please* hook the cover open/cover close events and > enable/disable swap as appropriate. But this will only make sense for a swap living on the RS-MMC. If you are running with a swap file on the internal flash, you would not want to swapoff when the RS-MMC lid is opened... Do you think, detection of the prefix /dev/mmcblk0 for a swap device - or /media/mmc1/ for a swap file - in /proc/swaps, is good enough to conclude, that the swap lives on the RS-MMC? Is absense of these prefixes good enough to conclude, that the swap down _not_ live on the RS-MMC? > Also, please scan not just for swap files, but also for swap > partitions - Yes, via /proc/swaps I autodetect an active swap-file or -device, if none has been configured in the Load-Plugin applet settings. > I prefer to have a swap partition Me too, I use /dev/mmcblk0p2 - I repartitioned the RS-MMC with two partitions: mmcblk0p1 with 480MB FAT and mmcblk0p2 with 30 MB swap. USB-plugging the N770 to the PC only umounts the 1st partition, the swap on the seconds remains available. Armin. -- --- May the Source be with you! Linux. --- --- http://www.arminwarda.mynetcologne.de/ --- secure eMail: http://www.gnupg.de/ ---
pgp0NkjAaLOm3.pgp
Description: PGP signature
_______________________________________________ maemo-developers mailing list maemo-developers@maemo.org https://maemo.org/mailman/listinfo/maemo-developers