Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Evergreen:11.1:kernel-2.6.32
pm-utils
pm-utils-0.99.3-README-fix.diff
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File pm-utils-0.99.3-README-fix.diff of Package pm-utils
--- README +++ README @@ -7,7 +7,7 @@ Why do we need it? -* As all the main distros are re-implimenting the same thing, over and over, to +* As all the main distros are re-implementing the same thing, over and over, to do something that's really quite trivial. Having the common locations for stuff means that software and hardware vendors can just install one file to do the clever stuff. @@ -26,27 +26,30 @@ How do "hooks" work? -* You put a file in /etc/pm/hooks, which is executable. When suspend or +* You put a file in /etc/pm/sleep.d, which is executable. When suspend or hibernate is called, several things happen: 1) a new virtual terminal is alloced and switched to - 2) /etc/pm/config is evaluated . This config file that should only be - modified by end-users. + 2) /usr/lib/pm-utils/defaults is evaluated. This config file should not + be modified by end-users. 3) /etc/pm/config.d/* are evaluated in C sort order. These files can be provided by individual packages outside of pm-utils. If a global config variable is set, the value set to will be appended to the previous value. If any other variable is set, it will be ignored. - 4) each of /etc/pm/hooks/* are executed in C sort order. The first command - line argument is "suspend" or "hibernate". These files may source - configuration files from /etc/pm/config.d/ on their own in order to pick - up variables set there that aren't part of the global list. Note that - hooks should take care to preserve any global configuration variable - which _that_ hook will later need to use, as sourcing this config file - will clobber any such variables. + 4) each of /etc/pm/sleep.d/* and /usr/lib/pm-utils/sleep.d/* are executed in + C sort order, not regarding the directory. A equally named file in + /etc/pm/sleep.d/ takes precedence over one in /usr/lib/pm-utils/sleep.d. + The first command line argument is "suspend" or "hibernate". These files + may source configuration files from /etc/pm/config.d/ on their own in + order to pick up variables set there that aren't part of the global list. + Note that hooks should take care to preserve any global configuration + variable which _that_ hook will later need to use, as sourcing this + config file will clobber any such variables. 5) the system suspends or hibernates. 6) some event happens to wake the machine up - 7) each of /etc/pm/hooks/* are executed in reverse C sort order. The first - command line argument is "resume" or "thaw". + 7) each of /etc/pm/sleep.d/* and /usr/lib/pm-utils/sleep.d/* are executed in + reverse C sort order. The first command line argument is "resume" or + "thaw". 8) the system switches back to the original virtual terminal from step 1. That's it!
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor