Thank you all. With your help i'm a step forward. I could remap the buttons with the hwdb file. Now Kodi shows in the log the keys.
Code
2026-08-21 17:55:24.652 T:34909 debug <general>: bool CInputManager::HandleKey(const CKey&): config (0xf0eb) pressed, window 10100, action is ActivateWindow(Settings)
2026-08-21 17:55:25.473 T:34909 debug <general>: bool CInputManager::HandleKey(const CKey&): launch_app2_pc_icon (0xf0c1) pressed, window 10100, action is ActivateWindow(Programs)
2026-08-21 17:55:27.386 T:34909 debug <general>: bool CInputManager::HandleKey(const CKey&): launch_messenger (0xf108) pressed, window 10100, action is
2026-08-21 17:55:29.025 T:34909 debug <general>: bool CInputManager::HandleKey(const CKey&): browser_home (0xf0b6) pressed, window 10100, action is ActivateWindow(Home)
2026-08-21 17:55:31.093 T:34909 debug <general>: bool CInputManager::HandleKey(const CKey&): subtitle (0xf0ed) pressed, window 10100, action is
2026-08-21 17:55:32.362 T:34909 debug <general>: bool CInputManager::HandleKey(const CKey&): recall_last (0xf0fa) pressed, window 10100, action is
2026-08-21 17:55:33.706 T:34909 debug <general>: bool CInputManager::HandleKey(const CKey&): brightness_up (0xf109) pressed, window 10100, action is
i have added some of these recognized keys in a keymap.xml for testing i have used VolumeUp,VolumeDown.
Code
<keymap>
<global>
<keyboard>
<option>ActivateWindow(TVRecordings)</option>
<frame_forward>ActivateWindow(Videos,Files)</frame_forward>
<frame_back>ActivateWindow(fullscreenvideo)</frame_back>
<previous>System.Exec("/storage/.kodi/userdata/keymaps/prevfavorite.sh")</previous>
<next>System.Exec("/storage/.kodi/userdata/keymaps/nextfavorite.sh")</next>
<zoom>ActivateWindow(TVGuide)</zoom>
<audio>SendClick(10)</audio>
<eject>ActivateWindow(ShutdownMenu)</eject>
<three>VolumeUp</three>
<six>VolumeDown</six>
<config>VolumeUp</config>
<launch_app2_pc_icon>VolumeDown</launch_app2_pc_icon>
<launch_messenger>VolumeUp</launch_messenger>
</keyboard>
</global>
<FullscreenVideo>
<keyboard>
<frame_forward>ActivateWindow(Videos,Files)</frame_forward>
<frame_back>ActivateWindow(fullscreenvideo)</frame_back>
<previous>System.Exec("/storage/.kodi/userdata/keymaps/prevfavorite.sh")</previous>
<next>System.Exec("/storage/.kodi/userdata/keymaps/nextfavorite.sh")</next>
<zoom>ActivateWindow(TVGuide)</zoom>
<audio>SendClick(10)</audio>
<eject>ActivateWindow(ShutdownMenu)</eject>
<three>VolumeUp</three>
<six>VolumeDown</six>
<config>VolumeUp</config>
<launch_app2_pc_icon>VolumeDown</launch_app2_pc_icon>
<launch_messenger>VolumeUp</launch_messenger>
</keyboard>
</keymap>
Display More
As you can see Kodi sees the keys from the remote e.g. config or launch_messenger but the remapping is not working. You can see in the Kodi log the wrong actions are executed not mine from the keyboard.xml.
My hwdb file
Code
evdev:input:b0005v054Cp0306*
KEYBOARD_KEY_9000b=f13
KEYBOARD_KEY_90009=prog1
KEYBOARD_KEY_90002=chat
KEYBOARD_KEY_90004=homepage
KEYBOARD_KEY_9000c=subtitle
KEYBOARD_KEY_9000a=last
KEYBOARD_KEY_90003=brightnessup
Am i'm doing something wrong? Any ideas why the wrong actions are executed?