Remote Control Key-value ing and remote control key-value ing
Enter the getevent command in linux
The remote control presses a key, the second line appears, and the second number is the hexadecimal value corresponding to the key,
Convert it to the 10th hexadecimal format and put it in the system \ usr \ keylayout \ Vendor_2389_Product_00a8_Version_0200.kl file,
Then, let the key correspond to 1, 2, DPAD_UP, CHANNEL_UP, and so on, or define it as F9 (TV, jump after capturing), F2 (jump after capturing a movie)
If global buttons are available, you also need to jump in system \ etc \ hotkey. xml
Different remote controls must work with different. kl files.
In linux, enter the getevent-v command.
130 | root @ n302:/# getevent-v
Add device 4:/dev/input/event2 // name of the kl file Vendor_0c45_Product_1109_Version_0100.kl
Car: 0003
Vendor 0c45
Product 1109
Version 0100:
Name: "coocaa Device coocaa Wireless Device"
Location: "usb-lm2-1/input0"
Id :""
Version: 1.0.1
Add device 5:/dev/input/event0
Car: 0010
Vendor 0001
Product 0001
Version 0100:
Name: "aml_keypad"
Location: "keypad/input0"
Id :""
Version: 1.0.1
Add device 6:/dev/input/event1
Car: 0010
Vendor 1b8e
Product 0cec
Version 0001:
Name: "cec_input"
Location :""
Id :""
Version: 1.0.1
Kl File
Example: system \ usr \ keylayout \ Vendor_0c45_Product_1109_Version_0100.kl
Key 11 0
Key 2 1
Key 3 2
Key 4 3
Key 5 4
Key 6 5
Key 7 6
Key 8 7
Key 9 8
Key 10 9
# Key 139 MENU WAKE_DROPPED
Key 158 BACK
Key 108 DPAD_DOWN
Key 103 DPAD_UP
Key 105 DPAD_LEFT
Key 106 DPAD_RIGHT
Key 28 DPAD_CENTER
Key 104 CHANNEL_UP WAKE_DROPPED
Key 109 CHANNEL_DOWN WAKE_DROPPED
Key 172 HOME WAKE_DROPPED
Key 14 DEL
Key 59 F1
Key 63 F2
Key 64 F3
Key 65 F4
Key 67 F5
Key 68 F6
Key 87 F7
Key 88 F8
Key 183 F9
Key 184 F10
Example: system \ etc \ hotkey. xml
<? Xml version = "1.0" encoding = "UTF-8"?>
<Hotkey>
<Event
Code = "00b7"
Cmd = "am start-n com. xxxxx. tvplay/com. xxxxx. tvplay. MainActivity"/>
</Hotkey>