summaryrefslogtreecommitdiff
path: root/pm
AgeCommit message (Collapse)AuthorFilesLines
2008-03-20No need to print replies from dbus in 55battery.Victor Lowther1-1/+1
2008-03-20Simplified implementation of 49bluetooth.Victor Lowther1-10/+8
No need for awk or for case statements.
2008-03-20Use 'all' instead of "*" to remove all commandline paraameters.Victor Lowther1-2/+2
2008-03-20Missed a close quote in modules.d/kernelVictor Lowther1-1/+1
2008-03-20Added easy support to drop all parameters.Victor Lowther1-1/+2
Just set DROP_PARAMETERS to "*"
2008-03-20Changed kernel hibernation to use the default kernel method unless overridden.Victor Lowther3-5/+7
Hopefully this will get rid of the bug reports where "platform" causes problems. If it does not, we should probably default to "shutdown" as the default method.
2008-03-19Fixups in hook blacklisting and parameter removal.Victor Lowther1-2/+3
2008-03-19remove_parameters was not doing The Right Thing.Victor Lowther1-9/+10
Rewrote parameter removal loop to try and fix that.
2008-03-19Make the hook blacklist and parameter overrides use env. variables.Victor Lowther2-28/+40
This came about after a long discussion with mbiebl on the best way to configure settings in pm-utils.
2008-03-19Merge branch 'vlowther-stabilization-bugfixes' into vlowther-default-parametersVictor Lowther12-22/+50
Conflicts: pm/pm-functions.in
2008-03-19Added copious commenting in the defaults file.Victor Lowther2-8/+37
2008-03-19Merge branch 'master' into vlowther-stabilization-bugfixesVictor Lowther5-18/+68
2008-03-19Rewrite fix for suspend_hybrid in a more elegant fashionVictor Lowther10-10/+10
We add a new variable $METHOD in pm-action. It holds the sleep method we were asked to invoke. $ACTION is chosen baed on the value of METHOD.
2008-03-18Addind logging to add_parameter and remove_parameterVictor Lowther1-1/+5
2008-03-18Fix logic error in remove_parameter.Victor Lowther1-1/+1
2008-03-18Updated /etc/pm/parameters parsing.Victor Lowther1-4/+22
Now we can add and remove parameters passed from our invoker.
2008-03-17Mask out acpi_sleep settings when --quirk-none is passed.Victor Lowther2-4/+4
mbiebl and I have been discussing removing the current behaviour for --quirk-none. This patch retains the behaviour where --quirk-none masks out the other video quirks instead of signalling that no quirks are required.
2008-03-17Add more logging -- log parameters and the hook blacklist.Victor Lowther1-4/+4
This patch adds basic logging of our commandline parameters before and after loading the parameter overrides. It also adds logging of our initial blacklist entries.
2008-03-16QUIRK_NONE was not being honored in uswsusp.Victor Lowther1-1/+2
Added code to zero out OPTS if QUIRK_NONE = true.
2008-03-17Remove outdated documentation.Michael Biebl1-6/+0
We handle video quirks in uswsusp now, so this documentation is outdated and best removed.
2008-03-17Parse video quirks in uswsusp sleep moduleMichael Biebl1-4/+48
- Parse the video quirks in the uswsusp and pass it to s2ram (do_suspend) and s2both (do_suspend_hybrid). - Show the available quirks in the help method. - quirk-save-pci is currently s2ram specific and not yet provided by hal. - quirk-dpms*, quirk-reset-brightness and quirk-vga-mode3 are not handled by s2ram and thus simple no-ops.
2008-03-16Merge branch 'pmu'Michael Biebl3-5/+16
2008-03-16Merge branch 'master' into vlowther-stabilization-bugfixesVictor Lowther3-0/+6
2008-03-16Better PMU support.Michael Biebl3-5/+16
- If /dev/pmu is existent, assume we can suspend - Don't try to run pm-pmu on machines without a PMU
2008-03-16Consolidated console save/restore code.Victor Lowther2-5/+8
Instead of having console switch/restore logic spread out all over the place, have 00clear perform all our console switching.
2008-03-16Make the modules shell scriptMichael Biebl3-0/+6
We install the sleep modules as _SCRIPTS, so they should be 0755 and have a shebang. This has the additional benefit that editors automatically enable syntax coloring.
2008-03-16Fix bug where pm-is-supported could only be run as root.Victor Lowther1-3/+8
Now we only parse the blacklist and the default parameters when we are taking the suspend lock.
2008-03-15Mostly seperated vt switching logic from the suspend_lock logic.Victor Lowther2-4/+4
This should fix the breakage implemented by moving the locking.
2008-03-15Implemented sleep_method_help support.Victor Lowther1-1/+9
This intergrates sleep modules into the help system.
2008-03-15Restore separate logging functionalityVictor Lowther1-6/+9
Somehow the changes introduced by 1fb77e994d7d1628c86324066693fd23d4abfb6c got dropped in the merge process. Restored them.
2008-03-15Merge branch 'vlowther-dynamic-hook-disable' into vlowther-default-parametersVictor Lowther1-1/+0
2008-03-15Merge branch 'master' into vlowther-dynamic-hook-disableVictor Lowther1-1/+0
Conflicts: pm/pm-functions.in
2008-03-14Split functions.in into functions.in and pm-functions.inVictor Lowther3-128/+134
pm-functions.in contains the functionality that should only be used by the pm-utils frontends (pm-action, pm-is-supported, and pm-powersave). functions.in contains code that is shared between the hooks and the pm-utils frontends. The reason behind splitting this out is to reduce namespace pollution in the hooks and to eventaully make it easier to split the hooks into their own package.
2008-03-13Merge branch 'vlowther-dynamic-hook-disable' into vlowther-default-parametersVictor Lowther1-0/+6
2008-03-13Updated HOWTO.modules to mention before_hook.Victor Lowther1-0/+6
Sleep module writers, take note.
2008-03-11Merge branch 'vlowther-dynamic-hook-disable' into vlowther-default-parametersVictor Lowther1-1/+5
2008-03-11Optionally ignore two leading digits in the hook filename in hook_okVictor Lowther1-1/+5
Requested by Michael Biebl.
2008-03-11Merge branch 'vlowther-dynamic-hook-disable' into vlowther-default-parametersVictor Lowther1-22/+32
2008-03-11Updated hooks documentation.Victor Lowther1-22/+32
2008-03-09Added support for passing default parameters.Victor Lowther1-0/+13
We add them in the "$PM_UTILS_ETCDIR/parameters" file, and they are simply appended to the PM_CMDLINE env variable.
2008-03-09Move PM_CMDLINE declaration into pm_functions.in.Victor Lowther1-0/+1
This lays the groundwork for allowing the user to add default parameters to potentially override the ones that HAL passes to us.
2008-03-09Ensure wwe have made $STORAGEDIR before trying to blacklist hooks.Victor Lowther1-0/+1
2008-03-09Fixed stupid typo in disablehook.Victor Lowther1-1/+1
2008-03-09Really really make reading the default blacklist work.Victor Lowther1-1/+1
2008-03-09Actually source the correct blacklist file.Victor Lowther1-1/+1
2008-03-07Moved the "Running hook" diagnostic message in run_hooks.Victor Lowther1-1/+2
2008-03-07Merge branch 'master' into vlowther-dynamic-hook-disableVictor Lowther1-3/+1
2008-03-07Fix a quirk parsing in 99video.Michael Biebl1-3/+1
- We no longer use $@, so replace $1 with $opt and remove shift - Remove an unnecessary check.
2008-03-06Merge branch 'master' into vlowther-dynamic-hook-disableVictor Lowther6-105/+114
2008-03-06uswsusp disables 99video hook now.Victor Lowther1-0/+6