Re: Issue with rtcwake not waking

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, 2008-08-04 at 22:38 +0200, Karel Zak wrote:
> On Mon, Aug 04, 2008 at 03:03:53PM -0500, Gabriel Burt wrote:
> > I tried rtcwake -a -m mem -s 15 (and also with -l and -u) and it
> > successfully suspended, but didn't wake up automatically.  Are there any
> > logs I can attach or tests I can run to debug this?
> 
>  It's known issue.  See for example:
>  https://bugzilla.redhat.com/show_bug.cgi?id=449738
> 
>  A workaround is to use /sys FS interface:
> 
>      # date -u -d "15sec" "+%s" > /sys/class/rtc/rtc0/wakealarm
>      # echo "mem" > /sys/power/state

Hrm, as you mentioned on that bug, it's the use of RTC_ALM_SET for
alarms < 24hr from now that's breaking this.  If I comment out the if <
24hr check and just have it use the RTC_WKALM_SET, it works for me as
well.

RTC_WKALM_SET is the preferred way of setting the wake alarm.  I'll send
a patch in a minute to use it first, and fall back on RTC_ALM_SET if it
doesn't work.

Gabriel

--
To unsubscribe from this list: send the line "unsubscribe util-linux-ng" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux