LIRC partial read 8 bytes
Asked Answered
F

3

5

I tried to create my own universal remote using my Raspberry Pi 3 with newest Raspbian. After constructing little receiver and transmitter (tutorial I followed) and connecting everything up I got this message when trying to receive IR.

pi@raspberrypi:~ $ sudo modprobe lirc_rpi
pi@raspberrypi:~ $ sudo kill $(pidof lircd)
pi@raspberrypi:~ $ mode2 -d /dev/lirc0
Using driver devinput on device /dev/lirc0
Trying device: /dev/lirc0
Using device: /dev/lirc0
Partial read 8 bytes on /dev/lirc0pi@raspberrypi:~ $

How can I fix it ?

Falito answered 25/1, 2018 at 23:6 Comment(0)
P
14

The answer from @leamas points me to the right direction but changing driver = devinput to driver = default in /etc/lirc/lirc_options.conf does not help. But with this command I get it to run:

rpi3 ~$ sudo mode2 --driver default --device /dev/lirc0

With sudo adduser pi video, logout and login, I do not need sudo for the command.

Phenoxide answered 17/3, 2018 at 16:20 Comment(0)
O
2

This line actually makes no sense:

Using driver devinput on device /dev/lirc0

The devinput driver requires a device in the /dev/input directory, whereas the default driver (silly name...) uses a /dev/lirc* device like /dev/lirc0.

So, to get rid of this error you need to either change the device to a /dev/input device or change the driver to default. My gut feeling is to go for the latter alternative, but guts are not always trustworthy.

Also, you might have a bumpy road ahead even if you should get rid of this particular error. The configuration file you are using belongs to the 0.9.0 lirc version, an ancient piece of software seven years old. Upstream is at 0.10.0.

Oral answered 26/1, 2018 at 9:13 Comment(0)
P
1

In my case I changed the following two lines in /etc/lirc/lirc_options.conf

driver          = default
device          = /dev/lirc0

And then, to get it to run...

$ sudo mode2
Padilla answered 23/6, 2018 at 12:50 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.