[solved] Key code 0x00 always switches to mouse mode

I installed the latest nightly and the back button doesn’t work.
My remote looks like this:
mxq-V88-T95X-X96-T95N
The full remote.conf

#amlogic NEC remote
factory_code = 0xfe010001
work_mode = 0
repeat_enable = 1
repeat_delay = 130
repeat_peroid = 120
release_delay = 20
debug_enable = 1

#fn_key_scancode = 0x4c
#left_key_scancode = 0x51
#right_key_scancode = 0x50
#up_key_scancode = 0x16
#down_key_scancode = 0x1a
#ok_key_scancode = 0x13
#pageup_key_scancode = 0x55
#pagedown_key_scancode = 0x54

mouse_begin
#0 0x51
#1 0x50
#2 0x16
#3 0x1a
mouse_end

key_begin
0x40 116 #Power (Power Menu)

  0x4f 109 #>> (ZoomOut)
  0x4b 104 #<< (ZoomIn)
  0x18 115 #Vol+
  0x10 114 #Vol-
  0x0f 30 #LED (AudioNextLang)
  0x43 46 #KD (C-Menu)
  
  0x11 164 #Home (PlayPause, LongPress-Info)
  0x19 166  #Back (Stop)
  0x00 1 #Menu (Back, Longpress-Stop))
  0x4c 102  #Mouse (Home)
  
  0x16 103 #UP
  0x1a 108 #Down
  0x51 105 #Left
  0x50 106 #Right
    0x13 28  #OK (Enter: Select, PlayPause(Video), PVRChannels OSD(FullScreen PVR)
  
  0x01 11 #0 (Cyrcle between two last played channels-FullScreen PVR)
  0x4e 2  #1
  0x0d 3  #2
  0x0c 4  #3
  0x4a 5  #4
  0x09 6  #5
  0x08 7  #6
  0x46 8  #7
  0x05 9  #8
  0x04 10 #9
  0x42 14 #X (Backspace)
  
  0x5a 119
  0x52 128
  0x54 120
  0x55 121
  0x41 24#Globe (Debug Info, Lonpressed-PlayerProcessInfo)
  0x45 130
  0x49 134
  0x0a 133
  0x48 138
  0x0e 136
  0x03 127
  0x06 139
  0x44 140
  0x02 395
      key_end

I used 0x00 1 #Menu button to go back(escape) , but now it responds one time only right after reboot and then does not.

dmesg shows

[ 4276.679778@1] meson-remote c8100580.meson-remote: remove custom_code 0x0000FE01 from ir map table
[ 4276.679787@1] meson-remote c8100580.meson-remote: add custom_code 0x0000FE01 to ir map table
[ 4280.442190@0] meson-remote c8100580.meson-remote: remote control[ID: 0xfe01] switch to mouse mode

But I have nothing related to the mouse function in my config.

In stable 9.2.0 it works as expected.

What do you think?

More information are needed:

Debud log
http://ix.io/2rXV
Dmesg
http://ix.io/2rXX

The problem is you disabled fn_key_scancode in your remote.config. So the function key is 0x00 to switch remote mode and when you push Back on your remote the controller receive 0x00 and switch the mode. So find any free number like maybe 0x12 and change this in your remote.config:
before:

#fn_key_scancode = 0x4c

after edit:

fn_key_scancode = 0x12

Then it should work with this button (0x00) as fn_key_scancode is not anymore 0x00.

1 Like

It works now!
Thank you so much!