APMD-List:
Archives

  
Back

to

APMD

Home

      Index: [thread] [date] [subject] [author]
  From: Chris Worley <cworley@liberate.com>
  To  : <apmd-list@worldvisions.ca>
  Date: Tue, 18 Jul 2000 16:11:26 -0600

Re: Using power switch to go into standby mode

Jont Allen wrote:
> 
> Chris Worley wrote:
> >
> >
> > I looked at apmd_proxy, but I don't see how to specify: "if power off
> > then standby instead".
> 
> The response you got from Craig Markwardt is the definative answer.
> He said that "power off" is not supported by the apm kernel module.

It must be supported in the APM kernel module.  If I compile the kernel
without APM support, then the power switch has no effect (I have to pull
the plug).  Likewise, if I panic a kernel with APM support, the power
switch no longer works.

> apmd_proxy just manipulates what ever can be done from the command
> line, and automates suspend/resume events. It does not turn off
> the power. I can turn off the screen, and make your machine look
> quiet, or power down the disk. But it appears it cannot durn off the
> power.

I'd agree from looking at apmd_proxy.

So it looks like my only option is to trap power-off in the kernel apm.c
and redirect it to a suspend/standby mode from there.  Is that correct?

ACPI is not an option. It doesn't recognize acpi support in the
I-Opener.

Thanks,

Chris

> 
> >
> > It seems to me that apmd_proxy script is just doing whatever cleanup
> > might be necessary in the case of entering different modes, but not
> > changing mode altogether.
> >
> > Is this correct?
> correct.
> 
> >
> > It seems that apm in the kernel is catching this event, and I have to
> > modify the kernel so it doesn't allow power-off and suspends instead.
> >
> > Thanks,
> >
> > Chris
> >
> > > Hope this is relevant to your problem.
> > > Jont
> > >
> > > Chris Worley wrote:
> > > >
> > > > I'm using an I-Opener running Linux 2.2.14 as an XTerminal.
> > > >
> > > > I want to associate the power on/off switch with a standby mode (i.e.
> > > > screen power off).
> > > >
> > > > In QNX, the power switch merely turned off the power to the monitor...
> > > > How did they do that?  I'd like to be able to do the same in Linux.
> > > >
> > > > I don't want the network to shutdown (parts of the X session would
> > > > timeout), I just want the machine to look as if it were off, but when
> > > > turned back on, is still in the session as it was left.
> > > >
> > > > I haven't found anything in APM that would be appropriate.  "apm -s"
> > > > unloads the pegasus USB driver which panics the system.  "apm -S"
> > > > flashes the screen off and back on.  I can't see any hook in the apm
> > > > driver for catching the power-off interrupt, but I know it's there:
> > > > whenever the kernel panics (i.e. after trying to unload the pegasus
> > > > driver), I have to pull the power cord to shut it off... the switch
> > > > won't work.
> > > >
> > > > Any ideas on how to associate the switch to standby mode?
> > > >
> > > > Thanks,
> > > >
> > > > Chris
> > > >
> > > > P.S.: I apologize if this post is a repeat... I never received my copy
> > > > from the list server, and have been unable to get relevant archive
> > > > information from the list server (unless nobody has posted since
> > > > June???).  The list archiver really needs a better search mechanism.


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


Write to me! apenwarr@worldvisions.ca