Skip to contentSkip to conversation

rc rc0: two consecutive events of type space & strange ir-keytable behaviour

DISCUSSION Frédéric Deghetto 2 participants 4 messages May 24, 2019 1 message not in the archive Media (V4L/DVB)

lore
Share & tools
lore
#0 lore raw

Good day,

Information on the system:

- Raspberry 3b+

- Updated yesterday to 4.19.42-v7+

Before the update the remote control was working well with:

- gpio-rc-recv    rc-rc6-mce    kodi (into the file rc_maps.cfg)

- And the following data into /etc/rc_keymaps/kodi:

# table kodi, type: NEC
0x140 KEY_POWER
0x1ff KEY_TAB
0x143 KEY_RED
0x10f KEY_GREEN
0x110 KEY_MINUS
0x118 KEY_VOLUMEUP
0x111 KEY_ESC
0x119 KEY_BACKSPACE
0x116 KEY_UP
0x151 KEY_LEFT
0x113 KEY_ENTER
0x150 KEY_RIGHT
0x11a KEY_DOWN
0x14c KEY_EPG
0x100 KEY_C
0x14e KEY_1
0x10d KEY_2
0x10c KEY_3
0x14a KEY_4
0x109 KEY_5
0x108 KEY_6
0x146 KEY_7
0x105 KEY_8
0x104 KEY_9
0x141 KEY_F8
0x101 KEY_0
0x142 KEY_DELETE

Since the kernel update I get this message from dmesg: "rc rc0: two consecutive events of type space", and the remote control doesn't work.

I tried to force the protocol NEC with ir-keytable -t -p NEC and I can this some events. Something strange, when I push a button I can get the event of the previous pushed button. By insisting I get the right one.

I went to google and didn't see any workaround.

Many thanks for your support,

Frederic

#1 lore raw

Probably related to this issue; ir-keytable -a /etc/rc_maps.conf -v gives:

/sys/class/rc/rc0/protocols protocol rc-5 (disabled) /sys/class/rc/rc0/protocols protocol nec (disabled) /sys/class/rc/rc0/protocols protocol rc-6 (enabled) /sys/class/rc/rc0/protocols protocol jvc (disabled) /sys/class/rc/rc0/protocols protocol sony (disabled) /sys/class/rc/rc0/protocols protocol rc-5-sz (disabled) /sys/class/rc/rc0/protocols protocol sanyo (disabled) /sys/class/rc/rc0/protocols protocol sharp (disabled) /sys/class/rc/rc0/protocols protocol mce_kbd (disabled) /sys/class/rc/rc0/protocols protocol xmp (disabled) /sys/class/rc/rc0/protocols protocol imon (disabled) /sys/class/rc/rc0/protocols protocol lirc (enabled) Table for gpio_ir_recv, rc-rc6-mce not found. Keep as-is

like if rc-rc6-mce was not available anymore ?

Have a good day,

Frederic

Le 24/05/2019 à 06:12, Frédéric Deghetto a écrit :

Quoted 55 lines

Good day,

Information on the system:

- Raspberry 3b+

- Updated yesterday to 4.19.42-v7+

Before the update the remote control was working well with:

- gpio-rc-recv    rc-rc6-mce    kodi (into the file rc_maps.cfg)

- And the following data into /etc/rc_keymaps/kodi:

# table kodi, type: NEC
0x140 KEY_POWER
0x1ff KEY_TAB
0x143 KEY_RED
0x10f KEY_GREEN
0x110 KEY_MINUS
0x118 KEY_VOLUMEUP
0x111 KEY_ESC
0x119 KEY_BACKSPACE
0x116 KEY_UP
0x151 KEY_LEFT
0x113 KEY_ENTER
0x150 KEY_RIGHT
0x11a KEY_DOWN
0x14c KEY_EPG
0x100 KEY_C
0x14e KEY_1
0x10d KEY_2
0x10c KEY_3
0x14a KEY_4
0x109 KEY_5
0x108 KEY_6
0x146 KEY_7
0x105 KEY_8
0x104 KEY_9
0x141 KEY_F8
0x101 KEY_0
0x142 KEY_DELETE

Since the kernel update I get this message from dmesg: "rc rc0: two consecutive events of type space", and the remote control doesn't work.

I tried to force the protocol NEC with ir-keytable -t -p NEC and I can this some events. Something strange, when I push a button I can get the event of the previous pushed button. By insisting I get the right one.

