← Back to team overview

mythbuntu-bugs team mailing list archive

[Bug 663651] Re: Streamzap remote control not operating correctly

 

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 Mythbuntu
Bug Team, which is subscribed to lirc in ubuntu.
https://bugs.launchpad.net/bugs/663651

Title:
  Streamzap remote control not operating correctly

Status in “linux” package in Ubuntu:
  Triaged
Status in “lirc” package in Ubuntu:
  Triaged

Bug description:
  Binary package hint: lirc

After upgrading to Ubuntu 10.10 my Streamzap IR remote control does not operate correctly.
Pressing the direction buttons (Up, Down, Left and Right) generated 2 presses to the MythTV application.





References