IR Remote not working with 05-2 update

Sorry. I was sleeping…

#	DirecTV code 2

begin remote

  name  DIRECTV2-RC66
  flags RAW_CODES
  eps            30
  aeps          100

  gap          29627

	  begin raw_codes

#Needed for X10
#          #DirecTV2
		   name KEY_DVD
			 6000    1150    1250    1150     650    1100
			 1250     550     650     550     650     550
			  650     550    1250    1150    1200     550
			  650

#Needed for X10
#			#DirevTV1          

		   name KEY_SAT
			 6000    1150    1250    1150     650     500
			 1250     550     650     550     650     550
			  650     550    1200    1150    1250     550
			  650

#		#DirecTV2 power off
		   name KEY_POWER2
			 6050    1100    1300    1100     650    1150
			 1250     550     650     500     650     550
			  650    1150    1250    1150    1250    1150
			  650

#          name PWR
#             6000    1100    1250    1100    1150     650
#              650     550     650    1100     650     550
#              650     550     600    1150     650    1150
#              600

		  name KEY_SCREEN
			 6050    1150    1250    1100     700    1100
			  650    1150    1250    1150     650     550
			 1250    1150    1200     550     650    1150
			  650

		 name KEY_STOP
			 6050    1100    1300    1100     650    1150
			  650     550    1250    1150     600     550
			  650    1150     650     550     650     550
			  650

		  name KEY_FRAMEBACK
			 6000    1150    1250    1150     650    1150
			  650     550    1250    1100     650    1150
			 1250     550     650    1150     650     550
			  600

		  name KEY_FRAMEFORWARD
			 6000    1150    1250    1150     650    1100
			  650     550    1250    1150     650    1150
			 1250    1150     600    1150     650    1150
			  650

		  name KEY_FASTFORWARD
			 6050    1150    1250    1100     700    1100
			  650     550    1250    1150     650    1150
			  650     550     650     500    1250     550
			  650

		  name KEY_REWIND
			 6050    1100    1300    1100     650    1150
			  650     550    1250    1150     650     500
			 1250    1150     650     550    1250     550
			  650

		  name KEY_PLAY
			 6050    1150    1250    1100     650    1150
			  650     550    1250    1150     650     550
			  650     550    1250    1100    1250    1150
			  650

		  name KEY_PAUSE
			 6050    1100    1250    1150     650    1150
			  650     550    1250    1150     650     550
			 1200     550     650     550     650    1150
			  650

		  name KEY_RECORD
			 6000    1150    1250    1150     650    1150
			  650     550    1250    1100     650    1150
			  650    1150     650     550    1250    1150
			  600

#Guide key
		  name KEY_DIRECTORY
			 6050    1100    1250    1150     650    1150
			  650     550    1250     500    1250     550
			  650     550     650     550     650     550
			  650

# Active key
		  name KEY_CONNECT
			 6050    1100    1300    1100     650    1150
			  650     550    1250     550    1200     550
			  650    1150     650     550     650    1150
			  650

