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

Peter Münster pmlists at free.fr
Sun Jul 28 00:13:34 CEST 2013

On Sat, Jul 27 2013, Rainer Blickle wrote:

> inputlirc starts and works as expected. unfortunately the device (event2/3)
> changes from reboot to reboot.


There is this function in my run-vdr script, perhaps it can help:

--8<---------------cut here---------------start------------->8---
    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---


More information about the vdr mailing list