Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm running Ubuntu 13.10 as a HTPC and have configuring the PC to resume from suspend in order to record scheduled live TV programs. This part works fine.

What I want to do now is determine what caused the PC to resume from the suspend state.

How can I tell if resume from suspend was caused by the real-time clock (rtc) using rtcwake, the power button or the USB keyboard?

I've checked the pm-powersave and pm-suspend logs but nothing is jumping out at me.

The reason I need this is that if the rtc caused the resume then after recording I can suspend the PC again, otherwise I can leave it powered on.

I'd be thankful for any tips you can provide.

share|improve this question

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.