Comment 14 for bug 663651

Revision history for this message
Joe Burmeister (joe-a-burmeister) wrote :

The work round I use is a *.desktop file in ~/.config/autostart pointing to a script that does:

#! /bin/bash

REMOTE_DEVICE=/dev/lirc0
export DISPLAY=:0.0

namePath="/sys/`udevadm info -q path -n $REMOTE_DEVICE`/../input*/name"
xinputLine=`xinput list | grep "$(cat $namePath)"`
id=`expr substr "$xinputLine" $(expr $(expr index "$xinputLine" "=") + 1) 100 | awk '{print $1}'`
propID=`xinput list-props $id | grep Enabled | awk '{print $3}'`
propID=${propID#"("}
propID=${propID%"):"}

xinput set-prop $id $propID 0

It isn't pretty, but it's working for me until there is a proper fix.