Tiny Core Linux

Tiny Core Extensions => TCE Q&A Forum => Topic started by: nomer on June 16, 2012, 10:24:41 AM

Title: [SOLVED]Getting Suspend to RAM Working
Post by: nomer on June 16, 2012, 10:24:41 AM
I'm trying to make so I can suspend my machine to memory. I'm running TinyCore 4.5.3
I've installed acpitools.tcz onboot. I then used "acpitool -W " to allow some devices to wake up the machine. Then I tried "sudo acpitool --suspend". Unfortunately, it spits out this error:
Quote
Function Do_Suspend : could not open file : /proc/acpi/sleep.
 You must have write access to /proc/acpi/sleep to suspend your computer.
Sure enough, /proc/acpi/sleep doesn't exist. If I "cd" to /proc/acpi and try "sudo touch sleep" it simply outputs this:
Quote
touch: sleep: No such file or directory
What gives? How do I create the file or induce some tool to create it?
Title: Re: Getting Suspend to Memory Working
Post by: hiro on June 16, 2012, 10:56:29 AM
did you run acpid?
Title: Re: Getting Suspend to Memory Working
Post by: nomer on June 16, 2012, 11:52:06 AM
No, I hadn't orginally.
So I've now installed acpid.tcz onboot. I rebooted the machine, ran "sudo acpid start", added wake up devices, ran "sudo acpitool --suspend", and received the same result.

Hey, I just found suspend-utils.tcz in the repo; maybe I should give that a test.
Title: Re: Getting Suspend to Memory Working
Post by: nomer on June 16, 2012, 12:05:32 PM
Huzza! suspend-utils.tcz worked. Here were my steps:
1) remove apcitools.tcz and acpid.tcz from onboot.lst
2) install suspend-utils.tcz onboot
3) reboot
4) run "sudo s2ram" to suspend to ram
5) hit a key to resume

I'll mark the OP "[SOLVED]"
Title: Re: [SOLVED]Getting Suspend to RAM Working
Post by: gerald_clark on June 16, 2012, 12:22:11 PM
You might want to keep acpid so you can configure one of your buttons to run s2ram.
Title: Re: [SOLVED]Getting Suspend to RAM Working
Post by: curaga on June 16, 2012, 02:23:22 PM
Quote
What gives? How do I create the file or induce some tool to create it?

Acpitools is not up to date with the kernel. The control files are nowadays at /sys/power.

edit: We also seem to have the latest version of it, it hasn't had an update in two years.