![]() These two commands reset the alarm to zero, and then set a wakeup alarm three minutes in the future: $ sudo sh -c "echo 0 > /sys/class/rtc/rtc0/wakealarm" No value returned means no alarms are set. First check if any wakeups are set: $ cat /sys/class/rtc/rtc0/wakealarm #ANDROID UTC CLOCK MANUAL#Now let’s get to the fun part and do a simple manual wakeup test. (I love how we can change time itself, instead of adjusting our schedules.) rtc0 is the clock’s device name, which is standard because it would be unusual to have more than one RTC. This example shows that the RTC is set to Coordinated Universal Time (UTC), which is desirable because then you don’t have to hassle with daylight savings time. Nov 24 07:17:27 studio kernel: rtc0: alarms up to one month, 圓k, 114 bytes nvram, hpet irqs Nov 24 07:17:27 studio kernel: rtc_cmos 00:03: rtc core: registered rtc_cmos as rtc0 Nov 24 07:17:27 studio kernel: rtc_cmos 00:03: RTC can wake from S4 The syslog is configured a little differently on various distros, so one of these two examples should work: # grep -i rtc /var/log/messagesĪnd then you should see several lines of useful output like this: Nov 24 07:17:27 studio kernel: RTC time: 15:17:15, date: 11/24/12 That returns a couple dozen lines of output showing full RTC support. So check your kernel configuration file, like this example: $ grep -i rtc /boot/config-3.2.0-23-generic Your Linux kernel should already have everything you need, unless you or your distribution maintainer have removed RTC support. This how-to is for kernel versions 2.6.22 and later run uname -r to see your kernel version. If you have any scheduled wakeups set in your BIOS, remove them, and then verify your system has all the necessary pieces in place. Joseph Chamberlain Memorial Clock Tower, tallest clock tower in England. On my main workstation it’s limited and only schedules one wakeup event per day, and it won’t let me schedule weekdays only. If this does what you need, you’re done and can go read something else now. Look for a setting to set the date and time for wakeups. ACPI, Advanced Configuration and Power Interface, is the newer, more advanced standard. APM, Advanced Power Management, is an older power management standard. This will be managed either by APM or ACPI settings, depending on the age of your BIOS and any modifications made by the motherboard manufacturer. One way to wake up your computer at a scheduled time is to enter your computer’s BIOS and set a wakeup alarm in the Power Management settings. Did you know you can also set automatic wakeups? Most motherboards built after 2000 support real-time clock (RTC) wakeups, so you can have your computer turn itself on and off on a schedule. #ANDROID UTC CLOCK HOW TO#Most Linux users know how to set scheduled automatic shutdowns using cron. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |