285 lines
4.7 KiB
HTML
285 lines
4.7 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
|
<HTML
|
|
><HEAD
|
|
><TITLE
|
|
>Switching from APM to ACPI</TITLE
|
|
><META
|
|
NAME="GENERATOR"
|
|
CONTENT="Modular DocBook HTML Stylesheet Version 1.7"><LINK
|
|
REL="HOME"
|
|
TITLE="ACPI: Advanced Configuration and Power Interface"
|
|
HREF="index.html"><LINK
|
|
REL="PREVIOUS"
|
|
TITLE="Load related modules"
|
|
HREF="loadmodules.html"><LINK
|
|
REL="NEXT"
|
|
TITLE="Using ACPI"
|
|
HREF="usingacpi.html"></HEAD
|
|
><BODY
|
|
CLASS="sect1"
|
|
BGCOLOR="#FFFFFF"
|
|
TEXT="#000000"
|
|
LINK="#0000FF"
|
|
VLINK="#840084"
|
|
ALINK="#0000FF"
|
|
><DIV
|
|
CLASS="NAVHEADER"
|
|
><TABLE
|
|
SUMMARY="Header navigation table"
|
|
WIDTH="100%"
|
|
BORDER="0"
|
|
CELLPADDING="0"
|
|
CELLSPACING="0"
|
|
><TR
|
|
><TH
|
|
COLSPAN="3"
|
|
ALIGN="center"
|
|
>ACPI: Advanced Configuration and Power Interface</TH
|
|
></TR
|
|
><TR
|
|
><TD
|
|
WIDTH="10%"
|
|
ALIGN="left"
|
|
VALIGN="bottom"
|
|
><A
|
|
HREF="loadmodules.html"
|
|
ACCESSKEY="P"
|
|
>Prev</A
|
|
></TD
|
|
><TD
|
|
WIDTH="80%"
|
|
ALIGN="center"
|
|
VALIGN="bottom"
|
|
></TD
|
|
><TD
|
|
WIDTH="10%"
|
|
ALIGN="right"
|
|
VALIGN="bottom"
|
|
><A
|
|
HREF="usingacpi.html"
|
|
ACCESSKEY="N"
|
|
>Next</A
|
|
></TD
|
|
></TR
|
|
></TABLE
|
|
><HR
|
|
ALIGN="LEFT"
|
|
WIDTH="100%"></DIV
|
|
><DIV
|
|
CLASS="sect1"
|
|
><H1
|
|
CLASS="sect1"
|
|
><A
|
|
NAME="daemons"
|
|
></A
|
|
>15. Switching from APM to ACPI</H1
|
|
><P
|
|
>Do not let <SPAN
|
|
CLASS="application"
|
|
>apmd</SPAN
|
|
> and
|
|
<SPAN
|
|
CLASS="application"
|
|
>acpid</SPAN
|
|
> run at the same time unless you REALLY know
|
|
what you're doing. Debian will <EM
|
|
>not</EM
|
|
> make sure only one is running
|
|
at a time. You will have to check.
|
|
APM will try to put your system into S3. On the 2.4.x (and before) series
|
|
kernels this will quite probably hang your machine. S3 is not supported
|
|
until at least 2.5.x. Even the patch won't provide support for S3 in the
|
|
2.4.x series kernels. I personally did an <B
|
|
CLASS="command"
|
|
>apt-get remove apmd</B
|
|
>
|
|
to solve the hanging problem.</P
|
|
><P
|
|
>You should also be aware of another little glitch I discovered. The
|
|
XFree86 server has an option for DPMS (Energy Star) features. The DPMS can
|
|
states can be one of standby, suspend, off or on. Since the 2.4.x kernels
|
|
cannot suspend to disk, this can cause problems. I fixed my system by doing
|
|
two things:</P
|
|
><P
|
|
></P
|
|
><UL
|
|
><LI
|
|
><P
|
|
> <B
|
|
CLASS="command"
|
|
>xset <TT
|
|
CLASS="option"
|
|
>-dpms</TT
|
|
></B
|
|
> (disables DPMS features)
|
|
</P
|
|
></LI
|
|
><LI
|
|
><P
|
|
> In <TT
|
|
CLASS="filename"
|
|
>/etc/X11/XF86Config-4</TT
|
|
> I commented out
|
|
the line <TT
|
|
CLASS="option"
|
|
>Option "DPMS"</TT
|
|
> under Section "Monitor".
|
|
</P
|
|
></LI
|
|
></UL
|
|
><DIV
|
|
CLASS="warning"
|
|
><P
|
|
></P
|
|
><TABLE
|
|
CLASS="warning"
|
|
WIDTH="100%"
|
|
BORDER="0"
|
|
><TR
|
|
><TD
|
|
WIDTH="25"
|
|
ALIGN="CENTER"
|
|
VALIGN="TOP"
|
|
><IMG
|
|
SRC="../images/warning.gif"
|
|
HSPACE="5"
|
|
ALT="Warning"></TD
|
|
><TH
|
|
ALIGN="LEFT"
|
|
VALIGN="CENTER"
|
|
><B
|
|
>Lost Touchpad and Keyboard Interrupts</B
|
|
></TH
|
|
></TR
|
|
><TR
|
|
><TD
|
|
> </TD
|
|
><TD
|
|
ALIGN="LEFT"
|
|
VALIGN="TOP"
|
|
><P
|
|
>Karl Hegbloom emailed me to say that <SPAN
|
|
CLASS="QUOTE"
|
|
>"keyboard
|
|
keys sticking, touchpad pointer jumping suddenly across the screen,
|
|
lockups under heavy network I/O [was] caused by
|
|
polling the battery state via ACPI and the proc file system."</SPAN
|
|
> This
|
|
problem caused, in part, by a delay between the initial request for
|
|
information about the battery's status and the response. In that delay
|
|
interrupts may be locked out and synchronization with the keyboard and
|
|
touch pad may be lost. <SPAN
|
|
CLASS="QUOTE"
|
|
>"The overnight solution is to either turn off
|
|
the battery applet, or reduce its polling frequency."</SPAN
|
|
> Karl also
|
|
notes that a BIOS update was also able to solve the problem. Thanks Karl!</P
|
|
><P
|
|
> I did not find this to be a problem for me in the 2.4.x kernels,
|
|
however, it was a problem when I upgraded to 2.6.5. I use
|
|
<SPAN
|
|
CLASS="application"
|
|
>wmacpi</SPAN
|
|
> to monitor my battery status. By
|
|
setting the polling frequency to 1 (the lowest possible number), I seem
|
|
to have eliminated the touchpad lockups. In my
|
|
<TT
|
|
CLASS="filename"
|
|
>.xinitrc</TT
|
|
> file I use:
|
|
</P
|
|
><P
|
|
> <TT
|
|
CLASS="userinput"
|
|
><B
|
|
> <B
|
|
CLASS="command"
|
|
>/usr/bin/wmacpi</B
|
|
> <TT
|
|
CLASS="parameter"
|
|
><I
|
|
>-s 1</I
|
|
></TT
|
|
>
|
|
</B
|
|
></TT
|
|
>
|
|
</P
|
|
><P
|
|
> The <TT
|
|
CLASS="parameter"
|
|
><I
|
|
>-s 1</I
|
|
></TT
|
|
> represents the polling frequency
|
|
(sample rate) of <SPAN
|
|
CLASS="QUOTE"
|
|
>"once per minute."</SPAN
|
|
> The default is 20.
|
|
</P
|
|
></TD
|
|
></TR
|
|
></TABLE
|
|
></DIV
|
|
></DIV
|
|
><DIV
|
|
CLASS="NAVFOOTER"
|
|
><HR
|
|
ALIGN="LEFT"
|
|
WIDTH="100%"><TABLE
|
|
SUMMARY="Footer navigation table"
|
|
WIDTH="100%"
|
|
BORDER="0"
|
|
CELLPADDING="0"
|
|
CELLSPACING="0"
|
|
><TR
|
|
><TD
|
|
WIDTH="33%"
|
|
ALIGN="left"
|
|
VALIGN="top"
|
|
><A
|
|
HREF="loadmodules.html"
|
|
ACCESSKEY="P"
|
|
>Prev</A
|
|
></TD
|
|
><TD
|
|
WIDTH="34%"
|
|
ALIGN="center"
|
|
VALIGN="top"
|
|
><A
|
|
HREF="index.html"
|
|
ACCESSKEY="H"
|
|
>Home</A
|
|
></TD
|
|
><TD
|
|
WIDTH="33%"
|
|
ALIGN="right"
|
|
VALIGN="top"
|
|
><A
|
|
HREF="usingacpi.html"
|
|
ACCESSKEY="N"
|
|
>Next</A
|
|
></TD
|
|
></TR
|
|
><TR
|
|
><TD
|
|
WIDTH="33%"
|
|
ALIGN="left"
|
|
VALIGN="top"
|
|
>Load related modules</TD
|
|
><TD
|
|
WIDTH="34%"
|
|
ALIGN="center"
|
|
VALIGN="top"
|
|
> </TD
|
|
><TD
|
|
WIDTH="33%"
|
|
ALIGN="right"
|
|
VALIGN="top"
|
|
>Using ACPI</TD
|
|
></TR
|
|
></TABLE
|
|
></DIV
|
|
></BODY
|
|
></HTML
|
|
> |