Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
mceusb lirc-0.9.0 and kernel-2.6.38-g-r6 [punting for now]
View unanswered posts
View posts from last 24 hours

Goto page 1, 2  Next  
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
mbrehon
n00b
n00b


Joined: 10 Jun 2006
Posts: 37
Location: Colorful Colorado

PostPosted: Sat Jun 11, 2011 10:39 pm    Post subject: mceusb lirc-0.9.0 and kernel-2.6.38-g-r6 [punting for now] Reply with quote

Hi all, I've been waiting a while for this upgrade because I anticipated trouble. Turns out I was correct. I've been running successfully with the lirc-0.8.7 lirc_mceusb on gentoo-sources-2.6.35 for a few months now on two amd64 machines, one also using blaster capability. I'm tackling the single purpose system first (mythfrontend).

My current suspiciions are:
- too many modules compiled with the kernel - not sure which (if any) are the bare-bones requirements for mceusb.
- I've seen mention of accessing the remote device at different input layers, maybe I've got something cross-configured in that regard?
- I've wrongly set my LIRC_DEVICE="none" in make.conf

vitals:

kernel config
Code:
linux # grep LIRC .config
CONFIG_LIRC=m
CONFIG_IR_LIRC_CODEC=m
linux # grep _IR_ .config
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_RC5_SZ_DECODER=m
CONFIG_IR_LIRC_CODEC=m
# CONFIG_IR_ENE is not set
# CONFIG_IR_IMON is not set
CONFIG_IR_MCEUSB=m
# CONFIG_IR_NUVOTON is not set
# CONFIG_IR_STREAMZAP is not set
# CONFIG_IR_WINBOND_CIR is not set
CONFIG_VIDEO_IR_I2C=m


Code:
# uname -a
Linux munich 2.6.38-gentoo-r6 #1 PREEMPT Fri May 27 19:27:38 MDT 2011 x86_64 AMD Athlon(tm) 64 Processor 3400+ AuthenticAMD GNU/Linux


Code:
# dmesg | grep -i lirc
[    7.244326] lirc_dev: IR Remote Control driver registered, major 251
[    7.252086] rc rc0: lirc_dev: driver ir-lirc-codec (mceusb) registered at minor = 0
[    7.252090] IR LIRC bridge handler initialized
# dmesg | grep -i mceusb
[    6.923659] mceusb 2-1:1.0: Registered Philips eHome Infrared Transceiver on usb2:2
[    6.923681] usbcore: registered new interface driver mceusb
[    7.252086] rc rc0: lirc_dev: driver ir-lirc-codec (mceusb) registered at minor = 0
# ls -l /dev/lirc*
crw------- 1 root root 251, 0 Jun 11 12:22 /dev/lirc0
lrwxrwxrwx 1 root root     19 Jun 11 12:22 /dev/lircd -> /var/run/lirc/lircd


Code:
# lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 002: ID 0557:7000 ATEN International Co., Ltd Hub
Bus 003 Device 003: ID 0461:4d03 Primax Electronics, Ltd Kensington Mouse-in-a-box
Bus 002 Device 002: ID 0471:0815 Philips (or NXP) eHome Infrared Receiver
Bus 003 Device 004: ID 04d9:0702 Holtek Semiconductor, Inc.


Code:
# lsmod | grep lirc
ir_lirc_codec           4258  0
lirc_dev               10960  1 ir_lirc_codec
rc_core                17682  12 rc_rc5_hauppauge_new,cx88xx,ir_lirc_codec,ir_sony_decoder,rc_rc6_mce,mceusb,ir_jvc_decoder,ir_rc6_decoder,ir_rc5_decoder,ir_nec_decoder
# lsmod | grep mceusb
mceusb                 11266  0 
rc_core                17682  12 rc_rc5_hauppauge_new,cx88xx,ir_lirc_codec,ir_sony_decoder,rc_rc6_mce,mceusb,ir_jvc_decoder,ir_rc6_decoder,ir_rc5_decoder,ir_nec_decoder

