when I click suspend the pc goes in susend mode for some seconds and then it exits immediately
What do you mean by 'exits immediately" ?
- Does it transition from suspend to powerdown ?
Or
- Does it immediately wakes up after suspend ?
If the latter, could it be this ?
I reveive this message:
GP12 S4 *enabled pci:0000:00:07.1
GP13 S4 *enabled pci:0000:00:08.1
XHC0 S4 *enabled pci:0000:07:00.3
GP30 S4 *disabled
GP31 S4 *disabled
PS2K S3 *enabled pnp:00:04
*disabled serio:serio0
PS2M S3 *disabled
GPP0 S4 *enabled pci:0000:00:01.1
GPP8 S4 *enabled pci:0000:00:03.1
PTXH S4 *enabled pci:0000:02:00.0
PT20 S4 *disabled
PT21 S4 *disabled
PT22 S4 *disabled
PT23 S4 *disabled
PT24 S4 *disabled
PT26 S4 *disabled
PT27 S4 *disabled
PT28 S4 *disabled
PT29 S4 *enabled pci:0000:03:09.0
how can I do?
copypaste the complete block below in your terminal and press enter:
cat <<\EOF |sudo tee /etc/rc.local
#!/bin/sh -e
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.
echo 'GPP0' > /proc/acpi/wakeup
echo 'GPP8' > /proc/acpi/wakeup
echo 'GP12' > /proc/acpi/wakeup
echo 'GP13' > /proc/acpi/wakeup
echo 'XHC0' > /proc/acpi/wakeup
echo 'PS2K' > /proc/acpi/wakeup
echo 'PTXH' > /proc/acpi/wakeup
echo 'PT29' > /proc/acpi/wakeup
exit 0
EOF
sudo chmod a+x /etc/rc.local
If it's done, reboot.
Thank you, Thom.
Could you explain a bit about what that script will do?
What are all those codes intended to set?
It disallows those pieces of hardware to keep the computer awake as explained here:
The above blob of code will create an rc.local that will contain the commands to switch the hardware that's keeping the machine awake, to a state that it's no longer keeping the machine awake. In this case 8 (parts of) controllers that get this treatment.
Removing this rc.local will undo everything.
Usually echo 'GPP0' > /proc/acpi/wakeup is enough, but not always.
If the core above works, it's always possible to fine tune. If it doesn't, it's easy to revert.
i have found PS2K the problem of not suspend