MrNice
Posts: 72
Joined: Thu Oct 17, 2013 10:18 am

RPi2 Raspbian LIRC irsend error

Sun Apr 03, 2016 5:41 pm

Hi,

After more that 6 hours installing and troubleshooting my RPi2 with Raspbian (Noobs), I need help because I don't have any hair left on my head.

I have only a transmitter IR led, not connected so far.
The issue:

Code: Select all

irsend LIST REMOTE_NAME "DENON"
irsend: could not connect to socket
irsend: No such file or directory
My config:

Code: Select all

uname -a
Linux raspberrypi 4.1.19+ #858 Tue Mar 15 15:52:03 GMT 2016 armv6l GNU/Linux

Code: Select all

dmesg | grep lirc_rpi
[    7.412337] lirc_rpi: module is from the staging directory, the quality is unknown, you have been warned.
[    9.202368] lirc_rpi: auto-detected active high receiver on GPIO pin 23
[    9.202772] lirc_rpi lirc_rpi: lirc_dev: driver lirc_rpi registered at minor = 0
[    9.202796] lirc_rpi: driver registered!

dmesg | grep lirc_dev
[    4.541474] lirc_dev: IR Remote Control driver registered, major 245 
[    9.202772] lirc_rpi lirc_rpi: lirc_dev: driver lirc_rpi registered at minor = 0
But look at Failed to start Load Kernel Modules.

Code: Select all

[    4.541474] lirc_dev: IR Remote Control driver registered, major 245 
[    4.585796] systemd[1]: Started Set Up Additional Binary Formats.
[    4.617474] systemd[1]: Starting Create list of required static device nodes for the current kernel...
[    4.667464] systemd[1]: Starting Slices.
[    4.705067] systemd[1]: Reached target Slices.
[    4.741041] systemd[1]: Mounted POSIX Message Queue File System.
[    4.752914] systemd[1]: Mounted Debug File System.
[    4.765662] systemd[1]: Started File System Check on Root Device.
[    4.790476] systemd[1]: Started Increase datagram queue length.
[    4.804447] systemd[1]: Started Restore / save the current clock.
[    4.815293] systemd[1]: systemd-modules-load.service: main process exited, code=exited, status=1/FAILURE
[    4.837692] systemd[1]: Failed to start Load Kernel Modules.
[    4.845865] systemd[1]: Unit systemd-modules-load.service entered failed state.
[    4.882507] systemd[1]: Started Create list of required static device nodes for the current kernel.
[    4.918840] systemd[1]: Time has been changed
[    5.062439] systemd[1]: Started udev Coldplug all Devices.
[    5.271298] systemd[1]: Starting Create Static Device Nodes in /dev...
[    5.289600] systemd[1]: Starting Apply Kernel Variables...
[    5.325614] systemd[1]: Mounting Configuration File System...
[    5.365818] systemd[1]: Mounting FUSE Control File System...
[    5.415057] systemd[1]: Starting Syslog Socket.
[    5.486246] systemd[1]: Listening on Syslog Socket.
[    5.486571] systemd[1]: Starting Journal Service...
[    5.535937] systemd[1]: Started Journal Service.
[    5.878770] systemd-udevd[91]: starting version 215
[    7.412337] lirc_rpi: module is from the staging directory, the quality is unknown, you have been warned.
[    8.688407] bcm2835-rng 20104000.rng: hwrng registered
[    8.745274] EXT4-fs (mmcblk0p7): re-mounted. Opts: (null)
[    9.202368] lirc_rpi: auto-detected active high receiver on GPIO pin 23
[    9.202772] lirc_rpi lirc_rpi: lirc_dev: driver lirc_rpi registered at minor = 0
[    9.202796] lirc_rpi: driver registered!
[   11.573661] systemd-journald[89]: Received request to flush runtime journal from PID 1
[   12.202948] random: nonblocking pool is initialized
[   12.872568] usbcore: registered new interface driver rtl8192cu
[   13.424783] gpiomem-bcm2835 20200000.gpiomem: Initialised: Registers at 0x20200000
[   14.827486] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready

Code: Select all

