(Please note -- I read this post and it is not a duplicate.)

So for years, my linux laptop has allowed me to both suspend to disk and (with a little effort) suspend to RAM with one of these two commands

echo -n mem > /sys/power/state
echo "disk" > /sys/power/state

and wake up successfully every time.

[Edit -- I'm using ACPI to intercept the power button and run a short script that turns off wifi, issues the above command, and (after wake-up) turns wifi back on.]

One day recently, I discovered that my laptop is dual-core, and I was not using an SMP kernel. So I enabled SMP. As far as I can tell, that is the only change I made.

Now, my laptop can suspend to disk successfully, but as soon as it wakes up, it immediately goes into a second suspend-to-disk process. After the second suspend, the laptop wakes up and resumes normally. Almost as if the suspend command is applied to each CPU consecutively.

Suspending to RAM appears to work, but it is completely unable to wake up (the CAPS LOCK button flashes) so I'm not certain that it is or isn't working.

Is there something special I need to do to suspend/resume a dual-core Linux laptop?

  • So it goes to suspend second time even without lid open/close, just if you type those commands into terminal and then it behaves like that? – user140866 Jan 11 '16 at 17:29
  • But I don't think kernel is involved at all. I once debugged such a thing on Slackware and culprit was the doubled script functionality in /etc/acpi stuff that actually got called twice because of broken condition. – user140866 Jan 11 '16 at 17:30
  • I'm using ACPI to trigger suspend when I push the power button. (I should have said that originally.) I was told by a friend that might be the problem. I haven't tried just using the actual command yet. – hymie Jan 11 '16 at 19:47

ACPI was indeed the problem.

Running my suspend-to-disk script by hand works perfectly.

Suspend-to-ram is working better than it was, but still not working entirely correctly. But I'm happy enough with suspend-to-disk.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.