> 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/akbd.4.md).

# akbd.4

`akbd` — ADB 键盘驱动

## 名称

`akbd`

## 概要

`要将此驱动编译进内核，请将以下行放入你的内核配置文件：`

> device adb

## 描述

`akbd` 驱动为连接到 Apple Desktop Bus（ADB）的所有键盘提供支持。

## 硬件

`akbd` 驱动支持的设备包括：

* Apple Extended Keyboard
* Apple Keyboard II
* Apple iBook 键盘
* Apple PowerBook 键盘

## 事件

`akbd` 驱动在 `PMU` 系统下为以下事件向 devd(8) 发送事件：

* 电源按钮 - `Button` 子系统，`pressed` 类型。

## SYSCTL 变量

`akbd` 驱动支持以下用于配置 Fn 键的 sysctl 变量：

**`dev.akbd.%d.fn_keys_function_as_primary`** 将 Fn 键默认设置为 F 键类型。值为 0 时，F 键默认作为特殊键工作（[abtn(4)](/man/man4/abtn.4.md)），值为 1 时，默认作为 F 键工作。

## 参见

[abtn(4)](/man/man4/abtn.4.md), [adb(4)](/man/man4/adb.4.md), [cuda(4)](/man/man4/cuda.4.md), [pmu(4)](/man/man4/pmu.4.md)

## 历史

`akbd` 设备驱动出现于 FreeBSD 8.0。

## 作者

`akbd` 驱动由 Nathan Whitehorn <nwhitehorn@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/akbd.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.