# list key
		  name KEY_TITLE
			 6000    1150    1250    1150     650    1150
			  650     550    1250     500    1250     550
			 1250     550     650     550    1250     550
			  650

		  name KEY_EXIT
			 6050    1100    1300    1100     650    1150
			  650     550    1250     550     650    1150
			 1200     550    1250    1150    1250    1150
			  650

		  name KEY_LEFT
			 6000    1150    1250    1150     650    1150
			  650     550    1200     550     650     550
			 1250    1150    1250    1150     650    1150
			  600

		  name KEY_UP
			 6050    1150    1200    1150     650    1150
			  650     550    1250     550     650     550
			  650    1150    1200     550    1250    1150
			  650

		  name KEY_RIGHT
			 6000    1150    1250    1150     650    1150
			  650     550    1250     500     650    1150
			  650     550    1250    1150     650    1150
			  650

		  name KEY_DOWN
			 6050    1100    1250    1150     650    1150
			  650     550    1250     500     650     550
			 1250     550    1250    1150     650     550
			  650

		  name KEY_OK
			 6050    1150    1250    1100     700    1100
			  650     550    1250     550     650    1150
			  650    1150    1200    1150    1250     550
			  650

		  name KEY_BACK
			 6000    1150    1250    1150     650    1100
			  700     500    1250     550     650    1150
			 1250    1150     650     550     600     550
			  650

		  name KEY_MENU
			 6050    1100    1250    1150     650    1150
			  650     550    1250     550     650     500
			  650     550    1250     550    1250     550
			  650

		  name KEY_INFO
			 6000    1150    1250    1150     650    1100
			  700     500    1250     550    1250    1150
			 1250     550     650    1150     600    1150
			  650

		  name KEY_RED
			 6000    1150    1250    1150     650    1150
			  650    1100     650     550     650     550
			  650    1150    1250     550     650     550
			  600

		  name KEY_GREEN
			 6050    1100    1250    1150     650    1150
			  650    1150     650     550     650     500
			 1250    1150    1250     550    1250     550
			  650

		  name KEY_YELLOW
			 6050    1150    1250    1100     700    1100
			  650    1150     650     550     650     550
			 1250     550    1250     500     650    1150
			  650

		  name KEY_BLUE
			 6050    1150    1250    1100     650    1150
			  650    1150     650     550     650    1150
			  650     550    1200     550    1250     550
			  650

		  name KEY_PAGEUP
			6050    1100    1300    1100     650    1150
			  650     550     650     550    1250    1150
			  600    1150    1250     550    1250     550
			  650

		  name KEY_PAGEDOWN
			 6050    1150    1250    1100     700    1100
			  650     550     650     550    1250    1150
			 1250     500    1250     550    1250    1150
			  650

		  name KEY_PREVIOUS
			 6050    1150    1250    1100     700    1100
			  650     550     650     550    1250    1150
			 1250    1100    1250    1150     650     550
			  650

		  name KEY_1
			 6050    1150    1250    1100     700    1100
			  650     550     650     550     650     550
			  650    1150     650     500     650    1150
			  650

		  name KEY_2
			 6000    1150    1250    1150     650    1150
			  650     550     650     500     650     550
			 1250     550     650     550    1250     550
			  650

		  name KEY_3
			 6050    1100    1250    1150     650    1150
			  650     550     650     550     650     500
			 1250    1150     650     550    1250    1150
			  650

		  name KEY_4
			 6000    1200    1200    1150     600    1200
			  600     650     550     600     600    1200
			  600     600     600     600    1150    1250
			  550

		  name KEY_5
			 5950    1250    1150    1200     600    1200
			  600     600     600     600     600    1200
			  550    1250     550    1250     550     650
			  550

		  name KEY_6
			 6000    1200    1200    1200     600    1200
			  550     650     550     650     550    1250
			 1150     600     600    1200     600    1200
			  550

		  name KEY_7
			 6000    1200    1200    1200     550    1250
			  550     600     600     650     550    1200
			 1200    1200     550    1250    1150     650
			  550

		  name KEY_8
			 5950    1250    1200    1200     550    1200
			  600     600     600     600    1150     650
			  550     600     600    1250    1150     650
			  550

		  name KEY_9
			 6000    1200    1200    1200     600    1200
			  550     600     600     600    1200     600
			  600    1200     600    1200    1150    1200
			  600

		  name KEY_0
			 5950    1250    1150    1200     600    1200
			  550     600     600    1250     550     650
			  550    1200     600    1200    1200     650
			  500

		  name KEY_MINUS
			 6000    1150    1250    1150     650    1100
			  650     550     650    1150     650     550
			 1250     550     650    1150    1200    1150
			  650

		  name KEY_ENTER
			 6050    1100    1300    1100     650    1150
			  650     550     650    1150     650     500
			 1250    1150    1250     550     650     550
			  650



	  end raw_codes

end remote

@sam_nazarko I can test and report as well. Any remote improvement is a bonus for me…

Okay. I’ll see what I can come up with. Stay tuned.

I loaded 06-1 again. Same response. I stopped mediacenter.service and eventlircd.service to run irrecord and mode2. I created a new conf file using irrecord. It was reasonably close to the original. I then ran mode2 and noticed a fair bit of variation from one key press to another press of the same key, so I am guessing that the tolerance is quite large. While running irrecord or mode2, the response is instantaneous upon the first key press. Nothing is ignored. I then started eventlircd.service again and ran irw. I have to press a key twice to get a response. If I press the button times, I get two responses. So, only the first press is ignored. I believe that my problem has nothing to do with my lirc.conf files.

To recap my version history:
04-1 is what I am running now and works OK.
05-1 - I don’t know if I ever ran with this version. If I did, it must have worked OK as I didn’t notice a problem until 05-2.
05-2 - First noticed the problem.
05-2 with experimental builds as of 6/18 - This worked.
05-3 - This worked for me when updated from the version above. I never tried loading this as a clean install. Maybe it worked for that reason.
06-1 - Does not work for me.

You don’t have 05-1 and 05-3 in the download area for me to try a clean install. Can you put them there??

To re-iterate, my problem is only with the built-in IR receiver. If I plug a USB receiver in, it works OK. The RF remote works OK.

Hi,

There aren’t any releases of 2017.05-1 and 2017.05-3 because of security changes.

Thanks, that’s pretty useful feedback. While the only changes have been in the kernel, it sounds like we are getting to the uinput layer fine, but eventlircd’s repeat filter is actually causing the issue.

Assuming you know your way around the command line:

Edit /lib/systemd/system/eventlircd.service

Change:

ExecStart = /usr/sbin/eventlircd --evmap=/etc/eventlircd.d --socket=/var/run/lirc/lircd --repeat-filter --release=_UP -f

to

ExecStart = /usr/sbin/eventlircd --evmap=/etc/eventlircd.d --socket=/var/run/lirc/lircd --release=_UP -f

And reboot. If it improves things; then I suspect the issue is caused by us storing edges without filtering. This is done for two reasons:

  • Better performance under load due to less processing; this means events aren’t dropped
  • Without this change, RC5 doesn’t work at all. I suspect we will have to come up with some other workaround if this is the case.

Sam

I probably should have told you that I tried that already. It had no effect. I think that is actually for distinguishing between a button held down too long for a single press and a button held down to get repeats. That’s not my problem. My problem is that it is ignoring the first press.

Something else that was unexpected that I probably should have mentioned. When I ran irrecord, the first step of learning the remote would produce dots on the screen as soon as I touched a button. However, when it came to programming the keys, a single press would result in an error. I had to press and hold the button into repeats in order for it to register. The difference between the two is the initial pulse. For a single button press, the pulse is 6020 or so, but the initial pulse during a repeat sequence is 3062 or so. I should probably try this with a USB receiver to see if it is any different.

Okay – thanks for clarifying.

It will be a bug in the IR driver. Will hack around it. May be the case that for RC5 remotes (OSMC original IR remote); we have to add a sysfs parameter that makes the driver behave a little differently.

Thank you for the info.

I’ll let you know when I’ve got something to test and any further questions. Then we can put IR to bed.

Sam

I don’t get why it is only affecting the built-in receiver (GPIO?). The USB receiver works just fine.

There’s a different driver for this (meson-ir), which is a GPIO driven receiver.

Sam

Hi

Hopefully the issue is now addressed

I’d appreciate it if you could test this and provide feedback before we release this as an update to other users. To test this update:

  1. Login via the command line
  2. Edit the file /etc/apt/sources.list
  3. Add the following line: deb http://apt.osmc.tv jessie-devel main
  4. Run the following commands to update: sudo apt-get update && sudo apt-get dist-upgrade && reboot
  5. Your system should have have received the update.

Please see if the issue is resolved.

I also recommend you edit /etc/apt/sources.list again and remove the line that you added after updating. This will return you to the normal update channel.

As usual. No problem detected here, even with latest updates etc. all fine (I have to know it, I have 4 Girls at home on holidays… If the Remote wouldn’t work, it would be hell on earth for me :wink: ) …

EDIT: I seems I am a little late - was on holidays, so late reply. But the harmony remote here is working fine.

Well, no success for now. I didn’t remove the normal source (deb http://apt.osmc.tv jessie main). Was I supposed to?

Anyway, when I reboot, it pops up the Please Wait screen and gets stuck there. No network communications. At first I thought that it might be because I was “upgrading” from 04-1. So, I tried loading 06-1 and then upgrade to the test s/w. Same response. Please provide guidance, but be advised that I won’t be able to test anything until Friday. I have already angered my S.O. with today’s testing.

You will likely need to reinstall. There’s a new kernel with a fix for the Please Wait being compiled. Once this is done, I will release the July update. Hopefully the remote issue will be fixed but it’s hard to say whether this is the case as @Smurphy has been unable to reproduce the problem at all (and neither have our team)

Sam

OK. So you are saying wait for the July update, load that, and hope for the best.

The kernel has been rebuilt now so is available for testing. It’s the kernel that will likely end up in the July release.

So you can try updating now. Feedback would be appreciated; as I need someone to confirm whether it’s working or not.

Sam,

I have updated my Vero4k to the 07-1 version and my DirecTV RC6 remote is still working. Thank you.

Thanks for confirming this.

Did you select the 360 remote from My OSMC -> Remotes?

Sam

That was the issue, hence I deleted my post. I guess that doesn’t get restored along with the backup of settings.