From owner-freebsd-current Fri Jul 20 12:40:41 2001 Delivered-To: freebsd-current@freebsd.org Received: from mout0.freenet.de (mout0.freenet.de [194.97.50.131]) by hub.freebsd.org (Postfix) with ESMTP id 7A39937B407 for ; Fri, 20 Jul 2001 12:40:36 -0700 (PDT) (envelope-from Alexander@leidinger.net) Received: from [194.97.50.138] (helo=mx0.freenet.de) by mout0.freenet.de with esmtp (Exim 3.30 #3) id 15Ng8Z-0005hK-00 for current@freebsd.org; Fri, 20 Jul 2001 21:40:35 +0200 Received: from b8034.pppool.de ([213.7.128.52] helo=Magelan.Leidinger.net) by mx0.freenet.de with esmtp (Exim 3.30 #3) id 15Ng8Y-0007rO-00 for current@freebsd.org; Fri, 20 Jul 2001 21:40:35 +0200 Received: from Leidinger.net (netchild@localhost [127.0.0.1]) by Magelan.Leidinger.net (8.11.4/8.11.4) with ESMTP id f6KJdhK30347 for ; Fri, 20 Jul 2001 21:39:44 +0200 (CEST) (envelope-from netchild@Leidinger.net) Message-Id: <200107201939.f6KJdhK30347@Magelan.Leidinger.net> Date: Fri, 20 Jul 2001 21:39:40 +0200 (CEST) From: Alexander Leidinger Subject: [Patch] ACPI support in rc.conf To: current@freebsd.org MIME-Version: 1.0 Content-Type: MULTIPART/mixed; BOUNDARY="0-1804289383-995657985=:787" Content-Transfer-Encoding: BINARY Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --0-1804289383-995657985=:787 Content-Type: TEXT/plain; charset=us-ascii 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 --0-1804289383-995657985=:787 Content-Type: TEXT/plain; name="rc-acpi.diff" Content-Disposition: attachment; filename="rc-acpi.diff" 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 --0-1804289383-995657985=:787-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message