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-2-7 18:19:33 | Show all floors
Can someone please test IR on this OPiPC image: https://mega.nz/#F!ARAXSY6a!LPMIb2NNLd5s9P7C8D6ZVg

I backported LIRC sunxi IR driver from mainline kernel. Now all protocols and IR remotes should work. To add your remote, you should run:
  1. irrecord /storage/.config/lircd.conf
Copy code


Just follow on-screen instructions. Before that command you can run
  1. irrecord -list namespace
Copy code


to get all valid key names. NOTE: You should only use key names which starts with "KEY_".

After you set up all your keys, you should restart the board. Your remote should just work now. Please report any problem. If everything seems to be fine, I will push changes to github.

1

threads

37

posts

258

credits

Intermediate member

Rank: 3Rank: 3

credits
258
Published in 2016-2-7 20:59:34 | Show all floors
I tried but it's not working. Whean I entered the codes  of ir remote control it applys, but when I   reset the device , it's not working.

4

threads

1118

posts

9504

credits

Moderator

Rank: 7Rank: 7Rank: 7

credits
9504
Published in 2016-2-8 01:22:01 | Show all floors
igor2053 replied at 2016-2-7 13:59
I tried but it's not working. Whean I entered the codes  of ir remote control it applys, but when I  ...

Does it work if you run the following command?
  1. lircd --device=/dev/lirc0 /storage/.config/lircd.conf
Copy code


At the end, autostart.sh can always be created.

2

threads

30

posts

279

credits

Intermediate member

Rank: 3Rank: 3

credits
279
Published in 2016-2-8 03:09:42 | Show all floors
I confirm not work.

lircd.conf:

  1. begin remote

  2.   name  /storage/.config/lircd.conf
  3.   bits           16
  4.   flags SPACE_ENC|CONST_LENGTH
  5.   eps            30
  6.   aeps          100

  7.   header       8931  4470
  8.   one           519  1700
  9.   zero          519   597
  10.   ptrail        527
  11.   repeat       8939  2241
  12.   pre_data_bits   16
  13.   pre_data       0x4EBB
  14.   gap          140175
  15.   toggle_bit_mask 0x0

  16.       begin codes
  17.           KEY_OK                   0x3AC5
  18.           KEY_LEFT                 0x38C7
  19.           KEY_RIGHT                0x12ED
  20.           KEY_PLAY                 0x00FF
  21.           KEY_BACK                 0xB44B
  22.       end codes

  23. end remote
Copy code


autostart.sh:
  1. #!/bin/sh

  2. killall lircd
  3. lircd --device=/dev/lirc0 /storage/.config/lircd.conf
Copy code

4

threads

1118

posts

9504

credits

Moderator

Rank: 7Rank: 7Rank: 7

credits
9504
Published in 2016-2-8 03:15:29 | Show all floors
Ok, driver is there but someone must figure how to use it properly. I won't be able to play with OPi for a few days... Those LIRC settings seem like a black magic to me
Published in 2016-2-8 05:56:58 | Show all floors
Edited by darqoq at 2016-2-8 16:58

I confirm - it works for me. Thank you @jernej
I tested 4 different remotes - all works great.My steps
  1. irrecord /storage/.config/lircd.conf
Copy code

edit /storage/.config/lircd.conf and change the 'name' from to devinput

  1. begin remote
  2.     name  devinput
Copy code
I changed /storage/.config/autostart.sh (it is still needed)

  1. #!/bin/sh

  2. lircd /storage/.config/lircd.conf
Copy code

Orange PI PC

2

threads

30

posts

279

credits

Intermediate member

Rank: 3Rank: 3

credits
279
Published in 2016-2-8 06:19:27 | Show all floors
Indeed, after the change name to devinput works.
I forgot to change it, sorry for misleading.

1

threads

37

posts

258

credits

Intermediate member

Rank: 3Rank: 3

credits
258
Published in 2016-2-8 06:56:42 | Show all floors
I made successfully config file. Could you please, tell me what commands I have to do, for a successful programming ir remote control?

2

threads

46

posts

238

credits

Intermediate member

Rank: 3Rank: 3

credits
238
Published in 2016-2-8 07:12:20 | Show all floors
helpmy please !?
I can not enable sata by enabling scipt.bin does not go anyway.
I think lack of drivers from the kernel!
The date should be sata disabled because too slow!

2

threads

94

posts

656

credits

Senior member

Rank: 4

credits
656
Published in 2016-2-8 10:01:55 | Show all floors
jeevasv replied at 2016-2-5 08:02
I tested the patch and script.bin changes with my >1 year old LG UltraHD TV model 40ub800T which s ...

Jernej, Could you please promote this patch also. AFAIK, it didn't break anything and enable 4K UI. So whoever having 4K tv's atleast benefit ateast while watching pictures  and some 4k videos also.

Once this is done we can enable the updated builds along with 4k enabled script.bins.

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

Points Rule

Quick reply Top Return list