View previous topic :: View next topic |
Author |
Message |
Silmano n00b
Joined: 10 Mar 2012 Posts: 59
|
Posted: Sun Jun 29, 2014 2:46 pm Post subject: Help setting up app-misc/lirc with mceusb remote |
|
|
I'm trying to configure lirc with a RC-6 receiver. So far I've got the system to be able to read inputs from /dev/input/event0 and I've recorded the remote keys with irrecord, but irw doesn't seem to show any output. This is my actual configuration:
Kernel configuration:
Code: | Device Drivers --->
<*> Multimedia support --->
[*] Remote Controller support
<*> Compile Remote Controller keymay modules
[*] Remote controller decoders --->
<*> LIRC interface driver
< > Enable IR to LIRC bridge
<M> Enable IR raw decoder for the RC6 protocol
[*] Remote Controller devices --->
<*> Windows Media Center Ed. eHome Infrared Transceiver |
/etc/portage/make.conf lirc device:
Code: |
# LIRC
LIRC_DEVICES="devinput" |
/etc/conf.d/lircd options (the rest are commented)
Code: |
LIRCD_OPTS="-H devinput -d /dev/input/by-id/usb-_Windows_Media_Center_IR_Transceiver_GFKE-event-if00"
LIRCD_SET_SYSCLASSRCS="rc0" |
With the above configuration, ir-keytable outputs the following:
Code: | Found /sys/class/rc/rc0/ (/dev/input/event0) with:
Driver mceusb, table rc-rc6-mce
Supported protocols: RC-6
Enabled protocols: RC-6
Repeat delay = 500 ms, repeat period = 125 ms |
And I can use irrecord to record all the keys in my remote. If I run irw and press some keys, irw doesn't seem to do anything, but dmegs outputs the keypresses
Code: | [ 3671.828922] mceusb 3-2:1.0: rx data: 81 7f (length=2)
[ 3671.828933] mceusb 3-2:1.0: Raw IR data, 1 pulse/space samples
[ 3671.828941] mceusb 3-2:1.0: Storing space with duration 6350000
[ 3671.828953] mceusb 3-2:1.0: rx data: 9f 14 01 (length=3)
[ 3671.828961] mceusb 3-2:1.0: Got long-range receive sensor in use
[ 3671.828970] mceusb 3-2:1.0: rx data: 9f 15 00 00 (length=4)
[ 3671.828979] mceusb 3-2:1.0: rx data: 80 (length=1)
[ 3671.828985] mceusb 3-2:1.0: End of raw IR data
[ 3671.829001] mceusb 3-2:1.0: processed IR data, calling ir_raw_event_handle |
I've also tried compiling the kernel with 'Enable IR to LIRC bridge', but doing so, I can't get any output while doing a cat to /dev/input/event0 nor irw works. Any idea why the kernel sees the remote input but lirc doesn't seem to like it (despite recording the keys without issue)? |
|
Back to top |
|
|
Jaglover Watchman
Joined: 29 May 2005 Posts: 8291 Location: Saint Amant, Acadiana
|
Posted: Sun Jun 29, 2014 3:35 pm Post subject: |
|
|
I went thru that ordeal half a year ago when my non-LIRC remote disappeared (I have two little dogs) and I happened to have a media center remote as a spare.
After testing different configurations I ended up with working setup.
My final kernel config is not exactly same. Differences are below.
Code: | <M> Compile Remote Controller keymap modules
< > LIRC interface driver
<*> Enable IR raw decoder for the RC6 protocol
<M> Windows Media Center Ed. eHome Infrared Transceiver |
I found it was important in what order they load, this is why some are built as modules. Enabling LIRC interface driver messed it up for me.
Code: | LIRC_DEVICES="userspace" |
I remember /etc/lirc/lircd.conf plays important role, but cannot recall how I generated it.
Edit: I think I copied it over from /usr/share/lirc/remotes/devinput/lircd.conf.devinput. _________________ My Gentoo installation notes.
Please learn how to denote units correctly! |
|
Back to top |
|
|
Silmano n00b
Joined: 10 Mar 2012 Posts: 59
|
Posted: Tue Jul 01, 2014 8:48 am Post subject: |
|
|
Just with that changes doesn't seem to work either. Whats your /etc/conf.d/lircd config? |
|
Back to top |
|
|
Jaglover Watchman
Joined: 29 May 2005 Posts: 8291 Location: Saint Amant, Acadiana
|
|
Back to top |
|
|
|