Date: Fri, 20 Jul 2001 21:39:40 +0200 (CEST) From: Alexander Leidinger <Alexander@Leidinger.net> To: current@freebsd.org Subject: [Patch] ACPI support in rc.conf Message-ID: <200107201939.f6KJdhK30347@Magelan.Leidinger.net>
next in thread | raw e-mail | index | archive | help
[-- Attachment #1 --]
Hi,
attached is a diff for rc.i386, rc.conf.5 and defaults/rc.conf which
allows to enable the ACPI power management in rc.conf similar to
apm_enable.
It also removes a reference to the non existing acpi(9) from acpi(4).
Bye,
Alexander.
--
Reboot America.
http://www.Leidinger.net Alexander @ Leidinger.net
GPG fingerprint = C518 BC70 E67F 143F BE91 3365 79E2 9C60 B006 3FE7
[-- Attachment #2 --]
Index: etc/defaults/rc.conf
===================================================================
RCS file: /big/FreeBSD-CVS/src/etc/defaults/rc.conf,v
retrieving revision 1.117
diff -u -r1.117 rc.conf
--- etc/defaults/rc.conf 2001/07/17 14:33:52 1.117
+++ etc/defaults/rc.conf 2001/07/20 19:25:46
@@ -20,6 +20,7 @@
##############################################################
swapfile="NO" # Set to name of swapfile if aux swapfile desired.
+acpi_enable="NO" # Set to YES to enable ACPI BIOS functions (or NO).
apm_enable="NO" # Set to YES to enable APM BIOS functions (or NO).
apmd_enable="NO" # Run apmd to handle APM event from userland.
apmd_flags="" # Flags to apmd (if enabled).
Index: etc/etc.i386/rc.i386
===================================================================
RCS file: /big/FreeBSD-CVS/src/etc/etc.i386/rc.i386,v
retrieving revision 1.58
diff -u -r1.58 rc.i386
--- etc/etc.i386/rc.i386 2001/01/09 22:28:17 1.58
+++ etc/etc.i386/rc.i386 2001/07/20 19:23:04
@@ -6,6 +6,13 @@
echo -n 'Initial rc.i386 initialization:'
+case ${acpi_enable} in
+[Yy][Ee][Ss])
+ echo -n ' acpi'
+ acpiconf -e > /dev/null 2>&1
+ ;;
+esac
+
case ${apm_enable} in
[Yy][Ee][Ss])
echo -n ' apm'
Index: share/man/man4/acpi.4
===================================================================
RCS file: /big/FreeBSD-CVS/src/share/man/man4/acpi.4,v
retrieving revision 1.2
diff -u -r1.2 acpi.4
--- share/man/man4/acpi.4 2001/07/06 08:10:59 1.2
+++ share/man/man4/acpi.4 2001/07/20 19:36:15
@@ -256,8 +256,7 @@
.Sh COMPATIBILITY
ACPI is only found/supported on Intel platforms (i386/IA32 and IA64).
.Sh SEE ALSO
-.Xr config 8 ,
-.Xr acpi 9
+.Xr config 8
.Sh AUTHORS
.An -nosplit
The ACPI CA subsystem is developed and maintained by
Index: share/man/man5/rc.conf.5
===================================================================
RCS file: /big/FreeBSD-CVS/src/share/man/man5/rc.conf.5,v
retrieving revision 1.113
diff -u -r1.113 rc.conf.5
--- share/man/man5/rc.conf.5 2001/07/17 14:33:52 1.113
+++ share/man/man5/rc.conf.5 2001/07/20 19:31:16
@@ -78,12 +78,18 @@
.Dq NO
then no swapfile is installed, otherwise the value is used as the full
pathname to a file to use for additional swap space.
+.It Va acpi_enable
+.Pq Vt bool
+If set to
+.Dq YES ,
+enable support for ACPI power management support with the
+.Xr acpiconf 8
+command.
.It Va apm_enable
.Pq Vt bool
If set to
.Dq YES ,
-enable support for Automatic Power Management with
-the
+enable support for Automatic Power Management with the
.Xr apm 8
command.
.It Va apmd_enable
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200107201939.f6KJdhK30347>
