public inbox for linux-pm@vger.kernel.org
 help / color / mirror / Atom feed
* APM depends on PM_SLEEP?
@ 2008-02-19 11:11 Guennadi Liakhovetski
  2008-02-20  0:17 ` Rafael J. Wysocki
  0 siblings, 1 reply; 4+ messages in thread
From: Guennadi Liakhovetski @ 2008-02-19 11:11 UTC (permalink / raw)
  To: linux-pm

Hi

Could anyone explain me why APM depends on PM_SLEEP? Isn't it a valid 
configuration, when I don't want to sleep / suspend, but need APM to, say, 
turn my machine off using APM_REAL_MODE_POWER_OFF, or if I need 
APM_DISPLAY_BLANK?

Thanks
Guennadi
---
Guennadi Liakhovetski

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: APM depends on PM_SLEEP?
  2008-02-19 11:11 APM depends on PM_SLEEP? Guennadi Liakhovetski
@ 2008-02-20  0:17 ` Rafael J. Wysocki
  2008-02-20 23:01   ` Guennadi Liakhovetski
  0 siblings, 1 reply; 4+ messages in thread
From: Rafael J. Wysocki @ 2008-02-20  0:17 UTC (permalink / raw)
  To: linux-pm; +Cc: Guennadi Liakhovetski

On Tuesday, 19 of February 2008, Guennadi Liakhovetski wrote:
> Hi

Hi,

> Could anyone explain me why APM depends on PM_SLEEP?

Because it refers to the code in drivers/base/power/main.c that depends on
PM_SLEEP.

> Isn't it a valid configuration, when I don't want to sleep / suspend, but
> need APM to, say, turn my machine off using
> APM_REAL_MODE_POWER_OFF, or if I need APM_DISPLAY_BLANK?

Yes, in theory, but that would require some more fine-grained #ifdeffing or
something similar.

Thanks,
Rafael

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: APM depends on PM_SLEEP?
  2008-02-20  0:17 ` Rafael J. Wysocki
@ 2008-02-20 23:01   ` Guennadi Liakhovetski
  2008-02-20 23:56     ` Rafael J. Wysocki
  0 siblings, 1 reply; 4+ messages in thread
From: Guennadi Liakhovetski @ 2008-02-20 23:01 UTC (permalink / raw)
  To: Rafael J. Wysocki; +Cc: linux-pm

On Wed, 20 Feb 2008, Rafael J. Wysocki wrote:

> On Tuesday, 19 of February 2008, Guennadi Liakhovetski wrote:
> > Hi
> 
> Hi,
> 
> > Could anyone explain me why APM depends on PM_SLEEP?
> 
> Because it refers to the code in drivers/base/power/main.c that depends on
> PM_SLEEP.
> 
> > Isn't it a valid configuration, when I don't want to sleep / suspend, but
> > need APM to, say, turn my machine off using
> > APM_REAL_MODE_POWER_OFF, or if I need APM_DISPLAY_BLANK?
> 
> Yes, in theory, but that would require some more fine-grained #ifdeffing or
> something similar.

As we see, for example, here:

http://www.uwsg.indiana.edu/hypermail/linux/kernel/0802.2/2215.html

it also happens in practice.

Thanks
Guennadi
---
Guennadi Liakhovetski

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: APM depends on PM_SLEEP?
  2008-02-20 23:01   ` Guennadi Liakhovetski
@ 2008-02-20 23:56     ` Rafael J. Wysocki
  0 siblings, 0 replies; 4+ messages in thread
From: Rafael J. Wysocki @ 2008-02-20 23:56 UTC (permalink / raw)
  To: Guennadi Liakhovetski; +Cc: linux-pm

On Thursday, 21 of February 2008, Guennadi Liakhovetski wrote:
> On Wed, 20 Feb 2008, Rafael J. Wysocki wrote:
> 
> > On Tuesday, 19 of February 2008, Guennadi Liakhovetski wrote:
> > > Hi
> > 
> > Hi,
> > 
> > > Could anyone explain me why APM depends on PM_SLEEP?
> > 
> > Because it refers to the code in drivers/base/power/main.c that depends on
> > PM_SLEEP.
> > 
> > > Isn't it a valid configuration, when I don't want to sleep / suspend, but
> > > need APM to, say, turn my machine off using
> > > APM_REAL_MODE_POWER_OFF, or if I need APM_DISPLAY_BLANK?
> > 
> > Yes, in theory, but that would require some more fine-grained #ifdeffing or
> > something similar.
> 
> As we see, for example, here:
> 
> http://www.uwsg.indiana.edu/hypermail/linux/kernel/0802.2/2215.html
> 
> it also happens in practice.

There are configurations in which it doesn't compile when this dependency
is removed.

I'm not an APM developer/maintainer/whatever and I have _much_ more urgent
things to take care of than this one.

Thanks,
Rafael

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2008-02-20 23:56 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-02-19 11:11 APM depends on PM_SLEEP? Guennadi Liakhovetski
2008-02-20  0:17 ` Rafael J. Wysocki
2008-02-20 23:01   ` Guennadi Liakhovetski
2008-02-20 23:56     ` Rafael J. Wysocki

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox