You are not logged in.

#1 2011-06-27 05:01:58

Vortalex
Member
From: United States
Registered: 2011-06-27
Posts: 9

lirc no output from irw or mode2 [SOLVED]

Hello.

I'm new to Arch which I've been trying to setup for my htpc which was running Mythubuntu 10.04 but, I've ran into a problem with lirc.  I followed the arch wiki and googled and played with it for hours and I can't get it to work.

When I start it

/usr/sbin/lircd -n -d /dev/lirc0
lircd: lircd(default) ready, using /var/run/lirc/lircd

and try

irw
mode2 d- /dev/lirc0
cat /dev/lirc0

I press buttons and get nothing.  From what I've googled so far everyone was able to get some kind of output with those.  :(
What am I doing wrong?  I just have an mce remote (MediaGate GP-IR02BK) nothing special.  The red led on the receiver lights up when I press buttons and I made sure it still works by testing on a Windows 7 box.

Here is some more information:

cat /etc/lirc/lircd.conf

include "/usr/share/lirc/remotes/mceusb/lircd.conf.mceusb"

lsmod

Module                  Size  Used by
fuse                   58669  3
ipv6                  249260  16
snd_hda_codec_hdmi     20368  1
usbhid                 31211  0
hid                    63007  1 usbhid
rc_rc6_mce              1144  0
nvidia              10508189  30
snd_hda_intel          19261  0
snd_hda_codec          66793  2 snd_hda_codec_hdmi,snd_hda_intel
snd_hwdep               4919  1 snd_hda_codec
i2c_piix4               7124  0
snd_pcm                60311  3 snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec
snd_timer              15542  1 snd_pcm
ohci_hcd               19234  0
snd                    43527  6 snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,s                                                                                                                                                             nd_hwdep,snd_pcm,snd_timer
ehci_hcd               34847  0
ir_lirc_codec           3767  0
lirc_dev                7899  1 ir_lirc_codec
soundcore               5018  1 snd
evdev                   7310  5
mceusb                  9794  0
ir_sony_decoder         1847  0
agpgart                22160  1 nvidia
ir_jvc_decoder          1909  0
snd_page_alloc          5909  2 snd_hda_intel,snd_pcm
usbcore               119004  5 usbhid,ohci_hcd,ehci_hcd,mceusb
i2c_core               16665  2 nvidia,i2c_piix4
ir_rc6_decoder          2325  0
ir_rc5_decoder          1813  0
psmouse                55927  0
serio_raw               3430  0
ir_nec_decoder          2293  0
r8169                  34923  0
sp5100_tco              3768  0
sg                     21022  0
processor              21884  0
button                  3654  0
pcspkr                  1415  0
mii                     3383  1 r8169
k10temp                 2147  0
wmi                     7367  0
rc_core                13136  9 rc_rc6_mce,ir_lirc_codec,mceusb,ir_sony_decoder,                                                                                                                                                             ir_jvc_decoder,ir_rc6_decoder,ir_rc5_decoder,ir_nec_decoder
ext4                  334626  3
mbcache                 4321  1 ext4
jbd2                   59098  1 ext4
crc16                   1077  1 ext4
sr_mod                 12956  0
cdrom                  31341  1 sr_mod
sd_mod                 25515  6
pata_acpi               2396  0
pata_atiixp             2928  0
ahci                   18093  4
libahci                16581  1 ahci
libata                154349  4 pata_acpi,pata_atiixp,ahci,libahci
scsi_mod              110670  4 sg,sr_mod,sd_mod,libata

lsusb

Bus 006 Device 002: ID 1784:0008 TopSeed Technology Corp. eHome Infrared Transceiver

ls /dev |grep lirc

lirc0
lircd

I've notice I'll only seem to have the /dev/lircd if I start it with the rc script.

unplug and plugging the receiver
tail -20 /var/log/messages.log

