{"id":3657,"date":"2022-12-20T17:09:18","date_gmt":"2022-12-20T20:09:18","guid":{"rendered":"http:\/\/lode.uno\/linux-man\/index.php\/2022\/12\/20\/rtcwake-man8\/"},"modified":"2022-12-20T17:09:18","modified_gmt":"2022-12-20T20:09:18","slug":"rtcwake-man8","status":"publish","type":"post","link":"https:\/\/lode.uno\/linux-man\/2022\/12\/20\/rtcwake-man8\/","title":{"rendered":"RTCWAKE (man8)"},"content":{"rendered":"<h1 align=\"center\">RTCWAKE<\/h1>\n<p> <a href=\"#NAME\">NAME<\/a><br \/> <a href=\"#SYNOPSIS\">SYNOPSIS<\/a><br \/> <a href=\"#DESCRIPTION\">DESCRIPTION<\/a><br \/> <a href=\"#OPTIONS\">OPTIONS<\/a><br \/> <a href=\"#NOTES\">NOTES<\/a><br \/> <a href=\"#FILES\">FILES<\/a><br \/> <a href=\"#HISTORY\">HISTORY<\/a><br \/> <a href=\"#AUTHORS\">AUTHORS<\/a><br \/> <a href=\"#COPYRIGHT\">COPYRIGHT<\/a><br \/> <a href=\"#SEE ALSO\">SEE ALSO<\/a><br \/> <a href=\"#AVAILABILITY\">AVAILABILITY<\/a> <\/p>\n<hr>\n<h2>NAME <a name=\"NAME\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">rtcwake \u2212 enter a system sleep state until specified wakeup time<\/p>\n<h2>SYNOPSIS <a name=\"SYNOPSIS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>rtcwake<\/b> [options] [<b>\u2212d<\/b> <i>device<\/i>] [<b>\u2212m<\/b> <i>standby_mode<\/i>] {<b>\u2212s<\/b> <i>seconds<\/i>|<b>\u2212t<\/b> <i>time_t<\/i>}<\/p>\n<h2>DESCRIPTION <a name=\"DESCRIPTION\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">This program is used to enter a system sleep state and to automatically wake from it at a specified time.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">This uses cross-platform Linux interfaces to enter a system sleep state, and leave it no later than a specified time. It uses any RTC framework driver that supports standard driver model wakeup flags.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">This is normally used like the old <b>apmsleep<\/b> utility, to wake from a suspend state like ACPI S1 (standby) or S3 (suspend-to-RAM). Most platforms can implement those without analogues of BIOS, APM, or ACPI.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">On some systems, this can also be used like <b>nvram-wakeup<\/b>, waking from states like ACPI S4 (suspend to disk). Not all systems have persistent media that are appropriate for such suspend modes.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">Note that alarm functionality depends on hardware; not every RTC is able to setup an alarm up to 24 hours in the future.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">The suspend setup may be interrupted by active hardware; for example wireless USB input devices that continue to send events for some fraction of a second after the return key is pressed. <b>rtcwake<\/b> tries to avoid this problem and it waits to terminal to settle down before entering a system sleep.<\/p>\n<h2>OPTIONS <a name=\"OPTIONS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>\u2212A<\/b>, <b>\u2212\u2212adjfile<\/b> <i>file<\/i><\/p>\n<p style=\"margin-left:22%;\">Specify an alternative path to the adjust file.<\/p>\n<p style=\"margin-left:11%;\"><b>\u2212a<\/b>, <b>\u2212\u2212auto<\/b><\/p>\n<p style=\"margin-left:22%;\">Read the clock mode (whether the hardware clock is set to UTC or local time) from the <i>adjtime<\/i> file, where <b>hwclock<\/b>(8) stores that information. This is the default.<\/p>\n<p style=\"margin-left:11%;\"><b>\u2212\u2212date<\/b> <i>timestamp<\/i><\/p>\n<p style=\"margin-left:22%;\">Set the wakeup time to the value of the timestamp. Format of the timestamp can be any of the following:<\/p>\n<p align=\"center\" style=\"margin-top: 1em\"><img decoding=\"async\" src=\"grohtml-1172341.png\" alt=\"Image grohtml-1172341.png\"><\/p>\n<p style=\"margin-left:11%;\"><b>\u2212d<\/b>, <b>\u2212\u2212device<\/b> <i>device<\/i><\/p>\n<p style=\"margin-left:22%;\">Use the specified <i>device<\/i> instead of <b>rtc0<\/b> as realtime clock. This option is only relevant if your system has more than one RTC. You may specify <b>rtc1<\/b>, <b>rtc2<\/b>, &#8230; here.<\/p>\n<p style=\"margin-left:11%;\"><b>\u2212l<\/b>, <b>\u2212\u2212local<\/b><\/p>\n<p style=\"margin-left:22%;\">Assume that the hardware clock is set to local time, regardless of the contents of the <i>adjtime<\/i> file.<\/p>\n<p style=\"margin-left:11%;\"><b>\u2212\u2212list\u2212modes<\/b><\/p>\n<p style=\"margin-left:22%;\">List available \u2212\u2212mode option arguments.<\/p>\n<p style=\"margin-left:11%;\"><b>\u2212m<\/b>, <b>\u2212\u2212mode<\/b> <i>mode<\/i><\/p>\n<p style=\"margin-left:22%;\">Go into the given standby state. Valid values for <i>mode<\/i> are: <b><br \/> standby<\/b><\/p>\n<p style=\"margin-left:32%;\">ACPI state S1. This state offers minimal, though real, power savings, while providing a very low-latency transition back to a working system. This is the default mode.<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"22%\"><\/td>\n<td width=\"9%\">\n<p><b>freeze<\/b><\/p>\n<\/td>\n<td width=\"1%\"><\/td>\n<td width=\"68%\">\n<p>The processes are frozen, all the devices are suspended and all the processors idled. This state is a general state that does not need any platform-specific support, but it saves less power than Suspend-to-RAM, because the system is still in a running state. (Available since Linux 3.9.)<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"22%\"><\/td>\n<td width=\"9%\">\n<p><b>mem<\/b><\/p>\n<\/td>\n<td width=\"1%\"><\/td>\n<td width=\"68%\">\n<p>ACPI state S3 (Suspend-to-RAM). This state offers significant power savings as everything in the system is put into a low-power state, except for memory, which is placed in self-refresh mode to retain its contents.<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"22%\"><\/td>\n<td width=\"9%\">\n<p><b>disk<\/b><\/p>\n<\/td>\n<td width=\"1%\"><\/td>\n<td width=\"68%\">\n<p>ACPI state S4 (Suspend-to-disk). This state offers the greatest power savings, and can be used even in the absence of low-level platform support for power management. This state operates similarly to Suspend-to-RAM, but includes a final step of writing memory contents to disk.<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"22%\"><\/td>\n<td width=\"9%\">\n<p><b>off<\/b><\/p>\n<\/td>\n<td width=\"1%\"><\/td>\n<td width=\"68%\">\n<p>ACPI state S5 (Poweroff). This is done by calling \u2019\/sbin\/shutdown\u2019. Not officially supported by ACPI, but it usually works.<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"22%\"><\/td>\n<td width=\"9%\">\n<p><b>no<\/b><\/p>\n<\/td>\n<td width=\"1%\"><\/td>\n<td width=\"68%\">\n<p>Don\u2019t suspend, only set the RTC wakeup time.<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"22%\"><\/td>\n<td width=\"9%\">\n<p><b>on<\/b><\/p>\n<\/td>\n<td width=\"1%\"><\/td>\n<td width=\"68%\">\n<p>Don\u2019t suspend, but read the RTC device until an alarm time appears. This mode is useful for debugging.<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:22%;\"><b>disable<\/b><\/p>\n<p style=\"margin-left:32%;\">Disable a previously set alarm.<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"22%\"><\/td>\n<td width=\"6%\">\n<p><b>show<\/b><\/p>\n<\/td>\n<td width=\"4%\"><\/td>\n<td width=\"68%\">\n<p>Print alarm information in format: &#8220;alarm: off|on <time>&#8220;. The time is in ctime() output format, e.g., &#8220;alarm: on Tue Nov 16 04:48:45 2010&#8221;.<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:11%;\"><b>\u2212n<\/b>, <b>\u2212\u2212dry-run<\/b><\/p>\n<p style=\"margin-left:22%;\">This option does everything apart from actually setting up the alarm, suspending the system, or waiting for the alarm.<\/p>\n<p style=\"margin-left:11%;\"><b>\u2212s<\/b>, <b>\u2212\u2212seconds<\/b> <i>seconds<\/i><\/p>\n<p style=\"margin-left:22%;\">Set the wakeup time to <i>seconds<\/i> in the future from now.<\/p>\n<p style=\"margin-left:11%;\"><b>\u2212t<\/b>, <b>\u2212\u2212time<\/b> <i>time_t<\/i><\/p>\n<p style=\"margin-left:22%;\">Set the wakeup time to the absolute time <i>time_t<\/i>. <i>time_t<\/i> is the time in seconds since 1970-01-01, 00:00 UTC. Use the <b>date<\/b>(1) tool to convert between human-readable time and <i>time_t<\/i>.<\/p>\n<p style=\"margin-left:11%;\"><b>\u2212u<\/b>, <b>\u2212\u2212utc<\/b><\/p>\n<p style=\"margin-left:22%;\">Assume that the hardware clock is set to UTC (Universal Time Coordinated), regardless of the contents of the <i>adjtime<\/i> file.<\/p>\n<p style=\"margin-left:11%;\"><b>\u2212v<\/b>, <b>\u2212\u2212verbose<\/b><\/p>\n<p style=\"margin-left:22%;\">Be verbose.<\/p>\n<p style=\"margin-left:11%;\"><b>\u2212V<\/b>, <b>\u2212\u2212version<\/b><\/p>\n<p style=\"margin-left:22%;\">Display version information and exit.<\/p>\n<p style=\"margin-left:11%;\"><b>\u2212h<\/b>, <b>\u2212\u2212help<\/b><\/p>\n<p style=\"margin-left:22%;\">Display help text and exit.<\/p>\n<h2>NOTES <a name=\"NOTES\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">Some PC systems can\u2019t currently exit sleep states such as <b>mem<\/b> using only the kernel code accessed by this driver. They need help from userspace code to make the framebuffer work again.<\/p>\n<h2>FILES <a name=\"FILES\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><i>\/etc\/adjtime<\/i><\/p>\n<h2>HISTORY <a name=\"HISTORY\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">The program was posted several times on LKML and other lists before appearing in kernel commit message for Linux 2.6 in the GIT commit 87ac84f42a7a580d0dd72ae31d6a5eb4bfe04c6d.<\/p>\n<h2>AUTHORS <a name=\"AUTHORS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">The program was written by David Brownell <dbrownell@users.sourceforge.net> and improved by Bernhard Walle <bwalle@suse.de>.<\/p>\n<h2>COPYRIGHT <a name=\"COPYRIGHT\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">This is free software. You may redistribute copies of it under the terms of the GNU General Public License <http:\/\/www.gnu.org\/licenses\/gpl.html>. There is NO WARRANTY, to the extent permitted by law.<\/p>\n<h2>SEE ALSO <a name=\"SEE ALSO\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>hwclock<\/b>(8), <b>date<\/b>(1)<\/p>\n<h2>AVAILABILITY <a name=\"AVAILABILITY\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">The rtcwake command is part of the util-linux package and is available from the <a href=\"https:\/\/www.kernel.org\/pub\/linux\/utils\/util-linux\/\">Linux Kernel Archive<\/a>.<\/p>\n<hr>\n","protected":false},"excerpt":{"rendered":"<p>  rtcwake \u2212 enter a system sleep state until specified wakeup time <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[5,52,4,772],"class_list":["post-3657","post","type-post","status-publish","format-standard","hentry","category-8-administracion-del-sistema","tag-5","tag-administracion","tag-man8","tag-rtcwake"],"gutentor_comment":0,"_links":{"self":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/3657","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/comments?post=3657"}],"version-history":[{"count":0,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/3657\/revisions"}],"wp:attachment":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/media?parent=3657"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/categories?post=3657"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/tags?post=3657"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}