Page 1 of 1
Not able to Suspend via ACPI [SOLVED]
Posted: Wed Mar 23, 2022 8:41 pm
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
Re: An old problem but new to me - Not able to Suspend via ACPI
Posted: Wed Mar 23, 2022 9:03 pm
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
Re: An old problem but new to me - Not able to Suspend via ACPI
Posted: Wed Mar 23, 2022 10:39 pm
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.
Re: An old problem but new to me - Not able to Suspend via ACPI
Posted: Thu Mar 24, 2022 12:40 am
by williams2
Re: An old problem but new to me - Not able to Suspend via ACPI
Posted: Thu Mar 24, 2022 1:50 am
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?)
Re: An old problem but new to me - Not able to Suspend via ACPI
Posted: Thu Mar 24, 2022 10:55 am
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.
Re: Not able to Suspend via ACPI [SOLVED]
Posted: Thu Mar 24, 2022 7:37 pm
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.
Re: Not able to Suspend via ACPI [SOLVED]
Posted: Mon Aug 15, 2022 6:52 am
by karakakiko
I'm with this problema.
Reawake...
Do you find the solution?
Re: Not able to Suspend via ACPI [SOLVED]
Posted: Mon Aug 15, 2022 7:33 am
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.
Re: Not able to Suspend via ACPI [SOLVED]
Posted: Tue Aug 16, 2022 1:48 am
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 =(
Re: Not able to Suspend via ACPI [SOLVED]
Posted: Tue Aug 16, 2022 10:59 pm
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 =)