Changeset View
Changeset View
Standalone View
Standalone View
documentation/content/en/books/handbook/config/_index.adoc
Show First 20 Lines • Show All 67 Lines • ▼ Show 20 Lines | |||||
* Understand UNIX(R) and FreeBSD basics (crossref:basics[basics,FreeBSD Basics]). | * Understand UNIX(R) and FreeBSD basics (crossref:basics[basics,FreeBSD Basics]). | ||||
* Be familiar with the basics of kernel configuration and compilation (crossref:kernelconfig[kernelconfig,Configuring the FreeBSD Kernel]). | * Be familiar with the basics of kernel configuration and compilation (crossref:kernelconfig[kernelconfig,Configuring the FreeBSD Kernel]). | ||||
[[configtuning-starting-services]] | [[configtuning-starting-services]] | ||||
== Starting Services | == Starting Services | ||||
Many users install third party software on FreeBSD from the Ports Collection and require the installed services to be started upon system initialization. | Many users install third party software on FreeBSD from the Ports Collection and require the installed services to be started upon system initialization. | ||||
Services, such as package:mail/postfix[] or package:www/apache22[] are just two of the many software packages which may be started during system initialization. | Services, such as package:mail/postfix[] or package:www/apache24[] are just two of the many software packages which may be started during system initialization. | ||||
This section explains the procedures available for starting third party software. | This section explains the procedures available for starting third party software. | ||||
In FreeBSD, most included services, such as man:cron[8], are started through the system startup scripts. | In FreeBSD, most included services, such as man:cron[8], are started through the system startup scripts. | ||||
=== Extended Application Configuration | === Extended Application Configuration | ||||
Now that FreeBSD includes [.filename]#rc.d#, configuration of application startup is easier and provides more features. | Now that FreeBSD includes [.filename]#rc.d#, configuration of application startup is easier and provides more features. | ||||
Using the key words discussed in <<configtuning-rcd>>, applications can be set to start after certain other services and extra flags can be passed through [.filename]#/etc/rc.conf# in place of hard coded flags in the startup script. | Using the key words discussed in <<configtuning-rcd>>, applications can be set to start after certain other services and extra flags can be passed through [.filename]#/etc/rc.conf# in place of hard coded flags in the startup script. | ||||
▲ Show 20 Lines • Show All 1,614 Lines • ▼ Show 20 Lines | |||||
ACPI and APM cannot coexist and should be used separately. | ACPI and APM cannot coexist and should be used separately. | ||||
The last one to load will terminate if the driver notices the other is running. | The last one to load will terminate if the driver notices the other is running. | ||||
==== | ==== | ||||
ACPI can be used to put the system into a sleep mode with `acpiconf`, the `-s` flag, and a number from `1` to `5`. | 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). | 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`. | 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. | The man:acpi_video[4] driver uses link:https://uefi.org/htmlspecs/ACPI_Spec_6_4_html/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. | 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. | 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#: | It is possible to check the ACPI events by inspecting [.filename]#/var/run/devd.pipe#: | ||||
[source,shell] | [source,shell] | ||||
... | ... | ||||
# cat /var/run/devd.pipe | # cat /var/run/devd.pipe | ||||
!system=ACPI subsystem=Video type=brightness notify=62 | !system=ACPI subsystem=Video type=brightness notify=62 | ||||
▲ Show 20 Lines • Show All 257 Lines • ▼ Show 20 Lines | |||||
Do not send a PR without emailing {freebsd-acpi} first as it is likely that the problem has been reported before. | Do not send a PR without emailing {freebsd-acpi} first as it is likely that the problem has been reported before. | ||||
[[ACPI-References]] | [[ACPI-References]] | ||||
=== References | === References | ||||
More information about ACPI may be found in the following locations: | More information about ACPI may be found in the following locations: | ||||
* The FreeBSD ACPI Mailing List Archives (https://lists.freebsd.org/pipermail/freebsd-acpi/[https://lists.freebsd.org/pipermail/freebsd-acpi/]) | * The FreeBSD ACPI Mailing List Archives (https://lists.freebsd.org/pipermail/freebsd-acpi/[https://lists.freebsd.org/pipermail/freebsd-acpi/]) | ||||
* The ACPI 2.0 Specification (http://acpi.info/spec.htm[http://acpi.info/spec.htm]) | * The ACPI 6.4 Specification (https://uefi.org/sites/default/files/resources/ACPI_Spec_6_4_Jan22.pdf[https://uefi.org/sites/default/files/resources/ACPI_Spec_6_4_Jan22.pdf]) | ||||
* man:acpi[4], man:acpi_thermal[4], man:acpidump[8], man:iasl[8], and man:acpidb[8] | * man:acpi[4], man:acpi_thermal[4], man:acpidump[8], man:iasl[8], and man:acpidb[8] |