bsp
Very Active Member
- Joined
- Dec 2, 2006
- Messages
- 314
test_alarm.sh:
NOW=`date -u +%s`
THEN=`expr $NOW + 30`
echo " NOW=$NOW"
echo "THEN=$THEN"
echo 0 > /sys/class/rtc/rtc0/wakealarm
hwclock && date
sleep 1
#echo `date '+%s' -d '+15 seconds'` > /sys/class/rtc/rtc0/wakealarm
echo $THEN > /sys/class/rtc/rtc0/wakealarm
cat /proc/driver/rtc
echo "alarm scheduled at:"
cat /sys/class/rtc/rtc0/wakealarm
echo "."
#sleep 2
#/usr/pandora/scripts/op_power.sh suspend_real
#/usr/pandora/scripts/op_power.sh 2
(added hwclock && date)
output:
pandora:/home/bsp# . ./test_alarm.sh
NOW=1382055448
THEN=1382055478
Fri Oct 18 02:17:28 2013 0.000000 seconds
Fri Oct 18 02:17:28 CEST 2013
rtc_time : 02:17:29
rtc_date : 2013-10-18
alrm_time : 02:22:29
alrm_date : 2013-10-18
alarm_IRQ : no
alrm_pending : no
update IRQ enabled : no
periodic IRQ enabled : no
periodic IRQ frequency : 1
max user IRQ frequency : 64
24hr : yes
alarm scheduled at:
.
Do you have a classic or Rebirth Pandora, or one of the new DM3730 "1Ghz" ones ?
p.s.: and could you please run the testscript and post the output ?
NOW=`date -u +%s`
THEN=`expr $NOW + 30`
echo " NOW=$NOW"
echo "THEN=$THEN"
echo 0 > /sys/class/rtc/rtc0/wakealarm
hwclock && date
sleep 1
#echo `date '+%s' -d '+15 seconds'` > /sys/class/rtc/rtc0/wakealarm
echo $THEN > /sys/class/rtc/rtc0/wakealarm
cat /proc/driver/rtc
echo "alarm scheduled at:"
cat /sys/class/rtc/rtc0/wakealarm
echo "."
#sleep 2
#/usr/pandora/scripts/op_power.sh suspend_real
#/usr/pandora/scripts/op_power.sh 2
(added hwclock && date)
output:
pandora:/home/bsp# . ./test_alarm.sh
NOW=1382055448
THEN=1382055478
Fri Oct 18 02:17:28 2013 0.000000 seconds
Fri Oct 18 02:17:28 CEST 2013
rtc_time : 02:17:29
rtc_date : 2013-10-18
alrm_time : 02:22:29
alrm_date : 2013-10-18
alarm_IRQ : no
alrm_pending : no
update IRQ enabled : no
periodic IRQ enabled : no
periodic IRQ frequency : 1
max user IRQ frequency : 64
24hr : yes
alarm scheduled at:
.
nobody's questioning that it works on your device, on FBnil's and mine it does not.So when I set an alarm of 1382040600, 20:10, it turns on when expected.
Do you have a classic or Rebirth Pandora, or one of the new DM3730 "1Ghz" ones ?
p.s.: and could you please run the testscript and post the output ?
Last edited by a moderator: