Mailing List archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[vdr] Re: Trouble trying to configure lirc with vdr.



On Freitag, 10. September 2004 05:15, Peace Monk wrote:
> I am trying to configure lirc with vdr.  I have lirc modules installed
> in the vanila kernel  2.6.7.
> 
> lsmod | grep lirc
> lirc_serial            12896  1 
> lirc_dev               13320  2 lirc_serial
> 
> I have a dev file /dev/lirc/lirc0
> 
> I can also run lircd "/etc/init.d/lircd start" . also, I can see the
> remotes are woking when using "xmode2 -d /dev/lirc/lirc0"
> 
> For VDR, I have plugin vdr-remote-0.3.1, and applied patch
> vdr-remote-0.3.1-0.3.1a.diff.  I load vdr with "vdr -Pdxr3 -P"remote
> -l /dev/lirc/lirc0".  When OSD prompts for key entry, my remote does
> not work.  Also, I found this in my /var/log/messages
> 
> Sep  9 23:58:19 htpc vdr[9195]: starting plugin: dxr3
> Sep  9 23:58:19 htpc vdr[9195]: starting plugin: remote
> Sep  9 23:58:19 htpc vdr[9195]: ERROR: /dev/lirc/lirc0: Connection refused
> Sep  9 23:58:19 htpc vdr[9195]: loading /VDRConf/themes/sttng-default.theme
> Sep  9 23:58:19 htpc vdr[9195]: ERROR: remote control LIRC not ready!
> Sep  9 23:58:29 htpc vdr[9195]: switching to channel 123
> 
> Any ideas what I could be doing wrong?

As VDR has built-in LIRC support you don't need the Remote plugin.

LIRC support is broken in Remote plugin 0.3.0, 0.3.1 and 0.3.1a
This patch should fix it:

--- /tmp/remote-0.3.1a/remote.c Fri Sep 10 13:05:46 2004
+++ remote.c    Sun Aug 29 03:10:01 2004
@@ -687,6 +692,15 @@ bool cPluginRemote::Start(void)
     {
         switch (devtyp[i])
         {
+#ifdef REMOTE_FEATURE_LIRC
+            case 'l':
+                fh[i] = access(devnam[i], R_OK);
+                break;
+#endif
+            case 'p':
+                fh[i] = 0;
+                break;
+
             case 'T':
                 fh[i] = open(devnam[i], O_RDWR);
                 break;
@@ -694,10 +708,6 @@ bool cPluginRemote::Start(void)
             default:
                 fh[i] = open(devnam[i], O_RDONLY);
                 break;
-
-            case 'p':
-                fh[i] = 0;
-                break;
         }

         if (fh[i] < 0)


This patch will be included in Remote 0.3.2.

HTH
Oliver

-- 
--------------------------------------------------------
VDR Remote Plugin available at
http://endriss.escape.bei.t-online.de/vdr/
--------------------------------------------------------




Home | Main Index | Thread Index