WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

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

nomer

  • Guest
[SOLVED]Getting Suspend to RAM Working
« on: June 16, 2012, 07: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, 09:06:01 AM by nomer »

Offline hiro

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

nomer

  • Guest
Re: Getting Suspend to Memory Working
« Reply #2 on: June 16, 2012, 08: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, 09:05:32 AM »
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, 09:22:11 AM »
You might want to keep acpid so you can configure one of your buttons to run s2ram.

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 10981
Re: [SOLVED]Getting Suspend to RAM Working
« Reply #5 on: June 16, 2012, 11:23:22 AM »
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.