Author: swordfish6975

Openelec Build for OPI PC and 2 now with HW decoding

  [Copy link]

4

threads

1118

posts

9504

credits

Moderator

Rank: 7Rank: 7Rank: 7

credits
9504
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

9504

credits

Moderator

Rank: 7Rank: 7Rank: 7

credits
9504
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?

4

threads

1118

posts

9504

credits

Moderator

Rank: 7Rank: 7Rank: 7

credits
9504
Published in 2016-9-2 22:22:23 | Show all floors
giaur500 replied at 2016-9-2 15:15
Jernej, I just noticed that power off option from Kodi power menu does not work as expected. It actu ...

Read last page or two of this topic. I explained why is this so.

13

threads

197

posts

791

credits

Senior member

Rank: 4

credits
791
Published in 2016-9-2 22:32:19 | Show all floors
Ok. Can I map my own shell command to Kodi power menu option? To get shutdown command executed directly?

4

threads

1118

posts

9504

credits

Moderator

Rank: 7Rank: 7Rank: 7

credits
9504
Published in 2016-9-2 22:39:46 | Show all floors
darqoq replied at 2016-9-2 07:32
IR interface inputs are interpreted as the keys on a keyboard thats why patch changes keymaps/keyb ...

power key driver:
https://github.com/jernejsk/linu ... i-gpiokey.c#L38-L60

All possible keys in kernel:
https://github.com/jernejsk/linu ... /linux/input.h#L550
All keys that Kodi cares about (no KEY_SLEEP inside):
https://github.com/xbmc/xbmc/blo ... vices.cpp#L121-L275

4

threads

1118

posts

9504

credits

Moderator

Rank: 7Rank: 7Rank: 7

credits
9504
Published in 2016-9-2 23:04:10 | Show all floors
giaur500 replied at 2016-9-2 15:32
Ok. Can I map my own shell command to Kodi power menu option? To get shutdown command executed direc ...

Well, a lot can be done, but you will have to ask somebody else or google it

You need to log in before you can reply login | Register

Points Rule

Quick reply Top Return list