Good evening. please help with the installation of Lirc. I have an old macmini that I have been using as a player for a long time. I want to set up work with the remote control onkyo-rc-799m, but for some reason I do not work according to this instruction
lsusb
Bus 001 Device 002: ID 0b05:17f5 ASUSTek Computer, Inc.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 005 Device 003: ID 05ac:8240 Apple, Inc. Built-in IR Receiver
Bus 005 Device 004: ID 05ac:8205 Apple, Inc. Bluetooth HCI
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 002: ID 0c40:7a1c
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
volumio@volumio:~$ ls -l /dev/usb/
total 0
crw------- 1 root root 180, 0 Oct 16 15:10 hiddev0
volumio@volumio:~$ sudo apt-get install lirc
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
gir1.2-atk-1.0 gir1.2-freedesktop gir1.2-gdkpixbuf-2.0 gir1.2-gtk-3.0
gir1.2-pango-1.0 gir1.2-vte-2.91 libftdi1-2 liblirc-client0 liblirc0
libusb-0.1-4 libvte-2.91-0 libvte-2.91-common libyaml-0-2 python3-yaml
Suggested packages:
lirc-compat-remotes lirc-drv-irman lirc-doc lirc-x setserial ir-keytable
The following NEW packages will be installed:
gir1.2-atk-1.0 gir1.2-freedesktop gir1.2-gdkpixbuf-2.0 gir1.2-gtk-3.0
gir1.2-pango-1.0 gir1.2-vte-2.91 libftdi1-2 liblirc-client0 liblirc0
libusb-0.1-4 libvte-2.91-0 libvte-2.91-common libyaml-0-2 lirc python3-yaml
0 upgraded, 15 newly installed, 0 to remove and 0 not upgraded.
Need to get 3088 kB of archives.
After this operation, 7557 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://deb.debian.org/debian buster/main amd64 gir1.2-atk-1.0 amd64 2.30.0-2 [25.3 kB]
Get:2 http://deb.debian.org/debian buster/main amd64 gir1.2-freedesktop amd64 1.58.3-2 [20.3 kB]
Get:3 http://deb.debian.org/debian buster/main amd64 gir1.2-gdkpixbuf-2.0 amd64 2.38.1+dfsg-1 [18.3 kB]
Get:4 http://deb.debian.org/debian buster/main amd64 gir1.2-pango-1.0 amd64 1.42.4-8~deb10u1 [55.8 kB]
Get:5 http://deb.debian.org/debian buster/main amd64 gir1.2-gtk-3.0 amd64 3.24.5-1 [252 kB]
Get:6 http://deb.debian.org/debian buster/main amd64 libvte-2.91-common all 0.54.2-2 [563 kB]
Get:7 http://deb.debian.org/debian buster/main amd64 libvte-2.91-0 amd64 0.54.2-2 [689 kB]
Get:8 http://deb.debian.org/debian buster/main amd64 gir1.2-vte-2.91 amd64 0.54.2-2 [529 kB]
Get:9 http://deb.debian.org/debian buster/main amd64 libftdi1-2 amd64 1.4-1+b2 [30.2 kB]
Get:10 http://deb.debian.org/debian buster/main amd64 liblirc-client0 amd64 0.10.1-6.3~deb10u1 [71.2 kB]
Get:11 http://deb.debian.org/debian buster/main amd64 libusb-0.1-4 amd64 2:0.1.12-32 [23.4 kB]
Get:12 http://deb.debian.org/debian buster/main amd64 liblirc0 amd64 0.10.1-6.3~deb10u1 [131 kB]
Get:13 http://deb.debian.org/debian buster/main amd64 libyaml-0-2 amd64 0.2.1-1 [47.2 kB]
Get:14 http://deb.debian.org/debian buster/main amd64 lirc amd64 0.10.1-6.3~deb10u1 [512 kB]
Get:15 http://deb.debian.org/debian buster/main amd64 python3-yaml amd64 3.13-2 [121 kB]
Fetched 3088 kB in 1s (3088 kB/s)
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LC_TIME = "ru_UA.UTF-8",
LC_MONETARY = "ru_UA.UTF-8",
LC_ADDRESS = "ru_UA.UTF-8",
LC_TELEPHONE = "ru_UA.UTF-8",
LC_NAME = "ru_UA.UTF-8",
LC_MEASUREMENT = "ru_UA.UTF-8",
LC_IDENTIFICATION = "ru_UA.UTF-8",
LC_NUMERIC = "ru_UA.UTF-8",
LC_PAPER = "ru_UA.UTF-8",
LANG = "ru_UA.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
debconf: delaying package configuration, since apt-utils is not installed
Selecting previously unselected package gir1.2-atk-1.0:amd64.
(Reading database ... 48207 files and directories currently installed.)
Preparing to unpack .../00-gir1.2-atk-1.0_2.30.0-2_amd64.deb ...
Unpacking gir1.2-atk-1.0:amd64 (2.30.0-2) ...
Selecting previously unselected package gir1.2-freedesktop:amd64.
Preparing to unpack .../01-gir1.2-freedesktop_1.58.3-2_amd64.deb ...
Unpacking gir1.2-freedesktop:amd64 (1.58.3-2) ...
Selecting previously unselected package gir1.2-gdkpixbuf-2.0:amd64.
Preparing to unpack .../02-gir1.2-gdkpixbuf-2.0_2.38.1+dfsg-1_amd64.deb ...
Unpacking gir1.2-gdkpixbuf-2.0:amd64 (2.38.1+dfsg-1) ...
Selecting previously unselected package gir1.2-pango-1.0:amd64.
Preparing to unpack .../03-gir1.2-pango-1.0_1.42.4-8~deb10u1_amd64.deb ...
Unpacking gir1.2-pango-1.0:amd64 (1.42.4-8~deb10u1) ...
Selecting previously unselected package gir1.2-gtk-3.0:amd64.
Preparing to unpack .../04-gir1.2-gtk-3.0_3.24.5-1_amd64.deb ...
Unpacking gir1.2-gtk-3.0:amd64 (3.24.5-1) ...
Selecting previously unselected package libvte-2.91-common.
Preparing to unpack .../05-libvte-2.91-common_0.54.2-2_all.deb ...
Unpacking libvte-2.91-common (0.54.2-2) ...
Selecting previously unselected package libvte-2.91-0:amd64.
Preparing to unpack .../06-libvte-2.91-0_0.54.2-2_amd64.deb ...
Unpacking libvte-2.91-0:amd64 (0.54.2-2) ...
Selecting previously unselected package gir1.2-vte-2.91:amd64.
Preparing to unpack .../07-gir1.2-vte-2.91_0.54.2-2_amd64.deb ...
Unpacking gir1.2-vte-2.91:amd64 (0.54.2-2) ...
Selecting previously unselected package libftdi1-2:amd64.
Preparing to unpack .../08-libftdi1-2_1.4-1+b2_amd64.deb ...
Unpacking libftdi1-2:amd64 (1.4-1+b2) ...
Selecting previously unselected package liblirc-client0:amd64.
Preparing to unpack .../09-liblirc-client0_0.10.1-6.3~deb10u1_amd64.deb ...
Unpacking liblirc-client0:amd64 (0.10.1-6.3~deb10u1) ...
Selecting previously unselected package libusb-0.1-4:amd64.
Preparing to unpack .../10-libusb-0.1-4_2%3a0.1.12-32_amd64.deb ...
Unpacking libusb-0.1-4:amd64 (2:0.1.12-32) ...
Selecting previously unselected package liblirc0:amd64.
Preparing to unpack .../11-liblirc0_0.10.1-6.3~deb10u1_amd64.deb ...
Unpacking liblirc0:amd64 (0.10.1-6.3~deb10u1) ...
Selecting previously unselected package libyaml-0-2:amd64.
Preparing to unpack .../12-libyaml-0-2_0.2.1-1_amd64.deb ...
Unpacking libyaml-0-2:amd64 (0.2.1-1) ...
Selecting previously unselected package lirc.
Preparing to unpack .../13-lirc_0.10.1-6.3~deb10u1_amd64.deb ...
Unpacking lirc (0.10.1-6.3~deb10u1) ...
Selecting previously unselected package python3-yaml.
Preparing to unpack .../14-python3-yaml_3.13-2_amd64.deb ...
Unpacking python3-yaml (3.13-2) ...
Setting up gir1.2-freedesktop:amd64 (1.58.3-2) ...
Setting up libvte-2.91-common (0.54.2-2) ...
Setting up gir1.2-gdkpixbuf-2.0:amd64 (2.38.1+dfsg-1) ...
Setting up gir1.2-atk-1.0:amd64 (2.30.0-2) ...
Setting up libyaml-0-2:amd64 (0.2.1-1) ...
Setting up python3-yaml (3.13-2) ...
Setting up libvte-2.91-0:amd64 (0.54.2-2) ...
Setting up libusb-0.1-4:amd64 (2:0.1.12-32) ...
Setting up libftdi1-2:amd64 (1.4-1+b2) ...
Setting up gir1.2-pango-1.0:amd64 (1.42.4-8~deb10u1) ...
Setting up liblirc-client0:amd64 (0.10.1-6.3~deb10u1) ...
Setting up liblirc0:amd64 (0.10.1-6.3~deb10u1) ...
Setting up gir1.2-gtk-3.0:amd64 (3.24.5-1) ...
Setting up gir1.2-vte-2.91:amd64 (0.54.2-2) ...
Setting up lirc (0.10.1-6.3~deb10u1) ...
Created symlink /etc/systemd/system/multi-user.target.wants/lircd.service → /lib
/systemd/system/lircd.service.
Created symlink /etc/systemd/system/sockets.target.wants/lircd.socket → /lib/sys
temd/system/lircd.socket.
Processing triggers for systemd (241-7~deb10u8) ...
Processing triggers for man-db (2.8.5-2) ...
Processing triggers for libc-bin (2.28-10+deb10u1) ...
volumio@volumio:~$ sudo su
[sudo] password for volumio:
bash-5.0# cd /etc/lirc
bash-5.0# nano hardware.conf
bash-5.0# cd boot/
bash: cd: boot/: No such file or directory
bash-5.0# nano cmdline.txt
bash-5.0# cd /boot/
bash-5.0# nano cmdline.txt
bash-5.0# cd /etc/lirc
bash-5.0# nano lirc_options.conf
bash-5.0# sudo irrecord -H macmini -d /dev/usb/hiddev0 /etc/lirc/lircd.conf
Warning: Running as root.
Using driver macmini on device /dev/usb/hiddev0
Only first remote definition in file "/etc/lirc/lircd.conf" used
irrecord - application for recording IR-codes for usage with lirc
Copyright (C) 1998,1999 Christoph Bartelmus(lirc@bartelmus.de)
This program will record the signals from your remote control
and create a config file for lircd.
A proper config file for lircd is maybe the most vital part of this
package, so you should invest some time to create a working config
file. Although I put a good deal of effort in this program it is often
not possible to automatically recognize all features of a remote
control. Often short-comings of the receiver hardware make it nearly
impossible. If you have problems to create a config file READ THE
DOCUMENTATION at https://sf.net/p/lirc-remotes/wiki
If there already is a remote control of the same brand available at
http://sf.net/p/lirc-remotes you might want to try using such a
remote as a template. The config files already contains all
parameters of the protocol used by remotes of a certain brand and
knowing these parameters makes the job of this program much
easier. There are also template files for the most common protocols
available. Templates can be downloaded using irdb-get(1). You use a
template file by providing the path of the file as a command line
parameter.
Please take the time to finish the file as described in
https://sourceforge.net/p/lirc-remotes/wiki/Checklist/ an send it
to <lirc@bartelmus.de> so it can be made available to others.
Press RETURN to continue.
Checking for ambient light creating too much disturbances.
Please don't press any buttons, just wait a few seconds...
No significant noise (received 0 bytes)
Enter name of remote (only ascii, no spaces) :KEY_PREVIOUS
Using KEY_PREVIOUS.lircd.conf as output filename
Please enter the name for the next button (press <ENTER> to finish recording)
KEY_PREVIOUS
Now hold down button "KEY_PREVIOUS".
Please enter the name for the next button (press <ENTER> to finish recording)
KEY_NEXT
Now hold down button "KEY_NEXT".
Please enter the name for the next button (press <ENTER> to finish recording)
KEY_REWIND
Now hold down button "KEY_REWIND".
Timeout (10 seconds), try again (29 retries left).
Now hold down button "KEY_REWIND".
Timeout (10 seconds), try again (28 retries left).
Now hold down button "KEY_REWIND".
Timeout (10 seconds), try again (27 retries left).
Now hold down button "KEY_REWIND".
Timeout (10 seconds), try again (26 retries left).
Now hold down button "KEY_REWIND".
Timeout (10 seconds), try again (25 retries left).
Now hold down button "KEY_REWIND".
Timeout (10 seconds), try again (24 retries left).
Now hold down button "KEY_REWIND".
Timeout (10 seconds), try again (23 retries left).
Now hold down button "KEY_REWIND".
Timeout (10 seconds), try again (22 retries left).
Now hold down button "KEY_REWIND".
^[Timeout (10 seconds), try again (21 retries left).
Now hold down button "KEY_REWIND".
Timeout (10 seconds), try again (20 retries left).
Now hold down button "KEY_REWIND".
Timeout (10 seconds), try again (19 retries left).
Now hold down button "KEY_REWIND".
Timeout (10 seconds), try again (18 retries left).
Now hold down button "KEY_REWIND".
Timeout (10 seconds), try again (17 retries left).
Now hold down button "KEY_REWIND".
Timeout (10 seconds), try again (16 retries left).
Now hold down button "KEY_REWIND".
qq
Timeout (10 seconds), try again (15 retries left).
Now hold down button "KEY_REWIND".
Timeout (10 seconds), try again (14 retries left).
Now hold down button "KEY_REWIND".
Please enter the name for the next button (press <ENTER> to finish recording)
Successfully written config file KEY_PREVIOUS.lircd.conf
bash-5.0#
bash-5.0# qq
bash: qq: command not found
bash-5.0#
bash-5.0# sudo irrecord -H macmini -d /dev/usb/hiddev0 /etc/lirc/lircd.conf
Warning: Running as root.
Using driver macmini on device /dev/usb/hiddev0
Only first remote definition in file "/etc/lirc/lircd.conf" used
irrecord - application for recording IR-codes for usage with lirc
Copyright (C) 1998,1999 Christoph Bartelmus(lirc@bartelmus.de)
This program will record the signals from your remote control
and create a config file for lircd.
A proper config file for lircd is maybe the most vital part of this
package, so you should invest some time to create a working config
file. Although I put a good deal of effort in this program it is often
not possible to automatically recognize all features of a remote
control. Often short-comings of the receiver hardware make it nearly
impossible. If you have problems to create a config file READ THE
DOCUMENTATION at https://sf.net/p/lirc-remotes/wiki
If there already is a remote control of the same brand available at
http://sf.net/p/lirc-remotes you might want to try using such a
remote as a template. The config files already contains all
parameters of the protocol used by remotes of a certain brand and
knowing these parameters makes the job of this program much
easier. There are also template files for the most common protocols
available. Templates can be downloaded using irdb-get(1). You use a
template file by providing the path of the file as a command line
parameter.
Please take the time to finish the file as described in
https://sourceforge.net/p/lirc-remotes/wiki/Checklist/ an send it
to <lirc@bartelmus.de> so it can be made available to others.
Press RETURN to continue.
Checking for ambient light creating too much disturbances.
Please don't press any buttons, just wait a few seconds...
No significant noise (received 0 bytes)
Enter name of remote (only ascii, no spaces) :onkyo_rc-799m
Using onkyo_rc-799m.lircd.conf as output filename
Please enter the name for the next button (press <ENTER> to finish recording)
KEY_PREVIOUS
Now hold down button "KEY_PREVIOUS".
Please enter the name for the next button (press <ENTER> to finish recording)
KEY_NEXT
The name must not contain any whitespace.Press RETURN to continue.
KEY_NEXT
Please enter the name for the next button (press <ENTER> to finish recording)
'EY_NEXT' is not in name space (use --disable-namespace to override)
Press RETURN to continue.
KEY_NEXT
Please enter the name for the next button (press <ENTER> to finish recording)
'EY_NEXT' is not in name space (use --disable-namespace to override)
Press RETURN to continue.
Please enter the name for the next button (press <ENTER> to finish recording)
KEY_NEXT
Now hold down button "KEY_NEXT".
Please enter the name for the next button (press <ENTER> to finish recording)
KEY_PLAY
Now hold down button "KEY_PLAY".
Please enter the name for the next button (press <ENTER> to finish recording)
KEY_PAUSE
Now hold down button "KEY_PAUSE".
Please enter the name for the next button (press <ENTER> to finish recording)
KEY_STOP
Now hold down button "KEY_STOP".
Please enter the name for the next button (press <ENTER> to finish recording)
KEY_REWIND
Now hold down button "KEY_REWIND".
Timeout (10 seconds), try again (29 retries left).
Now hold down button "KEY_REWIND".
Timeout (10 seconds), try again (28 retries left).
Now hold down button "KEY_REWIND".
Timeout (10 seconds), try again (27 retries left).
Now hold down button "KEY_REWIND".
Timeout (10 seconds), try again (26 retries left).
Now hold down button "KEY_REWIND".
Timeout (10 seconds), try again (25 retries left).
Now hold down button "KEY_REWIND".
Timeout (10 seconds), try again (24 retries left).
Now hold down button "KEY_REWIND".
Timeout (10 seconds), try again (23 retries left).
Now hold down button "KEY_REWIND".
Timeout (10 seconds), try again (22 retries left).
Now hold down button "KEY_REWIND".
Timeout (10 seconds), try again (21 retries left).
Now hold down button "KEY_REWIND".
Timeout (10 seconds), try again (20 retries left).
Now hold down button "KEY_REWIND".
Timeout (10 seconds), try again (19 retries left).
Now hold down button "KEY_REWIND".
Timeout (10 seconds), try again (18 retries left).
Now hold down button "KEY_REWIND".
Timeout (10 seconds), try again (17 retries left).
Now hold down button "KEY_REWIND".
Timeout (10 seconds), try again (16 retries left).
Now hold down button "KEY_REWIND".
Timeout (10 seconds), try again (15 retries left).
Now hold down button "KEY_REWIND".
Timeout (10 seconds), try again (14 retries left).
Now hold down button "KEY_REWIND".
Timeout (10 seconds), try again (13 retries left).
Now hold down button "KEY_REWIND".
Timeout (10 seconds), try again (12 retries left).
Now hold down button "KEY_REWIND".
Timeout (10 seconds), try again (11 retries left).
Now hold down button "KEY_REWIND".
Timeout (10 seconds), try again (10 retries left).
Now hold down button "KEY_REWIND".
Please enter the name for the next button (press <ENTER> to finish recording)
Successfully written config file onkyo_rc-799m.lircd.conf
bash-5.0#
bash-5.0#
bash-5.0#
bash-5.0#
bash-5.0#
bash-5.0# sudo service lirc restart
Failed to restart lirc.service: Unit lirc.service not found.
bash-5.0# sudo service lircd restart
bash-5.0# irw
tried to install the plugin but it hangs tightly in the system, I don’t speak English, translated by a translator, so sorry for the errors