[ltp] How can i suspend to ram?

venture Lee linux-thinkpad@linux-thinkpad.org
Thu, 10 May 2007 23:59:25 +0800


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

i use gentoo, so i just emerge thinkfinger package in portage, and config
/etc/pam.d/system-auth
#%PAM-1.0

auth       sufficient   pam_thinkfinger.so

auth       required     pam_env.so
auth       sufficient   pam_unix.so try_first_pass likeauth nullok
auth       required     pam_deny.so

account    required     pam_unix.so

password   required     pam_cracklib.so difok=2 minlen=8 dcredit=2 ocredit=2
retry=3
password   sufficient   pam_unix.so nullok md5 shadow use_authtok
password   required     pam_deny.so

session    required     pam_limits.so
session    required     pam_unix.so


On 5/10/07, Michael Gaber <Michael.Gaber@gmx.net> wrote:
>
> which lib do you use for your fingerprint reader? the OSS one or
> theproprietary?
>
> venture Lee schrieb:
> > my problem had resolved, add a kernel parameter ec_intr=0, but another
> > problem, when i hibernate to swap, after resume, the Fingerprint Reader
> > <http://www.thinkwiki.org/wiki/Integrated_Fingerprint_Reader> is not
> > working for me.
> >
> > On 5/5/07, *Michael Gaber* <Michael.Gaber@gmx.net
> > <mailto:Michael.Gaber@gmx.net>> wrote:
> >
> >     is there a intel-console-fb-driver? if there is i would try that,
> else:
> >     sry can't help you with that one
> >
> >     venture Lee schrieb:
> >      > my video card is Intel 950GMA, Driver is i810,  i can't use
> >      > vesafb-tng,  it  not  working for me
> >      >
> >      > On 5/5/07, *Michael Gaber* < Michael.Gaber@gmx.net
> >     <mailto:Michael.Gaber@gmx.net>
> >      > <mailto:Michael.Gaber@gmx.net <mailto:Michael.Gaber@gmx.net>>>
> wrote:
> >      >
> >      >
> >      >
> >      >     venture Lee schrieb:
> >      >      > 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?
> >      >     perhaps the console fb-driver messes up, try reset or
> >     switching the
> >      >     consoles or changing between vesafb/vesafb-tng/radeonfb
> >      >
> >      >      > how i suspend when i press fn+f4?
> >      >     in /etc/acpi/default.sh you can define the reactions to
> various
> >      >     acpi-events. you'll have to check what acpi-event pressing
> >     fn+f4 gives
> >      >     you and enter this event to the file
> >      >
> >      >     i execute hibernate-ram as root, how i
> >      >      > execute it as normal user?
> >      >
> >      >     very simple: you can't, except with pressing fn+f4, because
> >     acpid runs
> >      >     as root
> >      >
> >      >      >
> >      >      > On 5/5/07, *Michael Gaber* < Michael.Gaber@gmx.net
> >     <mailto:Michael.Gaber@gmx.net>
> >      >     <mailto: Michael.Gaber@gmx.net <mailto:Michael.Gaber@gmx.net
> >>
> >      >      > <mailto:Michael.Gaber@gmx.net
> >     <mailto:Michael.Gaber@gmx.net> <mailto:Michael.Gaber@gmx.net
> >     <mailto: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_148840_16685740.1178812765629
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

