特殊:Badtitle/NS100:Lirc USB-UIRT:修订间差异
小 新页面: {{From|https://help.ubuntu.com/community/Lirc_USB-UIRT}} {{Languages|UbuntuHelp:Lirc_USB-UIRT}} == Lirc and the USB-UIRT == The USB-UIRT is a usb serial InfraRed device. Support for it... |
小无编辑摘要 |
||
(未显示同一用户的4个中间版本) | |||
第1行: | 第1行: | ||
{{From|https://help.ubuntu.com/community/Lirc_USB-UIRT}} | {{From|https://help.ubuntu.com/community/Lirc_USB-UIRT}} | ||
{{Languages|UbuntuHelp:Lirc_USB-UIRT}} | {{Languages|UbuntuHelp:Lirc_USB-UIRT}} | ||
== Lirc and the USB-UIRT == | == Lirc and the USB-UIRT == | ||
The USB-UIRT is a usb serial InfraRed device. Support for it is built-in to the kernel via the ftdi_sio driver and usb-serial. In order to make use of it, however, you need to install lirc. To do so, you will need to have '''universe''', and '''multiverse''' enabled. See Ubuntu documentation for more information on [[UbuntuHelp:Repositories/CommandLine#head-e1a24b1b2037f68b5a95f54388582b58ea4c9bd0|enabling|these repositories]]. | |||
The USB-UIRT is a usb serial InfraRed device. Support for it is built-in to the kernel via the ftdi_sio driver and usb-serial. In order to make use of it, however, you need to install lirc. To do so, you will need to have '''universe''', and '''multiverse''' enabled. See Ubuntu documentation for more information on [ | |||
==== Install Lirc ==== | ==== Install Lirc ==== | ||
<pre><nowiki> | <pre><nowiki> | ||
$ sudo apt-get install lirc | $ sudo apt-get install lirc | ||
</nowiki></pre> | </nowiki></pre> | ||
== Verify the USB-UIRT is detected == | == Verify the USB-UIRT is detected == | ||
Plug the usb-uirt device into an available usb port. Check dmesg to make sure it was detected and that the tty was created.: | Plug the usb-uirt device into an available usb port. Check dmesg to make sure it was detected and that the tty was created.: | ||
<pre><nowiki> | <pre><nowiki> | ||
第19行: | 第13行: | ||
</nowiki></pre> | </nowiki></pre> | ||
You should see some output that looks like the following.: | You should see some output that looks like the following.: | ||
<pre><nowiki>[ 8.376358] usb 1-2: new full speed USB device using uhci_hcd and address 3 | <pre><nowiki> | ||
[ 8.376358] usb 1-2: new full speed USB device using uhci_hcd and address 3 | |||
[ 8.558634] usb 1-2: configuration #1 chosen from 1 choice | [ 8.558634] usb 1-2: configuration #1 chosen from 1 choice | ||
[ 14.943365] usbcore: registered new interface driver usbserial | [ 14.943365] usbcore: registered new interface driver usbserial | ||
第34行: | 第29行: | ||
[ 15.045918] drivers/usb/serial/ftdi_sio.c: v1.4.3:USB FTDI Serial Converters Driver</nowiki></pre> | [ 15.045918] drivers/usb/serial/ftdi_sio.c: v1.4.3:USB FTDI Serial Converters Driver</nowiki></pre> | ||
Note the tty that was created. You will use this in the next section. In the above example, it is <code><nowiki>ttyUSB0</nowiki></code>, which appears at <code><nowiki>/dev/ttyUSB0</nowiki></code>. | Note the tty that was created. You will use this in the next section. In the above example, it is <code><nowiki>ttyUSB0</nowiki></code>, which appears at <code><nowiki>/dev/ttyUSB0</nowiki></code>. | ||
== Configure Lirc hardware.conf == | == Configure Lirc hardware.conf == | ||
We need to edit the /etc/lirc/hardware.conf file, specifically, the LIRCD_ARGS, LOAD_MODULES and DRIVER variables. Set the LIRCD_ARGS to tell lircd where to find the serial device to use (you should know from the dmesg command in the previous step), set LOAD_MODULES to false and set the DRIVER to uirt2_raw. Like so: | We need to edit the /etc/lirc/hardware.conf file, specifically, the LIRCD_ARGS, LOAD_MODULES and DRIVER variables. Set the LIRCD_ARGS to tell lircd where to find the serial device to use (you should know from the dmesg command in the previous step), set LOAD_MODULES to false and set the DRIVER to uirt2_raw. Like so: | ||
<pre><nowiki># /etc/lirc/hardware.conf | <pre><nowiki> | ||
# /etc/lirc/hardware.conf | |||
# | # | ||
# Arguments which will be used when launching lircd | # Arguments which will be used when launching lircd | ||
第60行: | 第54行: | ||
LIRCMD_CONF="" | LIRCMD_CONF="" | ||
</nowiki></pre> | </nowiki></pre> | ||
== Start lircd == | == Start lircd == | ||
Now all you need to do is start lircd and configure remotes in the <code><nowiki>/etc/lirc/lircd.conf</nowiki></code> and <code><nowiki>/etc/lirc/lircrc</nowiki></code> files. | Now all you need to do is start lircd and configure remotes in the <code><nowiki>/etc/lirc/lircd.conf</nowiki></code> and <code><nowiki>/etc/lirc/lircrc</nowiki></code> files. | ||
<pre><nowiki>$ sudo /etc/init.d/lirc start | <pre><nowiki> | ||
$ sudo /etc/init.d/lirc start | |||
</nowiki></pre> | </nowiki></pre> | ||
Don't forget to make sure lirc starts at boot, too. | Don't forget to make sure lirc starts at boot, too. | ||
This configuration allows you to both receive and transmit codes. Refer to the other LIRC documentation for instructions on how to test receiving with <code><nowiki>irw</nowiki></code> and transmitting with <code><nowiki>irsend</nowiki></code>. | |||
== Newer USB-UIRT Models == | |||
It has not been confirmed but some newer USB-UIRT Models may need the usb_uirt_raw driver instead of the uirt2_raw driver | |||
<pre><nowiki> | |||
# /etc/lirc/hardware.conf | |||
# | |||
# Arguments which will be used when launching lircd | |||
LIRCD_ARGS="-d /dev/ttyUSB0" | |||
#Don't start lircmd even if there seems to be a good config file | |||
#START_LIRCMD=false | |||
#Try to load appropriate kernel modules | |||
LOAD_MODULES=false | |||
# Run "lircd --driver=help" for a list of supported drivers. | |||
DRIVER="usb_uirt_raw" | |||
# If DEVICE is set to /dev/lirc and devfs is in use /dev/lirc/0 will be | |||
# automatically used instead | |||
DEVICE="" | |||
MODULES="" | |||
# Default configuration files for your hardware if any | |||
LIRCD_CONF="" | |||
LIRCMD_CONF="" | |||
</nowiki></pre> | |||
---- | ---- | ||
[[category:UbuntuHelp]] | [[category:UbuntuHelp]] |
2009年5月12日 (二) 17:43的最新版本
文章出处: |
{{#if: | {{{2}}} | https://help.ubuntu.com/community/Lirc_USB-UIRT }} |
点击翻译: |
English {{#ifexist: {{#if: UbuntuHelp:Lirc_USB-UIRT | UbuntuHelp:Lirc_USB-UIRT | {{#if: | :}}Lirc USB-UIRT}}/af | • {{#if: UbuntuHelp:Lirc_USB-UIRT|Afrikaans| [[::Lirc USB-UIRT/af|Afrikaans]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Lirc_USB-UIRT | UbuntuHelp:Lirc_USB-UIRT | {{#if: | :}}Lirc USB-UIRT}}/ar | • {{#if: UbuntuHelp:Lirc_USB-UIRT|العربية| [[::Lirc USB-UIRT/ar|العربية]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Lirc_USB-UIRT | UbuntuHelp:Lirc_USB-UIRT | {{#if: | :}}Lirc USB-UIRT}}/az | • {{#if: UbuntuHelp:Lirc_USB-UIRT|azərbaycanca| [[::Lirc USB-UIRT/az|azərbaycanca]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Lirc_USB-UIRT | UbuntuHelp:Lirc_USB-UIRT | {{#if: | :}}Lirc USB-UIRT}}/bcc | • {{#if: UbuntuHelp:Lirc_USB-UIRT|جهلسری بلوچی| [[::Lirc USB-UIRT/bcc|جهلسری بلوچی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Lirc_USB-UIRT | UbuntuHelp:Lirc_USB-UIRT | {{#if: | :}}Lirc USB-UIRT}}/bg | • {{#if: UbuntuHelp:Lirc_USB-UIRT|български| [[::Lirc USB-UIRT/bg|български]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Lirc_USB-UIRT | UbuntuHelp:Lirc_USB-UIRT | {{#if: | :}}Lirc USB-UIRT}}/br | • {{#if: UbuntuHelp:Lirc_USB-UIRT|brezhoneg| [[::Lirc USB-UIRT/br|brezhoneg]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Lirc_USB-UIRT | UbuntuHelp:Lirc_USB-UIRT | {{#if: | :}}Lirc USB-UIRT}}/ca | • {{#if: UbuntuHelp:Lirc_USB-UIRT|català| [[::Lirc USB-UIRT/ca|català]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Lirc_USB-UIRT | UbuntuHelp:Lirc_USB-UIRT | {{#if: | :}}Lirc USB-UIRT}}/cs | • {{#if: UbuntuHelp:Lirc_USB-UIRT|čeština| [[::Lirc USB-UIRT/cs|čeština]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Lirc_USB-UIRT | UbuntuHelp:Lirc_USB-UIRT | {{#if: | :}}Lirc USB-UIRT}}/de | • {{#if: UbuntuHelp:Lirc_USB-UIRT|Deutsch| [[::Lirc USB-UIRT/de|Deutsch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Lirc_USB-UIRT | UbuntuHelp:Lirc_USB-UIRT | {{#if: | :}}Lirc USB-UIRT}}/el | • {{#if: UbuntuHelp:Lirc_USB-UIRT|Ελληνικά| [[::Lirc USB-UIRT/el|Ελληνικά]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Lirc_USB-UIRT | UbuntuHelp:Lirc_USB-UIRT | {{#if: | :}}Lirc USB-UIRT}}/es | • {{#if: UbuntuHelp:Lirc_USB-UIRT|español| [[::Lirc USB-UIRT/es|español]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Lirc_USB-UIRT | UbuntuHelp:Lirc_USB-UIRT | {{#if: | :}}Lirc USB-UIRT}}/fa | • {{#if: UbuntuHelp:Lirc_USB-UIRT|فارسی| [[::Lirc USB-UIRT/fa|فارسی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Lirc_USB-UIRT | UbuntuHelp:Lirc_USB-UIRT | {{#if: | :}}Lirc USB-UIRT}}/fi | • {{#if: UbuntuHelp:Lirc_USB-UIRT|suomi| [[::Lirc USB-UIRT/fi|suomi]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Lirc_USB-UIRT | UbuntuHelp:Lirc_USB-UIRT | {{#if: | :}}Lirc USB-UIRT}}/fr | • {{#if: UbuntuHelp:Lirc_USB-UIRT|français| [[::Lirc USB-UIRT/fr|français]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Lirc_USB-UIRT | UbuntuHelp:Lirc_USB-UIRT | {{#if: | :}}Lirc USB-UIRT}}/gu | • {{#if: UbuntuHelp:Lirc_USB-UIRT|ગુજરાતી| [[::Lirc USB-UIRT/gu|ગુજરાતી]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Lirc_USB-UIRT | UbuntuHelp:Lirc_USB-UIRT | {{#if: | :}}Lirc USB-UIRT}}/he | • {{#if: UbuntuHelp:Lirc_USB-UIRT|עברית| [[::Lirc USB-UIRT/he|עברית]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Lirc_USB-UIRT | UbuntuHelp:Lirc_USB-UIRT | {{#if: | :}}Lirc USB-UIRT}}/hu | • {{#if: UbuntuHelp:Lirc_USB-UIRT|magyar| [[::Lirc USB-UIRT/hu|magyar]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Lirc_USB-UIRT | UbuntuHelp:Lirc_USB-UIRT | {{#if: | :}}Lirc USB-UIRT}}/id | • {{#if: UbuntuHelp:Lirc_USB-UIRT|Bahasa Indonesia| [[::Lirc USB-UIRT/id|Bahasa Indonesia]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Lirc_USB-UIRT | UbuntuHelp:Lirc_USB-UIRT | {{#if: | :}}Lirc USB-UIRT}}/it | • {{#if: UbuntuHelp:Lirc_USB-UIRT|italiano| [[::Lirc USB-UIRT/it|italiano]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Lirc_USB-UIRT | UbuntuHelp:Lirc_USB-UIRT | {{#if: | :}}Lirc USB-UIRT}}/ja | • {{#if: UbuntuHelp:Lirc_USB-UIRT|日本語| [[::Lirc USB-UIRT/ja|日本語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Lirc_USB-UIRT | UbuntuHelp:Lirc_USB-UIRT | {{#if: | :}}Lirc USB-UIRT}}/ko | • {{#if: UbuntuHelp:Lirc_USB-UIRT|한국어| [[::Lirc USB-UIRT/ko|한국어]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Lirc_USB-UIRT | UbuntuHelp:Lirc_USB-UIRT | {{#if: | :}}Lirc USB-UIRT}}/ksh | • {{#if: UbuntuHelp:Lirc_USB-UIRT|Ripoarisch| [[::Lirc USB-UIRT/ksh|Ripoarisch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Lirc_USB-UIRT | UbuntuHelp:Lirc_USB-UIRT | {{#if: | :}}Lirc USB-UIRT}}/mr | • {{#if: UbuntuHelp:Lirc_USB-UIRT|मराठी| [[::Lirc USB-UIRT/mr|मराठी]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Lirc_USB-UIRT | UbuntuHelp:Lirc_USB-UIRT | {{#if: | :}}Lirc USB-UIRT}}/ms | • {{#if: UbuntuHelp:Lirc_USB-UIRT|Bahasa Melayu| [[::Lirc USB-UIRT/ms|Bahasa Melayu]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Lirc_USB-UIRT | UbuntuHelp:Lirc_USB-UIRT | {{#if: | :}}Lirc USB-UIRT}}/nl | • {{#if: UbuntuHelp:Lirc_USB-UIRT|Nederlands| [[::Lirc USB-UIRT/nl|Nederlands]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Lirc_USB-UIRT | UbuntuHelp:Lirc_USB-UIRT | {{#if: | :}}Lirc USB-UIRT}}/no | • {{#if: UbuntuHelp:Lirc_USB-UIRT|norsk| [[::Lirc USB-UIRT/no|norsk]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Lirc_USB-UIRT | UbuntuHelp:Lirc_USB-UIRT | {{#if: | :}}Lirc USB-UIRT}}/oc | • {{#if: UbuntuHelp:Lirc_USB-UIRT|occitan| [[::Lirc USB-UIRT/oc|occitan]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Lirc_USB-UIRT | UbuntuHelp:Lirc_USB-UIRT | {{#if: | :}}Lirc USB-UIRT}}/pl | • {{#if: UbuntuHelp:Lirc_USB-UIRT|polski| [[::Lirc USB-UIRT/pl|polski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Lirc_USB-UIRT | UbuntuHelp:Lirc_USB-UIRT | {{#if: | :}}Lirc USB-UIRT}}/pt | • {{#if: UbuntuHelp:Lirc_USB-UIRT|português| [[::Lirc USB-UIRT/pt|português]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Lirc_USB-UIRT | UbuntuHelp:Lirc_USB-UIRT | {{#if: | :}}Lirc USB-UIRT}}/ro | • {{#if: UbuntuHelp:Lirc_USB-UIRT|română| [[::Lirc USB-UIRT/ro|română]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Lirc_USB-UIRT | UbuntuHelp:Lirc_USB-UIRT | {{#if: | :}}Lirc USB-UIRT}}/ru | • {{#if: UbuntuHelp:Lirc_USB-UIRT|русский| [[::Lirc USB-UIRT/ru|русский]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Lirc_USB-UIRT | UbuntuHelp:Lirc_USB-UIRT | {{#if: | :}}Lirc USB-UIRT}}/si | • {{#if: UbuntuHelp:Lirc_USB-UIRT|සිංහල| [[::Lirc USB-UIRT/si|සිංහල]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Lirc_USB-UIRT | UbuntuHelp:Lirc_USB-UIRT | {{#if: | :}}Lirc USB-UIRT}}/sq | • {{#if: UbuntuHelp:Lirc_USB-UIRT|shqip| [[::Lirc USB-UIRT/sq|shqip]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Lirc_USB-UIRT | UbuntuHelp:Lirc_USB-UIRT | {{#if: | :}}Lirc USB-UIRT}}/sr | • {{#if: UbuntuHelp:Lirc_USB-UIRT|српски / srpski| [[::Lirc USB-UIRT/sr|српски / srpski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Lirc_USB-UIRT | UbuntuHelp:Lirc_USB-UIRT | {{#if: | :}}Lirc USB-UIRT}}/sv | • {{#if: UbuntuHelp:Lirc_USB-UIRT|svenska| [[::Lirc USB-UIRT/sv|svenska]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Lirc_USB-UIRT | UbuntuHelp:Lirc_USB-UIRT | {{#if: | :}}Lirc USB-UIRT}}/th | • {{#if: UbuntuHelp:Lirc_USB-UIRT|ไทย| [[::Lirc USB-UIRT/th|ไทย]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Lirc_USB-UIRT | UbuntuHelp:Lirc_USB-UIRT | {{#if: | :}}Lirc USB-UIRT}}/tr | • {{#if: UbuntuHelp:Lirc_USB-UIRT|Türkçe| [[::Lirc USB-UIRT/tr|Türkçe]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Lirc_USB-UIRT | UbuntuHelp:Lirc_USB-UIRT | {{#if: | :}}Lirc USB-UIRT}}/vi | • {{#if: UbuntuHelp:Lirc_USB-UIRT|Tiếng Việt| [[::Lirc USB-UIRT/vi|Tiếng Việt]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Lirc_USB-UIRT | UbuntuHelp:Lirc_USB-UIRT | {{#if: | :}}Lirc USB-UIRT}}/yue | • {{#if: UbuntuHelp:Lirc_USB-UIRT|粵語| [[::Lirc USB-UIRT/yue|粵語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Lirc_USB-UIRT | UbuntuHelp:Lirc_USB-UIRT | {{#if: | :}}Lirc USB-UIRT}}/zh | • {{#if: UbuntuHelp:Lirc_USB-UIRT|中文| [[::Lirc USB-UIRT/zh|中文]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Lirc_USB-UIRT | UbuntuHelp:Lirc_USB-UIRT | {{#if: | :}}Lirc USB-UIRT}}/zh-hans | • {{#if: UbuntuHelp:Lirc_USB-UIRT|中文(简体)| [[::Lirc USB-UIRT/zh-hans|中文(简体)]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Lirc_USB-UIRT | UbuntuHelp:Lirc_USB-UIRT | {{#if: | :}}Lirc USB-UIRT}}/zh-hant | • {{#if: UbuntuHelp:Lirc_USB-UIRT|中文(繁體)| [[::Lirc USB-UIRT/zh-hant|中文(繁體)]]}}|}} |
{{#ifeq:UbuntuHelp:Lirc_USB-UIRT|:Lirc USB-UIRT|请不要直接编辑翻译本页,本页将定期与来源同步。}} |
{{#ifexist: :Lirc USB-UIRT/zh | | {{#ifexist: Lirc USB-UIRT/zh | | {{#ifeq: {{#titleparts:Lirc USB-UIRT|1|-1|}} | zh | | }} }} }} {{#ifeq: {{#titleparts:Lirc USB-UIRT|1|-1|}} | zh | | }}
Lirc and the USB-UIRT
The USB-UIRT is a usb serial InfraRed device. Support for it is built-in to the kernel via the ftdi_sio driver and usb-serial. In order to make use of it, however, you need to install lirc. To do so, you will need to have universe, and multiverse enabled. See Ubuntu documentation for more information on enabling|these repositories.
Install Lirc
$ sudo apt-get install lirc
Verify the USB-UIRT is detected
Plug the usb-uirt device into an available usb port. Check dmesg to make sure it was detected and that the tty was created.:
$ dmesg | grep -i usb
You should see some output that looks like the following.:
[ 8.376358] usb 1-2: new full speed USB device using uhci_hcd and address 3 [ 8.558634] usb 1-2: configuration #1 chosen from 1 choice [ 14.943365] usbcore: registered new interface driver usbserial [ 14.943374] drivers/usb/serial/usb-serial.c: USB Serial support registered fo r generic [ 15.043231] usbcore: registered new interface driver usbserial_generic [ 15.043234] drivers/usb/serial/usb-serial.c: USB Serial Driver core [ 15.045761] drivers/usb/serial/usb-serial.c: USB Serial support registered fo r FTDI USB Serial Device [ 15.045790] ftdi_sio 1-2:1.0: FTDI USB Serial Device converter detected [ 15.045793] drivers/usb/serial/ftdi_sio.c: Detected FT232BM [ 15.045911] usb 1-2: FTDI USB Serial Device converter now attached to ttyUSB0 [ 15.045916] usbcore: registered new interface driver ftdi_sio [ 15.045918] drivers/usb/serial/ftdi_sio.c: v1.4.3:USB FTDI Serial Converters Driver
Note the tty that was created. You will use this in the next section. In the above example, it is ttyUSB0
, which appears at /dev/ttyUSB0
.
Configure Lirc hardware.conf
We need to edit the /etc/lirc/hardware.conf file, specifically, the LIRCD_ARGS, LOAD_MODULES and DRIVER variables. Set the LIRCD_ARGS to tell lircd where to find the serial device to use (you should know from the dmesg command in the previous step), set LOAD_MODULES to false and set the DRIVER to uirt2_raw. Like so:
# /etc/lirc/hardware.conf # # Arguments which will be used when launching lircd LIRCD_ARGS="-d /dev/ttyUSB0" #Don't start lircmd even if there seems to be a good config file #START_LIRCMD=false #Try to load appropriate kernel modules LOAD_MODULES=false # Run "lircd --driver=help" for a list of supported drivers. DRIVER="uirt2_raw" # If DEVICE is set to /dev/lirc and devfs is in use /dev/lirc/0 will be # automatically used instead DEVICE="" MODULES="" # Default configuration files for your hardware if any LIRCD_CONF="" LIRCMD_CONF=""
Start lircd
Now all you need to do is start lircd and configure remotes in the /etc/lirc/lircd.conf
and /etc/lirc/lircrc
files.
$ sudo /etc/init.d/lirc start
Don't forget to make sure lirc starts at boot, too.
This configuration allows you to both receive and transmit codes. Refer to the other LIRC documentation for instructions on how to test receiving with irw
and transmitting with irsend
.
Newer USB-UIRT Models
It has not been confirmed but some newer USB-UIRT Models may need the usb_uirt_raw driver instead of the uirt2_raw driver
# /etc/lirc/hardware.conf # # Arguments which will be used when launching lircd LIRCD_ARGS="-d /dev/ttyUSB0" #Don't start lircmd even if there seems to be a good config file #START_LIRCMD=false #Try to load appropriate kernel modules LOAD_MODULES=false # Run "lircd --driver=help" for a list of supported drivers. DRIVER="usb_uirt_raw" # If DEVICE is set to /dev/lirc and devfs is in use /dev/lirc/0 will be # automatically used instead DEVICE="" MODULES="" # Default configuration files for your hardware if any LIRCD_CONF="" LIRCMD_CONF=""