tbsdtv / linux_media

TBS linux open source drivers
https://github.com/tbsdtv/linux_media/wiki
Other
169 stars 79 forks source link

Double keypresses using hauppage MCE remote #99

Open gbirchley opened 6 years ago

gbirchley commented 6 years ago

Hi, many thanks for these drivers, they produce good reception with my TBS 6205 in fedora linux 4.14.11-200.fc26.x86_64. I patched the kernel with the "TBS Open Source Linux Driver Offline Package v171016" available at https://www.tbsdtv.com/download/?path=14&id=9

Unfortunately the drivers cause a very irritating issue with my Hauppage MCE remote, which is configured using ir-keytable. This occurs any time a key on the remote is pressed firmly, and causes the PC to register two presses of the key rather than one. If i press the key very quickly, I can get a single keypress.

The output of ir-keytable does not seem to be any different from the output before the kernel was patched, e.g. the repeat delay and period is the same:

$ sudo ir-keytable Found /sys/class/rc/rc0/ (/dev/input/event15) with: Driver mceusb, table rc-rc6-mce Supported protocols: lirc rc-5 rc-5-sz jvc sony nec sanyo mce_kbd rc-6 sharp xmp Enabled protocols: lirc rc-6 Name: Media Center Ed. eHome Infrared bus: 3, vendor/product: 2304:0225, version: 0x0001 Repeat delay = 500 ms, repeat period = 125 ms

Furthermore, altering the repeat delay and period (using the command e.g. sudo ir-keytable -D 9000 -P 9000 -d /dev/input/event15) has no discernable effect.

The shortened delay is definitely caused by the tbs open drivers patching.

gbirchley commented 6 years ago

Quick update and correction. I have just booted into an old kernel to check the above information and noticed the output of ir-keytable is slightly different, inasmuch as the "enabled protocols" value in the working version is just "rc-6". I am for some reason unable to reset the protocol to rc-6 using:

$sudo ir-keytable -d /dev/input/event15 -c -p rc-6
Old keytable cleared Invalid protocols selected