I went to google and didn't see any workaround.

Many thanks for your support,

Frederic

#2 lore raw
Quoted 16 lines · Frédéric Deghetto

Probably related to this issue; ir-keytable -a /etc/rc_maps.conf -v gives:

/sys/class/rc/rc0/protocols protocol rc-5 (disabled) /sys/class/rc/rc0/protocols protocol nec (disabled) /sys/class/rc/rc0/protocols protocol rc-6 (enabled) /sys/class/rc/rc0/protocols protocol jvc (disabled) /sys/class/rc/rc0/protocols protocol sony (disabled) /sys/class/rc/rc0/protocols protocol rc-5-sz (disabled) /sys/class/rc/rc0/protocols protocol sanyo (disabled) /sys/class/rc/rc0/protocols protocol sharp (disabled) /sys/class/rc/rc0/protocols protocol mce_kbd (disabled) /sys/class/rc/rc0/protocols protocol xmp (disabled) /sys/class/rc/rc0/protocols protocol imon (disabled) /sys/class/rc/rc0/protocols protocol lirc (enabled) Table for gpio_ir_recv, rc-rc6-mce not found. Keep as-is

Quoted 1 line

like if rc-rc6-mce was not available anymore ?

This looks like ir-keytable could not match up your /etc/rc_maps.conf with your rc device. Please can you provide:

1) output of "ir-keytable" no (arguments)
2) output of "cat /etc/rc_maps.conf"
3) output of "ir-keytable --version"

Quoted 54 lines

Have a good day,

Frederic

Le 24/05/2019 à 06:12, Frédéric Deghetto a écrit :

Quoted 47 lines

Good day,

Information on the system:

- Raspberry 3b+

- Updated yesterday to 4.19.42-v7+

Before the update the remote control was working well with:

- gpio-rc-recv    rc-rc6-mce    kodi (into the file rc_maps.cfg)

- And the following data into /etc/rc_keymaps/kodi:

# table kodi, type: NEC
0x140 KEY_POWER
0x1ff KEY_TAB
0x143 KEY_RED
0x10f KEY_GREEN
0x110 KEY_MINUS
0x118 KEY_VOLUMEUP
0x111 KEY_ESC
0x119 KEY_BACKSPACE
0x116 KEY_UP
0x151 KEY_LEFT
0x113 KEY_ENTER
0x150 KEY_RIGHT
0x11a KEY_DOWN
0x14c KEY_EPG
0x100 KEY_C
0x14e KEY_1
0x10d KEY_2
0x10c KEY_3
0x14a KEY_4
0x109 KEY_5
0x108 KEY_6
0x146 KEY_7
0x105 KEY_8
0x104 KEY_9
0x141 KEY_F8
0x101 KEY_0
0x142 KEY_DELETE

Since the kernel update I get this message from dmesg: "rc rc0: two consecutive events of type space", and the remote control doesn't work.

This is a warning message about the driver and should not affect functionality,

Quoted 3 lines
Quoted 3 lines

I tried to force the protocol NEC with ir-keytable -t -p NEC and I can this some events. Something strange, when I push a button I can get the event of the previous pushed button. By insisting I get the right one.

That's very odd. This sounds like a problem with trailing spaces/timeouts, which should work fine in v4.19.

What distribtion are you using and what version?

Thanks

Sean

Quoted 7 lines
Quoted 7 lines

I went to google and didn't see any workaround.

Many thanks for your support,

Frederic

A message that is not in the archive (sent off-list or not yet received): CACRW-tjVokBnZNNVPKH64Cu19Xe3Xd+abZfVODegpOxiORwhMw@mail.gmail.com

#4 lore raw
Quoted 133 lines · Frédéric Deghetto

Hi Sean,

Here are the outputs:
ir-keytable:
Found /sys/class/rc/rc0/ (/dev/input/event1) with:
Driver gpio_ir_recv, table rc-rc6-mce
Supported protocols: other lirc rc-5 rc-5-sz jvc sony nec sanyo
mce_kbd rc-6 sharp xmp
Enabled protocols: lirc rc-6
Name: gpio_ir_recv
bus: 25, vendor/product: 0001:0001, version: 0x0100 Repeat delay = 500 ms, repeat period = 125 ms

cat /etc_rc_maps.cfg:
#
# Keymaps table
#
# This table creates an association between a keycode file and a kernel

# driver. It can be used to automatically override a keycode definition.
#
# Although not yet tested, it is mented to be added at udev.
#
# To use, you just need to run:
#       ./ir-keytable -a
#
# Or, if the remote is not the first device:
#       ./ir-keytable -a -s rc1         # for RC at rc1
#

# Format:
# driver - name of the driver provided via uevent - use * for any
driver
# table - RC keymap table, provided via uevent - use * for any table
# file - file name. If directory is not specified, it will default to
# /etc/rc_keymaps.
# For example:

# driver        table                           file
# cx8800        *                               ./keycodes/rc5_hauppauge_new
# *             rc-avermedia-m135a-rm-jx        ./keycodes/kworld_315u
# saa7134       rc-avermedia-m135a-rm-jx
 ./keycodes/keycodes/nec_terratec_cinergy_xs
# em28xx        *                               ./keycodes/kworld_315u
# *             *                               ./keycodes/rc5_hauppauge_new

# Table to automatically load the rc maps for the bundled IR's provided with the

# devices supported by the linux kernel
#driver table                    file
*       rc-adstech-dvb-t-pci     adstech_dvb_t_pci
*       rc-alink-dtu-m           alink_dtu_m
*       rc-anysee                anysee
*       rc-apac-viewcomp         apac_viewcomp
*       rc-asus-pc39             asus_pc39
*       rc-asus-ps3-100          asus_ps3_100
*       rc-ati-tv-wonder-hd-600  ati_tv_wonder_hd_600
*       rc-ati-x10               ati_x10
*       rc-avermedia-a16d        avermedia_a16d
*       rc-avermedia-cardbus     avermedia_cardbus
*       rc-avermedia-dvbt        avermedia_dvbt
*       rc-avermedia-m135a       avermedia_m135a
*       rc-avermedia-m733a-rm-k6 avermedia_m733a_rm_k6
*       rc-avermedia-rm-ks       avermedia_rm_ks
*       rc-avermedia             avermedia
*       rc-avertv-303            avertv_303
*       rc-azurewave-ad-tu700    azurewave_ad_tu700
*       rc-behold-columbus       behold_columbus
*       rc-behold                behold
*       rc-budget-ci-old         budget_ci_old
*       rc-cec                   cec
*       rc-cinergy-1400          cinergy_1400
*       rc-cinergy               cinergy
*       rc-delock-61959          delock_61959
*       rc-dib0700-nec           dib0700_nec
*       rc-dib0700-rc5           dib0700_rc5
*       rc-digitalnow-tinytwin   digitalnow_tinytwin
*       rc-digittrade            digittrade
*       rc-dm1105-nec            dm1105_nec
*       rc-dntv-live-dvb-t       dntv_live_dvb_t
*       rc-dntv-live-dvbt-pro    dntv_live_dvbt_pro
*       rc-dtt200u               dtt200u
*       rc-dvbsky                dvbsky
*       rc-em-terratec           em_terratec
*       rc-encore-enltv-fm53     encore_enltv_fm53
*       rc-encore-enltv          encore_enltv
*       rc-encore-enltv2         encore_enltv2
*       rc-evga-indtube          evga_indtube
*       rc-eztv                  eztv
*       rc-flydvb                flydvb
*       rc-flyvideo              flyvideo
*       rc-fusionhdtv-mce        fusionhdtv_mce
*       rc-gadmei-rm008z         gadmei_rm008z
*       rc-genius-tvgo-a11mce    genius_tvgo_a11mce
*       rc-gotview7135           gotview7135
*       rc-hauppauge             hauppauge
*       rc-imon-mce              imon_mce
*       rc-imon-pad              imon_pad
*       rc-iodata-bctv7e         iodata_bctv7e
*       rc-it913x-v1             it913x_v1
*       rc-it913x-v2             it913x_v2
*       rc-kaiomy                kaiomy
*       rc-kworld-315u           kworld_315u
*       rc-kworld-pc150u         kworld_pc150u
*       rc-kworld-plus-tv-analog kworld_plus_tv_analog
*       rc-leadtek-y04g0051      leadtek_y04g0051
*       rc-lme2510               lme2510
*       rc-manli                 manli
*       rc-medion-x10-digitainer medion_x10_digitainer
*       rc-medion-x10-or2x       medion_x10_or2x
*       rc-medion-x10            medion_x10
*       rc-msi-digivox-ii        msi_digivox_ii
*       rc-msi-digivox-iii       msi_digivox_iii
*       rc-msi-tvanywhere-plus   msi_tvanywhere_plus
*       rc-msi-tvanywhere        msi_tvanywhere
*       rc-nebula                nebula
*       rc-nec-terratec-cinergy-xs nec_terratec_cinergy_xs
*       rc-norwood               norwood
*       rc-npgtech               npgtech
*       rc-pctv-sedna            pctv_sedna
*       rc-pinnacle-color        pinnacle_color
*       rc-pinnacle-grey         pinnacle_grey
*       rc-pinnacle-pctv-hd      pinnacle_pctv_hd
*       rc-pixelview-002t        pixelview_002t
*       rc-pixelview-mk12        pixelview_mk12
*       rc-pixelview-new         pixelview_new
*       rc-pixelview             pixelview
*       rc-powercolor-real-angel powercolor_real_angel
*       rc-proteus-2309          proteus_2309
*       rc-purpletv              purpletv
*       rc-pv951                 pv951
#*      rc-rc6-mce               rc6_mce
Quoted 1 line

