Linux ACPI Wakeup Timer not waking up.
#1
Im back with another issue and hoping you can help.

Im on my 3rd xbmc box now after a couple of disk issues I have made a few upgrades, new SSD, new mobo and cables. In upgrading my motherboard I have "found" my 4th core :-) the motherboard has onboard HDMI but its only a Radeon HD 3000 so in order to get that working I have followed some old instructions found here and you know that bit in big bold letters well I locked down the graphics driver and went ahead with a apt-get upgrade I'm now running Gotham Alpha 11 :-S so far so good.

I have created setwakeup.sh and allowed the xbmc group to sudo that command

Code:
#!/bin/sh
#$1 is the first argument to the script. It is the time in seconds since 1970
#this is defined in mythtv-setup with the time_t argument

LOG=/var/log/setwakeup.log
echo "*** $(date -R) ***" >> $LOG

echo 0 > /sys/class/rtc/rtc0/wakealarm      #this clears your alarm
echo $1 > /sys/class/rtc/rtc0/wakealarm     #this writes your alarm

cat /sys/class/rtc/rtc0/wakealarm >> $LOG
cat /proc/driver/rtc >> $LOG

I have set this up in the GUI as per the wiki page and the log show its being called.

Code:
Mar 04 20:04:41 Black-Box-Of-Doom tag_xbmc_log:  20:04:31 T:2681129792  NOTICE: -->Python Interpreter Initialized<--
Mar 04 20:04:41 Black-Box-Of-Doom tag_xbmc_log:  20:04:31 T:2560621376  NOTICE: Thread FileCache start, auto delete: false
Mar 04 20:04:41 Black-Box-Of-Doom tag_xbmc_log:  20:04:31 T:2681129792   ERROR: Open - failed to open source </home/xbmc/.xbmc/userdata/addon_data/service.xbmc.versioncheck/settings.xml>
Mar 04 20:04:41 Black-Box-Of-Doom tag_xbmc_log:  20:04:31 T:2681129792   ERROR: Open - failed to open source <special://profile/addon_data/service.xbmc.versioncheck/settings.xml>
Mar 04 20:04:46 Black-Box-Of-Doom tag_xbmc_log:  20:04:43 T:2681129792  NOTICE: Thread Timer start, auto delete: false
Mar 04 20:04:46 Black-Box-Of-Doom tag_xbmc_log:  20:04:43 T:2681129792  NOTICE: Thread Timer start, auto delete: false
Mar 04 20:05:16 Black-Box-Of-Doom tag_xbmc_log:  20:05:16 T:2552228672  NOTICE: Previous line repeats 1 times.
Mar 04 20:05:16 Black-Box-Of-Doom tag_xbmc_log:  20:05:16 T:2552228672  NOTICE: Thread JobWorker start, auto delete: true
Mar 04 20:05:16 Black-Box-Of-Doom tag_xbmc_log:  20:05:16 T:2552228672  NOTICE: Previous line repeats 1 times.
Mar 04 20:05:16 Black-Box-Of-Doom tag_xbmc_log:  20:05:16 T:2552228672  NOTICE: Thread JobWorker start, auto delete: true
Mar 04 20:05:27 Black-Box-Of-Doom sudo:      xbmc : TTY=unknown ; PWD=/home/xbmc ; USER=root ; COMMAND=/usr/bin/setwakeup.sh 1393977599
Mar 04 20:05:27 Black-Box-Of-Doom sudo:  pam_unix(sudo:session): session opened for user root by (uid=1000)
Mar 04 20:05:27 Black-Box-Of-Doom sudo:  pam_unix(sudo:session): session closed for user root
Mar 04 20:05:27 Black-Box-Of-Doom NetworkManager:  <info> sleep requested (sleeping: no  enabled: yes)
Mar 04 20:05:27 Black-Box-Of-Doom NetworkManager:  <info> sleeping or disabling...
Mar 04 20:05:27 Black-Box-Of-Doom NetworkManager:  <info> (eth0): now unmanaged
Mar 04 20:05:27 Black-Box-Of-Doom NetworkManager:  <info> (eth0): device state change: activated -> unmanaged (reason 'sleeping') [100 10 37]
Mar 04 20:05:27 Black-Box-Of-Doom NetworkManager:  <info> (eth0): deactivating device (reason 'sleeping') [37]
Mar 04 20:05:28 Black-Box-Of-Doom NetworkManager:  <info> (eth0): canceled DHCP transaction, DHCP client pid 1467
Mar 04 20:05:28 Black-Box-Of-Doom avahi-daemon:  Withdrawing address record for fe80::beee:7bff:fe75:6c6c on eth0.
Mar 04 20:05:28 Black-Box-Of-Doom avahi-daemon:  Leaving mDNS multicast group on interface eth0.IPv6 with address fe80::beee:7bff:fe75:6c6c.
Mar 04 20:05:28 Black-Box-Of-Doom avahi-daemon:  Interface eth0.IPv6 no longer relevant for mDNS.


content of setwakeup.log