Code:
# eix app-misc/lirc
[I] app-misc/lirc
     Available versions:  0.8.5 (~)0.8.7_pre1 0.8.7 (~)0.9.0 {X debug doc hardware-carrier kernel_linux lirc_devices_accent lirc_devices_act200l lirc_devices_act220l lirc_devices_adaptec lirc_devices_all lirc_devices_alsa_usb lirc_devices_animax lirc_devices_asusdh lirc_devices_atilibusb lirc_devices_atiusb lirc_devices_audio lirc_devices_audio_alsa lirc_devices_avermedia lirc_devices_avermedia98 lirc_devices_avermedia_vdomate lirc_devices_awlibusb lirc_devices_bestbuy lirc_devices_bestbuy2 lirc_devices_breakoutbox lirc_devices_bte lirc_devices_bw6130 lirc_devices_caraca lirc_devices_chronos lirc_devices_commandir lirc_devices_cph06x lirc_devices_creative lirc_devices_creative_infracd lirc_devices_devinput lirc_devices_digimatrix lirc_devices_dsp lirc_devices_dvico lirc_devices_ea65 lirc_devices_ene0100 lirc_devices_exaudio lirc_devices_flyvideo lirc_devices_ftdi lirc_devices_gvbctv5pci lirc_devices_hauppauge lirc_devices_hauppauge_dvb lirc_devices_hercules_smarttv_stereo lirc_devices_i2cuser lirc_devices_igorplugusb lirc_devices_iguanaIR lirc_devices_imon lirc_devices_imon_24g lirc_devices_imon_knob lirc_devices_imon_lcd lirc_devices_imon_pad lirc_devices_imon_rsc lirc_devices_inputlirc lirc_devices_irdeo lirc_devices_irdeo_remote lirc_devices_irlink lirc_devices_irman lirc_devices_irreal lirc_devices_it87 lirc_devices_ite8709 lirc_devices_knc_one lirc_devices_kworld lirc_devices_leadtek_0007 lirc_devices_leadtek_0010 lirc_devices_leadtek_pvr2000 lirc_devices_livedrive_midi lirc_devices_livedrive_seq lirc_devices_logitech lirc_devices_macmini lirc_devices_mceusb lirc_devices_mceusb2 lirc_devices_mediafocusI lirc_devices_mouseremote lirc_devices_mouseremote_ps2 lirc_devices_mp3anywhere lirc_devices_mplay lirc_devices_nslu2 lirc_devices_packard_bell lirc_devices_parallel lirc_devices_pcmak lirc_devices_pcmak_usb lirc_devices_pctv lirc_devices_pixelview_bt878 lirc_devices_pixelview_pak lirc_devices_pixelview_pro lirc_devices_provideo lirc_devices_realmagic lirc_devices_remote_wonder_plus lirc_devices_remotemaster lirc_devices_sa1100 lirc_devices_samsung lirc_devices_sasem lirc_devices_sb0540 lirc_devices_serial lirc_devices_serial_igor_cesko lirc_devices_silitek lirc_devices_sir lirc_devices_slinke lirc_devices_streamzap lirc_devices_tekram lirc_devices_tekram_bt829 lirc_devices_tira lirc_devices_ttusbir lirc_devices_tuxbox lirc_devices_tvbox lirc_devices_udp lirc_devices_uirt2 lirc_devices_uirt2_raw lirc_devices_usb_uirt_raw lirc_devices_usbirboy lirc_devices_usbx lirc_devices_userspace lirc_devices_wpc8769l lirc_devices_xboxusb transmitter}
     Installed versions:  0.9.0(12:05:15 06/11/11)(X debug kernel_linux -doc -hardware-carrier -lirc_devices_accent -lirc_devices_act200l -lirc_devices_act220l -lirc_devices_adaptec -lirc_devices_all -lirc_devices_alsa_usb -lirc_devices_animax -lirc_devices_asusdh -lirc_devices_atilibusb -lirc_devices_atiusb -lirc_devices_audio -lirc_devices_audio_alsa -lirc_devices_avermedia -lirc_devices_avermedia98 -lirc_devices_avermedia_vdomate -lirc_devices_awlibusb -lirc_devices_bestbuy -lirc_devices_bestbuy2 -lirc_devices_breakoutbox -lirc_devices_bte -lirc_devices_bw6130 -lirc_devices_caraca -lirc_devices_chronos -lirc_devices_commandir -lirc_devices_cph06x -lirc_devices_creative -lirc_devices_creative_infracd -lirc_devices_devinput -lirc_devices_digimatrix -lirc_devices_dsp -lirc_devices_dvico -lirc_devices_ea65 -lirc_devices_ene0100 -lirc_devices_exaudio -lirc_devices_flyvideo -lirc_devices_ftdi -lirc_devices_gvbctv5pci -lirc_devices_hauppauge -lirc_devices_hauppauge_dvb -lirc_devices_hercules_smarttv_stereo -lirc_devices_i2cuser -lirc_devices_igorplugusb -lirc_devices_iguanaIR -lirc_devices_imon -lirc_devices_imon_24g -lirc_devices_imon_knob -lirc_devices_imon_lcd -lirc_devices_imon_pad -lirc_devices_imon_rsc -lirc_devices_inputlirc -lirc_devices_irdeo -lirc_devices_irdeo_remote -lirc_devices_irlink -lirc_devices_irman -lirc_devices_irreal -lirc_devices_it87 -lirc_devices_ite8709 -lirc_devices_knc_one -lirc_devices_kworld -lirc_devices_leadtek_0007 -lirc_devices_leadtek_0010 -lirc_devices_leadtek_pvr2000 -lirc_devices_livedrive_midi -lirc_devices_livedrive_seq -lirc_devices_logitech -lirc_devices_macmini -lirc_devices_mceusb -lirc_devices_mediafocusI -lirc_devices_mouseremote -lirc_devices_mouseremote_ps2 -lirc_devices_mp3anywhere -lirc_devices_mplay -lirc_devices_nslu2 -lirc_devices_packard_bell -lirc_devices_parallel -lirc_devices_pcmak -lirc_devices_pcmak_usb -lirc_devices_pctv -lirc_devices_pixelview_bt878 -lirc_devices_pixelview_pak -lirc_devices_pixelview_pro -lirc_devices_provideo -lirc_devices_realmagic -lirc_devices_remote_wonder_plus -lirc_devices_remotemaster -lirc_devices_sa1100 -lirc_devices_samsung -lirc_devices_sasem -lirc_devices_sb0540 -lirc_devices_serial -lirc_devices_serial_igor_cesko -lirc_devices_silitek -lirc_devices_sir -lirc_devices_slinke -lirc_devices_streamzap -lirc_devices_tekram -lirc_devices_tekram_bt829 -lirc_devices_tira -lirc_devices_ttusbir -lirc_devices_tuxbox -lirc_devices_tvbox -lirc_devices_udp -lirc_devices_uirt2 -lirc_devices_uirt2_raw -lirc_devices_usb_uirt_raw -lirc_devices_usbirboy -lirc_devices_usbx -lirc_devices_userspace -lirc_devices_wpc8769l -lirc_devices_xboxusb -transmitter)
     Homepage:            http://www.lirc.org/
     Description:         decode and send infra-red signals of many commonly used remote controls


/usr/sbin/lircd output
Code:
# /usr/sbin/lircd -d /dev/lirc0
lircd: there's no hardware I can use and no peers are specified



Has anyone else gone thru this upgrade successfully?

Oh yeah, I did try the tips on the mythtv wiki http://www.mythtv.org/wiki/LIRC#Gentoo, but I've used the ebuild for lirc-0.9.0 that recently appeared in the tree.

Any hints/suggestions much appreciated,
-Mark


Last edited by mbrehon on Wed Jun 15, 2011 12:40 am; edited 1 time in total
Back to top
View user's profile Send private message
wswartzendruber
Veteran
Veteran


Joined: 23 Mar 2004
Posts: 1221
Location: Jefferson, USA

PostPosted: Sat Jun 11, 2011 11:31 pm    Post subject: Reply with quote

Code:
Linux htpc 2.6.38-gentoo-r7 #1 SMP Sat Jun 11 15:18:48 PDT 2011 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 6000+ AuthenticAMD GNU/Linux

No love here, either.
Back to top
View user's profile Send private message
depontius
Advocate
Advocate


Joined: 05 May 2004
Posts: 2473

PostPosted: Sat Jun 11, 2011 11:35 pm    Post subject: Reply with quote

You've gone where I've feared to tread.

The lirc modules have been moving into the input system of the kernel. Where both exist, the lirc_* modules are deprecated in favor of using "devinput" and the in-kernel driver. In fact, the lirc developers plan on removing those lirc_* drivers on the next iteration. Incidentally, mceusb was one of the first drivers moved in-kernel.

