Debian Codegraph @

utils/keytable/ir-keytable.1.in

raw
1 .TH "IR\-KEYTABLE" "1" "Fri Oct 3 2014" "v4l-utils @MAN_PACKAGE_VERSION@" "User Commands"
2 .SH NAME
3 ir\-keytable \- a swiss\-knife tool to handle Remote Controllers.
4 .SH SYNOPSIS
5 .B ir\-keytable
6 [\fIOPTION\fR]...
7 .SH DESCRIPTION
8 ir\-keytable is a tool that lists Remote Controller devices, loads
9 rc keymaps, tests events, and adjusts other Remote Controller options.
10 .PP
11 Rather than loading a rc keymap, it is also possible to set protocol decoders
12 and set rc scancode to keycode mappings directly.
13 .PP
14 Note: You need to have read permissions on /dev/input for most of the
15 options to work.
16 .SH OPTIONS
17 .TP
18 \fB\-a\fR, \fB\-\-auto\-load\fR=\fICFGFILE\fR
19 Auto\-load keymaps, based on a configuration file. Only works with
20 \fB\-\-sysdev\fR.
21 .TP
22 \fB\-c\fR, \fB\-\-clear\fR
23 Clears the scancode to keycode mappings.
24 .TP
25 \fB\-D\fR, \fB\-\-delay\fR=\fIDELAY\fR
26 Sets the delay before repeating a keystroke.
27 .TP
28 \fB\-k\fR, \fB\-\-set\-key\fR=\fISCANKEY\fR
29 Set scancode to keycode mapping.
30 .TP
31 \fB\-p\fR, \fB\-\-protocol\fR=\fIPROTOCOL\fR
32 Comma separated list of kernel protocols or BPF protocol to enable. All
33 other protocols are disabled.
34 .TP
35 \fB\-e\fR, \fB\-\-parameter\fR=\fIPARAMETER\fR
36 Comma separated list of parameters for the BPF protocol.
37 .TP
38 \fB\-P\fR, \fB\-\-period\fR\=\fIPERIOD\fR
39 Sets the period to repeat a keystroke.
40 .TP
41 \fB\-r\fR, \fB\-\-read\fR
42 Read and show the current scancode to keycode mapping.
43 .TP
44 \fB\-s\fR, \fB\-\-sysdev\fR=\fISYSDEV\fR
45 rc device to control, defaults to \fIrc0\fR if not specified.
46 .TP
47 \fB\-t\fR, \fB\-\-test\fR
48 test if the rc device is generating events
49 .TP
50 \fB\-v\fR, \fB\-\-verbose\fR
51 Enables debug messages.
52 .TP
53 \fB\-w\fR, \fB\-\-write\fR=\fIKEYMAP\fR
54 Reads the protocols and scancode to keycode mapping from the \fIKEYMAP\fR file,
55 and enables those on the rc device.
56 .TP
57 \fB\-?\fR, \fB\-\-help\fR
58 Prints the help message
59 .TP
60 \fB\-\-usage\fR
61 Give a short usage message
62 .TP
63 \fB\-V\fR, \fB\-\-version\fR
64 print the v4l2\-utils version
65 .PP
66 Mandatory or optional arguments to long options are also mandatory or optional
67 for any corresponding short options. Options can be combined together.
68 .SS The options arguments are:
69 .IP \fISYSDEV\fR
70 the rc device as found at /sys/class/rc
71 .IP \fIKEYMAP\fR
72 a toml keymap file with a list of protocols and scancodes to keycode mappings.
73 The format is described in rc_keymap(5).
74 .IP \fISCANKEY\fR
75 a set of scancode1=keycode1,scancode2=keycode2.. value pairs
76 .IP \fIPROTOCOL\fR
77 Comma separated list of kernel protocols to be enabled (case insensitive).
78 Supported kernel protocols are: \fBnec\fR, \fBrc\-5\fR, \fBrc\-6\fR, \fBjvc\fR,
79 \fBsony\fR, \fBsanyo\fR, \fBrc\-5\-sz\fR, \fBsharp\fR, \fBmce\-kbd\fR,
80 \fBxmp\fR, \fBimon\fR, \fBrc\-mm\fR, \fBother\fR, \fBall\fR. It can also be a BPF protocol,
81 e.g. \fBmanchester\fR, \fBpulse_distance\fR, \fBpulse_length\fR.
82 If it does not match any of these, it is taken to be the path of BPF decoder
83 to be loaded.
84 .IP \fIPARAMETERS\fR
85 Comma separated list of parameters for the BPF protocol being loaded. They have the format of name=value, where value is an number.
86 .IP \fIDELAY\fR
87 Delay before repeating a keystroke
88 .IP \fIPERIOD\fR
89 Period to repeat a keystroke
90 .IP \fICFGFILE\fR
91 configuration file that associates a driver/keymap name with a keymap file
92 .SH EXIT STATUS
93 On success, it returns 0. Otherwise, it will return the error code.
94 .SH EXAMPLES
95 To list all connected Remote Controller devices:
96 .br
97 \fBir\-keytable\fR
98 .PP
99 To clean the keycode mapping and use a newer one:
100 .br
101 \fBir\-keytable \-c \-w /etc/rc_keymaps/nec_terratec_cinergy_xs.toml\fR
102 .PP
103 To append more codes to the existing table:
104 .br
105 \fBir\-keytable \-w /etc/rc_keymaps/nec_terratec_cinergy_xs.toml\fR
106 .PP
107 To read the current scancode to keycode mapping on the second remote controller:
108 .br
109 \fBir\-keytable \-s rc1 \-r\fR
110 .PP
111 To enable NEC protocol and load a BPF protocol, with a parameter for the BPF protocol:
112 .br
113 \fBir\-keytable \-p nec,pulse_distance \-e pulse_header=9000
114 .PP
115 If you do not know what protocol a remote uses, it can be helpful to first
116 try with all kernel decoders enabled. The decoded protocol and scancodes
117 will be displayed in the output:
118 .br
119 \fBir\-keytable \-c \-p all \-t\fR
120
121 .SH BUGS
122 Report bugs to \fBLinux Media Mailing List <[email protected]>\fR
123 .SH COPYRIGHT
124 Copyright (c) 2010\-2014 by Mauro Carvalho Chehab.
125 .PP
126 License GPLv2: GNU GPL version 2 <http://gnu.org/licenses/gpl.html>.
127 .br
128 This is free software: you are free to change and redistribute it.
129 There is NO WARRANTY, to the extent permitted by law.
130 .SH SEE ALSO
131 The keymap format is described in rc_keymap(5).
132
133 To transmit IR or receive raw IR, see ir\-ctl(1).