Difference between revisions of "Pm-utils"

From CBLFS
Jump to navigationJump to search
(32Bit)
(Contents)
 
(2 intermediate revisions by the same user not shown)
Line 46: Line 46:
 
Compile the package:
 
Compile the package:
  
  CC="gcc ${BUILDN32}" PKG_CONFIG_PATH="${PKG_CONFIG_PATHN32}" \
+
  CC="gcc ${BUILDN32}" ./configure --libdir=/usr/lib32 \
./configure --libdir=/usr/lib32 --prefix=/usr --sysconfdir=/etc \
+
--prefix=/usr --sysconfdir=/etc \
 
  --docdir=/usr/share/doc/pm-utils-1.2.3 &&
 
  --docdir=/usr/share/doc/pm-utils-1.2.3 &&
 
  make
 
  make
Line 60: Line 60:
 
Compile the package:
 
Compile the package:
  
  CC="gcc ${BUILD64}" PKG_CONFIG_PATH="${PKG_CONFIG_PATH64}" \
+
  CC="gcc ${BUILD64}" ./configure --libdir=/usr/lib64 \
./configure --libdir=/usr/lib64 --prefix=/usr --sysconfdir=/etc \
+
--prefix=/usr --sysconfdir=/etc \
 
  --docdir=/usr/share/doc/pm-utils-1.2.3 &&
 
  --docdir=/usr/share/doc/pm-utils-1.2.3 &&
 
  make
 
  make
Line 83: Line 83:
 
|-valign="top"
 
|-valign="top"
 
!Installed Directories:
 
!Installed Directories:
|/usr/lib/pm-utils, /etc/pm
+
|/usr/lib{,32,64}/pm-utils, /etc/pm
 
|-valign="top"
 
|-valign="top"
 
!Installed Programs:
 
!Installed Programs:
|on_ac_power, pm-hibernate, pm-is-supported, pm-powersave, pm-suspend, pm-suspend-hybrid, /usr/lib/pm-utils/bin/{pm-action,pm-pmu,pm-reset-swap}
+
|on_ac_power, pm-hibernate, pm-is-supported, pm-powersave, pm-suspend, pm-suspend-hybrid, /usr/lib{,32,64}/pm-utils/bin/{pm-action,pm-pmu,pm-reset-swap}
 
|-valign="top"
 
|-valign="top"
 
!Installed Libraries:
 
!Installed Libraries:

Latest revision as of 13:49, 30 August 2009

Download Source: http://pm-utils.freedesktop.org/releases/pm-utils-1.2.3.tar.gz

Introduction to Pm-utils

Pm-utils is a set of tools to control power management (e.g. suspend and resume).

Project Homepage: http://pm-utils.freedesktop.org/wiki/

Dependencies

Runtime

Non-Multilib

Compile the package:

./configure --prefix=/usr --sysconfdir=/etc --docdir=/usr/share/doc/pm-utils-1.2.3 &&
make

Install the package:

make install

Multilib

This package does not provide any libraries so only one installation is required.

32Bit

Compile the package:

CC="gcc ${BUILD32}" ./configure --libdir=/usr/lib \
--prefix=/usr --sysconfdir=/etc \
--docdir=/usr/share/doc/pm-utils-1.2.3 &&
make


Install the package:

make install

N32

Compile the package:

CC="gcc ${BUILDN32}" ./configure --libdir=/usr/lib32 \
--prefix=/usr --sysconfdir=/etc \
--docdir=/usr/share/doc/pm-utils-1.2.3 &&
make


Install the package:

make install

64Bit

Compile the package:

CC="gcc ${BUILD64}" ./configure --libdir=/usr/lib64 \
--prefix=/usr --sysconfdir=/etc \
--docdir=/usr/share/doc/pm-utils-1.2.3 &&
make


Install the package:

make install

Configuring

Config files

Configuration files should be put in /etc/pm/config.d. See the pm-action(8) man page for more information.

Hooks

Hooks are run when the system is put into a sleep state or resumed. Default hooks are located in /usr/lib/pm-utils/sleep.d, and user hooks should be put in /etc/pm/sleep.d. See the pm-action(8) man page for more information.

Contents

Installed Directories: /usr/lib{,32,64}/pm-utils, /etc/pm
Installed Programs: on_ac_power, pm-hibernate, pm-is-supported, pm-powersave, pm-suspend, pm-suspend-hybrid, /usr/lib{,32,64}/pm-utils/bin/{pm-action,pm-pmu,pm-reset-swap}
Installed Libraries: None

Short Descriptions

on_ac_power is a script that determines whether the system is running on AC power (rather than a battery).
pm-hibernate is a symlink to pm-action that puts the computer into hibernate mode (i.e., saves the contents of memory to disk and shuts down).
pm-is-supported is a script that checks whether power management features such as suspend and hibernate are supported.
pm-powersave is a script that puts the computer into powersaving (low power) mode.
pm-suspend is a symlink to pm-action that puts the computer into suspend mode.
pm-suspend-hybrid is a symlink to pm-action that puts the computer into suspend mode (like hibernate, but resumes more quickly).
pm-action is a script that puts the computer into a sleep state (hibernate, suspend, or suspend-hybrid).
pm-pmu is a program that puts computers which have a Macintosh PMU into suspend mode.
pm-reset-swap is a program that marks a swap partition unusable for resuming from hibernate.
Retrieved from "?title=Pm-utils&oldid=18983"