[vdr] inputlirc with devices referenced by /dev/input/by-id/...

Rainer Blickle rainer.blickle at gmail.com
Sun Jul 28 08:01:45 CEST 2013


i created a workaround with the following S19... startup script:


#!/bin/sh
cat >/tmp/RecreateLircConfig.java <<DELIM
import java.nio.file.*;
public class RecreateLircConfig {
  public static void main(String[] args) throws Exception {
    Path path1 = Paths.get("/dev/input/by-id/usb-05a4_9881-event-kbd");
    Path path2 =
Paths.get("/dev/input/by-id/usb-05a4_9881-if01-event-mouse");
    System.out.println("# Options to be passed to inputlirc.");
    System.out.printf("EVENTS=\"%s %s\"%n", path1.toRealPath(),
path2.toRealPath());
    System.out.println("OPTIONS=\"-g -m 0 -c\"");
  }
}
DELIM
javac -d /tmp /tmp/RecreateLircConfig.java
#java -cp /tmp RecreateLircConfig
java -cp /tmp RecreateLircConfig >/etc/default/inputlirc


to execute the script, the deb openjdk-7-jdk is needed


2013/7/28 Peter Münster <pmlists at free.fr>

> On Sat, Jul 27 2013, Rainer Blickle wrote:
>
> > inputlirc starts and works as expected. unfortunately the device
> (event2/3)
> > changes from reboot to reboot.
>
> Hi,
>
> There is this function in my run-vdr script, perhaps it can help:
>
> --8<---------------cut here---------------start------------->8---
> reload-dvb()
> {
>     killall irxevent lircd
>     sleep 1
>     killall -9 irxevent lircd
>     modprobe -r $DVB_DRIVERS
>     sleep 1
>     for i in $DVB_DRIVERS; do modprobe $i; done
>     sleep 3
>     EV=`ir-keytable 2>&1 | grep -B1 tevii | \
>            sed -nr 's,^.*/dev/input/(event.).*$,\1,p'`
>     ln -sf $EV $IR
>     chmod 644 $IR
>     sleep 3
>     lircd -Hdevinput -d$IR
>     sleep 1
>     irxevent -d ~vdr/.lircrc
> }
> --8<---------------cut here---------------end--------------->8---
>
> --
>            Peter
>
>
> _______________________________________________
> vdr mailing list
> vdr at linuxtv.org
> http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.linuxtv.org/pipermail/vdr/attachments/20130728/eca04d8d/attachment.html>


More information about the vdr mailing list