[maemo-developers] [maemo-developers] Adding swapon/off to Jakub's Load-Plugin applet
From: Armin M. Warda Armin.Warda at Web.DeDate: Thu Feb 23 15:01:09 EET 2006
- Previous message: [maemo-developers] Adding swapon/off to Jakub's Load-Plugin applet
- Next message: [maemo-developers] Adding swapon/off to Jakub's Load-Plugin applet
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Thursday 23 February 2006 01:34, David D. Hagood wrote: > alterego at sdf.lonestar.org 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/ --- -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : http://lists.maemo.org/pipermail/maemo-developers/attachments/20060223/285adaf7/attachment.pgp
- Previous message: [maemo-developers] Adding swapon/off to Jakub's Load-Plugin applet
- Next message: [maemo-developers] Adding swapon/off to Jakub's Load-Plugin applet
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]