1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
|
.\" $OpenBSD: hilkbd.4,v 1.4 2003/03/16 10:18:44 jmc Exp $
.\"
.\" Copyright (c) 2003 Miodrag Vallat.
.\" All rights reserved.
.\"
.\" Redistribution and use in source and binary forms, with or without
.\" modification, are permitted provided that the following conditions
.\" are met:
.\" 1. Redistribution of source code must retain the above copyright
.\" notice, this list of conditions and the following disclaimer.
.\" 2. Redistributions in binary form must reproduce the above copyright
.\" notice, this list of conditions and the following disclaimer in the
.\" documentation and/or other materials provided with the distribution.
.\"
.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
.\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
.\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
.\" IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
.\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
.\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
.\"
.\"
.Dd February 11, 2003
.Dt HILKBD 4
.Os
.Sh NAME
.Nm hilkbd
.Nd HIL keyboard driver
.Sh SYNOPSIS
.Cd "hilkbd* at hil? code ?"
.Cd "wskbd* at hilkbd? console ?"
.Cd "option HILKBD_LAYOUT=XXX"
.Sh DESCRIPTION
This driver supports HIL keyboards within the
.Xr wscons 4
framework.
It doesn't provide direct device driver entry points, but makes its
functions available through the internal
.Xr wskbd 4
interface.
.Pp
The
.Nm
driver supports a number of different key mappings.
By default, the layout corresponding to the keyboard model as probed
by the
.Nm
driver will be used.
A different layout can be chosen either with the kernel option
.Dq HILKBD_LAYOUT
at compile time, or with the
.Xr wsconsctl 8
utility (variable:
.Dq keyboard.encoding
) at runtime.
.Pp
The supported key mappings are at this time:
.Bl -hang
.It KB_FR
(
.Dq fr
) French with
.Dq dead accents .
.It KB_SV
(
.Dq sv
) Swedish.
.It KB_UK
(
.Dq uk
) British.
.It KB_US
(
.Dq us
) English / US keyboard mapping.
.El
.Sh EXAMPLES
To set a swedish keyboard mapping, use
.Ic wsconsctl -w keyboard.encoding=sv .
To set it at kernel build time, regardless of what keyboard is plugged, add
.Em option HILKBD_LAYOUT="KB_SV"
to the kernel configuration file.
.Sh SEE ALSO
.Xr hil 4 ,
.Xr intro 4 ,
.Xr wskbd 4 ,
.Xr wsconsctl 8
.Sh BUGS
The list of built-in mappings doesn't follow any logic.
It grew as people submitted what they needed.
|