diff options
Diffstat (limited to 'app-misc/lirc/files/lirc-0.8.6-send-evsyn.diff')
-rw-r--r-- | app-misc/lirc/files/lirc-0.8.6-send-evsyn.diff | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/app-misc/lirc/files/lirc-0.8.6-send-evsyn.diff b/app-misc/lirc/files/lirc-0.8.6-send-evsyn.diff new file mode 100644 index 0000000..a7583ac --- /dev/null +++ b/app-misc/lirc/files/lirc-0.8.6-send-evsyn.diff @@ -0,0 +1,20 @@ +--- daemons/lircd.c.old 2009-12-30 14:37:13.000000000 -0600 ++++ daemons/lircd.c 2009-12-30 14:39:42.000000000 -0600 +@@ -1909,6 +1909,17 @@ + logprintf(LOG_ERR, "writing to uinput failed"); + logperror(LOG_ERR, NULL); + } ++ ++ /* Need to write sync event */ ++ memset(&event, 0, sizeof(event)); ++ event.type = EV_SYN; ++ event.code = SYN_REPORT; ++ event.value = 0; ++ if(write(uinputfd, &event, sizeof(event)) != sizeof(event)) ++ { ++ logprintf(LOG_ERR, "writing EV_SYN to uinput failed"); ++ logperror(LOG_ERR, NULL); ++ } + } + } + #endif |