It's time to migrate to from lirc_mceusb to devinput and the in-kernel driver.

Which is why my Mythbox is still sitting at lirc-0.8.7 and kernel 2.6.37. I just haven't had time to do the migration. I've found one guide on how to do it, so far. Plus I picked up at some point that the in-kernel drivers with 2.6.37 aren't so hot, and it's better to start this whole exercise with 2.6.38.

But more to the point, if you really want to be using the new kernel with lirc_mceusb. I suspect you need to look into the "input" or "hid" subsystem menus and find the right stuff to turn off. I'm not sure if it will even be called "lirc", but I believe it will have the familiar-looking device names.
_________________
.sigs waste space and bandwidth
Back to top
View user's profile Send private message
mbrehon
n00b
n00b


Joined: 10 Jun 2006
Posts: 37
Location: Colorful Colorado

PostPosted: Wed Jun 15, 2011 12:39 am    Post subject: Reply with quote

Thanks for the replies. I guess I'll punt for now and explore the lirc list(s) for a while until I can form an intelligent question.

-Mark
Back to top
View user's profile Send private message
depontius
Advocate
Advocate


Joined: 05 May 2004
Posts: 2473

PostPosted: Wed Jun 15, 2011 1:57 am    Post subject: Reply with quote

I keep wanting to make the jump to devinput myself, but it's just been a matter of time. The basement is finally drying out, though we really haven't started repairs yet or moving back in. (I live near Lake Champlain, and had water in my basement once before - when the lake was at it's previous record high level, in 1993.) Maybe I'll have time soon.

I have seen some sort of migration guide for moving to devinput. I don't remember where, but it was a fairly simple search.
_________________
.sigs waste space and bandwidth
Back to top
View user's profile Send private message
PraetorZero
Apprentice
Apprentice


Joined: 11 Dec 2004
Posts: 239
Location: /home

PostPosted: Wed Jun 15, 2011 4:33 pm    Post subject: Reply with quote

I ended up moving to devinput instead of using MCEUSB.

egrep "LIRC|CONFIG_IR" .config
Code:

CONFIG_IRQ_WORK=y
CONFIG_IRQ_FORCED_THREADING=y
# CONFIG_IRQ_TIME_ACCOUNTING is not set
# CONFIG_IRDA is not set
CONFIG_LIRC=m
# CONFIG_IR_NEC_DECODER is not set
# CONFIG_IR_RC5_DECODER is not set
CONFIG_IR_RC6_DECODER=m
# CONFIG_IR_JVC_DECODER is not set
# CONFIG_IR_SONY_DECODER is not set
CONFIG_IR_RC5_SZ_DECODER=m
CONFIG_IR_LIRC_CODEC=m
CONFIG_IR_ENE=m
# CONFIG_IR_IMON is not set
CONFIG_IR_MCEUSB=m
# CONFIG_IR_ITE_CIR is not set
# CONFIG_IR_NUVOTON is not set
# CONFIG_IR_STREAMZAP is not set
# CONFIG_IR_WINBOND_CIR is not set


emerge -pv lirc
Code:
[ebuild   R    ] app-misc/lirc-0.9.0  USE="X -debug -doc -hardware-carrier -transmitter" LIRC_DEVICES="devinput -accent -act200l -act220l -adaptec -all -alsa_usb -animax -asusdh -atilibusb -atiusb -audio -audio_alsa -avermedia -avermedia98 -avermedia_vdomate -awlibusb -bestbuy -bestbuy2 -breakoutbox -bte -bw6130 -caraca -chronos -commandir -cph06x -creative -creative_infracd -digimatrix -dsp -dvico -ea65 -ene0100 -exaudio -flyvideo -ftdi -gvbctv5pci -hauppauge -hauppauge_dvb -hercules_smarttv_stereo -i2cuser -igorplugusb -iguanaIR -imon -imon_24g -imon_knob -imon_lcd -imon_pad -imon_rsc -inputlirc -irdeo -irdeo_remote -irlink -irman -irreal -it87 -ite8709 -knc_one -kworld -leadtek_0007 -leadtek_0010 -leadtek_pvr2000 -livedrive_midi -livedrive_seq -logitech -macmini -mceusb -mediafocusI -mouseremote -mouseremote_ps2 -mp3anywhere -mplay -nslu2 -packard_bell -parallel -pcmak -pcmak_usb -pctv -pixelview_bt878 -pixelview_pak -pixelview_pro -provideo -realmagic -remote_wonder_plus -remotemaster -sa1100 -samsung -sasem -sb0540 -serial -serial_igor_cesko -silitek -sir -slinke -streamzap -tekram -tekram_bt829 -tira -ttusbir -tuxbox -tvbox -udp -uirt2 -uirt2_raw -usb_uirt_raw -usbirboy -usbx -userspace -wpc8769l -xboxusb"


cat /etc/conf.d/lircd[/b]
Code:

# Options to pass to the lircd process

# for devices with lirc-kernel-module
#LIRCD_OPTS="-d /dev/lirc0 -r"
#LIRCD_OPTS="-d /dev/lirc"

# for devices using the input-layer
#LIRCD_OPTS="-H devinput -d /dev/input/by-path/pci-0000:00:0a.0--event-ir"
LIRCD_OPTS="-H devinput -d /dev/input/by-path/pci-0000:00:12.0-usb-0:2:1.0-event"
# This should work, Bug #235107
#LIRCD_OPTS="-H devinput name=*DVB*"


I also made a symlink from /usr/share/lirc/remotes/devinput/lircd.conf.devinput to /etc/lirc/lircd.conf. Copying the file also works.
_________________
What's the worst that can happen?
Back to top
View user's profile Send private message
wswartzendruber
Veteran
Veteran


Joined: 23 Mar 2004
Posts: 1221
Location: Jefferson, USA

PostPosted: Wed Jun 15, 2011 8:22 pm    Post subject: Reply with quote

I'm having a hard time finding those options in gentoo-sources-2.6.39.
Back to top
View user's profile Send private message
PraetorZero
Apprentice
Apprentice


Joined: 11 Dec 2004
Posts: 239
Location: /home

PostPosted: Wed Jun 15, 2011 8:28 pm    Post subject: Reply with quote

wswartzendruber wrote:
I'm having a hard time finding those options in gentoo-sources-2.6.39.


I'm using vanilla-sources-2.6.39 for two different machines. Unless the devs have radically altered something for gentoo-sources, they should be there.

Device Drivers | Multimedia Support | Remote Controller adapter

<M> Compile Remote Controller keymap modules
<M> Enable IR raw decoder for the RC6 protocol
<M> Enable IR raw decoder for the RC-5 (streamzap) protocol
<M> Enable IR to LIRC bridge
<M> ENE eHome Receiver/Transceiver (pnp id: ENE0100/ENE02xxx)
<M> Windows Media Center Ed. eHome Infrared Transceiver
_________________
What's the worst that can happen?
Back to top
View user's profile Send private message
depontius
Advocate
Advocate


Joined: 05 May 2004
Posts: 2473

PostPosted: Wed Jun 15, 2011 11:40 pm    Post subject: Reply with quote

I have an el-cheapo mceusb, myself. It looks to me as if you've got 2 adapters, and mceusb and something else.

I presume I could do without the RC5 and the ENE eHome stuff??? The rest looks logical and familiar to me.
_________________
.sigs waste space and bandwidth
Back to top
View user's profile Send private message
wswartzendruber
Veteran
Veteran


Joined: 23 Mar 2004
Posts: 1221
Location: Jefferson, USA

PostPosted: Wed Jun 15, 2011 11:46 pm    Post subject: Reply with quote

Good question. Can I get rid of any of that stuff?
Back to top
View user's profile Send private message
PraetorZero
Apprentice
Apprentice


Joined: 11 Dec 2004
Posts: 239
Location: /home

PostPosted: Thu Jun 16, 2011 12:47 am    Post subject: Reply with quote

You only need one of the modules if you're using an MCEUSB device.

I was troubleshooting one of my receivers on the other machine, that's why I have both built. I only need the RC6 protocol on one machine.
_________________
What's the worst that can happen?
Back to top
View user's profile Send private message
depontius
Advocate
Advocate


Joined: 05 May 2004
Posts: 2473

PostPosted: Thu Jun 16, 2011 1:02 am    Post subject: Reply with quote

Next question...

I've got some sort of /etc/lircd.conf that tells how to decode the raw IR stuff, emitting a "key name", and then I've got another configuration file under ~mythtv that maps those "key names" to some sort of action, usually a keypress.

It sounds to me as if the former is now handled in-kernel, and the latter should be usable as-is. That presumes of course that I just grabbed the stanzas for /etc/lircd.conf out of /usr/share/lirc-* and didn't encode/name my own keys. Does this square with your experiences?

You're giving me the courage to go devinput on my mythfrontend. I was stuck at 2.6.32 for the longest time because I couldn't get wake-on-USB to work on any later kernels. I finally solved that one, and have let myself get stuck at 2.6.37 because of the devinput thing.
_________________
.sigs waste space and bandwidth
Back to top
View user's profile Send private message
PraetorZero
Apprentice
Apprentice


Joined: 11 Dec 2004
Posts: 239
Location: /home

PostPosted: Thu Jun 16, 2011 1:07 am    Post subject: Reply with quote

As I understand it, that should still work. I'll be honest in that I haven't tried it since I switched over. I keep meaning to try it again, but finding time, alone, where either of the frontends aren't in use is a challenge with kids. ;)
_________________
What's the worst that can happen?
Back to top
View user's profile Send private message
wswartzendruber
Veteran
Veteran


Joined: 23 Mar 2004
Posts: 1221
Location: Jefferson, USA

PostPosted: Thu Jun 16, 2011 2:48 am    Post subject: Reply with quote

Hey did the remote codes change or something?! Only half the buttons in XBMC even work.
Back to top
View user's profile Send private message
PraetorZero
Apprentice
Apprentice


Joined: 11 Dec 2004
Posts: 239
Location: /home

PostPosted: Thu Jun 16, 2011 2:53 am    Post subject: Reply with quote

If you're using devinput, you'll have to use a new lirc.conf. see my previous post for the location.
_________________
What's the worst that can happen?
Back to top
View user's profile Send private message
wswartzendruber
Veteran
Veteran


Joined: 23 Mar 2004
Posts: 1221
Location: Jefferson, USA

PostPosted: Thu Jun 16, 2011 4:55 am    Post subject: Reply with quote

The issue was with XBMC. I have no idea who was in charge of this transition, but (s)he should be forced to suffer public humiliation.
Back to top
View user's profile Send private message
cdstealer
Guru
Guru


Joined: 30 Oct 2005
Posts: 341
Location: Leeds

PostPosted: Fri Jun 17, 2011 6:23 am    Post subject: Reply with quote

removed post as it is now moot. :)
_________________
# touch cock
touch: cannot touch `cock': Permission denied


Last edited by cdstealer on Wed Jun 29, 2011 4:44 am; edited 4 times in total
Back to top
View user's profile Send private message
PraetorZero
Apprentice
Apprentice


Joined: 11 Dec 2004
Posts: 239
Location: /home

PostPosted: Sat Jun 18, 2011 1:58 am    Post subject: Reply with quote

wswartzendruber wrote:
The issue was with XBMC. I have no idea who was in charge of this transition, but (s)he should be forced to suffer public humiliation.


Ooops. I just found my notes from that, you're right, I had the same problem. I don't use XBMC as much as I'd like.
_________________
What's the worst that can happen?
Back to top
View user's profile Send private message
russell5
n00b
n00b


Joined: 29 Jun 2011
Posts: 2

PostPosted: Wed Jun 29, 2011 1:53 am    Post subject: Reply with quote

I tried to swicth to devinput buts its not working for me.

Well anyway is not working for me.

IRW doesn't pick up anything but dmesg picks up the raw ir events.

Has anyone seen this?
Back to top
View user's profile Send private message
cdstealer
Guru
Guru


Joined: 30 Oct 2005
Posts: 341
Location: Leeds

PostPosted: Wed Jun 29, 2011 4:33 am    Post subject: Reply with quote

Hi Russell5,
Yes, I had exactly the same issue at one point. I resolved it by stopping any processes for lirc and then unmerging lirc. Then search for any *lirc* files and remove them. This includes /dev/lirc*

find / -type f -name "*lirc*" | grep -v "portage\|src\|mythtv"

Make sure you have the correct drivers selected in your kernel

CONFIG_LIRC=y
CONFIG_IR_LIRC_CODEC=y
CONFIG_IR_MCEUSB=y
CONFIG_LIRC_STAGING=y

Then emerge lirc. version 0.9.0 should be ok.. no need to bother with the pre1.

Once you've started lirc, if you run "lircd -n -H help" (which is invalid), it should list all the drivers. Before I did the above, this command only listed "default" as the available driver even though they were compiled into the kernel.
_________________
# touch cock
touch: cannot touch `cock': Permission denied
Back to top
View user's profile Send private message
russell5
n00b
n00b


