Age | Commit message (Collapse) | Author | Files | Lines |
|
|
|
|
|
This prepares for adding kernel modesetting support.
|
|
|
|
|
|
To use this functionality, run pm(suspend|hibernate|suspend-hybrid) with
--auto-quirks.
|
|
This consists of core features extracted from the powersave-hooks branch, and
does the following:
* Refactor some settings in pm-functions to make it easier to support seperate
settings for pm-action and pm-powersave. Other than sharing a mechanism for
running hooks and being able to use certian utility functions, they do not
have much in common w.r.t settings and lifecycle rules for those settings.
* Move take_suspend_lock from pm-functions to pm-action. pm-powersave uses a
simpler scheme, and there is not enough code sharing to justify having it in
pm-functions.
* Add a bit of code to pm-functions to figure out what chassis type we are
running on.
* Add a 00powersave hook that turns powersaving off across a suspend/resume.
Things like laptop-mode in particular have been known to cause issues in
some situations.
* Make pm-powersave log to a real logfile and try to guess at the appropriate
powersave mode if called with no arguments.
|
|
|
|
The new 98-smart-kernel-video hook just disables 99video outright if we are
running a video driver that is spart enough to handle its own quirks.
|
|
|
|
|
|
modified: pm/HOWTO.hooks
modified: pm/functions.in
modified: pm/sleep.d/Makefile.am
deleted: pm/sleep.d/zzz
* Merge the functionality of find_hooks and run_hooks. This results in
a new run_hooks function which is much simpler than the old one and is
much more resistant to breaking due to odd filenames.
* Actually implements the functionality mentioned in README where you
can create a nonexecutable file in /etc/pm/(sleep|power).d that will
prevent the copy in /usr/lib/pm-utils/(sleep|power).d from running.
* Undoes the "nonzero exit code means do not run on resume" and
auto-reverse pseudofeatures I added in the POSIX series. If anyone likes
them, they can be added back at the cost of either passing a function to
run_hooks or maintaining a global variable.
* Merges the functionality that was in zzz back into pm_main. Although
zzz was a slightly funny name, upon further reflection it was a bad idea
and makes it harder to implement some partitioning of functionality that
will be needed if/when the hooks are split into their own project.
* Updates the documentation to reflect these changes.
|
|
POSIX-compliant. Modified pm_main to use the new hook-running
infrastructure.
|
|
On Jan 28, 2008 11:31 AM, Dan Nicholson <dbn.lists@gmail.com> wrote:
> On Jan 27, 2008 9:42 PM, Vasiliy G Tolstov <v.tolstov@selfip.ru> wrote:
> > Gentoo does not have this utilities. Default gentoo init script that
> > setting console font executes /bin/setfont
>
> That's because setsysfont is a Fedora specific wrapper script around
> setfont in their initscripts package.
>
> http://cvs.fedoraproject.org/repo/pkgs/initscripts/initscripts-8.60.tar.bz2/a0e888cc91ef6350a991985567d21366/initscripts-8.60.tar.bz2
In that case...
Patch attached to remove 60sysfont. setsysfont is Fedora-specific,
and other distros do not use it.
|
|
do for a long time, but CVS made it hard
|