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) once
  • send_start β€” start repeating a code.
  • send_stop β€” stop repeating code.
  • list β€” list configured remote items
  • set_transmitters β€” set active transmitters
  • simulate β€” 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 πŸ™ˆ

The simulate command only works if it has been explicitly enabled in lircd using the --allow-simulate option. 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):

  1. The environment variable LIRC_PLUGINDIR.
  2. The 'plugindir' entry in the [lircd] section of the lirc_options.conf file.
  3. 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