[mythtv-users] Disable HD-PVR remote without disabling PVR-250?

Mark Lord mythtv at rtr.ca
Wed Apr 11 14:04:18 UTC 2012


On 12-04-11 09:50 AM, Mark Lord wrote:
> On 12-04-11 09:39 AM, James MacKenzie wrote:
..
>> So...the big question is, is there a way to load the ir-kbd-i2c module for my
>> PVR-250, but not have it connect to the IR receiver on the HD-PVR?
> 
> Yeah, there's a device table of sorts in there somewhere,
> so removing everything other than your PVR250 from it should
> prevent interference.
> 
> Specifically, in function ir_probe() there's a big switch() statement.
> If you remove (#if 0) all of the cases except for the ones for "Hauppauge",
> then that'll probably do the job.

Here's a patch that should do what you need (also attached to bypass email mangling):


--- linux-3.0.27/drivers/media/video/ir-kbd-i2c.c.orig	2012-04-02 12:28:56.000000000 -0400
+++ linux/drivers/media/video/ir-kbd-i2c.c	2012-04-11 10:02:09.132167549 -0400
@@ -325,6 +325,7 @@
 		ir_codes    = RC_MAP_AVERMEDIA_CARDBUS;
 		break;
 	case 0x71:
+		return -ENODEV;
 		name        = "Hauppauge/Zilog Z8";
 		ir->get_key = get_key_haup_xvr;
 		rc_type     = RC_TYPE_RC5;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: disable_hdpvr_i2c_remote.patch
Type: text/x-patch
Size: 379 bytes
Desc: not available
URL: <http://www.mythtv.org/pipermail/mythtv-users/attachments/20120411/a9c2f9ad/attachment.bin>


More information about the mythtv-users mailing list