ACPI Wakeup reset during reboot

Asked by voidAndAny

My PC clock is set to local time and I use the folowing script to setup ACPI Wakeup :

#! /bin/bash
SECS=`date -u --date "$1" +%s`
echo 0 > /sys/class/rtc/rtc0/wakealarm
echo $SECS > /sys/class/rtc/rtc0/wakealarm
cat /proc/driver/rtc

When I use this script, shutdown my PC and wait for the wakeup everything works fine.

But If I manually re-start and stop my PC before date/time alarm my PC don't Wakeup.

alrm_time is not changed, alrm_date is changed to ****-**-** (it seems that my BIOS don't use date for wakeup) and alarm_IRQ is set to no

it's like something reset acpi wakeup at reboot.

For information everything was OK with /proc/acpi/alarm on Gutsy (my PC wakeup everynight at 01:00 without have to setup acpi wakeup date/time at shutdown - no date, only time in BIOS wakeup settings)

> sudo set_acpi.sh "2009-07-21 23:00:00"

rtc_time : 22:06:16
rtc_date : 2009-07-21
alrm_time : 23:00:00
alrm_date : 2009-07-21
alarm_IRQ : yes
alrm_pending : no
24hr : yes
periodic_IRQ : no
update_IRQ : no
HPET_emulated : no
DST_enable : no
periodic_freq : 1024
batt_status : okay

> sudo shutdown -r now

... PC restart .....

> cat /proc/driver/rtc

rtc_time : 22:08:46
rtc_date : 2009-07-21
alrm_time : 23:00:00
alrm_date : ****-**-**
alarm_IRQ : no
alrm_pending : no
24hr : yes
periodic_IRQ : no
update_IRQ : no
HPET_emulated : no
DST_enable : no
periodic_freq : 1024
batt_status : okay

> sudo shutdown -r now

... PC stop and nothing happened at 23:00....

Thanks
Yoann

Question information

Language:
English Edit question
Status:
Open
For:
Ubuntu acpi Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Tom (tom6) said :
#1

Hi :)

If this is still a problem then please re-post this as a new question
https://answers.launchpad.net/ubuntu/+source/acpi/+addquestion

Launchpad can only handle most recently asked questions and often the Answers Team races through all the shortest questions first so when you re-post please keep it very brief. You can always copy&paste this link back to this question so that people can see the detail you gave here
https://answers.launchpad.net/ubuntu/+source/acpi/+question/77735

When i was answering questions in here it seemed the best answers were given when the question was posted just as americans were getting back from work. This was weird because most of the answerers lived in Europe or Asia at that time lol.

Anyway, good luck and regards from
Tom :)

Can you help with this problem?

Provide an answer of your own, or ask voidAndAny for more information if necessary.

To post a message you must log in.