Suspend to RAM and acpi events
Hi,
What's the command to suspend to RAM in slack? And, does anyone know some good sample acpi scripts that can at least monitor my battery status and then trigger something? The default acpi event handler script is too trivial. Thanks in advance! woody |
From /usr/doc/pm-utils-1.4.1/README.SLACKWARE:
Quote:
Quote:
Quote:
|
Thanks, pm-suspend works. I did not try pm-hibernate because I don't setup a swap when I installed my slack, now I regret that...
For the GUI daemon, okay, I may consider one of them, you know, I am running fluxbox, before that I still want to try some pure command line via acpi. Thank you very much! |
I think that xfce4-power-manager should work quite happily in fluxbox.
You can always set up a swap partition (you may need to resize an existing partition and then create an additional partition first) using 'mkswap'. You can also use a swap file - see this recent thread. http://www.linuxquestions.org/questi...en-4175439360/ |
Hi Allend,
My largest partition sda7 is a logical partition of type ext4. What command can resize it to give me 4G free? Only after that, I think I can do a mkswap. Thanks. woody |
Quote:
Found a nice enough resource: http://en.positon.org/post/Resize-an...ext4-partition This is the part you're looking for: Quote:
Then you'll probably have to edit /etc/fstab to include your newly created swap partition (I'm guessing, not sure if mkswap would already write to that?) ps.: if you google "linux resize partition" most results will want you to use "gparted" (thanks to Ubuntu for using Gnome :-), which off course don't ship with Slackware |
In a related question, is it possible to add the suspend functions to the KDE power management settings?
|
All times are GMT -5. The time now is 07:04 AM. |