From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-pg0-f50.google.com ([74.125.83.50]:34286 "EHLO mail-pg0-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751955AbcKPLAe (ORCPT ); Wed, 16 Nov 2016 06:00:34 -0500 Received: by mail-pg0-f50.google.com with SMTP id x23so75387198pgx.1 for ; Wed, 16 Nov 2016 03:00:34 -0800 (PST) Received: from shambles.local (c122-106-153-7.carlnfd1.nsw.optusnet.com.au. [122.106.153.7]) by smtp.gmail.com with ESMTPSA id p125sm1926745pfg.33.2016.11.16.02.53.08 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 16 Nov 2016 02:53:09 -0800 (PST) Date: Wed, 16 Nov 2016 21:52:58 +1100 From: Vincent McIntyre To: linux-media@vger.kernel.org Subject: ir-keytable: infinite loops, segfaults Message-ID: <20161116105256.GA9998@shambles.local> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Sender: linux-media-owner@vger.kernel.org List-ID: Hi, I have a fairly old dvico dual digital 4 tuner and remote. There seem to be some issues with support for it, can I help fix them? I am using ir-keytable 1.10.0-1 on Ubuntu 16.04 LTS, with kernel 4.4.0-47-generic (package version 4.4.0-47-generic) The remote's keymapping is the one in /lib/udev/rc_keymaps/dvico_mce; kernel support for the device is in media/usb/dvb-usb/cxusb.c. Mostly it works, in that I get correct keycodes back from evtest and ir-keytable -t. But I want to change some of the keycode mappings and that is not working. # cat >testfile 0xfe47 KEY_PAUSE ^D # ir-keytable -v -d /dev/input/event15 -w testfile Parsing testfile keycode file parsing 0xfe47=KEY_PAUSE: value=119 Opening /dev/input/event15 Input Protocol version: 0x00010001 fe47=0077 Wrote 1 keycode(s) to driver So far so good, yes? But evtest still reports the same keycode for the key I tried to modify. # evtest