Tried on the newest Ubuntu 20.04 LTS - kernel 5.8.0-59-generic. CPU - i3-9100E, GPU - integrated intel
commands what were used for the wake alarm and sleep:
- suspend to RAM and wake up after 60 seconds:
sudo rtcwake -v -m mem -s 60
the rtcwake output shows, that PC must wake up after 60 seconds, but seems that rtc driver won't work properly and POS won't return from the sleep at all, i.e. PC is not receiving IRQ alarm from BIOS. Note: rtc time is set to local time (timedatectl set-local-rtc 1)
Using local time.
delta = -28
tzone = -7200
tzname = EEST
systime = 1626695312, (UTC) Mon Jul 19 11:48:32 2021
rtctime = 1626695340, (UTC) Mon Jul 19 11:49:00 2021
alarm 0, sys_time 1626695312, rtc_time 1626695340, seconds 60
rtcwake: wakeup from "mem" using /dev/rtc0 at Mon Jul 19 14:50:01 2021
suspend mode: mem; suspending system
- other method (set irq alarm 15:15 and suspend to RAM using pm-suspend command):
echo `date -u --date "15:15" +%s` > /sys/class/rtc/rtc0/wakealarm
cat /proc/driver/rtc
rtc_time : 15:06:11
rtc_date : 2021-07-19
alrm_time : 15:15:00
alrm_date : 2021-07-19
alarm_IRQ : yes
alrm_pending : no
update IRQ enabled : no
periodic IRQ enabled : no
periodic IRQ frequency : 1024
max user IRQ frequency : 64
24hr : yes
periodic_IRQ : no
update_IRQ : no
HPET_emulated : no
BCD : yes
DST_enable : no
periodic_freq : 1024
batt_status : okay
pm-suspend
from the rtc is seen, that alarm_IRQ, data and time is set, but on this time PC didn't wake at all.
What could be the reason for such behavior? Maybe rtc driver is not working properly or something else?
Note: Windows 10 is waking up on certain time.