IRSEND(1)
π IRSEND(1) β the lirc bestie that yeets infra-red commands π
okay so real talk, this is irsend from the User Commands corner of the manual world, and she's here to make your TV box, your HiFi, and honestly any lil electronic diva actually do things. π«Ά
β¨ NAME β¨
irsend β the basic LIRC program that sends infra-red commands, no cap π₯
π SYNOPSIS π
irsend [options] send_once <remote> <code> [code...]
irsend [options] send_start <remote> <code>
irsend [options] send_stop <remote> <code>
irsend [options] list <remote> <code>
irsend [options] set_transmitters <num> [num...]
irsend [options] simulate <button press packet>
πΈ DESCRIPTION πΈ
So basically, irsend slides into the lircd daemon's DMs and asks her to send one or more CIR (Consumer Infra-Red) commands. It's giving remote control of electronic devices, like TV boxes, HiFi sets, all of that. β¨
irsend has six sub-commands and bestie, we're listing all of them, periodt:
send_onceβ send one or more code(s) oncesend_startβ start repeating a code.send_stopβ stop repeating code.listβ list configured remote itemsset_transmittersβ set active transmitterssimulateβ simulate IR event
remote is the name of a remote, exactly as it's described in the lircd configuration file. iykyk. π
code is the name of a remote control key of remote, as it appears in the lircd.conf configuration file.
num is the transmitter number of the hardware device. π’
π¦ the list command tea π¦
For the list command, remote and/or code can be empty:
list "" "" - list all configured remote names
list remote "" - list all codes of remote
list remote code - list only code of remote
π the simulate command tea π
Thesimulatecommand only works if it has been explicitly enabled in lircd using the--allow-simulateoption. No enabling, no simulating, bestie. π
The required button press packet should be formatted as a socket broadcast message documented in lircd(8).
π OPTIONS π
-h,--helpβ Display usage summary. (the "what do I even do" button π«Ά)-v,--versionβ Display version.-d,--device=deviceβ Use given lircd socket [/var/run/lirc/lircd].-a,--address=host[:port]β Connect to lircd at this address.-#,--count=nβ Send command n times. (yes, the option literally starts with a#, iconic behaviour β)
π ENVIRONMENT π
LIRC_SOCKET_PATHβ The lircd socket to connect to, defaults to a hardcoded default value/var/run/lirc/lircd
π FILES π
/etc/lirc/lircd.confβ Default lircd configuration file. It should contain all the remotes, their infra-red codes and the corresponding timing and waveform details. π
π DIAGNOSTICS π
If lircd is not running (or /var/run/lirc/lircd lacks write permissions), irsend aborts with the following diagnostics β and it's giving tragic, fr fr:
"irsend: could not connect to socket"
"irsend: Connection refused" (or "Permission denied").
no socket, no service. the vibe check failed. π
π₯ EXAMPLES π₯
irsend LIST DenonTuner ""
irsend SEND_ONCE DenonTuner PROG-SCAN
irsend SEND_ONCE OnkyoAmpli VOL-UP VOL-UP VOL-UP VOL-UP
irsend SEND_START OnkyoAmpli VOL-DOWN ; sleep 3
irsend SEND_STOP OnkyoAmpli VOL-DOWN
irsend SET_TRANSMITTERS 1
irsend SET_TRANSMITTERS 1 3 4
irsend SIMULATE "0000000000000476 00 OK TECHNISAT_ST3004S"
ate. π
π DRIVER LOADING π
Drivers are loaded dynamically. The directory used for this is determined by (falling priority):
- The environment variable
LIRC_PLUGINDIR. - The
'plugindir'entry in the[lircd]section of thelirc_options.conffile. - A hardcoded default (
/usr/lib/x86_64-linux-gnu/lirc/plugins).
π SEE ALSO π
and that's the whole page, bestie!! π§ this lil masterpiece is irsend 0.10.2, and the last change was Mar 2017 β so yeah, she's been serving infra-red realness for a minute and she's still that girl. go send some codes, you got this πππ¦
π¦ where this page comes from
- debian trixie: lirc 0.10.2-0.10 Β· GPL-2.0-or-later
- ubuntu noble: lirc 0.10.2-0.8build1 Β· GPL-2.0-or-later
- ubuntu questing: lirc 0.10.2-0.10build1
- ubuntu resolute: lirc 0.10.2-0.10ubuntu1 Β· GPL-2.0-or-later
- ubuntu stonking: lirc 0.10.2-0.11 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms