The script in #14 didn't work OOTB for me, so I rewrote it. I've been
having the same issues, but with a Hauppauge remote from a Nova TD500
DVB card.

#!/bin/bash -x
export DISPLAY=:0.0
# this is my ir device
remoteDevice=$(ls /dev/input/by-path/*event-ir)
# this is what it is actually called in dmesg ("IR-receiver inside an USB DVB 
receiver")
remoteDeviceName=$(cat /sys/`udevadm info -q path -n 
$remoteDevice`/../../input*/name)
# this is the output line from xinput that matches that
xinputLine=$(xinput list | grep "$remoteDeviceName")
# this gets the column number that contains "="
position=$(expr index "$xinputLine" "=")
# but we want what's after the "=", ie the device id
positionNext=$(expr $position + 1)
# this then grabs that number
id=$(expr substr "$xinputLine" $positionNext 100 | awk '{print $1}')
# and strips the non-numeric characters form that string
propID=$(xinput list-props $id | awk '/Enabled/ {print ($3)}' | sed 
's/[^0-9]//g')
# so this then turns that off.
xinput set-prop $id $propID 0

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/663651

Title:
  Streamzap remote control not operating correctly

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to