Author: swordfish6975

Openelec Build for OPI PC and 2 now with HW decoding

  [Copy link]

4

threads

1118

posts

110K

credits

Moderator

Rank: 7Rank: 7Rank: 7

credits
10031
Published in 2016-9-2 04:55:44 | Show all floors
darqoq replied at 2016-9-1 20:15
I forget to test it, but yes, you are right :-(
Phisical power button will shutdown the system :-( ...

Just one small detail:
Both IR and power key transmits KEY_POWER event. Unfortunatelly, there is no KEY_SUSPEND or similar event present in kernel code.

13

threads

197

posts

791

credits

Senior member

Rank: 4

credits
791
Published in 2016-9-2 05:00:49 | Show all floors
Edited by giaur500 at 2016-9-2 05:04

No! Power key on remote should suspend system. Power key again should wake up system again. Without need to reconnect power. If you want to completly power off, you should be able to do that from Kodi power menu. In this case power of should shutdown system completly (no LED light).

4

threads

1118

posts

110K

credits

Moderator

Rank: 7Rank: 7Rank: 7

credits
10031
Published in 2016-9-2 05:03:47 | Show all floors
giaur500 replied at 2016-9-1 22:00
No! Power key on remote should suspend system. Power key again should wake up system again. Without  ...

I can assure you that it will stay that way. I was just talking about implementation detail and why a need for aforemention Kodi patch exists.

13

threads

197

posts

791

credits

Senior member

Rank: 4

credits
791
Published in 2016-9-2 05:05:48 | Show all floors
jernej replied at 2016-9-2 05:03
I can assure you that it will stay that way. I was just talking about implementation detail and wh ...

Ok, but still unable to wake up with remote power key. This is biggest shame actually

4

threads

1118

posts

110K

credits

Moderator

Rank: 7Rank: 7Rank: 7

credits
10031
Published in 2016-9-2 05:11:55 | Show all floors
giaur500 replied at 2016-9-1 22:05
Ok, but still unable to wake up with remote power key. This is biggest shame actually

I know. Unfortunatelly that functionality depends on ARISC firmware which has support only for NEC protocol and there is no source code for it. I played a bit with it and I couldn't figure out how to properly configure IR remote wakeup. I guess it only needs proper settings in [s_cir0] section in script.bin but I'm not sure.

4

threads

1118

posts

110K

credits

Moderator

Rank: 7Rank: 7Rank: 7

credits
10031
Published in 2016-9-2 05:57:45 | Show all floors
Can someone suggest the easiest way how to find out NEC address and command which gets transmitted with random chinese IR remote?

13

threads

197

posts

791

credits

Senior member

Rank: 4

credits
791
Published in 2016-9-2 13:52:40 | Show all floors
What do you mean by "random chinese remote"? I set up remote with lirc, that can be any remote, it will be never the same.
Published in 2016-9-2 14:32:11 | Show all floors
jernej replied at 2016-9-1 21:55
Just one small detail:
Both IR and power key transmits KEY_POWER event. Unfortunatelly, there is n ...

IR interface inputs are interpreted as the keys on a keyboard thats why patch changes keymaps/keyboard.xml,i also see that there is a keyboard key "sleep" the question is:
Is it possible to generate IR code (for example KEY_SLEEP) that it is interpreted (using current IR driver) as keyboard key "sleep" ?

Other questions:
Do you know where is the place (in code) when power button transmits KEY_POWER event ?Do you know where is the place (in code) where IR driver use these events ?





Orange PI PC
Published in 2016-9-2 14:37:11 | Show all floors
jernej replied at 2016-9-1 22:57
Can someone suggest the easiest way how to find out NEC address and command which gets transmitted w ...

Maybe these tools:


Orange PI PC

13

threads

197

posts

791

credits

Senior member

Rank: 4

credits
791
Published in 2016-9-2 22:15:09 | Show all floors
Jernej, I just noticed that power off option from Kodi power menu does not work as expected. It actually performs suspend instead of power off (red led light). To power off device I need to login via ssh and type shutdown -h now, then my device is pewered off - no led lights

Any idea how to fix it?
You need to log in before you can reply login | Register

Points Rule

Quick reply Top Return list