Mageia Bugzilla – Attachment 2434 Details for
Bug 1265
lirc is not functional
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
New Account
|
Forgot Password
Lirc setup
IR Control with LIRC (text/plain), 3.50 KB, created by
Derek Jennings
on 2012-06-07 00:32:37 CEST
(
hide
)
Description:
Lirc setup
Filename:
MIME Type:
Creator:
Derek Jennings
Created:
2012-06-07 00:32:37 CEST
Size:
3.50 KB
patch
obsolete
>Using a TBS remote control on Mageia 2 with kernel 3.3 and lirc-0.9.0-3.mga2 >To use the remote control that comes with a TBS6280 DVD receiver compile the TBS kernel modules as usual. Contained in them is a module to drive the IR port. >The module should load automatically on booting. > > From dmesg >[ 5.665977] Registered IR keymap rc-tbs-nec >[ 5.666309] input: saa716x IR (TurboSight TBS 6280) as /devices/pci0000:00/0000:00:1c.0/0000:05:00.0/0000:06:05.0/0000:0b:00.0/rc/rc0/input3 >[ 5.666499] rc0: saa716x IR (TurboSight TBS 6280) as /devices/pci0000:00/0000:00:1c.0/0000:05:00.0/0000:06:05.0/0000:0b:00.0/rc/rc0 >[ 5.667081] IR Sony protocol handler initialized >[ 5.667865] DVB: registering new adapter (SAA716x dvb adapter) >[ 5.695145] lirc_dev: IR Remote Control driver registered, major 252 >[ 5.697134] rc rc0: lirc_dev: driver ir-lirc-codec (saa716x) registered at minor = 0 >[ 5.697145] IR LIRC bridge handler initialized > > >Setting up Lirc >--------------- > >Install ir-keytable and irw packages > ># ir-keytable >Found /sys/class/rc/rc0/ (/dev/input/event3) with: > Driver saa716x, table rc-tbs-nec > Supported protocols: NEC RC-5 RC-6 JVC SONY LIRC other > Enabled protocols: > Repeat delay = 500 ms, repeat period = 125 ms > > >This tells us driver is installed. Confirm with ># lsmod | grep ir >ir_lirc_codec 12898 0 >lirc_dev 19166 1 ir_lirc_codec >ir_mce_kbd_decoder 12879 0 >ir_sony_decoder 12549 0 >ir_jvc_decoder 12546 0 >ir_rc6_decoder 12546 0 >ir_rc5_decoder 12546 0 >ir_nec_decoder 12546 0 >rc_core 26883 10 ir_nec_decoder,saa716x_tbs_dvb,ir_rc5_decoder,ir_rc6_decoder,rc_tbs_nec,ir_jvc_decoder,ir_sony_decoder,ir_mce_kbd_decoder,ir_lirc_codec > >Enable the IR protocols with > ># ir-keytable -p NEC -p RC-5 -p RC-6 -p LIRC >Protocols changed to NEC RC-5 RC-6 LIRC > >To make the protocol enabling persistant, create a udev rule >/etc/udev/70-TBS-IR.rules >containing > ># Enable IR protocols >ACTION=="add", DEVPATH=="/module/ir_lirc_codec", RUN+="/usr/bin/ir-keytable -p NEC -p RC-5 -p RC-6 -p LIRC " > > >Download the file >http://lirc.sourceforge.net/remotes/devinput/lircd.conf.devinput >and save it as /etc/lirc/lircd.conf > >Edit the file /etc/sysconfig/lircd (may be elsewhere in other distros) >Set >DRIVER="devinput" >DEVICE=/dev/input/by-path/pci-0000:0b:00.0-event-ir >variable names may be different in other distros, and confirm the location of your ir device in /dev/input > >Start lirc daemon up in foregound to confirm it is OK ># lircd -n --device /dev/input/by-path/pci-0000:0b:00.0-event-ir -H devinput /etc/lirc/lircd.conf >lircd-0.9.0[11868]: lircd(devinput) ready, using /var/run/lirc/lircd > >In another terminal start irw > >observe in 1st terminal window >lircd-0.9.0[11868]: accepted new client on /var/run/lirc/lircd >lircd-0.9.0[11868]: initializing '/dev/input/by-path/pci-0000:0b:00.0-event-ir' > >Now press keys on your remote control and if all is well you will see in the 2nd terminal window > >0000000080010175 00 KEY_MODE devinput >0000000080010164 00 KEY_POWER2 devinput >0000000080010071 00 KEY_MUTE devinput >0000000080010002 00 KEY_1 devinput >0000000080010008 00 KEY_7 devinput >0000000080010008 00 KEY_7 devinput >0000000080010009 00 KEY_8 devinput >000000008001000a 00 KEY_9 devinput >0000000080010192 00 KEY_CHANNELUP devinput >0000000080010192 00 KEY_CHANNELUP devinput > >Terminate lirc in the 1st window and restart it as a service > >service lircd start > and repeat test with irw > > >Using Lirc with MythTV >---------------------- >
Using a TBS remote control on Mageia 2 with kernel 3.3 and lirc-0.9.0-3.mga2 To use the remote control that comes with a TBS6280 DVD receiver compile the TBS kernel modules as usual. Contained in them is a module to drive the IR port. The module should load automatically on booting. From dmesg [ 5.665977] Registered IR keymap rc-tbs-nec [ 5.666309] input: saa716x IR (TurboSight TBS 6280) as /devices/pci0000:00/0000:00:1c.0/0000:05:00.0/0000:06:05.0/0000:0b:00.0/rc/rc0/input3 [ 5.666499] rc0: saa716x IR (TurboSight TBS 6280) as /devices/pci0000:00/0000:00:1c.0/0000:05:00.0/0000:06:05.0/0000:0b:00.0/rc/rc0 [ 5.667081] IR Sony protocol handler initialized [ 5.667865] DVB: registering new adapter (SAA716x dvb adapter) [ 5.695145] lirc_dev: IR Remote Control driver registered, major 252 [ 5.697134] rc rc0: lirc_dev: driver ir-lirc-codec (saa716x) registered at minor = 0 [ 5.697145] IR LIRC bridge handler initialized Setting up Lirc --------------- Install ir-keytable and irw packages # ir-keytable Found /sys/class/rc/rc0/ (/dev/input/event3) with: Driver saa716x, table rc-tbs-nec Supported protocols: NEC RC-5 RC-6 JVC SONY LIRC other Enabled protocols: Repeat delay = 500 ms, repeat period = 125 ms This tells us driver is installed. Confirm with # lsmod | grep ir ir_lirc_codec 12898 0 lirc_dev 19166 1 ir_lirc_codec ir_mce_kbd_decoder 12879 0 ir_sony_decoder 12549 0 ir_jvc_decoder 12546 0 ir_rc6_decoder 12546 0 ir_rc5_decoder 12546 0 ir_nec_decoder 12546 0 rc_core 26883 10 ir_nec_decoder,saa716x_tbs_dvb,ir_rc5_decoder,ir_rc6_decoder,rc_tbs_nec,ir_jvc_decoder,ir_sony_decoder,ir_mce_kbd_decoder,ir_lirc_codec Enable the IR protocols with # ir-keytable -p NEC -p RC-5 -p RC-6 -p LIRC Protocols changed to NEC RC-5 RC-6 LIRC To make the protocol enabling persistant, create a udev rule /etc/udev/70-TBS-IR.rules containing # Enable IR protocols ACTION=="add", DEVPATH=="/module/ir_lirc_codec", RUN+="/usr/bin/ir-keytable -p NEC -p RC-5 -p RC-6 -p LIRC " Download the file http://lirc.sourceforge.net/remotes/devinput/lircd.conf.devinput and save it as /etc/lirc/lircd.conf Edit the file /etc/sysconfig/lircd (may be elsewhere in other distros) Set DRIVER="devinput" DEVICE=/dev/input/by-path/pci-0000:0b:00.0-event-ir variable names may be different in other distros, and confirm the location of your ir device in /dev/input Start lirc daemon up in foregound to confirm it is OK # lircd -n --device /dev/input/by-path/pci-0000:0b:00.0-event-ir -H devinput /etc/lirc/lircd.conf lircd-0.9.0[11868]: lircd(devinput) ready, using /var/run/lirc/lircd In another terminal start irw observe in 1st terminal window lircd-0.9.0[11868]: accepted new client on /var/run/lirc/lircd lircd-0.9.0[11868]: initializing '/dev/input/by-path/pci-0000:0b:00.0-event-ir' Now press keys on your remote control and if all is well you will see in the 2nd terminal window 0000000080010175 00 KEY_MODE devinput 0000000080010164 00 KEY_POWER2 devinput 0000000080010071 00 KEY_MUTE devinput 0000000080010002 00 KEY_1 devinput 0000000080010008 00 KEY_7 devinput 0000000080010008 00 KEY_7 devinput 0000000080010009 00 KEY_8 devinput 000000008001000a 00 KEY_9 devinput 0000000080010192 00 KEY_CHANNELUP devinput 0000000080010192 00 KEY_CHANNELUP devinput Terminate lirc in the 1st window and restart it as a service service lircd start and repeat test with irw Using Lirc with MythTV ----------------------
View Attachment As Raw
Actions:
View
Attachments on
bug 1265
: 2434