Open neuralassembly opened 5 years ago
This is an upstream linux file we don't modify here. It would be best to fix this at source and we will get the fix once it is merged upstream. Could you report it using this guide: https://www.kernel.org/doc/html/v4.19/admin-guide/reporting-bugs.html
Thanks. I e-mailed to the maintainer.
Great. When a fix gets commited upstream let us know and we can pull it in.
I noticed that LIRCBUF_SIZE was increased to the value 1024 in the upstream file of master branch.
Is it possible to merge it? Or commit to the v4.19 tag is required?
When should we expect to see this merged @popcornmix?
If I see zcat /proc/config.gz|grep LIRC
, it seems that is embedded in the kernel (CONFIG_LIRC=y
).
Is there any reason to embed that in the kernel? It would be useful if we can change buffer size by ourselves as module parameters (without building the whole kernel).
How about:
- CONFIG_LIRC=y
+ CONFIG_LIRC=m
Any update on when this can be merged in? As it stands, I'm unable to use 4.19 for both of my use cases of sending IR signals due to this limitation. @popcornmix
Is there any timeline on getting this merged? This really limits the utility of the rpi in air conditioning unit control.
Thanks for all your work by the way.
Added https://github.com/raspberrypi/linux/commit/7f80928576fc456c0817df95ab6034003e846faa will be in next rpi-update kernel.
Upgraded and tested with kernel 4.19.114-1-ARCH today. I am now able to send long IR signals like those used for AC units.
Thanks very much.
Just upgraded to 4.19.115+ and I am still sending garbled codes through the IR transmitter when sending NEC protocol codes. Any ideas when this may be fixed please?
Thanks, Martyn
Patched version of lirc would be required. Please see:
https://www.raspberrypi.org/forums/viewtopic.php?f=28&t=235256
still getting garbage using the patched version... very frustrating....
Please note that the patched lirc would be downgraded when you execute "sudo apt dist-upgrade". In such a case, please install the patched deb files again.
Describe the bug When using kernel 4.19.X and sending IR commands with LIRC, the length of pulse-space IR sequence is restricted to be smaller than 256. Therefore, the long IR sequence of remote controllers of air conditioners cannot be sent because its length is often longer than 256.
This is caused by the following line in lirc_dev.c.
#define LIRCBUF_SIZE 256
This definition did not exist in kernel 4.14.
I built a kernel 4.19.46-v7+ with LIRCBUF_SIZE=1024 and I confirmed that a long IR sequence can be sent correctly.
Therefore, I propose to set LIRCBUF_SIZE to the value 1024.