Joined: 29 Jun 2011
Posts: 2

PostPosted: Wed Jun 29, 2011 12:03 pm    Post subject: Reply with quote

NVM got it working. Missed a config in my kernel.

cdstealer wrote:
Hi Russell5,
Yes, I had exactly the same issue at one point. I resolved it by stopping any processes for lirc and then unmerging lirc. Then search for any *lirc* files and remove them. This includes /dev/lirc*

find / -type f -name "*lirc*" | grep -v "portage\|src\|mythtv"

Make sure you have the correct drivers selected in your kernel

CONFIG_LIRC=y
CONFIG_IR_LIRC_CODEC=y
CONFIG_IR_MCEUSB=y
CONFIG_LIRC_STAGING=y

Then emerge lirc. version 0.9.0 should be ok.. no need to bother with the pre1.

Once you've started lirc, if you run "lircd -n -H help" (which is invalid), it should list all the drivers. Before I did the above, this command only listed "default" as the available driver even though they were compiled into the kernel.


Thanks. I did this and still the same. When i ran lircd -n -H help i got the devinput driver before and after. I did add CONFIG_LIRC_STAGING=y which i didnt have before.
Here is part of my dmesg | grep mceusb



Code:
[    0.968671] usbcore: registered new interface driver mceusb
[    2.515863] mceusb 7-1:1.0: usb_probe_interface
[    2.515868] mceusb 7-1:1.0: usb_probe_interface - got id
[    2.522985] rc rc0: lirc_dev: driver ir-lirc-codec (mceusb) registered at minor = 0
[    2.523569] mceusb 7-1:1.0: Registered Topseed Technology Corp. eHome Infrared Transceiver on usb7:2
[    2.524695] mceusb 7-1:1.0: tx data: 9f 07 (length=2)
[    2.524997] mceusb 7-1:1.0: Get carrier mode and freq
[    2.525294] mceusb 7-1:1.0: tx data: 9f 13 (length=2)
[    2.525592] mceusb 7-1:1.0: Get transmit blaster mask
[    2.525682] mceusb 7-1:1.0: tx data: 9f 0d (length=2)
[    2.525682] mceusb 7-1:1.0: Get receive timeout
[    2.525682] mceusb 7-1:1.0: rx data: 9f 06 01 42 (length=4)
[    2.525682] mceusb 7-1:1.0: Got carrier mode and freq of 0x01 0x42
[    2.527105] mceusb 7-1:1.0: tx data: 9f 15 (length=2)
[    2.527412] mceusb 7-1:1.0: Get receive sensor
[    2.529694] mceusb 7-1:1.0: rx data: 9f 14 01 (length=3)
[    2.529996] mceusb 7-1:1.0: Got long-range receive sensor in use
[  309.772812] mceusb 7-1:1.0: rx data: 81 b6 (length=2)
[  309.772819] mceusb 7-1:1.0: Raw IR data, 1 pulse/space samples
[  309.774813] mceusb 7-1:1.0: rx data: 81 11 (length=2)
[  309.774820] mceusb 7-1:1.0: Raw IR data, 1 pulse/space samples

