Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Help setting up app-misc/lirc with mceusb remote
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
Silmano
n00b
n00b


Joined: 10 Mar 2012
Posts: 59

PostPosted: Sun Jun 29, 2014 2:46 pm    Post subject: Help setting up app-misc/lirc with mceusb remote Reply with quote

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
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 8291
Location: Saint Amant, Acadiana

PostPosted: Sun Jun 29, 2014 3:35 pm    Post subject: Reply with quote

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
View user's profile Send private message
Silmano
n00b
n00b


Joined: 10 Mar 2012
Posts: 59

PostPosted: Tue Jul 01, 2014 8:48 am    Post subject: Reply with quote

Just with that changes doesn't seem to work either. Whats your /etc/conf.d/lircd config?
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 8291
Location: Saint Amant, Acadiana

PostPosted: Tue Jul 01, 2014 10:53 pm    Post subject: Reply with quote

/etc/lirc/lircd.conf
_________________
My Gentoo installation notes.
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum