![]() |
APMD-List: |
to APMD Home
|
Index:
[thread]
[date]
[subject]
[author]
From: Jeffrey W. Baker <jwbaker@acm.org> To : <craigm@milkyway.gsfc.nasa.gov> Date: Mon, 24 Apr 2000 17:22:27 -0700 (PDT) Re: apmd not triggering AC online/offlineOn Mon, 24 Apr 2000, Craig Markwardt wrote: > > > > Jeffrey W. Baker writes: > > Hi there, > > > > I installed apmd 3.0 on a Sony Vaio Z505HS running RedHat 6.1. I upgraded > > the kernel to version 2.2.14. > > > > The problem is that apmd is not triggering the "change power" section of > > my apmd_proxy script. All other features work fine, and the > > apm(1) program is able to tell me when the machine is and isn't > > offline. /proc/apm is of the correct format. > > > > Is this a configuration issue or a bug? I want this functionality so that > > I can pause the disitributed.net client when I am on batteries and fire it > > up again when I hook up the line power. > > You can try enabling either of the debugging sections of apmd_proxy, > to see if the events are at least reaching the script. My guess is > they are not. APMD itself should definitely be passing those along, > and even logs them. I did debug it and the events are not reaching the log nor the script. > It is conceivable that the BIOS just isn't sending those events. > Which would be wierd since SONY/Phoenix obviously know how to do APM > already: my 505G works fine. Yes, and since the kernel is obviously aware that the power has been removed, I don't think it is a kernel problem. > > The ultimate test is to enable debugging in the kernel module, but > that requires a recompile. What do I define to enable that? > In principle the power change event could be simulated by comparing > the succesive ac power-on values. Currently apmd depends on a change > event from the BIOS. I'll look into debugging apmd. I attached gdb to my running apmd ( which was launched with -p 10 -w 5 -W ), but when I removed the power cord I didn't hit my breakpoints in apmd_call_proxy and apm_get_events. I'll have to spend more time on it. -jwb Index: [thread] [date] [subject] [author] |