On 03/22/2017 04:13 PM, Petric Frank wrote: > Hello Dan, > > > > Am Mittwoch, 22. März 2017, 13:37:43 schrieb Daniel Frey: > >> On 03/22/2017 08:12 AM, Petric Frank wrote: > >> > maybe this is not exactly a gentoo problem. Please point me to correct > >> > location if i am wrong here. > >> > > >> > I've got a MCE-like ir remote together with a USB receiver. > >> > > >> > Looks like it is detected by the kernel and a input device was created. > >> > > >> > Most of the keys are working. But - for example - the color buttons > do not > >> > > >> > generate any output. > >> > > >> > "ir-keytable" (version 1.10.1) returns: > >> > > >> > Couldn't find any node at /sys/class/rc/rc*. > >> > > >> > "ir-keytable -d /dev/input/eventxx" gives as output: > >> > > >> > Name: PHILIPS MCE USB IR Receiver- Spi > >> > bus: 3, vendor/product: 0471:0613, version: 0x0100 > >> > > >> > Using for test > >> > > >> > ir-keytable -d /dev/input/eventxx -r > >> > > >> > i got: > >> > > >> > ------------------- cut -------------------- > >> > > >> > scancode 0x700e0 = KEY_LEFTCTRL (0x1d) > >> > ... > >> > > >> > Enabled protocols: other lirc rc-5 jvc sony nec sanyo mce-kbd rc-6 sharp > >> > xmp > >> > ------------------- cut -------------------- > >> > > >> > But there is no definition of the color buttons in the list above. > >> > > >> > Tests were done using this command: > >> > > >> > ir-keytable -d /dev/input/eventxx -t > >> > > >> > Any hints ? > >> > > >> > > >> > Is it possibe to see the scancodes received by the USB-receiver to > >> > validate > >> > > >> > that the remote really sends data for the color buttons. What kernel > >> > options i have to enable ? > >> > > >> > (Also for checking and not barking at the wrong tree due to hardware > >> > problems) > >> > > >> > Some info about my system: > >> > > >> > Kernel 4.9.6 (amd64) custom configured > >> > > >> > Distribution: Gentoo > >> > > >> > lsmod output: > >> > > >> > ----------------------- cut -------------------------- > >> > > >> > Module Size Used by > >> > > >> > rc_rc6_mce 1580 0 > >> > mceusb 10365 0 > >> > rc_core 16719 2 mceusb,rc_rc6_mce > >> > usb_storage 48619 0 > >> > hid_generic 1385 0 > >> > usbhid 35380 0 > >> > input_leds 3022 0 > >> > led_class 3975 1 input_leds > >> > > >> > ohci_pci 3272 0 > >> > > >> > snd_hda_codec_generic 52071 2 > >> > r8169 67900 0 > >> > xhci_pci 4958 0 > >> > xhci_hcd 101734 1 xhci_pci > >> > mii 4099 1 r8169 > >> > ohci_hcd 27022 1 ohci_pci > >> > ehci_pci 4103 0 > >> > ehci_hcd 41036 1 ehci_pci > >> > usbcore 165285 9 > >> > > mceusb,usbhid,usb_storage,ehci_hcd,ohci_pci,xhci_pci,ohci_hcd,xhci_hcd,ehc > >> > i_pci usb_common 2222 1 usbcore > >> > snd_hda_intel 18065 0 > >> > snd_hda_codec 73835 2 snd_hda_intel,snd_hda_codec_generic > >> > snd_hwdep 5866 1 snd_hda_codec > >> > snd_hda_core 40055 3 > >> > snd_hda_intel,snd_hda_codec,snd_hda_codec_generic > >> > snd_pcm 78737 3 snd_hda_intel,snd_hda_codec,snd_hda_core > >> > snd_timer 19336 1 snd_pcm > >> > snd 55051 6 > >> > > snd_hda_intel,snd_hwdep,snd_hda_codec,snd_timer,snd_hda_codec_generic,snd_ > >> > pcm soundcore 5231 1 snd > >> > ----------------------- cut -------------------------- > >> > > >> > The remote looks like this one: > >> > > >> > https://www.mythtv.org/wiki/File:Philips-remote.jpg > >> > > >> > but its branded as olidata. > >> > > >> > The receiver is detected as (syslog): > >> > ----------------------- cut -------------------------- > >> > > >> > [ 6.937470] usb 4-2: new low-speed USB device number 3 using xhci_hcd > >> > > >> > [ 7.117723] usb 4-2: New USB device found, idVendor=0471, idProduct=0613 > >> > > >> > [ 7.117730] usb 4-2: New USB device strings: Mfr=1, Product=2, > >> > SerialNumber=0 > >> > > >> > [ 7.117735] usb 4-2: Product: MCE USB IR Receiver- Spinel plus > >> > > >> > [ 7.117740] usb 4-2: Manufacturer: PHILIPS > >> > > >> > [ 7.132840] input: PHILIPS MCE USB IR Receiver- Spinel plus as > >> > > >> > > /devices/pci0000:00/0000:00:15.2/0000:04:00.0/usb4/4-2/4-2:1.0/0003:0471:0 > >> > 613.0003/input/input19 > >> > > >> > > >> > [ 7.185141] hid-generic 0003:0471:0613.0003: input,hiddev0,hidraw2: USB > >> > HID v1.00 Keyboard [PHILIPS MCE USB IR Receiver- Spinel plus] on > >> > usb-0000:04:00.0-2/input0 > >> > > >> > [ 7.191372] usbcore: registered new interface driver mceusb > >> > > >> > ---------------------- cut -------------------------- > >> > >> Exactly what have you enabled in the kernel? You've probably missed > >> something if nothing is created under /sys/class/rc/. > > > > Which modules create the entries under /sys/class/rc/. > > This is the media drivers part of the kernel config: > > -------------------- cut -------------------------- > > # > # Media drivers > # > CONFIG_RC_CORE=m > CONFIG_RC_MAP=m > CONFIG_RC_DECODERS=y > CONFIG_LIRC=m > CONFIG_IR_LIRC_CODEC=m > CONFIG_IR_NEC_DECODER=m > CONFIG_IR_RC5_DECODER=m > CONFIG_IR_RC6_DECODER=m > CONFIG_IR_JVC_DECODER=m > CONFIG_IR_SONY_DECODER=m > CONFIG_IR_SANYO_DECODER=m > CONFIG_IR_SHARP_DECODER=m > CONFIG_IR_MCE_KBD_DECODER=m > CONFIG_IR_XMP_DECODER=m > CONFIG_RC_DEVICES=y > CONFIG_RC_ATI_REMOTE=m > # CONFIG_IR_ENE is not set > # CONFIG_IR_HIX5HD2 is not set > # CONFIG_IR_IMON is not set > CONFIG_IR_MCEUSB=m > # CONFIG_IR_ITE_CIR is not set > # CONFIG_IR_FINTEK is not set > # CONFIG_IR_NUVOTON is not set > # CONFIG_IR_REDRAT3 is not set > # CONFIG_IR_STREAMZAP is not set > # CONFIG_IR_WINBOND_CIR is not set > # CONFIG_IR_IGORPLUGUSB is not set > # CONFIG_IR_IGUANA is not set > # CONFIG_IR_TTUSBIR is not set > # CONFIG_RC_LOOPBACK is not set > # CONFIG_IR_GPIO_CIR is not set > CONFIG_MEDIA_USB_SUPPORT=y > # CONFIG_MEDIA_PCI_SUPPORT is not set > -------------------- cut -------------------------- > > > > Do i miss something ? > > Or do i need to load other kernel modules by hand ? > > > regards > > Petric > > >
I am running a much older kernel (4.1 LTS) but it seems you have everything. I did find your problem though, although I have no idea how to fix it: [ 7.185141] hid-generic 0003:0471:0613.0003: input,hiddev0,hidraw2: USB HID v1.00 Keyboard [PHILIPS MCE USB IR Receiver- Spinel plus] on usb-0000:04:00.0-2/input0 The kernel is registering your device as a keyboard (incorrectly, obviously.) Presumably this is why it is not creating /sys/class/rc/rc0. I would assume you'd have to block Xorg from seeing it as a keyboard and maybe write a udev rule to register the device correctly? On my mythtv frontend my device (an iMon device) registers correctly as an IR device: [ 7.000121] input: iMON Remote (15c2:0038) as /devices/pci0000:00/0000:00:1a.2/usb5/5-1/5-1:1.0/rc/rc0/input6 I did a quick Google for your device and "keyboard" and this thread looks promising: http://forum.kodi.tv/showthread.php?tid=133071&pid=1118999#pid1118999 You might be able to get some information there to stop it from registering itself as a keyboard. This is for Ubuntu or one of its forks, so you may have to adjust things accordingly. Sorry I wasn't much help. Dan