LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 03-21-2015, 11:25 AM   #1
malch
LQ Newbie
 
Registered: Mar 2015
Posts: 2

Rep: Reputation: Disabled
What device caused my system to wake?


I have been struggling to solve a problem with a system running Ubuntu that unexpectedly wakes up (from an S5 state).

I have searched the log files to no avail. Mr Google reveals others will the same problem, but no meaningful solutions as far as I can tell.

Even when I intentionally wake the system from S5 (via WOL for example) I am unable to find that event reflected anywhere in the logs. Booting with acpi.debug_layer=0xffffffff and acpi.debug_level=0x2 didn't seem to help either.

Any idea how to trace/catch the source of this wake event?
 
Old 03-21-2015, 12:46 PM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,750

Rep: Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928
Welcome to LinuxQuestions.

Once the computer is configured for WOL and shutdown the power on process is completely independent of the OS. The WOL magic packet is decoded by the ethernet adapter so would not expect any log event. Have you checked the BIOS for wake on events? Some have timers, power on after loss of main etc.
 
Old 03-21-2015, 04:14 PM   #3
malch
LQ Newbie
 
Registered: Mar 2015
Posts: 2

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by michaelk View Post
Once the computer is configured for WOL and shutdown the power on process is completely independent of the OS. The WOL magic packet is decoded by the ethernet adapter so would not expect any log event. Have you checked the BIOS for wake on events? Some have timers, power on after loss of main etc.
Yes, I have. Unfortunately, the BIOS was of no help. It does give me the option to disable RTC wakes which I have done. However, the system still wakes at random times.

I realize the OS is not running when the wake is initiated (and hence can't do anything). However, once the system starts booting up, the kernel can, through the ACPI protocols and tables, see what device initiated the wake. This is presumably how the Windows "powercfg -lastwake" command actually works.

ACPI is quite complex and deals with a lot more than simple power on/off events. And Linux includes pretty comprehensive ACPI support. Hence I suspect that the kernel is indeed getting that information. The information exists and is accessible -- the question remains concerning how to make the kernel reveal it.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How does the interrupt handler of a device know which process to wake up? Marnix Linux - General 19 11-30-2011 11:53 PM
Issue with wake from suspend state via USB device androandra Linux - Hardware 5 07-13-2011 10:58 AM
Help caused system not to be able to boot to KDE bschneider Linux - Newbie 2 09-24-2004 09:16 AM
System won't wake up mhl Linux - General 2 09-18-2003 12:58 PM
system hangs caused by hd mr_mandrill Slackware 1 02-28-2003 06:39 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 12:18 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration