Page 1 of 1

How to enable Suspend in Fossapup64 on USB?

Posted: Tue Aug 04, 2020 11:44 am
by Shloz
I'm running Fossapup64 9.0.4, installed on a USB stick, Acer Aspire One D257 netbook with 2gb RAM

I would love the option to suspend. On the other thread I started 666phlib pointed me to the script in /etc/acpi/actions/suspend.sh. Looking at that and the other scripts there it seems that suspend is disabled if a USB is mounted... not sure if I'm reading that right?
I there a way I can have suspend?

Re: Suspend

Posted: Tue Aug 04, 2020 3:03 pm
by bigpup
suspend is disabled if a USB is mounted.
That is to make sure the save process, will always be able to do a write, to the save file/folder.
Especially, if writing to the save, is set to happen, at a specific time period. (every so many minutes)

Usually the save is on the USB and writing to it is more controlled.

For suspend setting changes to not affect saving to the save.
menu->System->Puppy Event Manager->Save Session
Set save interval to zero (0)
This stops auto save feature.

With this setting.
Writes to the save are two ways, now.
Click on the desktop save icon.
Do a complete shutdown or reboot.

Re: How to enable Suspend in Fossapup64 on USB?

Posted: Tue Aug 04, 2020 5:15 pm
by festus
@Shloz

I got this info off the Murga forum from sheldonisaac, if I recorded correctly.

I am running Fossapup64 9.0.4, installed on a USB stick, as you are, and here is how the suspend is done on my dell laptop:

Copy this to geany and save as "suspend"

Code: Select all

#!/bin/sh
echo -n mem > /sys/power/state
Open a terminal where "suspend" is at and run this command to make it executable:
chmod +x suspend

Make a folder "suspend" in /mnt/home
Take the script "suspend" and copy it to the folder /mnt/home/suspend

Open this folder in Rox and drag the "suspend" file onto your desktop

If you want an icon for this, go to /usr/share/pixmaps/puppy/screen_suspend.svg, and Right-click the "suspend" on the desktop and > File 'suspend' > Set Icon and drag the "screen_suspend.svg" file over to it.

Now when you want to "suspend" your box, just click on the "suspend" icon on the desktop.

To resume, on a laptop open the lid, on a desktop computer you may need to press the power button lightly just once.

I hope this helps you and others.

bliss, festus

Re: How to enable Suspend in Fossapup64 on USB?

Posted: Wed Aug 05, 2020 11:38 am
by Shloz
[mention]festus[/mention] Thanks, I tried your script and followed your setup. Problem is it wakes up immediately! It seems to suspend for a second and then wakes up. Any idea of what I can do to fix this? I never had problems with suspend in other distros or in Windows so I know it should work...

Re: How to enable Suspend in Fossapup64 on USB?

Posted: Wed Aug 05, 2020 2:04 pm
by MochiMoppel
Shloz wrote: Wed Aug 05, 2020 11:38 amProblem is it wakes up immediately! It seems to suspend for a second and then wakes up. Any idea of what I can do to fix this?
[mention]Shloz[/mention] I don't know about Fossapup but this is exactly what I experienced with Bionicpup. The way I solved it is to add 3sec of sleep before the command:

Code: Select all

#!/bin/sh
sleep 3
echo -n mem > /sys/power/state
After starting the script immediately close the lid. When the echo command starts while the lid is closed, my computer (Acer Aspire One 722) tries to restart but gives up after about a second and finally suspends.

Re: How to enable Suspend in Fossapup64 on USB?

Posted: Wed Aug 05, 2020 8:46 pm
by Clarity
[mention]bigpup[/mention] THANKS for that insight. I, now, know how to better control save-session during my PUP's daily operations.

Excellent knowledge :thumbup:

Re: How to enable Suspend in Fossapup64 on USB?

Posted: Thu Aug 06, 2020 12:49 am
by ozsouth
Some systems are unable to suspend effectively. I was never able to suspend with bionicpup64 on a variety of systems, so no surprise that fossapup64 has similar issues for some systems. A lesser 'suspend' is usually available - freeze (used instead of mem in script above or in /etc/acpi/actions/suspend.sh). To exit that, would need to tap power button upon opening lid.

Re: How to enable Suspend in Fossapup64 on USB?

Posted: Sat Aug 08, 2020 10:52 am
by mikewalsh
[mention]ozsouth[/mention] :-

Oz, just out of curiosity - and OS-specific issues aside! - would you happen to know if it's possible to make the suspend stuff function upon closing the lid of an older laptop? I'm thinking specifically of ye anciente Dell here, since I know there's a magnetically-controlled 'reed-switch' at the front top edge of the screen.

You know it's there, because a paper-clip will 'hang' there.....and if you listen closely, lowering the lid causes a soft 'click', fractions of an inch before the catch engages. I'm guessing this is what used to make suspend work back in its XP days....but how d'you tie the suspend/ACPI stuff in with the kernel functionality and whatever it is that actually communicates with that reed-switch?

Any ideas?


Mike. ;)

Re: How to enable Suspend in Fossapup64 on USB?

Posted: Sat Aug 08, 2020 11:54 am
by ozsouth
@mike - running cat /sys/power/state will tell what your system is capable of. Actually running it is somewhat hit n miss.
/etc/acpi/actions/suspend.sh contains the suggestion in earlier posts (echo -n mem > /sys/power/state). Can substitute freeze for mem. Freeze seems to be the only other option without complications (disk sounds risky), but not everything powers down & have to tap power button after reopening lid. Personally, I've tried various kernels & pups & find ScPup64 works with every system I have had in recent years, whereas bionicpup64 works with none of them. I don't know why.