Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

irsend not working #3

Open
endyb66 opened this issue May 30, 2019 · 9 comments
Open

irsend not working #3

endyb66 opened this issue May 30, 2019 · 9 comments

Comments

@endyb66
Copy link

endyb66 commented May 30, 2019

I've done everything step by step, like in this guide. Before the update to kernel 4.19.x, everything worked fine with irsend. Now i upgraded my rpi to kernel 4.19.x and did everything like in this guide, but still no luck. There is no error, neither in the console when using irsend, nor in the syslog. So it should work i think. Don't know where to look further for issues.

@mtraver
Copy link
Owner

mtraver commented May 30, 2019

Oh no! Hopefully we can resolve it. I'll update the guide if we find any additional information.

Since you don't see any errors, can you check whether the LED is lighting up? A phone camera can see the LED flash.

I'd like to see the output of the sanity check commands. Could you reply with the output of these commands?

dmesg | grep "lirc\|gpio-ir"
lsmod | grep gpio_ir
ll /dev/lirc0
ps aux | grep lirc

Also, please include the output of uname -a.

And I want to confirm: you did make the dtoverlay change and substitute your pin number(s) for the example values?

@endyb66
Copy link
Author

endyb66 commented May 31, 2019

I think there is some sort of issues, i can't see the LED lighting up with a camera...Here are the Outputs of the commands

# dmesg | grep "lirc\|gpio-ir"
[   10.218604] rc rc0: GPIO IR Bit Banging Transmitter as /devices/platform/gpio-ir-transmitter@16/rc/rc0
[   10.218994] rc rc0: lirc_dev: driver gpio-ir-tx registered at minor = 0, no receiver, raw IR transmitter
[   10.309623] rc rc1: lirc_dev: driver gpio_ir_recv registered at minor = 1, raw IR receiver, no transmitter
[   30.118165] input: lircd-uinput as /devices/virtual/input/input2
# lsmod | grep gpio_ir
gpio_ir_recv            3095  0
gpio_ir_tx              3569  0
# ls -l /dev/lirc0
crw-rw---- 1 root video 252, 0 May 30 21:02 /dev/lirc0
# ps aux | grep lir
root       225  0.0  0.4   4260  2056 ?        Ss   May30   0:00 /usr/sbin/lircmd --nodaemon
root       233  0.0  0.4   4188  2136 ?        Ss   May30   0:00 /usr/bin/irexec /etc/lirc/irexec.lircrc
root       391  0.0  0.7   7292  3400 ?        Ss   May30   0:18 /usr/sbin/lircd --nodaemon
root       393  0.0  0.5   4264  2384 ?        Ss   May30   0:00 /usr/sbin/lircd-uinput
root     10881  0.0  0.4   4360  1956 pts/0    S+   07:58   0:00 grep lir
# uname -a
Linux raspi 4.19.46+ #1230 Tue May 28 16:00:00 BST 2019 armv6l GNU/Linux

Inside my /boot/config.txt i have changed

dtoverlay=lirc-rpi,gpio_in_pin=27,gpio_out_pin=22

to

dtoverlay=gpio-ir,gpio_pin=27
dtoverlay=gpio-ir-tx,gpio_pin=22

Edit// For testing i downgraded the kernel to 4.14 and everything is working again. So don't know where the issue could be. I also removed / purged lirc on kernel 4.19 and reinstalled it again, and copied my remote config over. But without luck.

@mtraver
Copy link
Owner

mtraver commented Jun 2, 2019

The logs seem fine. I noticed that I was on an earlier kernel than you (4.19.42-v7+ #1219) so I upgraded to 4.19.46-v7+ #1230. For me it still works though, so I'm not sure. If you figure it out please post back here!

@endyb66
Copy link
Author

endyb66 commented Jun 3, 2019

Could it be an issue, when upgrading directly to the newest kernel? I mean the weird Thing is, that after downgrading to kernel 4.14.x it worked again like before. So somewhere has to be a problem.

@mtraver
Copy link
Owner

mtraver commented Jun 3, 2019

I suppose it could be, but all I can say is that using rpi-update to upgrade and roll back hasn't caused issues for me.

Well, we know that on 4.14 it works well with lirc-rpi. Newer firmware and newer kernel introduce lots of differences and for me only the dtoverlay change to gpio-ir was needed, but for your setup it seems like that's insufficient.

While doing my initial debugging on 4.19 I found this: https://www.raspberrypi.org/forums/viewtopic.php?t=235256. The original post only talks about differences in recording, but some replies talk about broken transmit being resolved. You might try the patch and see if it helps.

@endyb66
Copy link
Author

endyb66 commented Jun 3, 2019

Ok, could it be because i did a apt-get dist-upgrade first, instead of using rpi-update?

@mtraver
Copy link
Owner

mtraver commented Jun 4, 2019

I don't know. You can try both approaches, and also try the patch from the forum post I linked to.

@mtraver
Copy link
Owner

mtraver commented Jun 14, 2019

Were you able to diagnose the problem?

@endyb66
Copy link
Author

endyb66 commented Jun 24, 2019

Currently no, i haven't time yet, because the device has to run without Interrupts. So i currently i stay on the older kernel.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants