From owner-dev-commits-doc-all@freebsd.org Mon Apr 5 13:30:10 2021 Return-Path: Delivered-To: dev-commits-doc-all@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id B60CC5B93DE for ; Mon, 5 Apr 2021 13:30:10 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4FDWjt32pTz4YpF; Mon, 5 Apr 2021 13:30:10 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 53ACF193EB; Mon, 5 Apr 2021 13:30:10 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 135DUAf0090638; Mon, 5 Apr 2021 13:30:10 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 135DUA2m090635; Mon, 5 Apr 2021 13:30:10 GMT (envelope-from git) Date: Mon, 5 Apr 2021 13:30:10 GMT Message-Id: <202104051330.135DUA2m090635@gitrepo.freebsd.org> To: doc-committers@FreeBSD.org, dev-commits-doc-all@FreeBSD.org From: =?utf-8?B?RmVybmFuZG8gQXBlc3RlZ3XDrWE=?= Subject: git: b950b48ad7 - main - [handbook] Add reference to acpi_video(4) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: fernape X-Git-Repository: doc X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: b950b48ad7ac9e148e81ecffa9100494806b29a5 Auto-Submitted: auto-generated X-BeenThere: dev-commits-doc-all@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Commit messages for all branches of the doc repository List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Apr 2021 13:30:10 -0000 The branch main has been updated by fernape: URL: https://cgit.FreeBSD.org/doc/commit/?id=b950b48ad7ac9e148e81ecffa9100494806b29a5 commit b950b48ad7ac9e148e81ecffa9100494806b29a5 Author: Fernando ApesteguĂ­a AuthorDate: 2021-04-03 17:56:40 +0000 Commit: Fernando ApesteguĂ­a CommitDate: 2021-04-05 13:24:10 +0000 [handbook] Add reference to acpi_video(4) Section 12.13.1 explains how to configure ACPI. Add a small paragraph explaining how to use the acpi_video(4) driver so some laptop brightness keys can work. Approved by: gbe (mentor) Differential Revision: https://reviews.freebsd.org/D29567 --- .../content/en/books/handbook/config/_index.adoc | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/documentation/content/en/books/handbook/config/_index.adoc b/documentation/content/en/books/handbook/config/_index.adoc index 9eaca96dd2..364df797f9 100644 --- a/documentation/content/en/books/handbook/config/_index.adoc +++ b/documentation/content/en/books/handbook/config/_index.adoc @@ -1347,6 +1347,21 @@ ACPI and APM cannot coexist and should be used separately. The last one to load ACPI can be used to put the system into a sleep mode with `acpiconf`, the `-s` flag, and a number from `1` to `5`. Most users only need `1` (quick suspend to RAM) or `3` (suspend to RAM). Option `5` performs a soft-off which is the same as running `halt -p`. +The man:acpi_video[4] driver uses +link:https://uefi.org/specs/ACPI/6.4/Apx_B_Video_Extensions/Apx_B_Video_Extensions.html[ACPI +Video Extensions] to control display switching and backlight brightness. It must +be loaded after any of the DRM kernel modules. After loading the driver, +the kbd:[Fn] brightness keys will change the brightness of the screen. It is +possible to check the ACPI events by inspecting [.filename]#/var/run/devd.pipe#: + +[source,shell] +... +# cat /var/run/devd.pipe +!system=ACPI subsystem=Video type=brightness notify=62 +!system=ACPI subsystem=Video type=brightness notify=63 +!system=ACPI subsystem=Video type=brightness notify=64 +... + Other options are available using `sysctl`. Refer to man:acpi[4] and man:acpiconf[8] for more information. [[ACPI-comprob]]