Edited by giaur500 at 2016-10-20 00:22
Not working for me. My pre_data from lircd.conf = 0x202, so:
- pre_data 0x202 = 000 0010 0000 0010 => bit_reversed 0100 0000 0100 0000 => 0x4040
KEY_POWER is 0xB24D, so:
- KEY_POWER 0xB24D => code 0xB2 => 1011 0010 => bit_reversed 0100 1101 => 0x4D
fex:
- [s_cir0]
- ir_used = 1
- ir_rx = port:PL11<2><1><default><default>
- ir_power_key_code0 = 0x4D
- ir_addr_code0 = 0x4040
I converted it back to script.bin, replaced original file and nope, my device won't wake up on power key press. Also tried to change KEY_POWER to KEY_SLEEP, still not working. I have OrangePI PC. Any ideas? Should it be working on OrangePI PC?