--- ../plain.0/remote-0.4.0//./fixrate.c	1970-01-01 01:00:00.000000000 +0100
+++ ./fixrate.c	2007-10-07 18:19:30.000000000 +0200
@@ -0,0 +1,50 @@
+
+#include <unistd.h>
+#include <stdio.h>
+#include <stdlib.h>
+#include <fcntl.h>
+#include <linux/input.h>
+#include <sys/ioctl.h>
+
+#ifndef EVIOCSREP
+#define EVIOCSREP _IOW('E', 0x03, int[2])
+#endif
+
+//***************************************************************************
+// Fixrate
+//***************************************************************************
+
+int main(int argc, char** argv) 
+{
+   int fd = 0;
+   int rep[2];
+   const char* device;
+
+   if (argc < 4)
+   {
+      printf("Usage: fixrate <device> <delay> <repeat rate>\n");
+      exit(1);
+   }
+
+   device = argv[1];
+   rep[0] = atoi(argv[2]);  // delay
+   rep[1] = atoi(argv[3]);  // repeat rate
+
+   if ((fd = open(device, O_RDWR )) < 0) 
+   {
+      printf("unable to access '%s', exiting..\n", device);
+      exit(1);
+   }
+   
+   if (ioctl(fd, EVIOCSREP, rep)) 
+   {
+      printf("unable to set delay and repeat rate for input devices\n");
+      exit(1);
+   }
+
+   close(fd);
+
+   printf("Delay set to %d; rate set to %d\n", rep[0], rep[1]);
+
+   return 0;
+}
--- ../plain.0/remote-0.4.0//./Makefile	2007-10-06 14:58:06.000000000 +0200
+++ ./Makefile	2007-10-07 18:21:19.000000000 +0200
@@ -56,6 +56,7 @@
 
 ### The object files (add further files here):
 
+RATEOBJS = fixrate.o
 OBJS = $(PLUGIN).o ttystatus.o
 ifneq (, $(findstring REMOTE_FEATURE_TCPIP, $(DEFINES)))
 OBJS += remotetcp.o
@@ -64,6 +65,10 @@
 ### The main target:
 
 all: libvdr-$(PLUGIN).so i18n
+	  @make fixrate
+
+fixrate: $(RATEOBJS)
+	$(CXX) $(CXXFLAGS) $(RATEOBJS) -o $@
 
 ### Implicit rules:
 

