Author: swordfish6975

Openelec Build for OPI PC and 2 now with HW decoding

  [Copy link]
Published in 2016-8-31 04:00:38 | Show all floors
@jernej: Could you tell me how currently is configured poweroff/suspend in your images ?
I see that "Shutdown button" in OpenELEC menu probably check using System.CanPowerDown and then calls Powerdown()
(see https://github.com/xbmc/skin.con ... gButtonMenu.xml#L99),
then it is possible to wake up OpenELEC using phisical button.
I think that menu button goes to suspend mode (it is different than "poweroff" or "shutdown" shell command).
Is it possible to active System.CanSuspend to use Suspend() command ?
Some times I need use Suspend() some time PoweDown().

See also (S1-S4 codes):
http://kodi.wiki/view/list_of_built-in_functions (S1/S3 - Suspend, S4 - Hibernate)
https://en.wikipedia.org/wiki/Ad ... and_Power_Interface
Orange PI PC

4

threads

1118

posts

110K

credits

Moderator

Rank: 7Rank: 7Rank: 7

credits
10031
Published in 2016-8-31 04:06:46 | Show all floors
darqoq replied at 2016-8-30 21:00
@jernej: Could you tell me how currently is configured poweroff/suspend in your images ?
I see that  ...

The easiest way to explain is to show you the patch:
https://github.com/jernejsk/Open ... _of_powerdown.patch

It is copied from Wetek project...

BTW, ACPI and S1-S4 modes have nothing to do with arm32 SoCs...

Published in 2016-8-31 04:32:44 | Show all floors
jernej replied at 2016-8-30 21:06
The easiest way to explain is to show you the patch:
https://github.com/jernejsk/Open ... _of_power ...

So, your OpenELEC images intentionally perform suspend instead of powerdown, is it really needed ?Did you try use suspend/powerdown without this patch ?
Is something goes wrong or orginal
  1. CLogindUPowerSyscall::Powerdown
Copy code

doesn't work ?







Orange PI PC

4

threads

1118

posts

110K

credits

Moderator

Rank: 7Rank: 7Rank: 7

credits
10031
Published in 2016-8-31 05:16:33 | Show all floors
darqoq replied at 2016-8-30 21:32
So, your OpenELEC images intentionally perform suspend instead of powerdown, is it really needed ?D ...

This patch is necessary for power button to work. Obviously, it is not used only for H3. Without it, press on the power button would shutdown the board and power cycle (power cable plug off/on) would be needed to bring it to life. Same goes for remote, etc.

I didn't try CLogindUPowerSyscall because as I already said, I reused the patch from Wetek target.

0

threads

5

posts

32

credits

Novice

Rank: 1

credits
32
Published in 2016-8-31 13:50:39 | Show all floors
Hi jernej! First of all wants to thank you for your big work on openelec images, its great!!! But i have a question about hdmi cec, when i push power button on my tv LG remote the box goes in suspend mode, can i wake my orange pi pc from suspend mode by pressing the same button on my tv LG remote ? Thank you in advance for your help!
Published in 2016-9-1 23:43:00 | Show all floors
jernej replied at 2016-8-30 22:16
This patch is necessary for power button to work. Obviously, it is not used only for H3. Without i ...

@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.


Orange PI PC

4

threads

1118

posts

110K

credits

Moderator

Rank: 7Rank: 7Rank: 7

credits
10031
Published in 2016-9-2 00:51:08 | Show all floors
darqoq replied at 2016-9-1 16:43
@jernej: I build OpenELEC using your code without "kodi-003-perform_suspend_instead_of_powerdown.p ...

From what I understand, power button would then shutdown the system instead of going into suspend. Same goes for power button on IR remote. Those two cases are primary reason for that patch.

3

threads

165

posts

1203

credits

Gold member

Rank: 6Rank: 6

credits
1203
Published in 2016-9-2 02:20:45 from mobile | Show all floors
Suspend is much more useful for openelec. Especially considering the low power usage...
Published in 2016-9-2 03:15:29 | Show all floors
jernej replied at 2016-9-1 17:51
From what I understand, power button would then shutdown the system instead of going into suspend. ...

I forget to test it, but yes, you are right :-(
Phisical power button will shutdown the system :-( (it also not good for me)
I have to try another way maybe I will modify default Confluence skin and LogindUPowerSyscall.cpp
to solve this problem,
Orange PI PC
Published in 2016-9-2 03:20:36 | Show all floors
Dima replied at 2016-9-1 19:20
Suspend is much more useful for openelec. Especially considering the low power usage...

It is not true, more useful is has two option suspend/poweroff,
Power usage is not a problem, sometime I just need to safe shutdown system to unplug power adapter.
Orange PI PC
You need to log in before you can reply login | Register

Points Rule

Quick reply Top Return list