public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
* How to detect reason for ACPI wakeup?
@ 2012-04-17 17:17 Marc MERLIN
  2012-04-23 20:03 ` Bjorn Helgaas
  0 siblings, 1 reply; 5+ messages in thread
From: Marc MERLIN @ 2012-04-17 17:17 UTC (permalink / raw)
  To: linux-acpi

Howdy,

My HTPC goes to sleep (S3) and resumes just fine (via RTC or WOL).

My problem is that I need to know whether it woke up from RTC or WOL and I
find nothing in dmesg that gives me a clue for the wakeup reason.

Is it something that I can get from somewhere?

Thanks,
Marc
-- 
"A mouse is a device used to point at the xterm you want to type in" - A.S.R.
Microsoft is to operating systems ....
                                      .... what McDonalds is to gourmet cooking
Home page: http://marc.merlins.org/  

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

* Re: How to detect reason for ACPI wakeup?
  2012-04-17 17:17 How to detect reason for ACPI wakeup? Marc MERLIN
@ 2012-04-23 20:03 ` Bjorn Helgaas
  2012-04-23 20:07   ` Daniel Drake
  0 siblings, 1 reply; 5+ messages in thread
From: Bjorn Helgaas @ 2012-04-23 20:03 UTC (permalink / raw)
  To: Marc MERLIN; +Cc: linux-acpi, Daniel Drake, Zhang Rui

On Tue, Apr 17, 2012 at 11:17 AM, Marc MERLIN <marc@merlins.org> wrote:
> Howdy,
>
> My HTPC goes to sleep (S3) and resumes just fine (via RTC or WOL).
>
> My problem is that I need to know whether it woke up from RTC or WOL and I
> find nothing in dmesg that gives me a clue for the wakeup reason.
>
> Is it something that I can get from somewhere?

http://marc.info/?l=linux-acpi&m=133478932527097&w=2 is a similar sort
of request; maybe something similar could be done.

Bjorn

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

* Re: How to detect reason for ACPI wakeup?
  2012-04-23 20:03 ` Bjorn Helgaas
@ 2012-04-23 20:07   ` Daniel Drake
  2012-04-23 20:24     ` Marc MERLIN
  0 siblings, 1 reply; 5+ messages in thread
From: Daniel Drake @ 2012-04-23 20:07 UTC (permalink / raw)
  To: Bjorn Helgaas; +Cc: Marc MERLIN, linux-acpi, Zhang Rui

On Mon, Apr 23, 2012 at 2:03 PM, Bjorn Helgaas <bhelgaas@google.com> wrote:
>> My HTPC goes to sleep (S3) and resumes just fine (via RTC or WOL).
>>
>> My problem is that I need to know whether it woke up from RTC or WOL and I
>> find nothing in dmesg that gives me a clue for the wakeup reason.
>>
>> Is it something that I can get from somewhere?
>
> http://marc.info/?l=linux-acpi&m=133478932527097&w=2 is a similar sort
> of request; maybe something similar could be done.

Here's how you can detect RTC wakeup:
http://patchwork.ozlabs.org/patch/153612/

Daniel

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

* Re: How to detect reason for ACPI wakeup?
  2012-04-23 20:07   ` Daniel Drake
@ 2012-04-23 20:24     ` Marc MERLIN
  2012-04-23 20:26       ` Daniel Drake
  0 siblings, 1 reply; 5+ messages in thread
From: Marc MERLIN @ 2012-04-23 20:24 UTC (permalink / raw)
  To: Daniel Drake; +Cc: Bjorn Helgaas, linux-acpi, Zhang Rui

On Mon, Apr 23, 2012 at 02:07:28PM -0600, Daniel Drake wrote:
> On Mon, Apr 23, 2012 at 2:03 PM, Bjorn Helgaas <bhelgaas@google.com> wrote:
> >> My HTPC goes to sleep (S3) and resumes just fine (via RTC or WOL).
> >>
> >> My problem is that I need to know whether it woke up from RTC or WOL and I
> >> find nothing in dmesg that gives me a clue for the wakeup reason.
> >>
> >> Is it something that I can get from somewhere?
> >
> > http://marc.info/?l=linux-acpi&m=133478932527097&w=2 is a similar sort
> > of request; maybe something similar could be done.
> 
> Here's how you can detect RTC wakeup:
> http://patchwork.ozlabs.org/patch/153612/

Thanks for the patches.

Do you know if either is likely to ever make it to mainline?

Thanks,
Marc
-- 
"A mouse is a device used to point at the xterm you want to type in" - A.S.R.
Microsoft is to operating systems ....
                                      .... what McDonalds is to gourmet cooking
Home page: http://marc.merlins.org/  

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

* Re: How to detect reason for ACPI wakeup?
  2012-04-23 20:24     ` Marc MERLIN
@ 2012-04-23 20:26       ` Daniel Drake
  0 siblings, 0 replies; 5+ messages in thread
From: Daniel Drake @ 2012-04-23 20:26 UTC (permalink / raw)
  To: Marc MERLIN; +Cc: Bjorn Helgaas, linux-acpi, Zhang Rui

On Mon, Apr 23, 2012 at 2:24 PM, Marc MERLIN <marc@merlins.org> wrote:
> Thanks for the patches.
>
> Do you know if either is likely to ever make it to mainline?

I'm planning on pestering people until they do. The button wakeup one
has been acked so I assume that one is close.
Waiting for comments on the rtc-cmos patch.

Daniel

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

end of thread, other threads:[~2012-04-23 20:26 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-04-17 17:17 How to detect reason for ACPI wakeup? Marc MERLIN
2012-04-23 20:03 ` Bjorn Helgaas
2012-04-23 20:07   ` Daniel Drake
2012-04-23 20:24     ` Marc MERLIN
2012-04-23 20:26       ` Daniel Drake

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