Jun 26 21:25:08 localhost kernel: [   31.241113] EXT4-fs (sda1): re-mounted. Opts: commit=0
Jun 26 21:25:09 localhost kernel: [   32.116170] EXT4-fs (sda3): re-mounted. Opts: commit=0
Jun 26 21:25:09 localhost kernel: [   32.120937] EXT4-fs (sdb1): re-mounted. Opts: commit=0
Jun 26 21:44:56 localhost -- MARK --
Jun 26 22:04:56 localhost -- MARK --
Jun 26 22:24:57 localhost -- MARK --
Jun 26 22:44:57 localhost -- MARK --
Jun 26 22:56:08 localhost kernel: [ 5491.812025] usb 6-1: USB disconnect, device number 2
Jun 26 22:56:12 localhost kernel: [ 5495.449490] usb 6-1: new full speed USB device number 4 using ohci_hcd
Jun 26 22:56:12 localhost kernel: [ 5495.606525] usb 6-1: config 1 interface 0 altsetting 0 endpoint 0x1 has an invalid bInterval 0, changing to 32
Jun 26 22:56:12 localhost kernel: [ 5495.606529] usb 6-1: config 1 interface 0 altsetting 0 endpoint 0x82 has an invalid bInterval 0, changing to 32
Jun 26 22:56:12 localhost mtp-probe: checking bus 6, device 4: "/sys/devices/pci0000:00/0000:00:13.1/usb6/6-1"
Jun 26 22:56:12 localhost kernel: [ 5495.620536] Registered IR keymap rc-rc6-mce
Jun 26 22:56:12 localhost kernel: [ 5495.620620] input: Media Center Ed. eHome Infrared Remote Transceiver (1784:0008) as /devices/pci0000:00/0000:00:13.1/usb6/6-1/6-1:1.0/rc/rc1/input6
Jun 26 22:56:12 localhost kernel: [ 5495.620676] rc1: Media Center Ed. eHome Infrared Remote Transceiver (1784:0008) as /devices/pci0000:00/0000:00:13.1/usb6/6-1/6-1:1.0/rc/rc1
Jun 26 22:56:12 localhost kernel: [ 5495.620753] rc rc1: lirc_dev: driver ir-lirc-codec (mceusb) registered at minor = 0
Jun 26 22:56:12 localhost kernel: [ 5495.620763] mceusb 6-1:1.0: Registered Topseed Technology Corp. eHome Infrared Transceiver on usb6:4
Jun 26 22:56:13 localhost mtp-probe: bus: 6, device: 4 was not an MTP device
Jun 26 22:56:13 localhost mtp-probe: checking bus 6, device 4: "/sys/devices/pci0000:00/0000:00:13.1/usb6/6-1"
Jun 26 22:56:13 localhost mtp-probe: bus: 6, device: 4 was not an MTP device

uname -r && lircd -v

2.6.39-ARCH
lircd 0.9.0



Any help would be much appreciated.  I've exhausted all my ideas.

Last edited by Vortalex (2011-07-03 00:04:32)

Offline

#2 2011-06-27 07:55:16

lukaszan
Member
Registered: 2011-05-05
Posts: 117

Re: lirc no output from irw or mode2 [SOLVED]

Try listing used and available protocols

ir-keytable

RC-6 didn't work for me, had to change it to LIRC with

ir-keytable -p LIRC

Offline

#3 2011-07-02 22:21:53

Vortalex
Member
From: United States
Registered: 2011-06-27
Posts: 9

Re: lirc no output from irw or mode2 [SOLVED]

Sorry for the late reply.  Thanks that did the trick.

[root@htpc ~]# ir-keytable
Found /sys/class/rc/rc0/ (/dev/input/event3) with:
        Driver mceusb, table rc-rc6-mce
        Supported protocols: NEC RC-5 RC-6 JVC SONY LIRC
        Enabled protocols: RC-6
        Repeat delay = 500 ms, repeat period = 33 ms

[root@htpc ~]# ir-keytable -p LIRC
Protocols changed to LIRC
[root@htpc ~]# ir-keytable
Found /sys/class/rc/rc0/ (/dev/input/event3) with:
        Driver mceusb, table rc-rc6-mce
        Supported protocols: NEC RC-5 RC-6 JVC SONY LIRC
        Enabled protocols: LIRC
        Repeat delay = 500 ms, repeat period = 33 ms

I noticed it doesn't stay after a restart.  so I added that to rc.local

I realize now that I may have been close.
https://bbs.archlinux.org/viewtopic.php?id=116515
https://wiki.archlinux.org/index.php/LI … ed_working

With this module, the kernel will treat your remote as a keyboard by default, which causes lircd to fail to recognize remote input. An easy way to verify this is to run irw and see if it recognizes remote input.

but I didn't have output so I moved on.

Offline

Board footer

Powered by FluxBB