public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
From: Heiner Kallweit <hkallweit1@gmail.com>
To: James Bottomley <James.Bottomley@HansenPartnership.com>,
	linux-media@vger.kernel.org,
	linux-kernel <linux-kernel@vger.kernel.org>
Subject: Re: IR remote stopped working in kernels 4.5 and 4.6
Date: Mon, 4 Jul 2016 23:08:32 +0200	[thread overview]
Message-ID: <43cc65d3-7d9f-2ead-8a21-fcc6ee0d147e@gmail.com> (raw)
In-Reply-To: <1467664616.2288.12.camel@HansenPartnership.com>

Am 04.07.2016 um 22:36 schrieb James Bottomley:
> This looks to be a problem with the rc subsystem.  The IR controller in
> question is part of a cx8800 atsc card. In the 4.4 kernel, where it
> works, this is what ir-keytable says:
> 
> Found /sys/class/rc/rc0/ (/dev/input/event12) with:
> 	Driver cx88xx, table rc-hauppauge
> 	Supported protocols: other lirc rc-5 jvc sony nec sanyo mce-kbd rc-6 sharp xmp 
> 	Enabled protocols: lirc nec 
> 	Name: cx88 IR (pcHDTV HD3000 HDTV)
> 	bus: 1, vendor/product: 7063:3000, version: 0x0001
> 	Repeat delay = 500 ms, repeat period = 125 ms
> 
> And in 4.6, where it doesn't work:
> 
> Found /sys/class/rc/rc0/ (/dev/input/event12) with:
> 	Driver cx88xx, table rc-hauppauge
> 	Supported protocols: lirc 
> 	Enabled protocols: lirc 
> 	Name: cx88 IR (pcHDTV HD3000 HDTV)
> 	bus: 1, vendor/product: 7063:3000, version: 0x0001
> 	Repeat delay = 500 ms, repeat period = 125 ms
> 
> The particular remote in question seems to require the nec protocol to
> work and the failure in 4.5 and 4.6 is having any supported protocols
> at all.  I can get the remote to start working again by adding the nec
> protocol:
> 
> echo nec > /sys/class/rc/rc0/protocols
> 
> But it would be nice to have this happen by default rather than having
> to add yet another work around init script.
> 
Meanwhile decoder modules are loaded on demand only. This can be done
automatically w/o the need for additional init scripts.

If /etc/rc_maps.cfg includes a keymap with type NEC then the nec decoder
module is loaded automatically.

My rc_maps.cfg looks like this (and causes the SONY decoder module to be
loaded automatically):

#driver table                    file
*       *        sony-rm-sx800

And the keymap:

# table sony-rm-sx800, type SONY
0x110030        KEY_PREVIOUS
0x110031        KEY_NEXT
0x110033        KEY_BACK
..
..

Heiner

> James
> 
> --
> To unsubscribe from this list: send the line "unsubscribe linux-media" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 


  reply	other threads:[~2016-07-04 21:08 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-07-04 20:36 IR remote stopped working in kernels 4.5 and 4.6 James Bottomley
2016-07-04 21:08 ` Heiner Kallweit [this message]
2016-07-04 21:18   ` James Bottomley
2016-07-05  5:57     ` Heiner Kallweit

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=43cc65d3-7d9f-2ead-8a21-fcc6ee0d147e@gmail.com \
    --to=hkallweit1@gmail.com \
    --cc=James.Bottomley@HansenPartnership.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-media@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox