I've remapped 's' to be XBMC.Suspend in my keymaps rather than bringing up the shutdown menu.
Here's what a normal shutdown (suspend) and then startup looks like in the logs:
- Code: Select all
22:07:58 T:1093873312 DEBUG: Keyboard: scancode: 1f, sym: 0073, unicode: 0073, modifier: 0
22:07:58 T:1093873312 DEBUG: OnKey: s (f053) pressed, action is XBMC.Suspend
22:07:58 T:1093873312 DEBUG: CAnnouncementManager - Announcement: OnSleep from xbmc
22:07:58 T:1093873312 DEBUG: GOT ANNOUNCEMENT, type: 8, from xbmc, message OnSleep
22:07:58 T:1093873312 NOTICE: OnSleep: Running sleep jobs
22:07:58 T:1093873312 NOTICE: OnSleep: Stopping lirc
22:07:58 T:1093873312 INFO: LIRC setUsed: disabled
22:07:58 T:1093873312 DEBUG: CSoftAE::Suspend - Suspending AE processing
22:07:58 T:1093873312 DEBUG: CSoftAE::Suspend - After Event
<-- XBMC suspended - wait a few seconds then start again -->
22:08:08 T:1093873312 NOTICE: OnWake: Running resume jobs
22:08:08 T:1093873312 NOTICE: OnWake: Restarting lirc
22:08:08 T:1093873312 INFO: LIRC Initialize: using: /dev/lircd
22:08:08 T:1093873312 DEBUG: Failed to connect to LIRC. Retry in 10s.
22:08:08 T:1093873312 NOTICE: OnWake: Restarting lcd
Here's what happened when I got the problem (on turning it back on, the pivos immediately went back to standby mode).
- Code: Select all
22:08:41 T:1093873312 DEBUG: Keyboard: scancode: 1f, sym: 0073, unicode: 0073, modifier: 0
22:08:41 T:1093873312 DEBUG: OnKey: s (f053) pressed, action is XBMC.Suspend
22:08:41 T:1093873312 DEBUG: CAnnouncementManager - Announcement: OnSleep from xbmc
22:08:41 T:1093873312 DEBUG: GOT ANNOUNCEMENT, type: 8, from xbmc, message OnSleep
22:08:41 T:1093873312 NOTICE: OnSleep: Running sleep jobs
22:08:41 T:1093873312 NOTICE: OnSleep: Stopping lirc
22:08:41 T:1093873312 INFO: LIRC setUsed: disabled
22:08:41 T:1093873312 DEBUG: CSoftAE::Suspend - Suspending AE processing
22:08:41 T:1093873312 DEBUG: CSoftAE::Suspend - After Event
<-- XBMC in suspend here, wait a few seconds then try to wake it again -->
22:08:49 T:1171469408 DEBUG: Thread Jobworker 1171469408 terminating (autodelete)
22:08:49 T:1093873312 DEBUG: SECTION:UnloadDelayed(DLL: special://xbmcbin/system/ImageLib-arm.so)
22:08:49 T:1093873312 DEBUG: Unloading: ImageLib-arm.so
22:08:49 T:1093873312 DEBUG: Keyboard: scancode: 1f, sym: 0073, unicode: 0073, modifier: 0
22:08:49 T:1093873312 DEBUG: OnKey: s (f053) pressed, action is XBMC.Suspend
22:08:49 T:1093873312 DEBUG: CAnnouncementManager - Announcement: OnSleep from xbmc
22:08:49 T:1093873312 DEBUG: GOT ANNOUNCEMENT, type: 8, from xbmc, message OnSleep
22:08:49 T:1093873312 NOTICE: OnSleep: Running sleep jobs
22:08:49 T:1093873312 NOTICE: OnSleep: Stopping lirc
22:08:49 T:1093873312 INFO: LIRC setUsed: disabled
22:08:49 T:1093873312 DEBUG: CSoftAE::Suspend - Suspending AE processing
Note that this is with the Harmony remote. If I do it with the stock Pivos remote, I get the exact same sequence.
So the interesting part is that the shutdown sequence is exactly the same in both cases, but it's when it comes back from standby that the problem occurs.
When it's working, it gets an OnWake notice and restarts lirc. This means that it misses the 's' keypress sent and so doesn't suspend it again. However, in the case that it fails, this OnWake notice isn't received, so lirc isn't restarted and the 's' keypress immediately powers off the box.
I don't know what I can do to pursue this issue further and I don't know why I haven't seen it with the stock remote but I have with the harmony. This is running the latest firmware (updated yesterday). If someone can give me some pointers on how to proceed I'd appreciate it!