path: root/pm
AgeCommit message (Collapse)AuthorFilesLines
2008-05-10Ignore autogenerated pm/ Biebl1-0/+1
2008-05-10Added special-casing of mode 3 in vbe_restoremodeVictor Lowther1-1/+10
When we are restoring our vbe mode back to mode 3 (a text mode), use vga routines instead of vbe routines. Matthew Garret says it is more stable that way.
2008-05-10Minor formatting changes.Victor Lowther1-2/+2 cleanups and minor fixes.Victor Lowther1-6/+15
Mostly adding comments to functions whose purpose is not immediatly obvious. Also restructured init_logfile to test for a null $1 before the file tests.
2008-05-07Fix vbe mode restore bugVictor Lowther1-1/+1
Partial fix for pm-utils bug no. 15840 -- it does not include the vgamode special-case code. Thanks, Martin Pitt!
2008-04-30Simplify implementation of check_suspend a bit.Victor Lowther3-6/+3
Why use 4 commands where 2 will do?
2008-04-30Added comments and minor fixes.Victor Lowther1-15/+17
2008-04-27Fix bug that would cause init_logfile to die if the logfile did not exist.Victor Lowther1-1/+1
Add an explicit check for file existence instead of relying on -O to do it for us. Thanks, Till Mass for pointing this out.
2008-04-14- add -w to grep in hibernate check to avoid matching "testproc" with "test"Till Maas1-1/+1
"shutdown" with "shut" Reported: Red Hat Bugzilla: #427018
2008-04-14- Mention "${PM_FUNCTIONS}" instead of harcoded 32bit path for functions fileTill Maas1-2/+2
2008-04-12Fixed arithmetic expansion bug in uswsusp found by checkbashisms.Victor Lowther1-2/+2
2008-04-07Add safety check before writing mode to /sys/power/diskMichael Biebl1-2/+3
Be extra paranoid and only set HIBERNATE_MODE if it is actually supported.
2008-04-07/dev/pmu better be a character deviceMichael Biebl2-2/+2
2008-04-07Disable 00clear for uswusp sleep module.Michael Biebl1-0/+1
s2ram has its own vt switching logic, so disable 00clear for the uswsusp sleep module.
2008-04-02Check for s2ram in check_suspend().Michael Biebl1-0/+1
The uswsusp sleep module uses s2ram now for do_suspend(), so check for the command in check_suspend().
2008-03-29Comment fixups in preperation for release.Victor Lowther16-9/+52
In particular, add comments to the top of the sleep hooks describing what each of them is for.
2008-03-28Improve PMU checkMichael Biebl3-3/+3
Test if /dev/pmu is a character device.
2008-03-20Avoid incorrect exit code 1 failure messages in the log.Victor Lowther2-1/+5
Do this by forcing resume_video to always return 0, and by having modreload expliticly log if it cannot reload a module we unloaded before suspend.
2008-03-20Prettify logging a bit more.Victor Lowther1-1/+1
Now with added timestamps, so you can see how long running all the hooks takes.
2008-03-20Cleaned up logging of which hooks ran a bit more.Victor Lowther1-2/+8
Do this by making log understand the -n option. To retain strict POSIX compatibility, we now use printf instead of echo in the log function.
2008-03-20No need to clear the screen on 00clear.Victor Lowther1-1/+0
Allocating and deallocating vt 63 take care of that for us.
2008-03-20Modify 94cpufreq to use savestate/restorestate more efficientlyVictor Lowther2-5/+4
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/
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.