and Dmesg | grep lirc

Code:

[    0.967956] lirc_dev: IR Remote Control driver registered, major 251
[    2.522985] rc rc0: lirc_dev: driver ir-lirc-codec (mceusb) registered at minor = 0
Back to top
View user's profile Send private message
cdstealer
Guru
Guru


Joined: 30 Oct 2005
Posts: 341
Location: Leeds

PostPosted: Wed Jun 29, 2011 8:18 pm    Post subject: Reply with quote

Hmmm.. the good news is that the driver IS working from the kernel, what isn't working is that lirc is not using it. There will be something that is interfering with it. A few things to check:

1) stop lircd, delete the /dev/lirc* files then restart udev (this will restart X). Check that /dev/lirc0 has been created. Start lirc if it has. If /dev/lircd appears then lirc is starting correctly. test with irw. If it's still not working then I guarantee that "lircd -n -H help" won't list the available drivers as before.

2) enable the option in /etc/conf.d/lircd LIRCD_OPTS="-d /dev/lirc0"

3) if you're still not working trying adding logging to /etc/conf.d/lircd LIRCD_OPTS="-L /var/log/lircd.log -d /dev/lirc0"

4) Stop lircd and then start a lircd instance lircd -n -H mceusb -d /dev/lirc0. test with irw. If that works [it pains me to say it] turn it off then on again :roll:
_________________
# touch cock
touch: cannot touch `cock': Permission denied
Back to top
View user's profile Send private message
wswartzendruber
Veteran
Veteran


Joined: 23 Mar 2004
Posts: 1221
Location: Jefferson, USA

PostPosted: Tue Jul 05, 2011 1:50 am    Post subject: Reply with quote

Hold up. What the hell's going on? Is this for devinput or mceusb? I can't find mceusb support in lirc-0.9.0.

Personal comment: The LIRC folks need to be taken out back and beaten.
Back to top
View user's profile Send private message
cdstealer
Guru
Guru


Joined: 30 Oct 2005
Posts: 341
Location: Leeds

PostPosted: Tue Jul 05, 2011 6:16 am    Post subject: Reply with quote

heh.. the devinput drivers are in lirc but the mceusb drivers are only on the kernel now. I have no idea why the need to split the drivers up.
_________________
# touch cock
touch: cannot touch `cock': Permission denied
Back to top
View user's profile Send private message
depontius
Advocate
Advocate


Joined: 05 May 2004
Posts: 2473

PostPosted: Tue Jul 05, 2011 1:35 pm    Post subject: Reply with quote

I believe it's a support issue. If they kept the drivers in lirc and in the kernel the support load would double. Add to that the fact that at the driver level things have diverged and you get a real maintenance mess.

That said, I still haven't made the jump to devinput yet, and have pegged my MythBox to kernel-2.6.37 and lirc-0.8.7 until I do.
_________________
.sigs waste space and bandwidth
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
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