[ltp] How can i suspend to ram?

venture Lee linux-thinkpad@linux-thinkpad.org
Sat, 5 May 2007 17:48:24 +0800


------=_Part_66056_11810697.1178358504718
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

tks you, when i enter hibernate-ram, it suspend successful, and normal wake
up, but if in console environment, not X window, the screen is confusion,
why?
how i suspend when i press fn+f4? i execute hibernate-ram as root, how i
execute it as normal user?

On 5/5/07, Michael Gaber <Michael.Gaber@gmx.net> wrote:
>
> hmm, emerge suspend2-sources (or the thinkpad-sources which were posted
> on this list) select suspend2 in the kernel
> use kernel-param acpi_sleep=s3_bios
> if you want to use fn+f4 to let it sleep you'll propably have to load
> ibm-acpi and check for the right event and enter this into
> /etc/acpi/default.sh)
> then you can either press fn+f4 or enter hibernate-ram
>
> venture Lee schrieb:
> > hi all
> > i need suspend my gentoo to ram, my kernel version is 2.6.20
> > how can i write the sleep script ?
> >
> > tks all
>
>

------=_Part_66056_11810697.1178358504718
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

tks you, when i enter hibernate-ram, it suspend successful, and normal wake up, but if in console environment, not X window, the screen is confusion, why?<br>how i suspend when i press fn+f4? i execute hibernate-ram as root, how i execute it as normal user?
<br><br><div><span class="gmail_quote">On 5/5/07, <b class="gmail_sendername">Michael Gaber</b> &lt;<a href="mailto:Michael.Gaber@gmx.net">Michael.Gaber@gmx.net</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
hmm, emerge suspend2-sources (or the thinkpad-sources which were posted<br>on this list) select suspend2 in the kernel<br>use kernel-param acpi_sleep=s3_bios<br>if you want to use fn+f4 to let it sleep you&#39;ll propably have to load
<br>ibm-acpi and check for the right event and enter this into<br>/etc/acpi/default.sh)<br>then you can either press fn+f4 or enter hibernate-ram<br><br>venture Lee schrieb:<br>&gt; hi all<br>&gt; i need suspend my gentoo to ram, my kernel version is 
2.6.20<br>&gt; how can i write the sleep script ?<br>&gt;<br>&gt; tks all<br><br></blockquote></div><br>

------=_Part_66056_11810697.1178358504718--