Re: rtc_cmos: error after first write to wakealarm

Yoichi Yuasa
2007-06-15T07:35:16Z

On Fri, 15 Jun 2007 08:33:08 +0200
Tino Keitel <tino.keitel@gmx.de> wrote:

> Hi,
>
> I have the following strange behaviour with rtc_cmos:
>
> $ echo 1181934240 > /sys/class/rtc/rtc0/wakealarm
> bash: echo: write error: Device or resource busy
> $ rmmod rtc_cmos
> $ modprobe rtc_cmos
> $ echo 1181934240 > /sys/class/rtc/rtc0/wakealarm
> $ echo 1181934240 > /sys/class/rtc/rtc0/wakealarm
> bash: echo: write error: Device or resource busy
> $

If the alarm has already been enabled, you cannot set the next alarm.
You should disable first.

Yoichi