APMD-List:
Archives

  
Back

to

APMD

Home

      Index: [thread] [date] [subject] [author]
  From: Craig Markwardt <craigm@pcasun3.gsfc.nasa.gov>
  To  : Jeffrey W. Baker <jwbaker@acm.org>
  Date: Mon, 24 Apr 2000 20:33:39 -0400 (EDT)

Re: apmd not triggering AC online/offline

Jeffrey W. Baker writes:
 > > 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.

Yes, but these could be two separate things.  Every time you do a cat
/proc/apm the kernel module queries the BIOS for the power state.
Power_change events are separately sent by the BIOS to the kernel.  In
principle the kernel could be gobbling these up before they get out to
apmd in userland.

 > > The ultimate test is to enable debugging in the kernel module, but
 > > that requires a recompile.
 > 
 > What do I define to enable that?

I think you have to edit the source directly.  There's an #undef
APM_DEBUG which needs to be changed to #define APM_DEBUG.  You will
get a lot of kernel messages this way, so it's not good for general
use.

But I agree, I think it's likely a BIOS problem.

Good luck!

Craig


Index: [thread] [date] [subject] [author]


Write to me! apenwarr@worldvisions.ca