[ltp] APMD and Standby on the TP-T21

D. Sen linux-thinkpad@www.bm-soft.com
Tue, 06 Mar 2001 07:07:57 -0500


Well,

I tried to replicate all your settings except for the "CONFIG_APM_CPU_IDLE=y"
in the kernel and the fact that I am running version 2.4.2 version of the
kernel. I dont know which version of the bios you are using. I am using
1.03      ( KZET22WW).

These are the problems I get with apmd:

Standby (via Fn+F3 or apm -S):
    Causes "hda: lost interrupt" message in the syslog. (I disable pcmcia
services from the apmd_proxy script then this problem doesnt show. However,
this is not an option using Fn+F3 because the apmd_proxy script isnt called
then.)

Suspend (via Fn+F4 or apm -s):
    Causes various hda error messages in the syslog, unless I use hdparm to
turn dma off and on before and after the suspend/resume cycles (from the
apmd_proxy script).

DS
Markus Alt wrote:

> "D. Sen" wrote:
> >
> > This is interesting. Comparing your hda parameters to mine, I have 32 bit
> > I/O
> > support and unmasq IRQ set to 1.
> >
> > Here are some questions:
> > Do you see *any* hda messages in the syslog.....during
> > suspend/standby/resume?
>
> Nope, and I usually do at least one hibernate/resume cycle per day when
> carrying the machine home from the office.
>
> > Do you use hdparm in your apmd_proxy (or /etc/sysconfig/apmd) to change
> > your hd
> > settings before and after a suspend/standby/resume cycle?
>
> No. At least I haven't configured anything to do so. I'll attach my
> /etc/rc.config.d/apmd.rc.config file, so you may compare the APM
> options. (I have no /etc/sysconfig/apm* files; presumably because the
> locations of the files differ from distribution to distribution.)
>
> > Is the apmd_proxy script called by apmd for standby?
>
> I would say so, as the apmd process runs with that very option which
> should manage these activities:
>
> root@altmark: /root (24) # ps -ef | grep apm | grep -v grep
> root       161     1  0 06:57 ?        00:00:01 /usr/sbin/apmd -w 10 -P
> /usr/sbin/apmd_proxy
>
> > What are your apmd related options, when you compile the kernel?
>
> root@altmark: /root (25) # grep APM /usr/src/linux/.config
> CONFIG_APM=y
> # CONFIG_APM_IGNORE_USER_SUSPEND is not set
> CONFIG_APM_DO_ENABLE=y
> CONFIG_APM_CPU_IDLE=y
> CONFIG_APM_DISPLAY_BLANK=y
> # CONFIG_APM_RTC_IS_GMT is not set
> CONFIG_APM_ALLOW_INTS=y
>
> > Which version of the kernel are you using?
>
> SuSE 7.1 with 2.2.18 (compiled from SuSE modified kernel sources)
>
> > Sorry for the barrage of questions.....just want to isolate the difference
> > here.
>
> No problem - hope it helps!
>
> Markus
>
> ----- The Linux ThinkPad mailing list -----
> The linux-thinkpad mailing list home page is at:
> http://www.bm-soft.com/~bm/tp_mailing.html

--
D. Sen, Room E167
AT&T Labs-Research
Shannon Laboratory
180 Park Ave.
Florham Park NJ 07932-0971
Ph: 973-360-8546
http://www.research.att.com/~dsen



----- The Linux ThinkPad mailing list -----
The linux-thinkpad mailing list home page is at:
http://www.bm-soft.com/~bm/tp_mailing.html