WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: [SOLVED]Getting Suspend to RAM Working  (Read 3908 times)

nomer

  • Guest
[SOLVED]Getting Suspend to RAM Working
« 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?
« Last Edit: June 16, 2012, 12:06:01 PM by nomer »

Offline hiro

  • Hero Member
  • *****
  • Posts: 1229
Re: Getting Suspend to Memory Working
« Reply #1 on: June 16, 2012, 10:56:29 AM »
did you run acpid?

nomer

  • Guest
Re: Getting Suspend to Memory Working
« Reply #2 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.

nomer

  • Guest
Re: Getting Suspend to Memory Working
« Reply #3 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]"

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: [SOLVED]Getting Suspend to RAM Working
« Reply #4 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.

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11044
Re: [SOLVED]Getting Suspend to RAM Working
« Reply #5 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.
The only barriers that can stop you are the ones you create yourself.