€•:Œsphinx.addnodes”Œdocument”“”)”}”(Œ rawsource”Œ”Œchildren”]”(Œ translations”Œ LanguagesNode”“”)”}”(hhh]”(hŒ pending_xref”“”)”}”(hhh]”Œdocutils.nodes”ŒText”“”ŒChinese (Simplified)”…””}”Œparent”hsbaŒ attributes”}”(Œids”]”Œclasses”]”Œnames”]”Œdupnames”]”Œbackrefs”]”Œ refdomain”Œstd”Œreftype”Œdoc”Œ reftarget”Œ7/translations/zh_CN/admin-guide/media/remote-controller”Œmodname”NŒ classname”NŒ refexplicit”ˆuŒtagname”hhh ubh)”}”(hhh]”hŒChinese (Traditional)”…””}”hh2sbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ7/translations/zh_TW/admin-guide/media/remote-controller”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)”}”(hhh]”hŒItalian”…””}”hhFsbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ7/translations/it_IT/admin-guide/media/remote-controller”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)”}”(hhh]”hŒJapanese”…””}”hhZsbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ7/translations/ja_JP/admin-guide/media/remote-controller”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)”}”(hhh]”hŒKorean”…””}”hhnsbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ7/translations/ko_KR/admin-guide/media/remote-controller”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)”}”(hhh]”hŒSpanish”…””}”hh‚sbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ7/translations/sp_SP/admin-guide/media/remote-controller”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubeh}”(h]”h ]”h"]”h$]”h&]”Œcurrent_language”ŒEnglish”uh1h hhŒ _document”hŒsource”NŒline”NubhŒcomment”“”)”}”(hŒ SPDX-License-Identifier: GPL-2.0”h]”hŒ SPDX-License-Identifier: GPL-2.0”…””}”hh£sbah}”(h]”h ]”h"]”h$]”h&]”Œ xml:space”Œpreserve”uh1h¡hhhžhhŸŒQ/var/lib/git/docbuild/linux/Documentation/admin-guide/media/remote-controller.rst”h KubhŒsection”“”)”}”(hhh]”(hŒtitle”“”)”}”(hŒ6Infrared remote control support in video4linux drivers”h]”hŒ6Infrared remote control support in video4linux drivers”…””}”(hh»hžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1h¹hh¶hžhhŸh³h KubhŒ paragraph”“”)”}”(hŒ-Authors: Gerd Hoffmann, Mauro Carvalho Chehab”h]”hŒ-Authors: Gerd Hoffmann, Mauro Carvalho Chehab”…””}”(hhËhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÉhŸh³h Khh¶hžhubhµ)”}”(hhh]”(hº)”}”(hŒBasics”h]”hŒBasics”…””}”(hhÜhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1h¹hhÙhžhhŸh³h K ubhÊ)”}”(hX3Most analog and digital TV boards support remote controllers. Several of them have a microprocessor that receives the IR carriers, convert into pulse/space sequences and then to scan codes, returning such codes to userspace ("scancode mode"). Other boards return just the pulse/space sequences ("raw mode").”h]”hX;Most analog and digital TV boards support remote controllers. Several of them have a microprocessor that receives the IR carriers, convert into pulse/space sequences and then to scan codes, returning such codes to userspace (“scancode modeâ€). Other boards return just the pulse/space sequences (“raw modeâ€).”…””}”(hhêhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÉhŸh³h K hhÙhžhubhÊ)”}”(hŒThe support for remote controller in scancode mode is provided by the standard Linux input layer. The support for raw mode is provided via LIRC.”h]”hŒThe support for remote controller in scancode mode is provided by the standard Linux input layer. The support for raw mode is provided via LIRC.”…””}”(hhøhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÉhŸh³h KhhÙhžhubhÊ)”}”(hŒµIn order to check the support and test it, it is suggested to download the `v4l-utils `_. It provides two tools to handle remote controllers:”h]”(hŒKIn order to check the support and test it, it is suggested to download the ”…””}”(hjhžhhŸNh NubhŒ reference”“”)”}”(hŒ5`v4l-utils `_”h]”hŒ v4l-utils”…””}”(hjhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”Œname”Œ v4l-utils”Œrefuri”Œ&https://git.linuxtv.org/v4l-utils.git/”uh1jhjubhŒtarget”“”)”}”(hŒ) ”h]”h}”(h]”Œ v4l-utils”ah ]”h"]”Œ v4l-utils”ah$]”h&]”Œrefuri”j!uh1j"Œ referenced”KhjubhŒ5. It provides two tools to handle remote controllers:”…””}”(hjhžhhŸNh Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hÉhŸh³h KhhÙhžhubhŒ bullet_list”“”)”}”(hhh]”(hŒ list_item”“”)”}”(hŒÄir-keytable: provides a way to query the remote controller, list the protocols it supports, enable in-kernel support for IR decoder or switch the protocol and to test the reception of scan codes; ”h]”hÊ)”}”(hŒÃir-keytable: provides a way to query the remote controller, list the protocols it supports, enable in-kernel support for IR decoder or switch the protocol and to test the reception of scan codes;”h]”hŒÃir-keytable: provides a way to query the remote controller, list the protocols it supports, enable in-kernel support for IR decoder or switch the protocol and to test the reception of scan codes;”…””}”(hjGhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÉhŸh³h KhjCubah}”(h]”h ]”h"]”h$]”h&]”uh1jAhj>hžhhŸh³h NubjB)”}”(hŒ]ir-ctl: provide tools to handle remote controllers that support raw mode via LIRC interface. ”h]”hÊ)”}”(hŒ\ir-ctl: provide tools to handle remote controllers that support raw mode via LIRC interface.”h]”hŒ\ir-ctl: provide tools to handle remote controllers that support raw mode via LIRC interface.”…””}”(hj_hžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÉhŸh³h Khj[ubah}”(h]”h ]”h"]”h$]”h&]”uh1jAhj>hžhhŸh³h Nubeh}”(h]”h ]”h"]”h$]”h&]”Œbullet”Œ-”uh1j<hŸh³h KhhÙhžhubhÊ)”}”(hŒŸUsually, the remote controller module is auto-loaded when the TV card is detected. However, for a few devices, you need to manually load the ir-kbd-i2c module.”h]”hŒŸUsually, the remote controller module is auto-loaded when the TV card is detected. However, for a few devices, you need to manually load the ir-kbd-i2c module.”…””}”(hj{hžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÉhŸh³h K hhÙhžhubeh}”(h]”Œbasics”ah ]”h"]”Œbasics”ah$]”h&]”uh1h´hh¶hžhhŸh³h K ubhµ)”}”(hhh]”(hº)”}”(hŒ How it works”h]”hŒ How it works”…””}”(hj”hžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1h¹hj‘hžhhŸh³h K%ubhÊ)”}”(hŒ­The modules register the remote as keyboard within the linux input layer, i.e. you'll see the keys of the remote as normal key strokes (if CONFIG_INPUT_KEYBOARD is enabled).”h]”hŒ¯The modules register the remote as keyboard within the linux input layer, i.e. you’ll see the keys of the remote as normal key strokes (if CONFIG_INPUT_KEYBOARD is enabled).”…””}”(hj¢hžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÉhŸh³h K'hj‘hžhubhÊ)”}”(hX³Using the event devices (CONFIG_INPUT_EVDEV) it is possible for applications to access the remote via /dev/input/event devices. The udev/systemd will automatically create the devices. If you install the `v4l-utils `_, it may also automatically load a different keytable than the default one. Please see `v4l-utils `_ ir-keytable.1 man page for details.”h]”(hŒÎUsing the event devices (CONFIG_INPUT_EVDEV) it is possible for applications to access the remote via /dev/input/event devices. The udev/systemd will automatically create the devices. If you install the ”…””}”(hj°hžhhŸNh Nubj)”}”(hŒ5`v4l-utils `_”h]”hŒ v4l-utils”…””}”(hj¸hžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”Œname”Œ v4l-utils”j Œ&https://git.linuxtv.org/v4l-utils.git/”uh1jhj°ubj#)”}”(hŒ) ”h]”h}”(h]”Œid1”ah ]”h"]”h$]”Œ v4l-utils”ah&]”Œrefuri”jÈuh1j"j1Khj°ubhŒW, it may also automatically load a different keytable than the default one. Please see ”…””}”(hj°hžhhŸNh Nubj)”}”(hŒ5`v4l-utils `_”h]”hŒ v4l-utils”…””}”(hjÚhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”Œname”Œ v4l-utils”j Œ&https://git.linuxtv.org/v4l-utils.git/”uh1jhj°ubj#)”}”(hŒ) ”h]”h}”(h]”Œid2”ah ]”h"]”h$]”Œ v4l-utils”ah&]”Œrefuri”jêuh1j"j1Khj°ubhŒ$ ir-keytable.1 man page for details.”…””}”(hj°hžhhŸNh Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hÉhŸh³h K+hj‘hžhubhÊ)”}”(hX<The ir-keytable tool is nice for trouble shooting, i.e. to check whenever the input device is really present, which of the devices it is, check whenever pressing keys on the remote actually generates events and the like. You can also use any other input utility that changes the keymaps, like the input kbd utility.”h]”hX<The ir-keytable tool is nice for trouble shooting, i.e. to check whenever the input device is really present, which of the devices it is, check whenever pressing keys on the remote actually generates events and the like. You can also use any other input utility that changes the keymaps, like the input kbd utility.”…””}”(hjhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÉhŸh³h K3hj‘hžhubhµ)”}”(hhh]”(hº)”}”(hŒUsing with lircd”h]”hŒUsing with lircd”…””}”(hjhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1h¹hjhžhhŸh³h K;ubhÊ)”}”(hŒ The latest versions of the lircd daemon supports reading events from the linux input layer (via event device). It also supports receiving IR codes in lirc mode.”h]”hŒ The latest versions of the lircd daemon supports reading events from the linux input layer (via event device). It also supports receiving IR codes in lirc mode.”…””}”(hj!hžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÉhŸh³h K=hjhžhubeh}”(h]”Œusing-with-lircd”ah ]”h"]”Œusing with lircd”ah$]”h&]”uh1h´hj‘hžhhŸh³h K;ubhµ)”}”(hhh]”(hº)”}”(hŒUsing without lircd”h]”hŒUsing without lircd”…””}”(hj:hžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1h¹hj7hžhhŸh³h KCubhÊ)”}”(hXXorg recognizes several IR keycodes that have its numerical value lower than 247. With the advent of Wayland, the input driver got updated too, and should now accept all keycodes. Yet, you may want to just reassign the keycodes to something that your favorite media application likes.”h]”hXXorg recognizes several IR keycodes that have its numerical value lower than 247. With the advent of Wayland, the input driver got updated too, and should now accept all keycodes. Yet, you may want to just reassign the keycodes to something that your favorite media application likes.”…””}”(hjHhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÉhŸh³h KEhj7hžhubhÊ)”}”(hŒ¨This can be done by setting `v4l-utils `_ to load your own keytable in runtime. Please read ir-keytable.1 man page for details.”h]”(hŒThis can be done by setting ”…””}”(hjVhžhhŸNh Nubj)”}”(hŒ5`v4l-utils `_”h]”hŒ v4l-utils”…””}”(hj^hžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”Œname”Œ v4l-utils”j Œ&https://git.linuxtv.org/v4l-utils.git/”uh1jhjVubj#)”}”(hŒ) ”h]”h}”(h]”Œid3”ah ]”h"]”h$]”Œ v4l-utils”ah&]”Œrefuri”jnuh1j"j1KhjVubhŒW to load your own keytable in runtime. Please read ir-keytable.1 man page for details.”…””}”(hjVhžhhŸNh Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hÉhŸh³h KJhj7hžhubeh}”(h]”Œusing-without-lircd”ah ]”h"]”Œusing without lircd”ah$]”h&]”uh1h´hj‘hžhhŸh³h KCubeh}”(h]”Œ how-it-works”ah ]”h"]”Œ how it works”ah$]”h&]”uh1h´hh¶hžhhŸh³h K%ubeh}”(h]”Œ6infrared-remote-control-support-in-video4linux-drivers”ah ]”h"]”Œ6infrared remote control support in video4linux drivers”ah$]”h&]”uh1h´hhhžhhŸh³h Kubeh}”(h]”h ]”h"]”h$]”h&]”Œsource”h³uh1hŒcurrent_source”NŒ current_line”NŒsettings”Œdocutils.frontend”ŒValues”“”)”}”(h¹NŒ generator”NŒ datestamp”NŒ source_link”NŒ source_url”NŒ toc_backlinks”Œentry”Œfootnote_backlinks”KŒ sectnum_xform”KŒstrip_comments”NŒstrip_elements_with_classes”NŒ strip_classes”NŒ report_level”KŒ halt_level”KŒexit_status_level”KŒdebug”NŒwarning_stream”NŒ traceback”ˆŒinput_encoding”Œ utf-8-sig”Œinput_encoding_error_handler”Œstrict”Œoutput_encoding”Œutf-8”Œoutput_encoding_error_handler”jÁŒerror_encoding”Œutf-8”Œerror_encoding_error_handler”Œbackslashreplace”Œ language_code”Œen”Œrecord_dependencies”NŒconfig”NŒ id_prefix”hŒauto_id_prefix”Œid”Œ dump_settings”NŒdump_internals”NŒdump_transforms”NŒdump_pseudo_xml”NŒexpose_internals”NŒstrict_visitor”NŒ_disable_config”NŒ_source”h³Œ _destination”NŒ _config_files”]”Œ7/var/lib/git/docbuild/linux/Documentation/docutils.conf”aŒfile_insertion_enabled”ˆŒ raw_enabled”KŒline_length_limit”M'Œpep_references”NŒ pep_base_url”Œhttps://peps.python.org/”Œpep_file_url_template”Œpep-%04d”Œrfc_references”NŒ rfc_base_url”Œ&https://datatracker.ietf.org/doc/html/”Œ tab_width”KŒtrim_footnote_reference_space”‰Œsyntax_highlight”Œlong”Œ smart_quotes”ˆŒsmartquotes_locales”]”Œcharacter_level_inline_markup”‰Œdoctitle_xform”‰Œ docinfo_xform”KŒsectsubtitle_xform”‰Œ image_loading”Œlink”Œembed_stylesheet”‰Œcloak_email_addresses”ˆŒsection_self_link”‰Œenv”NubŒreporter”NŒindirect_targets”]”Œsubstitution_defs”}”Œsubstitution_names”}”Œrefnames”}”Œrefids”}”Œnameids”}”(j›j˜jŽj‹j-j*j“jj4j1j‹jˆuŒ nametypes”}”(j›‰jމj-ˆj“‰j4‰j‹‰uh}”(j˜h¶j‹hÙj*j$jj‘jÏjÉjñjëj1jjˆj7jujouŒ footnote_refs”}”Œ citation_refs”}”Œ autofootnotes”]”Œautofootnote_refs”]”Œsymbol_footnotes”]”Œsymbol_footnote_refs”]”Œ footnotes”]”Œ citations”]”Œautofootnote_start”KŒsymbol_footnote_start”KŒ id_counter”Œ collections”ŒCounter”“”}”jÏKs…”R”Œparse_messages”]”(hŒsystem_message”“”)”}”(hhh]”hÊ)”}”(hŒ,Duplicate explicit target name: "v4l-utils".”h]”hŒ0Duplicate explicit target name: “v4l-utilsâ€.”…””}”(hj(hžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÉhj%ubah}”(h]”h ]”h"]”h$]”h&]”jÏaŒlevel”KŒtype”ŒINFO”Œsource”h³Œline”Kuh1j#hj‘hžhhŸh³h K1ubj$)”}”(hhh]”hÊ)”}”(hŒ,Duplicate explicit target name: "v4l-utils".”h]”hŒ0Duplicate explicit target name: “v4l-utilsâ€.”…””}”(hjDhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÉhjAubah}”(h]”h ]”h"]”h$]”h&]”jñaŒlevel”KŒtype”j>Œsource”h³Œline”Kuh1j#hj‘hžhhŸh³h K1ubj$)”}”(hhh]”hÊ)”}”(hŒ,Duplicate explicit target name: "v4l-utils".”h]”hŒ0Duplicate explicit target name: “v4l-utilsâ€.”…””}”(hj_hžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÉhj\ubah}”(h]”h ]”h"]”h$]”h&]”juaŒlevel”KŒtype”j>Œsource”h³Œline”Kuh1j#hj7hžhhŸh³h KLubeŒtransform_messages”]”Œ transformer”NŒ include_log”]”Œ decoration”Nhžhub.