nvram-wakeup(8)
β¨ nvram-wakeup β the manual page, but make it make sense β¨
okay bestie, so this is nvram-wakeup(8) from the NVRAM WakeUp manual. it's giving "tiny program, huge power" energy and honestly? iconic. let's get into it π
π NAME π
nvram-wakeup β a (small) program that can read and write the WakeUp time in the BIOS.
π SYNOPSIS π
nvram-wakeup [-l|--syslog] [-D|--debug] [-A|--directisa] [-N|--nowrite]
[-d|--disable] [-s|--settime time] [-C|--configfile filename]
[-I|--iwname string] [-v|--version] [-h|--help]
πΈ DESCRIPTION πΈ
So nvram-wakeup is a (small) program that can read and write the WakeUp time in the BIOS β and when I say read and write I mean via /dev/nvram on kernels >= 2.4.6, or by using direct I/O. and at that WakeUp time? the computer just powers itself on automatically from the soft-off state. no cap. it's literally waking up on its own schedule like main character energy β¨
π¦ OPTIONS π¦
If you run it with no options at all, nvram-wakeup will read the current wakeup settings from the NVRAM and print them on stdout. cute, right?
-l,--syslogβ this one makesnvram-wakeuplog all output viasyslogdto the system log instead of stdout/stderr. and bestie, listen: this option should always be the first one. like, first-first.-D,--debugβ turns on printing debug messages. iykyk π-A,--directisaβ use direct I/O port access to get at the nvram instead of going through/dev/nvram. you must use this option if the configuration optionupper_methodis set. the device/dev/rtcis still used, don't worry.
β οΈ WARNING: if you use the option --directisa and some other programm tries to access nvram and/or rtc at the same time, you might screw up all your nvram (i.e. all CMOS settings). like, ALL of it. this is not a drill π
-N,--nowriteβ this disables writing into the nvram and rtc devices. but all the values for the bytes are still calculated. so write them down, go set the same date/time via BIOS Setup, runnvram-wakeup, and see if the values you written down correspond to the values set by the BIOS. detective work, slay π-s time,--settime=timeβ specify the time on which the computer should be up and running. the time is specified as atime_tvalue, i.e., number of seconds since epoch (Jan 1 1970, 00:00:00).
See EXAMPLES below on how to set a "human readable" wakeup time.
Set time to 0 to disable the wakeup feature.
You can specify multiple -s|--settime options on the command line, as far as they all have the same time value. See EXAMPLES below.
-d,--disableβ a synonym for--settime=0. short and sweet π-C filename,--configfile=filenameβ read mainboard configuration from configuration filefilename.
See nvram-wakeup.conf(5) for information on the syntax of the file.
See BOARD CONFIGURATION below for general information on getting board configurations.
-I name,--iwname=nameβ if the DMI entries of your mainboard are broken, you may specify a DMI infowriter name here. (it's the name of one of the functions fromnvram-wakeup-mb.c)
If you specify --configfile as well as the --iwname option, then --iwname is ignored.
See BOARD CONFIGURATION below for general information on getting board configurations.
-w minutes,--wakeupbefore=minutesβ specify how many minutes before the programmed wakeuptime the computer should wake up.
The default is to start 5 minutes before the programmed wakeup time. early bird behaviour fr π¦
-h,--helpβ print a help message and exit.-v,--versionβ display version and author information.
π BOARD CONFIGURATION π
By default, the mainboard is autodetected by reading DMI information from the BIOS. If the DMI entries are broken, you can specify the name of the infowriter to be used with the --iwname option. This only works if the board configuration is aleready compiled into the program. The list of existing infowriters can be found in the source. π
Example: On my Biostar M6VCG the whole DMI entry is broken (maybe a BIOS update would help, but I never tried it), but the configuration of the board is known, so only the autodetection doesn't work. Thus look up (in boards.yaml) the name of the infowriter to beused, which is 'bio_m6vcg' and call
nvram-wakeup --iwname bio_m6vcg
If nvram-wakeup doesn't know anything about your board, you can put the board configuration into a file and pass the file name via the --configfile option to nvram-wakeup. Look nvram-wakeup.conf(5) for more information on the configuration file syntax.
If you specify --configfile as well as the --iwname option, then --iwname is ignored.
π EXAMPLES π
You can specify multiple -d or -s options at the command line, but they must specify the same time, e.g.
nvram-wakeup --settime=0 -s0 -s 0 -d -ddds0 # is O.K.
nvram-wakeup -s1002722247 -s1002722247 # is O.K.
nvram-wakeup -s1002722247 -s1002722248 # is not O.K.
nvram-wakeup -s1002722247 --disable # is not O.K.
If you want the machine to be up and running in 20 minutes, call
nvram-wakeup -s $((`date +%s` + 20 * 60))
If you want the machine to be up and running at 18:30 today, call
nvram-wakeup -s `date +%s -d "18:30"`
Note that this is really "today" so if you run this after 18:30, the time will be in the past. π
If you want the machine to be up and running on a particular day, at a particular time, say at 18:30 on Apr. 23rd, call
nvram-wakeup -s `date +%s -d "Apr 23 18:30"`
For "tomorrow" you can use something like that:
nvram-wakeup -s $((`date +%s -d "18:30"` + 60*60*24))
β EXIT STATUS β
0β Successful program execution. The new date and time were set successfully. π1β Successful program execution. The computer must be rebooted for the changes to take effect. π2β An error occured. Something went wrong. π
π§ FILES π§
/dev/nvramβ NVRAM character device. This one is used for reading/writing the nvram values if the command line option--directisais not used./dev/rtcβ RTC character device. This one is used to determine if the RTC clock is running localtime or UTC/GMT. Furthermore, some motherboards use the RTC alarm time for the wakeup feature./dev/memβ Memory character device. This one is used to get DMI information for board autodetection.nvram-wakeup.confβ Configuration file for a mainboard not supported out-of-the-box. Seenvram-wakeup.conf(5)for information on the syntax of the file.
π SEE ALSO π
πΈ HOMEPAGE πΈ
http://sf.net/projects/nvram-wakeup/
π AUTHOR π
Written by Sergei Haller <Sergei.Haller@math.uni-giessen.de>.
π₯ REPORTING BUGS π₯
Report bugs at the bug tracking system (see HOMEPAGE) or on the mailing list nvram-wakeup-devel@lists.sourceforge.net
π COPYRIGHT π
Copyright Β© 2001-2004 Sergei Haller.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
and that's the whole thing bestie π«Ά this manual page is from the NVRAM WakeUp pages, on Linux, dated May 08 2004 β yeah it's old, but it still ate. go wake up your computer on schedule, you icon πβ¨
π¦ where this page comes from
- debian bookworm: nvram-wakeup 1.1-4+b1
- debian trixie: nvram-wakeup 1.1-5
- ubuntu jammy: nvram-wakeup 1.1-4build1
- ubuntu noble: nvram-wakeup 1.1-4build1
- ubuntu questing: nvram-wakeup 1.1-5
- ubuntu resolute: nvram-wakeup 1.1-5build1
- ubuntu stonking: nvram-wakeup 1.1-5build1
- Copyright (C) 2001-2004, Sergei Haller
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms