|
@jernej: I build OpenELEC using your code without "kodi-003-perform_suspend_instead_of_powerdown.patch"
Tested on Orange Pi PC:
(http://kodi.wiki/view/List_of_boolean_conditions)
(http://kodi.wiki/view/list_of_built-in_functions)
1. System.CanSuspend - works
2. Suspend() - works
3. System.CanPowerDown = works
4. PowerDown()
My build on default OpenELEC skin "Confluence" behaviour on "Close Menu"
(https://github.com/xbmc/skin.con ... onMenu.xml#L89-L185), shows:
1. Power off system -> same as shell commands "shutdown -h now", "poweroff"
after that Orange Pi PC is total power off, if you want to wake up board you have to unplug and plug power adapter
to start system again. If you want to unplug your board from power adapter - it is safest way to close system.
2. Custom shutdown timer
3. Suspend -> suspense system, after that Orange Pi PC is suspended, if you want to wake up board you have to use your
power button, but in this mode you shouldn't unplug from power adapter your board it is NOT safe way to close system.
4. Reboot -> same as shell command "reboot"
I think that this is better option, especially that still is possible to use power button to suspense/wake up system,
and also we have safe way to unplug board (currently doesn't exists from GUI), @jernej please consider to remove this this patch.
|
|