Code:
*** Tue, 04 Mar 2014 19:41:21 +0000 ***
1393977599
rtc_time    : 19:41:21
rtc_date    : 2014-03-04
alrm_time    : 23:59:59
alrm_date    : 2014-03-04
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    : yes
BCD        : yes
DST_enable    : no
periodic_freq    : 1024
batt_status    : dead
*** Tue, 04 Mar 2014 19:44:20 +0000 ***
1393963200
rtc_time    : 19:44:20
rtc_date    : 2014-03-04
alrm_time    : 20:00:00
alrm_date    : 2014-03-04
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    : yes
BCD        : yes
DST_enable    : no
periodic_freq    : 1024
batt_status    : dead
*** Tue, 04 Mar 2014 19:47:57 +0000 ***
1393963200
rtc_time    : 19:47:57
rtc_date    : 2014-03-04
alrm_time    : 20:00:00
alrm_date    : 2014-03-04
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    : yes
BCD        : yes
DST_enable    : no
periodic_freq    : 1024
batt_status    : dead
*** Tue, 04 Mar 2014 20:05:27 +0000 ***
1393977599
rtc_time    : 20:05:27
rtc_date    : 2014-03-04
alrm_time    : 23:59:59
alrm_date    : 2014-03-04
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    : yes
BCD        : yes
DST_enable    : no
periodic_freq    : 1024
batt_status    : dead


kernel log shows "rtc_cmos 00:03: RTC can wake from S4" so thats good. But it doesn't appear to wake at all the BIOS is configured BUT it says wake from S5 on rtc not s3 or s4. My pulse eight cec adapter puts the box into s3 when you turn off the TV.

What am I doing wrong.
HTPC
XBMC v12 RC3 with myth TV backend || AMD Sempron 145 || 1gb DDR3 || ECS MCP61M-M3 Version 3 ( no core unlocker) || TBS6981 DVB-S2 tuner || ATI Radeon HD 5450 || 32gb Crucial SSD

NAS
IB-NAS4220-B HW revision 1.2 || 2x 1TB HDD RAID 1 || Open WRT firmware.
Reply
#2
Anyone ?
HTPC
XBMC v12 RC3 with myth TV backend || AMD Sempron 145 || 1gb DDR3 || ECS MCP61M-M3 Version 3 ( no core unlocker) || TBS6981 DVB-S2 tuner || ATI Radeon HD 5450 || 32gb Crucial SSD

NAS
IB-NAS4220-B HW revision 1.2 || 2x 1TB HDD RAID 1 || Open WRT firmware.
Reply
#3
There must be someone who can help.
HTPC
XBMC v12 RC3 with myth TV backend || AMD Sempron 145 || 1gb DDR3 || ECS MCP61M-M3 Version 3 ( no core unlocker) || TBS6981 DVB-S2 tuner || ATI Radeon HD 5450 || 32gb Crucial SSD

NAS
IB-NAS4220-B HW revision 1.2 || 2x 1TB HDD RAID 1 || Open WRT firmware.
Reply
#4
Is there really no one that can help.


xbmc.log

http://paste.ubuntu.com/7056123/
HTPC
XBMC v12 RC3 with myth TV backend || AMD Sempron 145 || 1gb DDR3 || ECS MCP61M-M3 Version 3 ( no core unlocker) || TBS6981 DVB-S2 tuner || ATI Radeon HD 5450 || 32gb Crucial SSD

NAS
IB-NAS4220-B HW revision 1.2 || 2x 1TB HDD RAID 1 || Open WRT firmware.
Reply
#5
Anyone out there?
HTPC
XBMC v12 RC3 with myth TV backend || AMD Sempron 145 || 1gb DDR3 || ECS MCP61M-M3 Version 3 ( no core unlocker) || TBS6981 DVB-S2 tuner || ATI Radeon HD 5450 || 32gb Crucial SSD

NAS
IB-NAS4220-B HW revision 1.2 || 2x 1TB HDD RAID 1 || Open WRT firmware.
Reply
#6
Over 100 views and no one reply, there must be someone who can help.

Its an Asus m5a78l motherboard by the way.
HTPC
XBMC v12 RC3 with myth TV backend || AMD Sempron 145 || 1gb DDR3 || ECS MCP61M-M3 Version 3 ( no core unlocker) || TBS6981 DVB-S2 tuner || ATI Radeon HD 5450 || 32gb Crucial SSD

NAS
IB-NAS4220-B HW revision 1.2 || 2x 1TB HDD RAID 1 || Open WRT firmware.
Reply
#7
progress,

Ok so if I book up with hpet=disable set the wake alarm and "shutdown -h now" I can get the box to boot so that is good news. However if I set the wake alarm and put the box on Standby it doesn't wake. If I try to put into hibernate mode you get a busy please wait message pop up in XBMC and doesn't appear to do much after that.

So I am currently at a cross roads.

1) Wake alarm working and XBMC box shuts down when TV is turned off. But when you power on the TV and change the source the PulseEight CEC box doesn't cause the XBMC PC to boot.

2) TV can control XBMC sleep/wake but wakeup timer is not functioning.

I would like both scenarios to work, the TV and Sleep and Wake the XBMC PC but also the RTC Wake alarm needs to work as well.
HTPC
XBMC v12 RC3 with myth TV backend || AMD Sempron 145 || 1gb DDR3 || ECS MCP61M-M3 Version 3 ( no core unlocker) || TBS6981 DVB-S2 tuner || ATI Radeon HD 5450 || 32gb Crucial SSD

NAS
IB-NAS4220-B HW revision 1.2 || 2x 1TB HDD RAID 1 || Open WRT firmware.
Reply
#8
I know it's no consolation, but I have the exact same issues with an MSI FM2 mobo. Oddly no such problems with an Asrock FM2.

I can wake the machine OK manually setting the RTC wake alarm, but not from XBMC. Yet if I use setwakeup.sh $time from mythtv, i.e. mythwelcome, it works.

BTW, is there a log somewhere that would show what is being written to the RTC wake alarm on shutdown?
Reply

Logout Mark Read Team Forum Stats Members Help
ACPI Wakeup Timer not waking up.0