Black Hole
May contain traces of nut
Why not simply not pass the code on?blocks the code by incrementing the mode value (as you surmised).
Why not simply not pass the code on?blocks the code by incrementing the mode value (as you surmised).
The code is interposing on a function which returns a value. If you don't return something, then the system gets in a mess and stops responding to IR input entirely.Why not simply not pass the code on?
It came from here :-From the wiki:
How is that a "discrete power off"? The "0" function is power toggle.Code:0x7887827d:0:Discrete power off
Perfek!Try the version I just uploaded to the beta repository (1.18) - that should fix your problem with foreign code mapping being overridden, and it adds a new option to block repeated codes.
I've had this happen several times. Don't know the cause, but probably nothing to do with IR control, more some sort of crash. The only way out is to power cycle the box, which is inconvenient if it's recording (and usually the recording is fine if left to finish, so not a complete crash).If you don't return something, then the system gets in a mess and stops responding to IR input entirely.
I think we need to look at your humaxtv.log showing it happening to work out what's what (like I did).Any ideas of cause/cure?
Yes, but that's rather tricky at the moment 'cos I ain't there (also means I'm not suffering the problem though).I think we need to look at your humaxtv.log showing it happening to work out what's what
Ah yes, I can see how that would happen.As a slight aside, I have two boxes in the same room, one in Mode 1 and one in Mode 2.
Both have the Swap Info/List setting enabled.
Pressing the real List button to bring up the Info on either remote control activates Info on both machines.
This is quite a nuisance. Any ideas of cause/cure?
Will do, but today I'll be focused on optimising the target system.Black Hole , since you're testing, could you exercise the options a bit too?
Does this impose an absolute limit on how much detail can be in ir3.map? Foreign codes occupy a lot of space, for example.The lookup table is just 256 bytes
Don't worry about it. Once done, it's done.I appreciate the reboots are a bit of a pain.. it never seemed necessary to put the time into making it update dynamically.
And also here:It came from here :-
https://hummy.tv/forum/threads/ir-pseudo-discrete-power-off.9059/
Yes - that's a trick I use on my boxes to get a discrete power off code.
Code:humax# cat /mod/boot/ir3.map 0x7887827d:0:Discrete power off
The code has this field as 0 = 'button down' and 1 = 'button up'
It has just occurred to me that this behaviour might be dependent on the handset version. I have ADB 1.0 (and it's a good job I went into the battery compartment, because I found leaky Duracells marked 2023!). Anybody got the "other" version handset to test?No, sorry - hold a button down for a long time and you get a stream of reports with one initial "0" followed by loads of "1"s.
Foreign codes are in their own linked list..Does this impose an absolute limit on how much detail can be in ir3.map? Foreign codes occupy a lot of space, for example.
If the 'other' one is an MDB 1.3, then yes I've got 3 of themI have ADB 1.0 . . . Anybody got the "other" version handset to test?
Real IR code: 00000000 0xf30c1000 (c) [foreign=0]
Real IR code: 0x000001 0xf30c1000 (c) [foreign=0]
Real IR code: 0x000001 0xf30c1000 (c) [foreign=0]
Real IR code: 0x000001 0xf30c1000 (c) [foreign=0]
Real IR code: 0x000001 0xf30c1000 (c) [foreign=0]
Real IR code: 0x000001 0xf30c1000 (c) [foreign=0]
Real IR code: 0x000001 0xf30c1000 (c) [foreign=0]
Real IR code: 0x000001 0xf30c1000 (c) [foreign=0]
Real IR code: 0x000001 0xf30c1000 (c) [foreign=0]
Real IR code: 0x000001 0xf30c1000 (c) [foreign=0]
Real IR code: 0x000001 0xf30c1000 (c) [foreign=0]
Real IR code: 0x000001 0xf30c1000 (c) [foreign=0]
Real IR code: 0x000001 0xf30c1000 (c) [foreign=0]
Real IR code: 0x000001 0xf30c1000 (c) [foreign=0]
Humax1# tail -f /var/log/humaxtv.log
Here's the problem:Packages have been updated, the box has been rebooted umpteen times, the mode has been checked (Mode 1)... but the litmus test of pressing "List" still produces a list (when the map file says to disable that button).
The only other thing I can think of (and I can't sort out right now) is CF3.11. Could that be the problem?
Initialising IR3 v1.19
IR3 debug: 1
IR3 Mode: 1 (0x1000)
IR3 Options: 0x18
IR3 - Loading custom keymap.
Map file '/var/lib/humaxtv/mod/ir3.map' too large.
08:0b,13:SIX -> BBC FOUR (9)
MACRO
Real IR code: 0x00000000 0xf40b1000 (8) [foreign=0] ---- (8)? Should read (b) for that code, but 8 was the input.
MACRO
macro thread starting.
Real IR code: 0x00000001 0xf40b1000 (8) [foreign=0]
Macro inject: 6
Injecting 06
InjectCommand: Got mutex
get_inbuf: Popped existing.
get_inbuf: Popped existing.
InjectCommand: Buffers 0 0100acf8 1 0100ad04
InjectCommand: Input list 0
InjectCommand: setting signal (0x100ab88)
GetQueueSize: 1
GetEvents(): faking key 06 (2)
Real IR code: 0x00000000 0xf9061000 (6) [foreign=0]
GetQueueSize: 1
GetEvents(): faking key 06 (1)
Real IR code: 0x00000001 0xf9061000 (6) [foreign=0]
Macro inject: 13
Injecting 13
InjectCommand: Got mutex
get_inbuf: Popped existing.
get_inbuf: Popped existing.
InjectCommand: Buffers 0 0100ad10 1 0100ad1c
InjectCommand: Input list 0
InjectCommand: setting signal (0x100ab88)
GetQueueSize: 1
GetEvents(): faking key 13 (2)
Real IR code: 0x00000000 0xec131000 (13) [foreign=0]
GetQueueSize: 1
GetEvents(): faking key 13 (1)
Real IR code: 0x00000001 0xec131000 (13) [foreign=0]
macro thread exiting.
0b:04,06,13:NINE -> ITV4 (24)
Why should the map file have a size limit? I presume what matters is that it "compiles" into your 256 bytesI can increase the allowed map file size too.
I didn't write code to read it a line at a time, that's all. I'll fix that while I'm on.Why should the map file have a size limit? I presume what matters is that it "compiles" into your 256 bytes