{
    "content": [
        {
            "type": "text",
            "text": "# RTCWAKE (man)\n\n## NAME\n\nrtcwake - enter a system sleep state until specified wakeup time\n\n## SYNOPSIS\n\nrtcwake [options] [-d device] [-m standbymode] {-s seconds|-t timet}\n\n## DESCRIPTION\n\nThis program is used to enter a system sleep state and to automatically wake from it at a\nspecified time.\n\n## TLDR\n\n> Enter a system sleep state until specified wakeup time relative to your BIOS clock.\n\n- Show whether an alarm is set or not:\n  `sudo rtcwake {{-m|--mode}} show {{-v|--verbose}}`\n- Suspend to RAM and wakeup after 10 seconds:\n  `sudo rtcwake {{-m|--mode}} mem {{-s|--seconds}} {{10}}`\n- Suspend to disk (higher power saving) and wakeup 15 minutes later:\n  `sudo rtcwake {{-m|--mode}} disk --date +{{15}}min`\n- Freeze the system (more efficient than suspend-to-RAM but version 3.9 or newer of the Linux kernel is required) and wakeup at a given date and time:\n  `sudo rtcwake {{-m|--mode}} freeze --date {{YYYYMMDDhhmm}}`\n- Disable a previously set alarm:\n  `sudo rtcwake {{-m|--mode}} disable`\n- Perform a dry run to wakeup the computer at a given time. (Press `<Ctrl c>` to abort):\n  `sudo rtcwake {{-m|--mode}} on --date {{hh:ss}}`\n\n*Source: tldr-pages*\n\n## Sections\n\n- **NAME**\n- **SYNOPSIS**\n- **DESCRIPTION**\n- **OPTIONS** (13 subsections)\n- **NOTES**\n- **FILES**\n- **HISTORY**\n- **AUTHORS**\n- **COPYRIGHT**\n- **SEE ALSO**\n- **REPORTING BUGS**\n- **AVAILABILITY**\n\nUse structuredContent.sections for detailed options, examples, and full documentation.\n"
        }
    ],
    "structuredContent": {
        "command": "RTCWAKE",
        "section": "",
        "mode": "man",
        "summary": "rtcwake - enter a system sleep state until specified wakeup time",
        "synopsis": "rtcwake [options] [-d device] [-m standbymode] {-s seconds|-t timet}",
        "tldr_summary": "Enter a system sleep state until specified wakeup time relative to your BIOS clock.",
        "tldr_examples": [
            {
                "description": "Show whether an alarm is set or not",
                "command": "sudo rtcwake {{-m|--mode}} show {{-v|--verbose}}"
            },
            {
                "description": "Suspend to RAM and wakeup after 10 seconds",
                "command": "sudo rtcwake {{-m|--mode}} mem {{-s|--seconds}} {{10}}"
            },
            {
                "description": "Suspend to disk (higher power saving) and wakeup 15 minutes later",
                "command": "sudo rtcwake {{-m|--mode}} disk --date +{{15}}min"
            },
            {
                "description": "Freeze the system (more efficient than suspend-to-RAM but version 3.9 or newer of the Linux kernel is required) and wakeup at a given date and time",
                "command": "sudo rtcwake {{-m|--mode}} freeze --date {{YYYYMMDDhhmm}}"
            },
            {
                "description": "Disable a previously set alarm",
                "command": "sudo rtcwake {{-m|--mode}} disable"
            },
            {
                "description": "Perform a dry run to wakeup the computer at a given time. (Press `<Ctrl c>` to abort)",
                "command": "sudo rtcwake {{-m|--mode}} on --date {{hh:ss}}"
            }
        ],
        "tldr_source": "official",
        "flags": [
            {
                "flag": "-A",
                "long": "--adjfile",
                "arg": null,
                "description": "Specify an alternative path to the adjust file."
            },
            {
                "flag": "-a",
                "long": "--auto",
                "arg": null,
                "description": "Read the clock mode (whether the hardware clock is set to UTC or local time) from the adjtime file, where hwclock(8) stores that information. This is the default. --date timestamp Set the wakeup time to the value of the timestamp. Format of the timestamp can be any of the following: ┌────────────────────┬────────────────────────────────┐ │ │ │ │YYYYMMDDhhmmss │ │ ├────────────────────┼────────────────────────────────┤ │ │ │ │YYYY-MM-DD hh:mm:ss │ │ ├────────────────────┼────────────────────────────────┤ │ │ │ │YYYY-MM-DD hh:mm │ (seconds will be set to 00) │ ├────────────────────┼────────────────────────────────┤ │ │ │ │YYYY-MM-DD │ (time will be set to 00:00:00) │ ├────────────────────┼────────────────────────────────┤ │ │ │ │hh:mm:ss │ (date will be set to today) │ ├────────────────────┼────────────────────────────────┤ │ │ │ │hh:mm │ (date will be set to today, │ │ │ seconds to 00) │ ├────────────────────┼────────────────────────────────┤ │ │ │ │tomorrow │ (time is set to 00:00:00) │ ├────────────────────┼────────────────────────────────┤ │ │ │ │+5min │ │ └────────────────────┴────────────────────────────────┘"
            },
            {
                "flag": "-d",
                "long": "--device",
                "arg": null,
                "description": "Use the specified device instead of rtc0 as realtime clock. This option is only relevant if your system has more than one RTC. You may specify rtc1, rtc2, ... here."
            },
            {
                "flag": "-l",
                "long": "--local",
                "arg": null,
                "description": "Assume that the hardware clock is set to local time, regardless of the contents of the adjtime file."
            },
            {
                "flag": "",
                "long": "--list-modes",
                "arg": null,
                "description": "List available --mode option arguments."
            },
            {
                "flag": "-m",
                "long": "--mode",
                "arg": null,
                "description": "Go into the given standby state. Valid values for mode are: standby 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. freeze 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.) mem 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. disk 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. off ACPI state S5 (Poweroff). This is done by calling '/sbin/shutdown'. Not officially supported by ACPI, but it usually works. no Don’t suspend, only set the RTC wakeup time. on Don’t suspend, but read the RTC device until an alarm time appears. This mode is useful for debugging. disable Disable a previously set alarm. show Print alarm information in format: \"alarm: off|on <time>\". The time is in ctime() output format, e.g., \"alarm: on Tue Nov 16 04:48:45 2010\"."
            },
            {
                "flag": "-n",
                "long": "--dry-run",
                "arg": null,
                "description": "This option does everything apart from actually setting up the alarm, suspending the system, or waiting for the alarm."
            },
            {
                "flag": "-s",
                "long": "--seconds",
                "arg": null,
                "description": "Set the wakeup time to seconds in the future from now."
            },
            {
                "flag": "-t",
                "long": "--time",
                "arg": null,
                "description": "Set the wakeup time to the absolute time timet. timet is the time in seconds since 1970-01-01, 00:00 UTC. Use the date(1) tool to convert between human-readable time and timet."
            },
            {
                "flag": "-u",
                "long": "--utc",
                "arg": null,
                "description": "Assume that the hardware clock is set to UTC (Universal Time Coordinated), regardless of the contents of the adjtime file."
            },
            {
                "flag": "-v",
                "long": "--verbose",
                "arg": null,
                "description": "Be verbose."
            },
            {
                "flag": "-V",
                "long": "--version",
                "arg": null,
                "description": "Display version information and exit."
            },
            {
                "flag": "-h",
                "long": "--help",
                "arg": null,
                "description": "Display help text and exit."
            }
        ],
        "examples": [],
        "see_also": [
            {
                "name": "hwclock",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/hwclock/8/json"
            },
            {
                "name": "date",
                "section": "1",
                "url": "https://www.chedong.com/phpMan.php/man/date/1/json"
            }
        ],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 23,
                "subsections": []
            },
            {
                "name": "OPTIONS",
                "lines": 1,
                "subsections": [
                    {
                        "name": "-A --adjfile",
                        "lines": 2,
                        "flag": "-A",
                        "long": "--adjfile"
                    },
                    {
                        "name": "-a --auto",
                        "lines": 34,
                        "flag": "-a",
                        "long": "--auto"
                    },
                    {
                        "name": "-d --device",
                        "lines": 3,
                        "flag": "-d",
                        "long": "--device"
                    },
                    {
                        "name": "-l --local",
                        "lines": 3,
                        "flag": "-l",
                        "long": "--local"
                    },
                    {
                        "name": "--list-modes",
                        "lines": 2,
                        "long": "--list-modes"
                    },
                    {
                        "name": "-m --mode",
                        "lines": 41,
                        "flag": "-m",
                        "long": "--mode"
                    },
                    {
                        "name": "-n --dry-run",
                        "lines": 3,
                        "flag": "-n",
                        "long": "--dry-run"
                    },
                    {
                        "name": "-s --seconds",
                        "lines": 2,
                        "flag": "-s",
                        "long": "--seconds"
                    },
                    {
                        "name": "-t --time",
                        "lines": 4,
                        "flag": "-t",
                        "long": "--time"
                    },
                    {
                        "name": "-u --utc",
                        "lines": 3,
                        "flag": "-u",
                        "long": "--utc"
                    },
                    {
                        "name": "-v --verbose",
                        "lines": 2,
                        "flag": "-v",
                        "long": "--verbose"
                    },
                    {
                        "name": "-V --version",
                        "lines": 2,
                        "flag": "-V",
                        "long": "--version"
                    },
                    {
                        "name": "-h --help",
                        "lines": 2,
                        "flag": "-h",
                        "long": "--help"
                    }
                ]
            },
            {
                "name": "NOTES",
                "lines": 4,
                "subsections": []
            },
            {
                "name": "FILES",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "HISTORY",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "AUTHORS",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "COPYRIGHT",
                "lines": 4,
                "subsections": []
            },
            {
                "name": "SEE ALSO",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "REPORTING BUGS",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "AVAILABILITY",
                "lines": 6,
                "subsections": []
            }
        ],
        "sections": {
            "NAME": {
                "content": "rtcwake - enter a system sleep state until specified wakeup time\n",
                "subsections": []
            },
            "SYNOPSIS": {
                "content": "rtcwake [options] [-d device] [-m standbymode] {-s seconds|-t timet}\n",
                "subsections": []
            },
            "DESCRIPTION": {
                "content": "This program is used to enter a system sleep state and to automatically wake from it at a\nspecified time.\n\nThis uses cross-platform Linux interfaces to enter a system sleep state, and leave it no\nlater than a specified time. It uses any RTC framework driver that supports standard driver\nmodel wakeup flags.\n\nThis is normally used like the old apmsleep utility, to wake from a suspend state like ACPI\nS1 (standby) or S3 (suspend-to-RAM). Most platforms can implement those without analogues of\nBIOS, APM, or ACPI.\n\nOn some systems, this can also be used like nvram-wakeup, waking from states like ACPI S4\n(suspend to disk). Not all systems have persistent media that are appropriate for such\nsuspend modes.\n\nNote that alarm functionality depends on hardware; not every RTC is able to setup an alarm up\nto 24 hours in the future.\n\nThe suspend setup may be interrupted by active hardware; for example wireless USB input\ndevices that continue to send events for some fraction of a second after the return key is\npressed. rtcwake tries to avoid this problem and it waits to terminal to settle down before\nentering a system sleep.\n",
                "subsections": []
            },
            "OPTIONS": {
                "content": "",
                "subsections": [
                    {
                        "name": "-A --adjfile",
                        "content": "Specify an alternative path to the adjust file.\n",
                        "flag": "-A",
                        "long": "--adjfile"
                    },
                    {
                        "name": "-a --auto",
                        "content": "Read the clock mode (whether the hardware clock is set to UTC or local time) from the\nadjtime file, where hwclock(8) stores that information. This is the default.\n\n--date timestamp\nSet the wakeup time to the value of the timestamp. Format of the timestamp can be any of\nthe following:\n\n┌────────────────────┬────────────────────────────────┐\n│                    │                                │\n│YYYYMMDDhhmmss      │                                │\n├────────────────────┼────────────────────────────────┤\n│                    │                                │\n│YYYY-MM-DD hh:mm:ss │                                │\n├────────────────────┼────────────────────────────────┤\n│                    │                                │\n│YYYY-MM-DD hh:mm    │ (seconds will be set to 00)    │\n├────────────────────┼────────────────────────────────┤\n│                    │                                │\n│YYYY-MM-DD          │ (time will be set to 00:00:00) │\n├────────────────────┼────────────────────────────────┤\n│                    │                                │\n│hh:mm:ss            │ (date will be set to today)    │\n├────────────────────┼────────────────────────────────┤\n│                    │                                │\n│hh:mm               │ (date will be set to today,    │\n│                    │ seconds to 00)                 │\n├────────────────────┼────────────────────────────────┤\n│                    │                                │\n│tomorrow            │ (time is set to 00:00:00)      │\n├────────────────────┼────────────────────────────────┤\n│                    │                                │\n│+5min               │                                │\n└────────────────────┴────────────────────────────────┘\n",
                        "flag": "-a",
                        "long": "--auto"
                    },
                    {
                        "name": "-d --device",
                        "content": "Use the specified device instead of rtc0 as realtime clock. This option is only relevant\nif your system has more than one RTC. You may specify rtc1, rtc2, ... here.\n",
                        "flag": "-d",
                        "long": "--device"
                    },
                    {
                        "name": "-l --local",
                        "content": "Assume that the hardware clock is set to local time, regardless of the contents of the\nadjtime file.\n",
                        "flag": "-l",
                        "long": "--local"
                    },
                    {
                        "name": "--list-modes",
                        "content": "List available --mode option arguments.\n",
                        "long": "--list-modes"
                    },
                    {
                        "name": "-m --mode",
                        "content": "Go into the given standby state. Valid values for mode are:\n\nstandby\nACPI state S1. This state offers minimal, though real, power savings, while providing\na very low-latency transition back to a working system. This is the default mode.\n\nfreeze\nThe processes are frozen, all the devices are suspended and all the processors idled.\nThis state is a general state that does not need any platform-specific support, but\nit saves less power than Suspend-to-RAM, because the system is still in a running\nstate. (Available since Linux 3.9.)\n\nmem\nACPI state S3 (Suspend-to-RAM). This state offers significant power savings as\neverything in the system is put into a low-power state, except for memory, which is\nplaced in self-refresh mode to retain its contents.\n\ndisk\nACPI state S4 (Suspend-to-disk). This state offers the greatest power savings, and\ncan be used even in the absence of low-level platform support for power management.\nThis state operates similarly to Suspend-to-RAM, but includes a final step of writing\nmemory contents to disk.\n\noff\nACPI state S5 (Poweroff). This is done by calling '/sbin/shutdown'. Not officially\nsupported by ACPI, but it usually works.\n\nno\nDon’t suspend, only set the RTC wakeup time.\n\non\nDon’t suspend, but read the RTC device until an alarm time appears. This mode is\nuseful for debugging.\n\ndisable\nDisable a previously set alarm.\n\nshow\nPrint alarm information in format: \"alarm: off|on <time>\". The time is in ctime()\noutput format, e.g., \"alarm: on Tue Nov 16 04:48:45 2010\".\n",
                        "flag": "-m",
                        "long": "--mode"
                    },
                    {
                        "name": "-n --dry-run",
                        "content": "This option does everything apart from actually setting up the alarm, suspending the\nsystem, or waiting for the alarm.\n",
                        "flag": "-n",
                        "long": "--dry-run"
                    },
                    {
                        "name": "-s --seconds",
                        "content": "Set the wakeup time to seconds in the future from now.\n",
                        "flag": "-s",
                        "long": "--seconds"
                    },
                    {
                        "name": "-t --time",
                        "content": "Set the wakeup time to the absolute time timet. timet is the time in seconds since\n1970-01-01, 00:00 UTC. Use the date(1) tool to convert between human-readable time and\ntimet.\n",
                        "flag": "-t",
                        "long": "--time"
                    },
                    {
                        "name": "-u --utc",
                        "content": "Assume that the hardware clock is set to UTC (Universal Time Coordinated), regardless of\nthe contents of the adjtime file.\n",
                        "flag": "-u",
                        "long": "--utc"
                    },
                    {
                        "name": "-v --verbose",
                        "content": "Be verbose.\n",
                        "flag": "-v",
                        "long": "--verbose"
                    },
                    {
                        "name": "-V --version",
                        "content": "Display version information and exit.\n",
                        "flag": "-V",
                        "long": "--version"
                    },
                    {
                        "name": "-h --help",
                        "content": "Display help text and exit.\n",
                        "flag": "-h",
                        "long": "--help"
                    }
                ]
            },
            "NOTES": {
                "content": "Some PC systems can’t currently exit sleep states such as mem using only the kernel code\naccessed by this driver. They need help from userspace code to make the framebuffer work\nagain.\n",
                "subsections": []
            },
            "FILES": {
                "content": "/etc/adjtime\n",
                "subsections": []
            },
            "HISTORY": {
                "content": "The program was posted several times on LKML and other lists before appearing in kernel\ncommit message for Linux 2.6 in the GIT commit 87ac84f42a7a580d0dd72ae31d6a5eb4bfe04c6d.\n",
                "subsections": []
            },
            "AUTHORS": {
                "content": "The program was written by David Brownell <dbrownell@users.sourceforge.net> and improved by\nBernhard Walle <bwalle@suse.de>.\n",
                "subsections": []
            },
            "COPYRIGHT": {
                "content": "This is free software. You may redistribute copies of it under the terms of the GNU General\nPublic License <http://www.gnu.org/licenses/gpl.html>. There is NO WARRANTY, to the extent\npermitted by law.\n",
                "subsections": []
            },
            "SEE ALSO": {
                "content": "hwclock(8), date(1)\n",
                "subsections": []
            },
            "REPORTING BUGS": {
                "content": "For bug reports, use the issue tracker at https://github.com/karelzak/util-linux/issues.\n",
                "subsections": []
            },
            "AVAILABILITY": {
                "content": "The rtcwake command is part of the util-linux package which can be downloaded from Linux\nKernel Archive <https://www.kernel.org/pub/linux/utils/util-linux/>.\n\n\n\nutil-linux 2.37.2                            2021-06-02                                   RTCWAKE(8)",
                "subsections": []
            }
        }
    }
}