powermgmt-base/0000755000000000000000000000000011131312422010663 5ustar powermgmt-base/ChangeLog0000644000000000000000000004032110503312434012442 0ustar ------------------------------------------------------------------------ r2993 | cph | 2006-09-17 14:32:41 -0400 (Sun, 17 Sep 2006) | 2 lines Changed paths: M /trunk/debian/powermgmt-base/debian/powermgmt-base.postinst Fix MAKEDEV reference to work when makedev package not installed. ------------------------------------------------------------------------ r2979 | cph | 2006-09-08 22:06:32 -0400 (Fri, 08 Sep 2006) | 2 lines Changed paths: M /trunk/debian/powermgmt-base/debian/control Bump to version 5. ------------------------------------------------------------------------ r2978 | cph | 2006-09-08 22:05:15 -0400 (Fri, 08 Sep 2006) | 2 lines Changed paths: M /trunk/debian/powermgmt-base/debian/compat Bump to version 5. ------------------------------------------------------------------------ r2977 | cph | 2006-09-08 22:03:58 -0400 (Fri, 08 Sep 2006) | 1 line Changed paths: M /trunk/debian/powermgmt-base/debian/powermgmt-base.preinst M /trunk/debian/powermgmt-base/debian/powermgmt-base.prerm Updates requested by Marco d'Itri. ------------------------------------------------------------------------ r2976 | cph | 2006-09-08 22:00:49 -0400 (Fri, 08 Sep 2006) | 1 line Changed paths: M /trunk/debian/powermgmt-base/debian/control M /trunk/debian/powermgmt-base/debian/powermgmt-base.postinst D /trunk/debian/powermgmt-base/debian/powermgmt-base.postrm Updates requested by Marco d'Itri. ------------------------------------------------------------------------ r2970 | cph | 2006-08-21 09:10:03 -0400 (Mon, 21 Aug 2006) | 3 lines Changed paths: M /trunk/debian/powermgmt-base/src/on_ac_power Must explicitly specify /sbin/*_available because /sbin isn't normally on the path. ------------------------------------------------------------------------ r2967 | cph | 2006-08-17 00:15:01 -0400 (Thu, 17 Aug 2006) | 2 lines Changed paths: A /trunk/debian/powermgmt-base/debian/powermgmt-base.links Add backwards-compatibility link for on_ac_power. ------------------------------------------------------------------------ r2955 | cph | 2006-08-14 22:41:53 -0400 (Mon, 14 Aug 2006) | 1 line Changed paths: M /trunk/debian/powermgmt-base/debian/rules _Really_ set up CDBS. ------------------------------------------------------------------------ r2954 | cph | 2006-08-14 22:31:51 -0400 (Mon, 14 Aug 2006) | 1 line Changed paths: M /trunk/debian/powermgmt-base/debian/control D /trunk/debian/powermgmt-base/debian/powermgmt-base.devfs.apm M /trunk/debian/powermgmt-base/debian/powermgmt-base.dirs M /trunk/debian/powermgmt-base/debian/rules M /trunk/debian/powermgmt-base/src/Makefile Updates for version 1.25. ------------------------------------------------------------------------ r2858 | cph | 2006-03-23 00:58:05 -0500 (Thu, 23 Mar 2006) | 1 line Changed paths: M /trunk/debian/powermgmt-base/debian/powermgmt-base.postinst M /trunk/debian/powermgmt-base/debian/powermgmt-base.prerm Fix typo in previous change. ------------------------------------------------------------------------ r2857 | cph | 2006-03-23 00:51:48 -0500 (Thu, 23 Mar 2006) | 1 line Changed paths: M /trunk/debian/powermgmt-base/debian/powermgmt-base.postinst M /trunk/debian/powermgmt-base/debian/powermgmt-base.prerm Add code to delete obsolete modprobe file. ------------------------------------------------------------------------ r2856 | cph | 2006-03-23 00:39:35 -0500 (Thu, 23 Mar 2006) | 1 line Changed paths: M /trunk/debian/powermgmt-base/src/acpi_available.c M /trunk/debian/powermgmt-base/src/apm_available.c Add missing include of . ------------------------------------------------------------------------ r2853 | cph | 2006-03-22 12:51:11 -0500 (Wed, 22 Mar 2006) | 1 line Changed paths: D /trunk/debian/powermgmt-base/debian/powermgmt-base.apm.modprobe Not needed. ------------------------------------------------------------------------ r2852 | cph | 2006-03-22 12:49:41 -0500 (Wed, 22 Mar 2006) | 2 lines Changed paths: M /trunk/debian/powermgmt-base/debian/powermgmt-base.postinst Eliminate unnecessary handling of udev; MAKEDEV takes care of this. ------------------------------------------------------------------------ r2851 | cph | 2006-03-22 12:44:12 -0500 (Wed, 22 Mar 2006) | 2 lines Changed paths: M /trunk/debian/powermgmt-base/debian/powermgmt-base.postinst Eliminate now-unused debconf calls. ------------------------------------------------------------------------ r2777 | cph | 2006-01-03 01:37:07 -0500 (Tue, 03 Jan 2006) | 2 lines Changed paths: M /trunk/debian/powermgmt-base/debian/powermgmt-base.postinst Don't create APM device if udev controls /dev. ------------------------------------------------------------------------ r2775 | cph | 2006-01-03 01:04:00 -0500 (Tue, 03 Jan 2006) | 1 line Changed paths: D /trunk/debian/powermgmt-base/debian/po D /trunk/debian/powermgmt-base/debian/powermgmt-base.config D /trunk/debian/powermgmt-base/debian/powermgmt-base.templates Remove unused debconf stuff. ------------------------------------------------------------------------ r2774 | cph | 2006-01-03 01:02:33 -0500 (Tue, 03 Jan 2006) | 2 lines Changed paths: A /trunk/debian/powermgmt-base/debian/powermgmt-base.apm.modprobe Add control file for module-init-tools. ------------------------------------------------------------------------ r2773 | cph | 2006-01-03 00:52:54 -0500 (Tue, 03 Jan 2006) | 2 lines Changed paths: M /trunk/debian/powermgmt-base/debian/control Bump standards-version. ------------------------------------------------------------------------ r2772 | cph | 2006-01-03 00:41:13 -0500 (Tue, 03 Jan 2006) | 2 lines Changed paths: M /trunk/debian/powermgmt-base/man/acpi_available.1 Expand ACPI acronym and document new return value. ------------------------------------------------------------------------ r2771 | cph | 2006-01-03 00:41:00 -0500 (Tue, 03 Jan 2006) | 2 lines Changed paths: M /trunk/debian/powermgmt-base/man/apm_available.1 Expand APM acronym and document new return value. ------------------------------------------------------------------------ r2770 | cph | 2006-01-03 00:36:01 -0500 (Tue, 03 Jan 2006) | 2 lines Changed paths: M /trunk/debian/powermgmt-base/src/acpi_available.c Generate error if any arguments are given. ------------------------------------------------------------------------ r2769 | cph | 2006-01-03 00:34:32 -0500 (Tue, 03 Jan 2006) | 2 lines Changed paths: M /trunk/debian/powermgmt-base/src/apm_available.c Generate error if any arguments are given. ------------------------------------------------------------------------ r2768 | cph | 2006-01-03 00:31:03 -0500 (Tue, 03 Jan 2006) | 2 lines Changed paths: M /trunk/debian/powermgmt-base/debian/copyright Update FSF address. ------------------------------------------------------------------------ r2767 | cph | 2006-01-03 00:21:36 -0500 (Tue, 03 Jan 2006) | 2 lines Changed paths: M /trunk/debian/powermgmt-base/src/on_ac_power Patch to fix Bug#260976. ------------------------------------------------------------------------ r2600 | cph | 2005-03-31 15:25:56 -0500 (Thu, 31 Mar 2005) | 2 lines Changed paths: M /trunk/debian/powermgmt-base/src/on_ac_power Patch from Thom May for G4/G5. ------------------------------------------------------------------------ r2295 | cph | 2004-06-07 09:36:33 -0400 (Mon, 07 Jun 2004) | 2 lines Changed paths: A /trunk/debian/powermgmt-base/debian/po/tr.po New translation. ------------------------------------------------------------------------ r2264 | cph | 2004-03-30 17:51:54 -0500 (Tue, 30 Mar 2004) | 4 lines Changed paths: M /trunk/debian/powermgmt-base/debian/powermgmt-base.config M /trunk/debian/powermgmt-base/debian/powermgmt-base.postinst M /trunk/debian/powermgmt-base/debian/powermgmt-base.templates M /trunk/debian/powermgmt-base/debian/rules Don't use debconf to inform user about creation of APM device; just use echo. Also, pass "-v" to MAKEDEV so that the specific file name is shown. ------------------------------------------------------------------------ r2261 | cph | 2004-03-24 16:11:28 -0500 (Wed, 24 Mar 2004) | 2 lines Changed paths: M /trunk/debian/powermgmt-base/debian/powermgmt-base.config M /trunk/debian/powermgmt-base/debian/powermgmt-base.postinst M /trunk/debian/powermgmt-base/debian/powermgmt-base.templates Don't ask for permission to create APM BIOS device; just do it. ------------------------------------------------------------------------ r2206 | cph | 2003-12-22 23:31:10 -0500 (Mon, 22 Dec 2003) | 2 lines Changed paths: M /trunk/debian/powermgmt-base/debian/powermgmt-base.templates Reword the template into something resembling English. ------------------------------------------------------------------------ r2004 | cph | 2003-09-17 11:59:06 -0400 (Wed, 17 Sep 2003) | 2 lines Changed paths: A /trunk/debian/powermgmt-base/debian/po/fr.po Add French translation. ------------------------------------------------------------------------ r1987 | cph | 2003-09-05 13:30:33 -0400 (Fri, 05 Sep 2003) | 2 lines Changed paths: A /trunk/debian/powermgmt-base/debian/po A /trunk/debian/powermgmt-base/debian/po/POTFILES.in A /trunk/debian/powermgmt-base/debian/po/templates.pot M /trunk/debian/powermgmt-base/debian/powermgmt-base.templates Use po-debconf. ------------------------------------------------------------------------ r1986 | cph | 2003-09-05 13:30:04 -0400 (Fri, 05 Sep 2003) | 2 lines Changed paths: M /trunk/debian/powermgmt-base/debian/control A /trunk/debian/powermgmt-base/debian/powermgmt-base.apm.modules D /trunk/debian/powermgmt-base/debian/powermgmt-base.modules M /trunk/debian/powermgmt-base/debian/rules Use --name for dh_installmodules. ------------------------------------------------------------------------ r1864 | cph | 2003-04-17 00:24:10 -0400 (Thu, 17 Apr 2003) | 2 lines Changed paths: M /trunk/debian/powermgmt-base/debian/powermgmt-base.postinst Fix bug that occurs on non-linux systems. ------------------------------------------------------------------------ r1843 | cph | 2003-04-04 23:07:06 -0500 (Fri, 04 Apr 2003) | 2 lines Changed paths: M /trunk/debian/powermgmt-base/debian/control Update standards-version to 3.5.9. ------------------------------------------------------------------------ r1836 | cph | 2003-04-04 22:02:24 -0500 (Fri, 04 Apr 2003) | 2 lines Changed paths: M /trunk/debian/powermgmt-base/man/acpi_available.1 Fix typo. ------------------------------------------------------------------------ r1780 | cph | 2002-11-28 10:28:30 -0500 (Thu, 28 Nov 2002) | 2 lines Changed paths: M /trunk/debian/apmd/debian/control M /trunk/debian/powermgmt-base/debian/control Bump to standards version 3.5.8. ------------------------------------------------------------------------ r1772 | cph | 2002-11-23 23:29:38 -0500 (Sat, 23 Nov 2002) | 2 lines Changed paths: M /trunk/debian/powermgmt-base/debian/powermgmt-base.postrm M /trunk/debian/powermgmt-base/debian/powermgmt-base.preinst Work around consequence of bug in version 1.9. ------------------------------------------------------------------------ r1771 | cph | 2002-11-23 23:24:03 -0500 (Sat, 23 Nov 2002) | 2 lines Changed paths: M /trunk/debian/powermgmt-base/debian/powermgmt-base.postrm Work around consequence of bug in version 1.9. ------------------------------------------------------------------------ r1770 | cph | 2002-11-23 23:16:26 -0500 (Sat, 23 Nov 2002) | 2 lines Changed paths: M /trunk/debian/powermgmt-base/debian/powermgmt-base.dirs Fix bug: "etc/devfs/conf.d/apm" isn't a directory. ------------------------------------------------------------------------ r1736 | cph | 2002-11-01 15:59:26 -0500 (Fri, 01 Nov 2002) | 2 lines Changed paths: M /trunk/debian/powermgmt-base/src/on_ac_power Add tweak to support APM version number on 2.5 kernel series. ------------------------------------------------------------------------ r1705 | cph | 2002-10-15 23:18:36 -0400 (Tue, 15 Oct 2002) | 2 lines Changed paths: M /trunk/debian/powermgmt-base/Makefile M /trunk/debian/powermgmt-base/debian/rules M /trunk/debian/powermgmt-base/src/Makefile Move install knowledge into makefiles. ------------------------------------------------------------------------ r1704 | cph | 2002-10-15 23:12:42 -0400 (Tue, 15 Oct 2002) | 3 lines Changed paths: M /trunk/debian/powermgmt-base/Makefile A /trunk/debian/powermgmt-base/debian/compat M /trunk/debian/powermgmt-base/debian/control A /trunk/debian/powermgmt-base/debian/powermgmt-base.dirs A /trunk/debian/powermgmt-base/debian/powermgmt-base.manpages M /trunk/debian/powermgmt-base/debian/powermgmt-base.postrm M /trunk/debian/powermgmt-base/debian/rules M /trunk/debian/powermgmt-base/src/Makefile Changes to support DEB_BUILD_OPTIONS and to work around problem with debconf/debhelper interaction. ------------------------------------------------------------------------ r1699 | cph | 2002-10-05 01:20:40 -0400 (Sat, 05 Oct 2002) | 3 lines Changed paths: M /trunk/debian/powermgmt-base/src/on_ac_power Rewrite ACPI algorithm to search the ac_adapter directory looking for valid adapters. This handles systems with multiple adapters. ------------------------------------------------------------------------ r1698 | cph | 2002-10-04 21:13:46 -0400 (Fri, 04 Oct 2002) | 2 lines Changed paths: M /trunk/debian/powermgmt-base/src/on_ac_power Add support for /proc/pmu (patch from David Kennedy). ------------------------------------------------------------------------ r1534 | cph | 2002-05-04 22:22:16 -0400 (Sat, 04 May 2002) | 2 lines Changed paths: M /trunk/debian/powermgmt-base/Makefile New version number. ------------------------------------------------------------------------ r1533 | cph | 2002-05-04 22:21:34 -0400 (Sat, 04 May 2002) | 2 lines Changed paths: M /trunk/debian/powermgmt-base/src/on_ac_power Patch to handle new /proc organization for ACPI. ------------------------------------------------------------------------ r1532 | cph | 2002-05-04 22:07:07 -0400 (Sat, 04 May 2002) | 2 lines Changed paths: M /trunk/debian/powermgmt-base/Makefile Rewrite the tarball rules in the style that I prefer. ------------------------------------------------------------------------ r1531 | cph | 2002-05-04 21:57:21 -0400 (Sat, 04 May 2002) | 2 lines Changed paths: M /trunk/debian/powermgmt-base/Makefile Rewrite the tarball rules in the style that I prefer. ------------------------------------------------------------------------ r1530 | cph | 2002-05-04 21:52:20 -0400 (Sat, 04 May 2002) | 2 lines Changed paths: M /trunk/debian/powermgmt-base/Makefile Update version; canonicalize tarball name. ------------------------------------------------------------------------ r1529 | cph | 2002-05-04 21:38:17 -0400 (Sat, 04 May 2002) | 2 lines Changed paths: M /trunk/debian/powermgmt-base/debian/control New maintainer: me. ------------------------------------------------------------------------ r1528 | cph | 2002-05-04 21:37:25 -0400 (Sat, 04 May 2002) | 2 lines Changed paths: A /trunk/debian/powermgmt-base A /trunk/debian/powermgmt-base/Makefile A /trunk/debian/powermgmt-base/debian A /trunk/debian/powermgmt-base/debian/control A /trunk/debian/powermgmt-base/debian/copyright A /trunk/debian/powermgmt-base/debian/powermgmt-base.README.Debian A /trunk/debian/powermgmt-base/debian/powermgmt-base.config A /trunk/debian/powermgmt-base/debian/powermgmt-base.devfs.apm A /trunk/debian/powermgmt-base/debian/powermgmt-base.modules A /trunk/debian/powermgmt-base/debian/powermgmt-base.postinst A /trunk/debian/powermgmt-base/debian/powermgmt-base.postrm A /trunk/debian/powermgmt-base/debian/powermgmt-base.preinst A /trunk/debian/powermgmt-base/debian/powermgmt-base.prerm A /trunk/debian/powermgmt-base/debian/powermgmt-base.templates A /trunk/debian/powermgmt-base/debian/rules A /trunk/debian/powermgmt-base/man A /trunk/debian/powermgmt-base/man/acpi_available.1 A /trunk/debian/powermgmt-base/man/apm_available.1 A /trunk/debian/powermgmt-base/man/on_ac_power.1 A /trunk/debian/powermgmt-base/src A /trunk/debian/powermgmt-base/src/Makefile A /trunk/debian/powermgmt-base/src/acpi_available.c A /trunk/debian/powermgmt-base/src/apm_available.c A /trunk/debian/powermgmt-base/src/on_ac_power Import from Thomas Hood. ------------------------------------------------------------------------ powermgmt-base/debian/0000755000000000000000000000000012032605032012110 5ustar powermgmt-base/debian/copyright0000644000000000000000000000156211305432073014054 0ustar powermgmt --------- Copyright (c) 2002 J. D. Thomas Hood This package is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; version 2 dated June, 1991. This package is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this package; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. On Debian GNU/Linux systems, the complete text of the GNU General Public License can be found in `/usr/share/common-licenses/GPL-2'. powermgmt-base/debian/powermgmt-base.preinst0000644000000000000000000000062010663436541016464 0ustar #!/bin/sh -e #DEBHELPER# case "${1}" in (install|upgrade) if [ -f /etc/modutils/apmd ]; then if [ -f /etc/modutils/apm ]; then # retire mv -f /etc/modutils/apmd /etc/modutils/apmd.dpkg-old else # kidnap mv -f /etc/modutils/apmd /etc/modutils/apm fi fi ;; (abort-upgrade) ;; (*) echo "preinst called with unknown argument \`$1'" >&2 exit 1 ;; esac powermgmt-base/debian/powermgmt-base.dirs0000644000000000000000000000000510663436524015737 0ustar sbin powermgmt-base/debian/changelog0000644000000000000000000002363312032605032013771 0ustar powermgmt-base (1.31build1) quantal; urgency=low * Rebuild for new armel compiler default of ARMv5t. -- Colin Watson Tue, 02 Oct 2012 16:36:58 +0100 powermgmt-base (1.31) unstable; urgency=low * debian/control: Remove dependency on modutils. * debian/powermgmt-base.postinst: Don't use /sbin/MAKEDEV. (closes: Bug#449049) * on_ac_power: Use /sys/class/power_supply if present on *all* systems, not just acpi systems, as this should be the preferred abstraction on all platforms. LP: #321219. (closes: Bug#555905) * debian/control: Reverse order of udev and makedev. (closes: Bug#546879) * debian/control: Bump standards-version (no changes). * debian/copyright: Update GPL reference to include version. -- Chris Hanson Wed, 02 Dec 2009 01:33:15 -0800 powermgmt-base (1.30+nmu1) unstable; urgency=low * NMU * on_ac_power: Use /sys/class/power_supply on 2.6.25+ systems where /proc/acpi/ac_adaptor is no longer present. Closes: #473629 (Patch by Vefa Bicakci.) -- Joey Hess Mon, 01 Sep 2008 13:27:22 -0400 powermgmt-base (1.30) unstable; urgency=low * debian/control: bump standards-version (no changes). * Use /sbin/MAKEDEV rather than /dev/MAKEDEV. (closes: Bug#449049) -- Chris Hanson Sun, 17 Feb 2008 15:43:30 -0500 powermgmt-base (1.29) unstable; urgency=low * Fix MAKEDEV reference to work when makedev package not installed. (closes: Bug#387943) -- Chris Hanson Sun, 17 Sep 2006 14:33:14 -0400 powermgmt-base (1.28) unstable; urgency=low [requested by Marco d'Itri:] * debian/control: change "makedev" dependency to "makedev|udev" * debian/powermgmt-base.postrm: removed * debian/powermgmt-base.postinst: removed devfs stuff [other:] * debian/compat, debian/control: bump to version 5 -- Chris Hanson Fri, 8 Sep 2006 22:04:59 -0400 powermgmt-base (1.27) unstable; urgency=low * on_ac_power must use explicit /sbin/ prefixes to refer to *_available, since /sbin isn't normally on the path. (closes: Bug#383981) -- Chris Hanson Mon, 21 Aug 2006 09:13:31 -0400 powermgmt-base (1.26) unstable; urgency=low * Make /usr/bin/on_ac_power be a symlink to the new location in /sbin, for backwards compatibility. -- Chris Hanson Thu, 17 Aug 2006 00:15:54 -0400 powermgmt-base (1.25) unstable; urgency=low * Use cdbs for debian/rules. * Move executables to /sbin. (closes: Bug#367894) * Eliminate obsolete devfs files. (closes: Bug#374309) * Add missing dependency for depmod. (closes: Bug#375886) -- Chris Hanson Mon, 14 Aug 2006 22:30:20 -0400 powermgmt-base (1.24) unstable; urgency=low * debian/powermgmt-base.postinst: eliminate remnants of now-unused debconf calls. (closes: Bug#358393) * Don't install /etc/modprobe.d/apm. (closes: Bug#349056) * Don't handle udev specially. (closes: Bug#349058) * Add "#include " to C programs to provide declaration of exit(). -- Chris Hanson Thu, 23 Mar 2006 00:40:35 -0500 powermgmt-base (1.23) unstable; urgency=low * Add support for module-init-tools. (closes: Bug#295747) * Apply patch to eliminate uninteresting log messages. (closes: Bug#260976) * Eliminate unused debconf files .template and .config. (closes: Bug#338137, Bug#264610, Bug#271184, Bug#308462, Bug#317122, Bug#332362) * Generate error if any arguments are given to acpi_available or apm_available. (closes: Bug#325236) * Document APM and ACPI acronyms on relevant man pages. (closes: Bug#256761, Bug#261573) * Don't create APM device if udev controls /dev. * Update FSF address. * Bump standards-version (no changes). -- Chris Hanson Tue, 3 Jan 2006 01:37:21 -0500 powermgmt-base (1.22) unstable; urgency=low From Thom May : * Ensure on_ac_power works correctly on desktop G4/G5 systems. (closes: Bug#295932) -- Chris Hanson Thu, 31 Mar 2005 15:27:16 -0500 powermgmt-base (1.21) unstable; urgency=low * New Turkish translation. (closes: Bug#249127) -- Chris Hanson Mon, 7 Jun 2004 09:34:44 -0400 powermgmt-base (1.20) unstable; urgency=low * Don't use debconf to inform user about creation of APM device; just use echo. Also, pass "-v" to MAKEDEV so that the specific file name is shown. (closes: Bug#240229) -- Chris Hanson Sun, 28 Mar 2004 21:18:08 -0500 powermgmt-base (1.19) unstable; urgency=low * Acknowledge NMU. (closes: Bug#228902, Bug#211907, Bug#216374, Bug#233573) * Reword the debconf template into something resembling English. (closes: Bug#215032) * Don't ask for permission to create APM BIOS device; just do it. (closes: Bug#215963) -- Chris Hanson Wed, 24 Mar 2004 16:13:25 -0500 powermgmt-base (1.18) unstable; urgency=low * NMU. (I sent a mail cph ago, but his mail server looks in trouble?) * Apply Spanish, Japanese, Portugal, Danish po (Fixed: Bug#228902, Bug#211907, Bug#216374, Bug#233573) -- Kenshi Muto Sun, 14 Mar 2004 15:41:46 +0900 powermgmt-base (1.17) unstable; urgency=low * Add "debian/po/fr.po". (Closes: Bug#211272) -- Chris Hanson Wed, 17 Sep 2003 11:59:54 -0400 powermgmt-base (1.16) unstable; urgency=low * Grumble -- no changes, just rebuild in Debian native format. -- Chris Hanson Fri, 5 Sep 2003 13:35:43 -0400 powermgmt-base (1.15) unstable; urgency=low * Use dh_installmodules --name to simplify rules file. (closes: Bug#206853) * Use po_debconf for templates. (closes: Bug#208067) * Standards version 3.6.1 (no changes). -- Chris Hanson Fri, 5 Sep 2003 13:30:55 -0400 powermgmt-base (1.14) unstable; urgency=low * Fix problem with postinst that occurs with non-linux systems. (closes: Bug#189131) -- Chris Hanson Thu, 17 Apr 2003 00:25:33 -0400 powermgmt-base (1.13) unstable; urgency=low * Fix typo in acpi_available(1). (closes: Bug#184984) * Update standards version to 3.5.9 (no changes). -- Chris Hanson Fri, 4 Apr 2003 23:09:09 -0500 powermgmt-base (1.12) unstable; urgency=low * Make sure source file is properly cleaned. (closes: Bug#171052) * _Really_ Update to standards version 3.5.8. (closes: Bug#171053) -- Chris Hanson Thu, 28 Nov 2002 10:34:03 -0500 powermgmt-base (1.11) unstable; urgency=low * Fix typo in "debian/powermgmt-base.dirs". (closes: Bug#170264) * Update to standards version 3.5.8. (No changes.) -- Chris Hanson Sat, 23 Nov 2002 23:17:59 -0500 powermgmt-base (1.10) unstable; urgency=low * Add tweak to support APM version number on 2.5 kernel series. (closes: Bug#167354) -- Chris Hanson Fri, 1 Nov 2002 15:59:46 -0500 powermgmt-base (1.9) unstable; urgency=low * Add code to on_ac_power to work with /proc/pmu on powerpc systems. (closes: Bug#163357) * Rewrite on_ac_power to handle multiple AC adapters more reasonably. This works on my machine with a single adapter; please check this on multi-adapter machines. (closes: Bug#152666) * Move #DEBHELPER# line up to beginning of postrm to work around bad interaction between debhelper and debconf. (closes: Bug#163662) * Update to standards version 3.5.7. -- Chris Hanson Tue, 15 Oct 2002 15:01:46 -0400 powermgmt-base (1.8) unstable; urgency=low * Add code to detect AC adapters using newer ACPI patches. (closes: Bug#145583) -- Chris Hanson Sat, 4 May 2002 22:23:15 -0400 powermgmt-base (1.7) unstable; urgency=low * New maintainer. * Rewrite top-level Makefile to account for use of CVS, and to integrate with my build scripts. -- Chris Hanson Sat, 4 May 2002 22:10:50 -0400 powermgmt-base (1.6) unstable; urgency=medium * Tweak postinst * Add dependency on makedev (Closes: #144145) -- Thomas Hood Fri, 22 Apr 2002 21:22:15 -0400 powermgmt-base (1.5) unstable; urgency=medium * Use debconf to ask whether to MAKEDEV the special device file * Use the correct MAKEDEV identifier for the apm_bios device file * Notify user that MAKEDEVving will reset perms to distro defaults -- Thomas Hood Thu, 11 Apr 2002 17:15:37 -0400 powermgmt-base (1.4) unstable; urgency=low * postinst: Create apm_bios special device file if requested and required * Add etc/devfs/conf.d/apm -- Thomas Hood Wed, 8 Apr 2002 20:30:03 -0500 powermgmt-base (1.3) unstable; urgency=high * Fix recognition of ACPI in on_ac_power (Closes: #140897) -- Thomas Hood Tue, 2 Apr 2002 06:03:33 -0500 powermgmt-base (1.2) unstable; urgency=high * Remove superfluous "${misc:Depends}," from control file. Its presence caused build failure on mips arch. (Closes: #140658) -- Thomas Hood Sun, 31 Mar 2002 06:55:13 -0500 powermgmt-base (1.1) unstable; urgency=high * Fix rules so that package will build on non-i386 arches (Closes: #140024) -- Thomas Hood Tue, 26 Mar 2002 19:52:57 -0500 powermgmt-base (1.0) unstable; urgency=high * New package (Closes: #137915) * Get on_ac_power from apmd * Patch on_ac_power (Closes: #101773) * Add apm_available and acpi_available * Change on_ac_power to use apm_available * Correct comment at top of on_ac_power * Add "set -e" to on_ac_power * Change exit status of on_ac_power from 0 to 255 in the event that the power status could not be determined, and eliminate printing of battery charge for exit status 1. * Add END test to awk script in on_ac_power to return 255 when the contents of /proc/apm are unrecognized. * Derive /etc/modutils/apm from apmd's /etc/modutils/apmd -- Thomas Hood Wed, 13 Mar 2002 23:00:00 -0500 powermgmt-base/debian/powermgmt-base.postinst0000644000000000000000000000065511305425255016665 0ustar #!/bin/sh -e #DEBHELPER# case "${1}" in (configure) cd /dev && test -x MAKEDEV && ./MAKEDEV -v apm FN="/etc/modprobe.d/apm" if [ -f "${FN}" ] && md5sum --check --status > /dev/null 2>&1 << EOF 05bec108b10c64c5a614cf4576e5d66a ${FN} EOF then rm -f "${FN}" fi ;; (abort-upgrade|abort-remove|abort-deconfigure) ;; (*) echo "postinst called with unknown argument \`$1'" >&2 exit 1 ;; esac powermgmt-base/debian/control0000644000000000000000000000075211305427705013532 0ustar Source: powermgmt-base Section: utils Priority: optional Maintainer: Chris Hanson Build-Depends: debhelper (>= 5.0.0), cdbs Standards-Version: 3.8.3 Package: powermgmt-base Architecture: any Replaces: apmd (<= 3.0.2-1.17) Depends: udev | makedev, ${shlibs:Depends}, ${misc:Depends}, module-init-tools Description: Common utils and configs for power management This package contains utilities and configuration files for power management that are common to APM and ACPI. powermgmt-base/debian/rules0000755000000000000000000000041210663436524013205 0ustar #!/usr/bin/make -f include /usr/share/cdbs/1/rules/debhelper.mk include /usr/share/cdbs/1/class/makefile.mk DEB_MAKE_CLEAN_TARGET = clean DEB_MAKE_BUILD_TARGET = all DEB_MAKE_INSTALL_TARGET = install DESTDIR=$(CURDIR)/debian/powermgmt-base DEB_MAKE_CHECK_TARGET = powermgmt-base/debian/compat0000644000000000000000000000000210663436541013325 0ustar 5 powermgmt-base/debian/powermgmt-base.apm.modules0000644000000000000000000000014110663435547017227 0ustar alias char-major-10-134 apm alias /dev/apm_bios /dev/misc/apm_bios alias /dev/misc/apm_bios apm powermgmt-base/debian/powermgmt-base.links0000644000000000000000000000004510663436534016123 0ustar sbin/on_ac_power usr/bin/on_ac_power powermgmt-base/debian/powermgmt-base.README.Debian0000644000000000000000000000062610663435257017127 0ustar powermgmt README ================ powermgmt-base is a package containing utilities and configuration files that are common to the packages supporting the APM and ACPI power management subsystems. AUTHORS ------- on_ac_power was written by Rik Faith and Avery Pennarun and modified by Thomas Hood apm_available and acpi_available were written by Thomas Hood. powermgmt-base/debian/powermgmt-base.prerm0000644000000000000000000000027710663436541016135 0ustar #!/bin/sh -e #DEBHELPER# FN="/etc/modprobe.d/apm" if [ -f "${FN}" ] && md5sum --check --status > /dev/null 2>&1 << EOF 05bec108b10c64c5a614cf4576e5d66a ${FN} EOF then rm -f "${FN}" fi powermgmt-base/debian/powermgmt-base.manpages0000644000000000000000000000007310663435360016573 0ustar man/acpi_available.1 man/apm_available.1 man/on_ac_power.1 powermgmt-base/src/0000755000000000000000000000000011305431730011461 5ustar powermgmt-base/src/acpi_available.c0000644000000000000000000000214310663436426014556 0ustar /* Copyright (c) 2002 J. D. Thomas Hood This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. */ #include #include #include #define ACPI_PROC "/proc/acpi" int main (int argc, const char * argv[]) { int r; if (argc != 1) { fprintf (stderr, "usage: %s\n", (argv[0])); fflush (stderr); exit (2); } r = access(ACPI_PROC, X_OK); if (r==0) exit(0); /* Should try to get the acpi modules loaded here */ exit(1); } powermgmt-base/src/on_ac_power0000644000000000000000000000431311305425756013713 0ustar #!/bin/sh # # Returns 0 (true) if on AC power # 1 (false) if not on AC power # 255 (false) if can't tell # # Example shell script: # if on_ac_power; then # echo We're on AC power # else # echo Can't say we're on AC power # fi set -e # sysfs # # This algorithm is complicated by the possibility of multiple AC # adapters. We scan the ac_adapter/power_supply directory looking for adapters # that have known states. If any adapter is on-line, we return 0. If # no adapters are on-line but one or more are off-line, we return 1. # OFF_LINE_P=no if [ -d /sys/class/power_supply/ ]; then for FN in /sys/class/power_supply/*; do if test -d "${FN}" && test -r "${FN}/type"; then type="$(cat ${FN}/type)" if test "x${type}" = "xMains"; then if [ -r "${FN}/online" ]; then online="$(cat ${FN}/online)" [ "$online" = 1 ] && exit 0 [ "$online" = 0 ] && OFF_LINE_P=yes fi fi fi done [ "${OFF_LINE_P}" = "yes" ] && exit 1 fi # ACPI # same algorithm as above, a fallback only when the generic sysfs interface # is not available (old kernels only) if /sbin/acpi_available && [ -d /proc/acpi/ac_adapter ]; then for FN in /proc/acpi/ac_adapter/*; do if [ -d "${FN}" ]; then if [ -r "${FN}/state" ]; then grep --quiet on-line "${FN}/state" && exit 0 grep --quiet off-line "${FN}/state" && OFF_LINE_P=yes elif [ -r "${FN}/status" ]; then grep --quiet on-line "${FN}/status" && exit 0 grep --quiet off-line "${FN}/status" && OFF_LINE_P=yes fi fi done [ "${OFF_LINE_P}" = "yes" ] && exit 1 fi # PMU if [ -r /proc/pmu/info ]; then exec awk This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. */ #include #include #include #include #define APM_DEVICE "/dev/apm_bios" #define APM_PROC "/proc/apm" int main (int argc, const char * argv[]) { FILE *fp; int r; if (argc != 1) { fprintf (stderr, "usage: %s\n", (argv[0])); fflush (stderr); exit (2); } r = access(APM_PROC, R_OK); if (r==0) exit(0); /* * Try to induce apm module load */ fp = fopen(APM_DEVICE, "r"); if (fp) { r = fclose(fp); if (r) exit(errno); } r = access(APM_PROC, R_OK); if (r==0) exit(0); exit(1); } powermgmt-base/src/Makefile0000644000000000000000000000056010663436524013136 0ustar DESTDIR = ifndef CFLAGS CFLAGS := -Wall -Wstrict-prototypes -O2 -DLINUX endif all: apm_available acpi_available install: all install -p on_ac_power apm_available acpi_available $(DESTDIR)/sbin acpi_available: acpi_available.c $(CC) $(CFLAGS) -o $@ $< apm_available: apm_available.c $(CC) $(CFLAGS) -o $@ $< clean: rm -f apm_available acpi_available *.o powermgmt-base/Makefile0000644000000000000000000000030110663435360012335 0ustar all: build install: $(MAKE) -C src install uninstall: depend: build: $(MAKE) -C src all kdist_clean: clean clean: $(MAKE) -C src clean deb: debian/rules clean debian/rules binary powermgmt-base/man/0000755000000000000000000000000011131312425011441 5ustar powermgmt-base/man/on_ac_power.10000644000000000000000000000255310663435257014045 0ustar .\" Hey, EMACS: -*- nroff -*- .\" First parameter, NAME, should be all caps .\" Second parameter, SECTION, should be 1-8, maybe w/ subsection .\" other parameters are allowed: see man(7), man(1) .TH ON_AC_POWER 1 "9 March 2002" .\" Please adjust this date whenever revising the manpage. .\" .\" Some roff macros, for reference: .\" .nh disable hyphenation .\" .hy enable hyphenation .\" .ad l left justify .\" .ad b justify to both left and right margins .\" .nf disable filling .\" .fi enable filling .\" .br insert line break .\" .sp insert n+1 empty lines .\" for manpage-specific macros, see man(7) .SH NAME on_ac_power \- test whether computer is running on AC power .SH SYNOPSIS .B on_ac_power .SH DESCRIPTION .B on_ac_power checks whether the system is running on AC power (i.e., mains power) as opposed to battery power. .SH OPTIONS None. .SH "EXIT STATUS" .br .nf \fB0\fR (true) System is on mains power \fB1\fR (false) System is not on mains power \fB255\fR (false) Power status could not be determined .SH FILES .br .nf .ta \w'/proc/apm 'u \fI/proc/apm\fR APM status information file .nf .ta \w'/proc/acpi/ 'u \fI/proc/acpi\fR ACPI status information directory .SH AUTHOR This manual page was written by Steve Dodd and was updated by Thomas Hood. powermgmt-base/man/acpi_available.10000644000000000000000000000243610663436356014467 0ustar .\" Hey, EMACS: -*- nroff -*- .\" First parameter, NAME, should be all caps .\" Second parameter, SECTION, should be 1-8, maybe w/ subsection .\" other parameters are allowed: see man(7), man(1) .TH ACPI_AVAILABLE 1 "2006-01-03" .\" Please adjust this date whenever revising the manpage. .\" .\" Some roff macros, for reference: .\" .nh disable hyphenation .\" .hy enable hyphenation .\" .ad l left justify .\" .ad b justify to both left and right margins .\" .nf disable filling .\" .fi enable filling .\" .br insert line break .\" .sp insert n+1 empty lines .\" for manpage-specific macros, see man(7) .SH NAME acpi_available \- test whether ACPI subsystem is available .SH SYNOPSIS .B acpi_available .SH DESCRIPTION .B acpi_available checks whether the ACPI ("Advanced Configuration and Power Interface") subsystem is available, as evidenced by the presence of the /proc/acpi directory. .SH OPTIONS None. .SH "EXIT STATUS" .br .nf \fB0\fR (true) ACPI subsystem is available \fB1\fR (false) ACPI subsystem is not available \fB2\fR usage error (arguments supplied) .SH FILES .br .nf \fI/proc/acpi\fR ACPI status information file .SH AUTHOR This manual page was written by Thomas Hood . powermgmt-base/man/apm_available.10000644000000000000000000000242410663436356014325 0ustar .\" Hey, EMACS: -*- nroff -*- .\" First parameter, NAME, should be all caps .\" Second parameter, SECTION, should be 1-8, maybe w/ subsection .\" other parameters are allowed: see man(7), man(1) .TH APM_AVAILABLE 1 "2006-01-03" .\" Please adjust this date whenever revising the manpage. .\" .\" Some roff macros, for reference: .\" .nh disable hyphenation .\" .hy enable hyphenation .\" .ad l left justify .\" .ad b justify to both left and right margins .\" .nf disable filling .\" .fi enable filling .\" .br insert line break .\" .sp insert n+1 empty lines .\" for manpage-specific macros, see man(7) .SH NAME apm_available \- test whether APM subsystem is available .SH SYNOPSIS .B apm_available .SH DESCRIPTION .B apm_available checks whether the APM ("Advanced Power Management") subsystem is available, as evidenced by the presence of the /proc/apm file. .SH OPTIONS None. .SH "EXIT STATUS" .br .nf \fB0\fR (true) APM subsystem is available \fB1\fR (false) APM subsystem is not available \fB2\fR usage error (arguments supplied) .SH FILES .br .nf .ta \w'/proc/apm 'u \fI/proc/apm\fR APM status information file .SH AUTHOR This manual page was written by Thomas Hood .