DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD General

OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 3rd October 2015
e1-531g e1-531g is offline
ISO Quartermaster
 
Join Date: Mar 2014
Posts: 628
Default Waking from sleep at specified time

Hello,
I would like to know if in OpenBSD it is possible to wake laptop from suspend or stand-by at particular time. Something similar to rtcwake from Linux and this is also possible in Windows by Task Scheduler.
Reply With Quote
  #2   (View Single Post)  
Old 3rd October 2015
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,984
Default

I don't think so. But it is a very good question. The apm(8) man page lists three states:
  • -S: standby (light sleep)
  • -s/zzz: suspend (deep sleep)
  • -z/ZZZ hibernation
apm(8) goes on to state that wakeup capability is platform-specific:
Quote:
Each system provides methods for waking from suspend or hibernate. For those machines supporting acpi(4) style suspend/resume (or hibernate/unhibernate) semantics, the wakeup devices for each sleep state are printed during system boot in dmesg(8).
The apm(4) driver page states that requests to standby or suspend are passed to ACPI. There are no parameters. Therefore, wakeup is controlled solely by the devices in the wakeup list in your dmesg. On this laptop, they are:
Code:
acpi0: wakeup devices LID_(S3) SLPB(S3) IGBE(S4) EXP4(S4) EXP7(S4) EHC1(S3) EHC2(S3) HDEF(S4)
Reply With Quote
Reply

Tags
sleep, suspend, wake, zzz


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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
64-bit Time on OpenBSD J65nko News 0 18th August 2013 04:55 PM
upgrade all ports while i sleep, dont bug me xmorg FreeBSD Ports and Packages 3 23rd October 2011 03:39 PM
Following -current for the first time... Daffy OpenBSD Installation and Upgrading 9 21st July 2011 06:38 PM
Time for a New Laptop harold FreeBSD General 4 5th October 2009 05:56 AM
NFS time outs trilog General software and network 1 5th May 2009 07:21 AM


All times are GMT. The time now is 02:32 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick