This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
|
products:sbc:vim-5:applications:ir [2026/09/14 03:59] 127.0.0.1 external edit |
products:sbc:vim-5:applications:ir [2026/09/15 02:43] (current) nick |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== | + | ====== |
| - | <WRAP important > | + | VIM 5 does not have an IR receiver. If you require this feature, you will have to attach an IR receiver to the [[products/ |
| - | This documentation is only used for Android. | + | |
| - | </ | + | |
| - | + | ||
| - | + | ||
| - | VIM4 does not have an IR receiver. If you require this feature, you will have to attach an IR receiver to the [[products/ | + | |
| - | + | ||
| - | This document guides you to add IR input keys on Android. | + | |
| ===== Hardware Configuration ===== | ===== Hardware Configuration ===== | ||
| - | '' | + | '' |
| ===== Software Configuration ===== | ===== Software Configuration ===== | ||
| - | ==== IR remote configuration | + | ==== Android |
| - | Add the IR remote configuration to the '' | + | TODO |
| - | ```diff | + | ==== Linux ==== |
| - | --- a/ | + | |
| - | +++ b/ | + | |
| - | @@ -6,11 +6,12 @@ | + | |
| - | / { | + | |
| - | custom_maps: | + | |
| - | - | + | |
| - | + | + | |
| - | map0 = <& | + | |
| - | map1 = <& | + | |
| - | map2 = <& | + | |
| - | map3 = <& | + | |
| - | + | + | |
| - | map_0: map_0{ | + | |
| - | mapname | + | |
| - | customcode = < | + | |
| - | @@ -199,5 +200,27 @@ | + | |
| - | REMOTE_KEY(0x49, | + | |
| - | REMOTE_KEY(0x4C, | + | |
| - | }; | + | |
| - | + | + | |
| - | + | + | |
| - | + | + | |
| - | + | + | |
| - | + | + | |
| - | + | + | |
| - | + | + | |
| - | + | + | |
| - | + | + | |
| - | + | + | |
| - | + | + | |
| - | + | + | |
| - | + | + | |
| - | + | + | |
| - | + | + | |
| - | + | + | |
| - | + | + | |
| - | + | + | |
| - | + | + | |
| - | + | + | |
| - | + | + | |
| - | + }; | + | |
| - | }; | + | |
| - | }; | + | |
| - | ``` | + | |
| - | === Create an Android Key Layout === | + | You need to enable IR function via [[products: |
| - | 1. The ID number of the .kl file needs to be consistent with the ID number configured within the .dtsi file. | + | Edit ''/ |
| - | For example, the ID numbers used in the previous step are '' | + | ```shell |
| - | + | fdt_overlays=ir | |
| - | ```diff | + | |
| - | + | + | |
| - | + | + | |
| ``` | ``` | ||
| - | 2. Place the Android Key Layout file into: '' | + | Reboot |
| - | For example, the ID numbers used in the previous step are '' | ||
| - | |||
| - | ```sh | ||
| - | $ vim device/ | ||
| - | ``` | ||
| - | |||
| - | ```sh | ||
| - | key 116 POWER | ||
| - | key 139 MENU | ||
| - | key 103 | ||
| - | key 108 | ||
| - | key 105 | ||
| - | key 106 | ||
| - | key 232 | ||
| - | key 114 | ||
| - | key 63 F5 | ||
| - | key 115 | ||
| - | key 158 BACK | ||
| - | key 102 HOME | ||
| - | ``` | ||
| - | |||
| - | 3. Verify New Configuration | ||
| - | |||
| - | ```shell | ||
| - | kvim4:/ # dumpsys input | ||
| - | INPUT MANAGER (dumpsys input) | ||
| - | |||
| - | Input Manager State: | ||
| - | Interactive: | ||
| - | System UI Visibility: 0x8708 | ||
| - | Pointer Speed: 0 | ||
| - | Pointer Gestures Enabled: true | ||
| - | Show Touches: false | ||
| - | Pointer Capture Enabled: false | ||
| - | ...... | ||
| - | 8: ir_keypad | ||
| - | Classes: 0x00000029 | ||
| - | Path: / | ||
| - | Enabled: true | ||
| - | Descriptor: a6893ab22828f3b8b792fe40bc0d6df2b2725f26 | ||
| - | Location: keypad/ | ||
| - | ControllerNumber: | ||
| - | UniqueId: | ||
| - | Identifier: bus=0x0010, vendor=0x0003, | ||
| - | KeyLayoutFile: | ||
| - | KeyCharacterMapFile: | ||
| - | ConfigurationFile: | ||
| - | HaveKeyboardLayoutOverlay: | ||
| - | VideoDevice: | ||
| - | ``` | ||
| - | As shown above, when the string '' | ||