i use gentoo, so i just emerge thinkfinger package in portage, and config /etc/pam.d/system-auth <br>#%PAM-1.0<br><br>auth&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; sufficient&nbsp;&nbsp; pam_thinkfinger.so<br><br>auth&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; required&nbsp;&nbsp;&nbsp;&nbsp; pam_env.so<br>auth&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; sufficient&nbsp;&nbsp; pam_unix.so try_first_pass likeauth nullok
<br>auth&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; required&nbsp;&nbsp;&nbsp;&nbsp; pam_deny.so<br><br>account&nbsp;&nbsp;&nbsp; required&nbsp;&nbsp;&nbsp;&nbsp; pam_unix.so<br><br>password&nbsp;&nbsp; required&nbsp;&nbsp;&nbsp;&nbsp; pam_cracklib.so difok=2 minlen=8 dcredit=2 ocredit=2 retry=3<br>password&nbsp;&nbsp; sufficient&nbsp;&nbsp; pam_unix.so nullok md5 shadow use_authtok
<br>password&nbsp;&nbsp; required&nbsp;&nbsp;&nbsp;&nbsp; pam_deny.so<br><br>session&nbsp;&nbsp;&nbsp; required&nbsp;&nbsp;&nbsp;&nbsp; pam_limits.so<br>session&nbsp;&nbsp;&nbsp; required&nbsp;&nbsp;&nbsp;&nbsp; pam_unix.so<br><br><br><div><span class="gmail_quote">On 5/10/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;">which lib do you use for your fingerprint reader? the OSS one or
<br>theproprietary?<br><br>venture Lee schrieb:<br>&gt; my problem had resolved, add a kernel parameter ec_intr=0, but another<br>&gt; problem, when i hibernate to swap, after resume, the Fingerprint Reader<br>&gt; &lt;<a href="http://www.thinkwiki.org/wiki/Integrated_Fingerprint_Reader">
http://www.thinkwiki.org/wiki/Integrated_Fingerprint_Reader</a>&gt; is not<br>&gt; working for me.<br>&gt;<br>&gt; On 5/5/07, *Michael Gaber* &lt;<a href="mailto:Michael.Gaber@gmx.net">Michael.Gaber@gmx.net</a><br>&gt; &lt;mailto:
<a href="mailto:Michael.Gaber@gmx.net">Michael.Gaber@gmx.net</a>&gt;&gt; wrote:<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; is there a intel-console-fb-driver? if there is i would try that, else:<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; sry can&#39;t help you with that one<br>
&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; venture Lee schrieb:<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt; my video card is Intel 950GMA, Driver is i810,&nbsp;&nbsp;i can&#39;t use<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt; vesafb-tng,&nbsp;&nbsp;it&nbsp;&nbsp;not&nbsp;&nbsp;working for me<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt; On 5/5/07, *Michael Gaber* &lt; 
<a href="mailto:Michael.Gaber@gmx.net">Michael.Gaber@gmx.net</a><br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &lt;mailto:<a href="mailto:Michael.Gaber@gmx.net">Michael.Gaber@gmx.net</a>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt; &lt;mailto:<a href="mailto:Michael.Gaber@gmx.net">
Michael.Gaber@gmx.net</a> &lt;mailto:<a href="mailto:Michael.Gaber@gmx.net">Michael.Gaber@gmx.net</a>&gt;&gt;&gt; wrote:<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt;&nbsp;&nbsp;&nbsp;&nbsp; venture Lee schrieb:<br>
&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt; tks you, when i enter hibernate-ram, it suspend<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; successful, and<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt;&nbsp;&nbsp;&nbsp;&nbsp; normal<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt; wake up, but if in console environment, not X window, the<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; screen is
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt; confusion, why?<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt;&nbsp;&nbsp;&nbsp;&nbsp; perhaps the console fb-driver messes up, try reset or<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; switching the<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt;&nbsp;&nbsp;&nbsp;&nbsp; consoles or changing between vesafb/vesafb-tng/radeonfb
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt; how i suspend when i press fn+f4?<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt;&nbsp;&nbsp;&nbsp;&nbsp; in /etc/acpi/default.sh you can define the reactions to various<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt;&nbsp;&nbsp;&nbsp;&nbsp; acpi-events. you&#39;ll have to check what acpi-event pressing
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; fn+f4 gives<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt;&nbsp;&nbsp;&nbsp;&nbsp; you and enter this event to the file<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt;&nbsp;&nbsp;&nbsp;&nbsp; i execute hibernate-ram as root, how i<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt; execute it as normal user?<br>
&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt;&nbsp;&nbsp;&nbsp;&nbsp; very simple: you can&#39;t, except with pressing fn+f4, because<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; acpid runs<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt;&nbsp;&nbsp;&nbsp;&nbsp; as root<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt; On 5/5/07, *Michael Gaber* &lt; 
<a href="mailto:Michael.Gaber@gmx.net">Michael.Gaber@gmx.net</a><br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &lt;mailto:<a href="mailto:Michael.Gaber@gmx.net">Michael.Gaber@gmx.net</a>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt;&nbsp;&nbsp;&nbsp;&nbsp; &lt;mailto: <a href="mailto:Michael.Gaber@gmx.net">
Michael.Gaber@gmx.net</a> &lt;mailto:<a href="mailto:Michael.Gaber@gmx.net">Michael.Gaber@gmx.net</a>&gt;&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt; &lt;mailto:<a href="mailto:Michael.Gaber@gmx.net">Michael.Gaber@gmx.net</a><br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &lt;mailto:
<a href="mailto:Michael.Gaber@gmx.net">Michael.Gaber@gmx.net</a>&gt; &lt;mailto:<a href="mailto:Michael.Gaber@gmx.net">Michael.Gaber@gmx.net</a><br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &lt;mailto:<a href="mailto:Michael.Gaber@gmx.net">Michael.Gaber@gmx.net
</a>&gt;&gt;&gt;&gt; wrote:<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt;&nbsp;&nbsp;&nbsp;&nbsp; hmm, emerge suspend2-sources (or the thinkpad-sources<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; which<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt;&nbsp;&nbsp;&nbsp;&nbsp; were posted<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt;&nbsp;&nbsp;&nbsp;&nbsp; on this list) select suspend2 in the kernel
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt;&nbsp;&nbsp;&nbsp;&nbsp; use kernel-param acpi_sleep=s3_bios<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt;&nbsp;&nbsp;&nbsp;&nbsp; if you want to use fn+f4 to let it sleep you&#39;ll<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; propably have<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt;&nbsp;&nbsp;&nbsp;&nbsp; to load<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt;&nbsp;&nbsp;&nbsp;&nbsp; ibm-acpi and check for the right event and enter this into
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt;&nbsp;&nbsp;&nbsp;&nbsp; /etc/acpi/default.sh)<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt;&nbsp;&nbsp;&nbsp;&nbsp; then you can either press fn+f4 or enter hibernate-ram<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt;&nbsp;&nbsp;&nbsp;&nbsp; venture Lee schrieb:
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt; hi all<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt; i need suspend my gentoo to ram, my kernel version<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; is 2.6.20<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt; how can i write the sleep script ?
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt; tks all<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt;<br>&gt;<br>&gt;<br><br></blockquote></div><br>

------=_Part_148840_16685740.1178812765629--