Skip to contentSkip to conversation

How to detect reason for ACPI wakeup?

DISCUSSION Marc MERLIN 3 participants 5 messages Apr 17, 2012 – Apr 23, 2012 ACPI

lore
Share & tools
lore
#0 lore raw

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

Signature · 4 lines
"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/  
#1 lore raw
Quoted 8 lines · Marc MERLIN

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

#2 lore raw
Quoted 9 lines · Bjorn Helgaas
Quoted 6 lines

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

#3 lore raw
Quoted 6 lines · Daniel Drake
Quoted 5 lines · Bjorn Helgaas
Quoted 5 lines

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.

Quoted 7 lines
Quoted 4 lines
Quoted 1 line

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

Signature · 4 lines
"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/  
#4 lore raw
Quoted 3 lines · Marc MERLIN

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