cat /etc/modules
# /etc/modules: kernel modules to load at boot time.
#
# This file contains the names of kernel modules that should be loaded
# at boot time, one per line. Lines beginning with "#" are ignored.

i2c-dev

lirc_dev
lirc_rpi gpio_in_pin=23 gpio_out_pin=22

Code: Select all

cat /etc/lirc/hardware.conf
# /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=""

Code: Select all

lsmod
Module                  Size  Used by
cfg80211              479279  0 
rfkill                 21508  2 cfg80211
8192cu                556175  0 
bcm2835_gpiomem         3703  0 
snd_bcm2835            22502  3 
bcm2835_rng             2207  0 
snd_pcm                92861  1 snd_bcm2835
snd_timer              22156  1 snd_pcm
snd                    67534  9 snd_bcm2835,snd_timer,snd_pcm
lirc_rpi                8378  0 
uio_pdrv_genirq         3526  0 
uio                    10078  1 uio_pdrv_genirq
lirc_dev               10800  1 lirc_rpi
rc_core                22701  1 lirc_dev
i2c_dev                 6386  0 
fuse                   86348  3 
ipv6                  358811  28 
sudo modprobe lirc_rpi
return nothing

Code: Select all

sudo systemctl status systemd-modules-load.service
● systemd-modules-load.service - Load Kernel Modules
   Loaded: loaded (/lib/systemd/system/systemd-modules-load.service; static)
   Active: failed (Result: exit-code) since Sun 2016-04-03 15:16:36 UTC; 2h 17min ago
     Docs: man:systemd-modules-load.service(8)
           man:modules-load.d(5)
  Process: 63 ExecStart=/lib/systemd/systemd-modules-load (code=exited, status=1/FAILURE)
 Main PID: 63 (code=exited, status=1/FAILURE)

Warning: Journal has been rotated since unit was started. Log output is incomplete or unavailable.
I don't know if all these output are valuable but I hope some will help.
Any idea what I can do?

Many thanks

MrNice
Posts: 72
Joined: Thu Oct 17, 2013 10:18 am

Re: RPi2 Raspbian LIRC irsend error

Mon Apr 04, 2016 3:44 pm

More info:
The error is here only when I have lirc_rpi gpio_in_pin=23 gpio_out_pin=22 in /etc/modules.
lirc_dev do not lead to an error.
dmesg extract:

Code: Select all

[    4.742625] systemd[1]: systemd-modules-load.service: main process exited, code=exited, status=1/FAILURE
[    4.765022] systemd[1]: Failed to start Load Kernel Modules.
[    4.773184] systemd[1]: Unit systemd-modules-load.service entered failed state.
Anyone could help?

MrNice
Posts: 72
Joined: Thu Oct 17, 2013 10:18 am

Re: RPi2 Raspbian LIRC irsend error

Mon Apr 04, 2016 6:30 pm

More info
I changed the /etc/modules file from
lirc_rpi gpio_in_pins=23 gpio_out_pins=22
to
lirc_rpi
No error at boot and

Code: Select all

systemctl --failed
0 loaded units listed. Pass --all to see loaded but inactive units, too.
To show all installed unit files use 'systemctl list-unit-files'.

bmikeb
Posts: 6
Joined: Wed Apr 27, 2016 8:31 am

Re: RPi2 Raspbian LIRC irsend error

Wed Apr 27, 2016 8:43 am

If it's any consolation, i also have the same problem.
I'm trying this on a Pi Zero.

I do, however, have this working on two other Pi's, both Pi 2's, both much earlier installations.

So far the only difference i have noticed from the earlier Pi 2's that work, and the new Pi Zero that does not work is the Major number in /dev.

Working Pi 2 (4.1.7-v7+):
crw-rw---T 1 root video 244, 0 Jan 1 1970 /dev/lirc0

Other Working Pi 2 (4.1.7-v7+):
crw-rw---T 1 root video 244, 0 Jan 1 1970 /dev/lirc0

Not Working Pi Zero (4.1.19+):
crw-rw---- 1 root video 245, 0 Apr 27 11:19 /dev/lirc0

Has anyone figured this out yet ?

Return to “Troubleshooting”