gpio-rc-recv rc-rc6-mce kodi

That's different than gpio_ir_recv

Quoted 53 lines
*       rc-real-audio-220-32-keys real_audio_220_32_keys
*       rc-reddo                 reddo
*       rc-snapstream-firefly    snapstream_firefly
*       rc-streamzap             streamzap
*       rc-su3000                su3000
*       rc-tbs-nec               tbs_nec
*       rc-technisat-ts35        technisat_ts35
*       rc-technisat-usb2        technisat_usb2
*       rc-terratec-cinergy-c-pci terratec_cinergy_c_pci
*       rc-terratec-cinergy-s2-hd terratec_cinergy_s2_hd
*       rc-terratec-cinergy-xs   terratec_cinergy_xs
*       rc-terratec-slim-2       terratec_slim_2
*       rc-terratec-slim         terratec_slim
*       rc-tevii-nec             tevii_nec
*       rc-tivo                  tivo
*       rc-total-media-in-hand-02 total_media_in_hand_02
*       rc-total-media-in-hand   total_media_in_hand
*       rc-trekstor              trekstor
*       rc-tt-1500               tt_1500
*       rc-twinhan-dtv-cab-ci    twinhan_dtv_cab_ci
*       rc-twinhan1027           twinhan_vp1027_dvbs
*       rc-videomate-k100        videomate_k100
*       rc-videomate-s350        videomate_s350
*       rc-videomate-tv-pvr      videomate_tv_pvr
*       rc-winfast-usbii-deluxe  winfast_usbii_deluxe
*       rc-winfast               winfast
# *     *                        a800                 # found in a800.c
# *     *                        af9005               # found in
af9005-remote.c
# *     *                        cinergyt2            # found in
cinergyT2-core.c
# *     *                        dvico_mce            # found in cxusb.c
# *     *                        dvico_portable       # found in cxusb.c
# *     *                        d680_dmb             # found in cxusb.c
# *     *                        dibusb               # found in
dibusb-common.c
# *     *                        digitv               # found in digitv.c
# *     *                        megasky              # found in m920x.c
# *     *                        tvwalkertwin         # found in m920x.c
# *     *                        pinnacle310e         # found in m920x.c
# *     *                        haupp                # found in
nova-t-usb2.c
# *     *                        opera1               # found in opera1.c
# *     *                        vp702x               # found in vp702x.c
# *     *                        vp7045               # found in vp7045.c

ir-keytable --version :
IR keytable control version 1.12.3

Quoted 4 lines

Something strange:
This command "sudo ir-keytable -p nec -w /etc/rc_keymaps/kodi" gives the expect output, where the sudo ir-keytable -a /etc/rc_maps.cfg doesn't load the table.

The driver name does not match (see above).

Quoted 7 lines

output from ""sudo ir-keytable -p nec -w /etc/rc_keymaps/kodi" Read kodi table
Wrote 27 keycode(s) to driver
Protocols changed to nec

I am not at home. I will test the result of the command "sudo ir-keytable -p nec -w /etc/rc_keymaps/kodi" this evening.

That would be great, thanks.

Sean