← Back to team overview

desktop-packages team mailing list archive

[Bug 1461668] Re: ir-keytable presses recognised but not working

 

Hi,

I've just tried swapping the key code for up and back, and now the old
button for backspace does up as intended, but the old button for up
never does backspace.

This is my mapping file:

==> universal_wr7 <==
# Adapted from Apple Remote by Sab, Universal WR7
0x77e1503d KEY_UP
0x77e1303d KEY_DOWN
0x77e1903d KEY_LEFT
0x77e1603d KEY_RIGHT
0x77e1a03d KEY_ENTER
0x77e1c03d KEY_BACKSPACE

I have a init.d script that is the following:

#!/usr/bin/env bash
echo 'Modprobing...'
modprobe -r nuvoton_cir
sleep 1
echo 'Echoing...'
echo "auto" > /sys/bus/acpi/devices/NTN0530\:00/physical_node/resources
sleep 1
echo 'Modprobing...'
modprobe nuvoton-cir
sleep 1
echo 'Clearing the old keytable...'
ir-keytable -c
sleep 1
echo 'Injecting the new keytable...'
ir-keytable -p NEC,RC-5,RC-6,JVC,SONY,LIRC -w /etc/rc_keymaps/universal_wr7
echo 'Done.'

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to v4l-utils in Ubuntu.
https://bugs.launchpad.net/bugs/1461668

Title:
  ir-keytable presses recognised but not working

Status in v4l-utils package in Ubuntu:
  New

Bug description:
  I'm using ir-keytable to map button presses on a remote control to
  keyboard presses. I'm using an old Apple remote and after scanning for
  the keycodes I've produced a keymap file which is loaded by ir-
  keytable. However, I have only succeeded in getting the arrow keys and
  enter working (KEY_UP,  KEY_DOWN, KEY_LEFT, KEY_RIGHT, KEY_ENTER). All
  the other keypresses that I've tried are recognised by ir-keytable,
  but are not being passed to the system. For example, the KEY_BACKSPACE
  which I need. Running ir-keytable -t and pressing the relevant remote
  button I get:

  1433359068.641206: event type EV_KEY(0x01) key_down: KEY_BACKSPACE(0x0001)
  1433359068.641206: event type EV_SYN(0x00).
  1433359068.641230: event type EV_MSC(0x04): scancode = 0x77e1c03d
  1433359068.641230: event type EV_SYN(0x00).
  1433359068.641235: event type EV_MSC(0x04): scancode = 0x77e1c03d
  1433359068.641235: event type EV_SYN(0x00).

  But it never works as backspace. For example, if I open a text editor
  and use the arrow or enter keys, I can see the cursor moving around.
  But the backspace does not work. Also any other keymap that I've tried
  (e.g. numbers, letters) does not work.

  I'm using ir-keytable 1.6.0-2 in xubuntu 15.04.  My system is a
  NUC5i5RYHK, the IR driver is nuvoton-cir. The output  of ir-keytable
  is:

  Found /sys/class/rc/rc0/ (/dev/input/event3) with:
  	Driver nuvoton-cir, table rc-rc6-mce
  	Supported protocols: NEC RC-5 RC-6 JVC SONY SANYO LIRC RC-5-SZ SHARP XMP other
  	Enabled protocols: NEC RC-5 RC-6 JVC SONY LIRC
  	Name: Nuvoton w836x7hg Infrared Remote
  	bus: 25, vendor/product: 1050:00c3, version: 0x0033
  	Repeat delay = 500 ms, repeat period = 125 ms

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/v4l-utils/+bug/1461668/+subscriptions


References