Not able to Suspend via ACPI [SOLVED]

Issues and / or general discussion relating to Puppy

Moderator: Forum moderators

Post Reply
User avatar
courtage
Posts: 55
Joined: Thu Jul 16, 2020 10:31 am
Location: Puppy user since 2006
Has thanked: 29 times
Been thanked: 4 times

Not able to Suspend via ACPI [SOLVED]

Post by courtage »

I know this has been a bone of contention for users of all sorts of distros for years, but I can't remember having hit it before myself.

I've been running Bionic64 with rockedge's realtime kernel happily for a few years on an ancient Dell laptop, and it would suspend (s1) perfectly when I closed the lid.

I've just swung over to a nice 2014 ThinkPad (i7+12GB) and now I can't suspend at all.

If I shut the lid, it's just shut & the machine is still running.

If I try acpitool -s then it tries to sleep but *instantly* awakens again.

(I also see that none of the ctrl-Fn keys work for (eg) dimming the display, also unlike the old Dell)

So is this something I can sort out with a bit of Puppy (re)configuration or do we think this is just bad luck & I'm stuck with it?

Can't find anything in the BIOS settings by the way relating to ACPI or whatever.

h e l p

ps Puppy user since 2006 here, not a noob

Last edited by courtage on Thu Mar 24, 2022 10:55 am, edited 1 time in total.
User avatar
wizard
Posts: 1845
Joined: Sun Aug 09, 2020 7:50 pm
Has thanked: 2519 times
Been thanked: 600 times

Re: An old problem but new to me - Not able to Suspend via ACPI

Post by wizard »

Don't no if this will help, but works for me, just put a link on the desktop or in the tray. There are two lines of code, you can comment/uncomment as needed.

wizard

suspend.sh.gz
remove fake .gz
(196 Bytes) Downloaded 80 times

Big pile of OLD computers

User avatar
courtage
Posts: 55
Joined: Thu Jul 16, 2020 10:31 am
Location: Puppy user since 2006
Has thanked: 29 times
Been thanked: 4 times

Re: An old problem but new to me - Not able to Suspend via ACPI

Post by courtage »

Obviously I'll check that out @wizard, thanks.

I've just remembered that I have seen this before, and on another Lenovo in fact.

It was partially resolved by adding acpi=force to the boot parms for the kernel, but it didn't always seem to work. Sometimes it woke up again instantly, sometimes it didn't.

I'll try and see on this one too.

User avatar
Phoenix
Posts: 341
Joined: Fri Feb 12, 2021 2:03 am
Location: Canada
Has thanked: 4 times
Been thanked: 48 times

Re: An old problem but new to me - Not able to Suspend via ACPI

Post by Phoenix »

It may also be that it reawakens... because XHCI is set as a wakeup device. Meaning if you don't disable that your computer will never fall asleep because of your USB, or perhaps a keyboard. (Surface line anyone?)

IRC: firepup | Time to hack Puppy!

User avatar
courtage
Posts: 55
Joined: Thu Jul 16, 2020 10:31 am
Location: Puppy user since 2006
Has thanked: 29 times
Been thanked: 4 times

Re: An old problem but new to me - Not able to Suspend via ACPI

Post by courtage »

@phoenix thanks, this was an excellent steer.

I disabled "always on usb" (which allows you to charge external devices via usb when the laptop is off) in the BIOS & sleep works perfectly now.

User avatar
Phoenix
Posts: 341
Joined: Fri Feb 12, 2021 2:03 am
Location: Canada
Has thanked: 4 times
Been thanked: 48 times

Re: Not able to Suspend via ACPI [SOLVED]

Post by Phoenix »

Also if the BIOS/UEFI does not have any ACPI wakeup configuration options, you can always use the /proc subsystem by the kernel to set the devices.
It is located at /proc/acpi/wakeup and to toggle its state, echo the name of the device. For example XHCI is XHC.

Code: Select all

echo XHC > /proc/acpi/wakeup

IRC: firepup | Time to hack Puppy!

karakakiko
Posts: 4
Joined: Sun Aug 14, 2022 7:19 am

Re: Not able to Suspend via ACPI [SOLVED]

Post by karakakiko »

I'm with this problema.

Reawake...

Do you find the solution?

User avatar
courtage
Posts: 55
Joined: Thu Jul 16, 2020 10:31 am
Location: Puppy user since 2006
Has thanked: 29 times
Been thanked: 4 times

Re: Not able to Suspend via ACPI [SOLVED]

Post by courtage »

Yes the answer is two posts up the thread

courtage wrote: Thu Mar 24, 2022 10:55 am

I disabled "always on usb" (which allows you to charge external devices via usb when the laptop is off) in the BIOS & sleep works perfectly now.

karakakiko
Posts: 4
Joined: Sun Aug 14, 2022 7:19 am

Re: Not able to Suspend via ACPI [SOLVED]

Post by karakakiko »

I'm using an Acer Acpire 5050, with AMD Turion 64 mobile technology Mk-38.

The option "always-on USB" does not in the BIOS.

Sorry, I'm a noob =(

karakakiko
Posts: 4
Joined: Sun Aug 14, 2022 7:19 am

Re: Not able to Suspend via ACPI [SOLVED]

Post by karakakiko »

In an old topic I learn how SOLVE the problem without BIOS.

The topic with information is this:
viewtopic.php?f=4&t=3904&p=35872#p35872

williams2 says:

My laptop would not stay suspended (it would immediately wake up.)
So I wrote a script to disable everything and anything permitted to wake it up:

awk '/enabled/{print $1}' /proc/acpi/wakeup | while read a
do
echo "$a" > /proc/acpi/wakeup
done

Write in edit, do the permission and the command "acpitool -s" will suspend the notebook, and not reawake.

But you need to execute the file when you restart the puppy.

=)

I'm happy!

To awake you can press any button of the keyboard =)

Post Reply

Return to “Users”