> For the complete documentation index, see [llms.txt](https://book.bsdcn.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://book.bsdcn.org/man/man4/hconf.4.md).

# hconf.4

`hconf` — MS Windows 精密触控板配置驱动

## 名称

`hconf`

## 概要

要将此驱动编译进内核，请在内核配置文件中加入以下行：

> device hconf device hid device hidbus

或者，要在引导时以模块方式加载该驱动，请在 loader.conf(5) 中加入以下行：

```sh
hconf_load="YES"
```

## 描述

`hconf` 驱动提供对通用 MS Windows 精密触控板配置集合的支持。它使主机能够配置设备的两个不同方面。一个允许主机选择输入模式，另一个允许主机选择性地决定报告内容。

## SYSCTL 变量

以下参数作为 [sysctl(8)](/man/man8/sysctl.8.md) 变量可用。Debug 参数也可作为 [loader(8)](/man/man8/loader.8.md) 可调参数使用。

**`dev.hconf.*.input_mode`** HID 设备输入模式：0 = 鼠标，3 = 触控板。

**`dev.hconf.*.surface_switch`** 表面的启用/禁用开关：1 = 开启，0 = 关闭。

**`dev.hconf.*.buttons_switch`** 按钮的启用/禁用开关：1 = 开启，0 = 关闭。

**`hw.hid.hconf.debug`** 调试输出级别，0 表示禁用调试，更大的值会增加调试消息的详细程度。默认值为 0。

## 参见

[hms(4)](/man/man4/hms.4.md), [hmt(4)](/man/man4/hmt.4.md)

## 历史

`hconf` 驱动首次出现于 FreeBSD 13.0。

## 作者

`hconf` 驱动由 Vladimir Kondratyev <wulf@FreeBSD.org> 编写。开关参数支持由 Andriy Gapon <avg@FreeBSD.org> 添加。


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://book.bsdcn.org/man/man4/hconf.4.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
