Raspberry Pi Zero W-LIRC不起作用-无法启动设备

时间:2019-11-16 17:28:53

标签: python raspberry-pi lirc

我已经安装了lirc befor。 我的文件boot / config.txt包含:

dtoverlay=lirc-rpi

/etc/lirc/hardware.conf文件包含:

#
# Arguments which will be used when launching lircd
LIRCD_ARGS="--uinput"

#Don't start lircmd even if there seems to be a good config file
#START_LIRCMD=false

#Don't start irexec, even if a good config file seems to exist.
#START_IREXEC=false

#Try to load appropriate kernel modules
LOAD_MODULES=true

# Run "lircd --driver=help" for a list of supported drivers.
DRIVER="default"
# usually /dev/lirc0 is the correct setting for systems using udev
DEVICE="/dev/lirc0"
MODULES="lirc_rpi"

# Default configuration files for your hardware if any
LIRCD_CONF=""
LIRCMD_CONF=""

当我尝试启动sudo /etc/init.d/lircd状态

lircd.service - Flexible IR remote input/output application support
   Loaded: loaded (/lib/systemd/system/lircd.service; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Sat 2019-11-16 17:15:40 GMT; 8min ago
     Docs: man:lircd(8)
           http://lirc.org/html/configure.html
  Process: 640 ExecStart=/usr/sbin/lircd --nodaemon (code=exited, status=1/FAILURE)
 Main PID: 640 (code=exited, status=1/FAILURE)

Nov 16 17:15:40 raspberrypi lircd-0.10.1[640]: Notice: Options: release_suffix: _EVUP
Nov 16 17:15:40 raspberrypi lircd-0.10.1[640]: Notice: Options: allow_simulate: 0
Nov 16 17:15:40 raspberrypi lircd-0.10.1[640]: Notice: Options: repeat_max: 600
Nov 16 17:15:40 raspberrypi lircd-0.10.1[640]: Notice: Options: configfile: /etc/lirc/lircd.conf
Nov 16 17:15:40 raspberrypi lircd-0.10.1[640]: Notice: Options: dynamic_codes: (null)
Nov 16 17:15:40 raspberrypi lircd-0.10.1[640]: Notice: Current driver: default
Nov 16 17:15:40 raspberrypi lircd-0.10.1[640]: Notice: Driver API version: 3
Nov 16 17:15:40 raspberrypi lircd-0.10.1[640]: Notice: Driver  version: 0.10.0
Nov 16 17:15:40 raspberrypi lircd-0.10.1[640]: Notice: Driver  info: See file:///usr/share/doc/lirc/pl…t.html
Nov 16 17:15:40 raspberrypi lircd-0.10.1[640]: Info: lircd:  Opening log, level: Info
Hint: Some lines were ellipsized, use -l to show in full.

当我提示时:sudo mode2 -d / dev / lirc0 发生此错误:

Using driver default on device /dev/lirc0

Cannot initiate device /dev/lirc0

有人建议我如何解决该问题?

1 个答案:

答案 0 :(得分:0)

最新的lirc更新是一项重大更新。作为启动器,在usr / share / doc / lirc / README.Debian.gz上有升级说明。另外,http://lirc.org/html/configuration-guide.html的官方文档提供了更新的综合方法。

请注意,当前的lirc版本未使用hardware.conf。而且,lirc大量使用systemd - sysV脚本可用,但维护得不太好。

简而言之:请阅读文档并进行必要的升级步骤。