summaryrefslogtreecommitdiff
path: root/pm
AgeCommit message (Collapse)AuthorFilesLines
2008-03-06Merge branch 'master' into vlowther-dynamic-hook-disableVictor Lowther6-105/+114
2008-03-06uswsusp disables 99video hook now.Victor Lowther1-0/+6
2008-03-06Change the default blacklist location to PM_SYSCONFDIR.Victor Lowther1-2/+4
Also add before_hooks support to run_hooks.
2008-03-06Revert "Even shorter quirk environment variable names."Victor Lowther1-23/+23
This reverts commit 6d877fe5e1439496b20365e6877916ab3c7446f2. Requested by Michael Biebl. Does not affect functionality.
2008-03-06Merge branch 'master' into vlowther-hook-option-processingVictor Lowther1-5/+10
2008-03-06Merge branch 'vlowther-video-merge'Victor Lowther4-93/+58
2008-03-06Have pm-functions.in read an initial list of hooks to blacklist.Victor Lowther1-0/+12
Be a little smart about it, and allow comments.
2008-03-06Make run_hooks skip disabled hooks.Victor Lowther2-3/+14
Eventually we will print a helpful diagnostic in the logfile saying what disabled the hook based on the contents of the disabled file, but that is a job for a later date.
2008-03-06Add disablehook() function to functions.in.Victor Lowther1-0/+5
This is the first step in allowing hooks to be dynamically disabled while pm-utils is running.
2008-03-06Fixed the case where two or more cores share the same cpufreq settings.Victor Lowther1-5/+10
If the cpufreq directory is a symlink, that that cpu shares it settings with another cpu. In that case, skip this cpu.
2008-03-06Silence sysctl output in 99video.Victor Lowther1-1/+1
2008-03-05Updated pm/Makefile.am to know about pm-functions.Victor Lowther1-2/+2
2008-03-05Split functions.in into functions.in and pm-functions.inVictor Lowther2-123/+133
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.
2008-03-05Rearrange functions.in in preperation for splitting it in two.Victor Lowther1-82/+82
2008-03-05Merge branch 'master' into vlowther-hook-option-processingVictor Lowther1-1/+1
2008-03-03Updated the HOWTO.hooks to document the help parameter.Victor Lowther1-0/+7
Also added a section dealing with suspend_hybrid.
2008-03-03Fixed typo in 94cpufreq introduced while fixing the suspend_hybrid glitch.Victor Lowther1-1/+1
Thanks, Michael Biebl!
2008-03-01Merge branch 'vlowther-video-merge' into vlowther-hook-option-processingVictor Lowther12-33/+12
2008-03-01Merge branch 'master' into vlowther-video-mergeVictor Lowther12-32/+11
2008-03-01Merge branch 'master' into vlowther-move-pm-mainVictor Lowther12-12/+12
2008-03-01We were not handing the suspend_hybrid case correctly this whole time.Victor Lowther12-12/+12
Shame on me for not spotting this earlier.
2008-03-01Merge branch 'master' into vlowther-move-pm-mainVictor Lowther14-56/+37
Conflicts: src/pm-action.in
2008-03-01Even shorter quirk environment variable names.Victor Lowther1-23/+23
2008-03-01Cleaned up output for --helpVictor Lowther2-7/+11
Did this by adding a log() function and using that instead of echo when we were just echoing test to get it into the log.
2008-03-01Moved video-specific option processing to 99video.Victor Lowther1-0/+20
2008-03-01Add help function to 99video.Victor Lowther1-7/+19
This is the first step in making hooks handle option processing for their options instead of having the pm-utils framework handle it.
2008-03-01arrgh -- forgot to remove 20video from Makefile.amVictor Lowther1-1/+0
2008-03-01Aesthetic cleanup to the quirk-handling code.Victor Lowther1-37/+32
2008-03-01Shortened quirk environment varialbe names.Victor Lowther1-14/+14
Also made option handling code in pm-action easier to read.
2008-03-01Replace if statements with command chaining in 99video.Victor Lowther1-25/+15
2008-03-01Add a quirk helper function to start cleaning up the ugly if mess in 99video.Victor Lowther1-11/+16
2008-03-01Rearrange quirk handling to bring it in line with s2ram.Victor Lowther1-10/+10
2008-02-29Save framebuffer state after saving videostate.Victor Lowther1-1/+1
2008-02-27Modified acpi_flag setting to use arithmetic expansion.Victor Lowther1-10/+4
This gets rid of an ugly if statement and makes the code more legible.
2008-02-27Modified 99video to use savestate/restorestate to save and restore VBE state.Victor Lowther1-4/+4
This utilizes the functionality added in the last patch, and makes the hook more location-independent.
2008-02-27Made savestate and restorestate in functions.in orthogonal.Victor Lowther1-2/+12
You can pipe data into savestate, and pipe it back out of restorestate. This also makes savestate/restorestate able to cleanly handle data with embedded NULs and other such nasties that may confuse bash. Savestate is still backwards compatible with the older calling convention.
2008-02-27Added support in the video hook for DISPLAY_QUIRK_NONE.Victor Lowther1-0/+2
When it is set to true, avoid quirk handling by exiting immediatly.
2008-02-27Folded 20video functionality into 99video and deleted 20video.Victor Lowther2-67/+37
2008-02-23Merge branch 'master' into stabilizatonVictor Lowther1-2/+2
2008-02-21Merge branch 'master' into vlowther-move-pm-mainVictor Lowther1-2/+2
2008-02-19Fix broken sorting in run_hooks.Victor Lowther1-2/+2
2008-02-16Merge branch 'master' into vlowther-move-pm-mainVictor Lowther9-77/+105
2008-02-16Merge branch 'master' into stabilizatonVictor Lowther9-76/+102
2008-02-16Replace -O with -f where appropriateMichael Biebl1-11/+10
The owner check for sourcing config files/sleep modules is wrong, because it doesn't allow to run pm-is-supported unprivileged. In addition, source the sleep module after source_configs, so SLEEP_MODULE can be configured via /etc/pm/config.d/
2008-02-16Fix inverse file owner check in init_logfile()Michael Biebl1-1/+1
2008-02-16Clean up generated files and put *.in files in the tarball.Michael Biebl1-8/+9
Make sure to clean up all generated files on "make clean". Don't distribute generated files in the dist tarball, only the *.in files. Add generated files to .gitignore. Use consistend naming for the install dirs. Install defaults file as data file. Keep EXTRA_DIST and CLEANFILES in sync.
2008-02-16Add safety checks for *_fbcon()Michael Biebl1-0/+2
2008-02-16Consistently use tabs for indentation.Michael Biebl4-33/+33
2008-02-1699video had a missing closing bracket.Michael Biebl7-24/+50
While fixing that I noticed that we use an inconsistent style for function brackets. I chose foo() { } as it seemed to be the most used one. Cheers, Michael
2008-02-16Get rid of redundant calls to exit in 99videoVictor Lowther1-2/+0