summaryrefslogtreecommitdiff
path: root/pm
AgeCommit message (Collapse)AuthorFilesLines
2009-12-10Fix pci-save vs save-pci related typosChristian Krause2-4/+4
- fix wrong function calls to pci_restore and pci_save which did not match the actual defined functions (restore_pci and save_pci) - use the correct quirk parameter in "remove_paramters" (use --quirk-save-pci instead of --quirk-pci-save)
2009-12-10[PATCH] Fix vga-mode-3 typo in video hooksTormod Volden3-4/+4
We have been using vga-mode3 while the standard says vga-mode-3. This might fix (or even break) some resume issues on hardware which did not have any video quirks, since the option is set in fdi/information/10freedesktop/99-video-quirk-default.fdi from hal-info. http://bugs.freedesktop.org/show_bug.cgi?id=25334 Signed-off-by: Tormod Volden <debian.tormod@gmail.com> Signed-off-by: Victor Lowther <victor.lowther@gmail.com>
2009-12-06Resolve bug# 25427Victor Lowther1-1/+1
2009-11-12Add back have_smart_intelVictor Lowther1-1/+22
We still need to consider the case where i915 is used with modesetting disabled. So revert the have_smart_intel removal in 504faf0a0c31cbdbc03a608cf633d58f12e49eb7. Thanks, mbiebl!
2009-11-08Don't err out in maybe_deallocvt if there is no console stateMichael Biebl1-1/+1
kpowersave pops up a window telling that an error "1" has occurred when suspending to ram. The error "1" message is annoying and lacks meaning to the user. It's caused by maybe_deallocvt returning the ret_val of state_exists when the tested (here: console) file isn't found. This absence of this file seems not to do any harm therefore the escalation of the ret_val 1 is deprecated. Solution: just tell maybe_deallocvt to return 0 in the above case. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=554959
2009-11-07Merge commit 'remotes/UPSTREAM/master'Victor Lowther2-3/+2
2009-11-07Make kernel modesetting detection a little smarter.Victor Lowther1-24/+4
It turns out that the method we were using to detect kernel modesetting support was not very accurate. It turns out there is no bulletproof way for us to tell if KMS is being used, but Michael Biebl found a way that sucks less than out current method. Hopefully the framebuffer drivers will grow a flag in sysfs somewhere that tells us that KMS is in use.
2009-07-06Revert "Fix a bashism ('==')"Michael Biebl1-1/+1
This reverts commit f3821f3479a58a8453bf9219fb5933fd99b5c1a8. The fix was actually bogus and a false-positive of checkbashisms.
2009-07-01Fix a bashism ('==')Michael Biebl1-1/+1
See Debian bug: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=530164
2009-07-01Update comment to reflect current stateMichael Biebl1-2/+1
2009-06-13Make is_set checking more explicitVictor Lowther1-2/+3
If is_set is not one of the usual boolean values, return 2.
2009-05-06Update places where we check for booleans to use is_setVictor Lowther3-6/+6
Suprisingly, there are not that many.
2009-05-06Add is_set function to make checking boolean variables easier.Victor Lowther1-1/+13
The definition of a boolean variable is one that is set to "true", "yes" "1", or that is set to the null value.
2009-04-23Fix a few typos in the documentationMichael Biebl1-1/+1
See http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=525253
2009-04-17Fix typo in have_kms()Michael Biebl1-1/+1
The function is correctly called add_parameters. Debian bug http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=524243
2009-04-11Use sched_smt_power_savings.Victor Lowther1-3/+3
There is no sched_smp_power_savings tunable. Thanks, Michael Biebl!
2009-04-03We should not need to chvt when suspending using KMSVictor Lowther1-3/+4
2009-04-03Add KMS support to 98-smart-kernel-videoVictor Lowther1-27/+25
Also factor some things out to make 98-smart-kernel-video shorter.
2009-04-03Move chvt handling into 99videoVictor Lowther4-25/+19
This prepares for adding kernel modesetting support.
2009-02-06Make CHASSIS_TYPE always have Unknown if we cannot determine the chassis type.Victor Lowther1-1/+1
2009-01-26Resolve fd.o bug# 19658Victor Lowther1-1/+1
modunload was not unloading dependent modules correctly due to incorrect string handling. Fix provided by zak.kipling@cantab.net.
2009-01-26Merge commit 'UPSTREAM/master'Victor Lowther1-1/+2
2009-01-18Match gentoo message "started" when checking for running servicesDan Nicholson1-1/+2
Gentoo uses the convention of printing the message "started" when showing the status of services. Augment stopservice() to check this in addition to "running". This also drops the unnecessary -c argument from the grep command. Signed-off-by: Dan Nicholson <dbn.lists@gmail.com>
2008-12-15Fix broken quirk handling introduced by auto-quirk debugging change.Victor Lowther1-1/+1
2008-12-14Echo the quirks we got from HAL in 00auto-quirk.Victor Lowther1-3/+5
This will make pm-utils slightly easier to debug. Thanks, Michael Biebl for the idea.
2008-12-14hal-get-porperty runs just fine as a normal userVictor Lowther1-1/+1
2008-12-05Do not try to make removed hookspm-utils-1.2.3Victor Lowther1-2/+0
2008-11-30Added notes on how to minimized user impact.Victor Lowther1-0/+13
After all, user perception of these things is our reality.
2008-11-30Add more comments to uswsusp since it is being used as an example in ↵Victor Lowther1-6/+19
documentation
2008-11-30Describe stackable sleep modules in HOWTO.modules.Victor Lowther1-42/+23
2008-11-30Drop 50ntpdVictor Lowther1-28/+0
ntpd operates normally over a sleep/wake cycle. Stoppping and restarting it in a sleep hook is too adhoc. If it is essential that ntpd be stopped and restarted, then having NetworkManager do the job when interfaces go offline and come back online is a better way to do things.
2008-11-30Drop 65alsa -- it is useless by itself.Victor Lowther1-19/+0
alsa drivers that support suspend/resume will save their state without it. alsa drivers that don't will need to be unloaded and reloaded as well as having their state saved and restored to work properly. See thread at http://mailman.alsa-project.org/pipermail/alsa-devel/2008-November/013030.html
2008-11-30Support Slackware init system.Victor Lowther1-8/+7
2008-11-3090clock takes over a second to run on suspend.Victor Lowther2-0/+5
Most systems do not need it. Add NEED_CLOCK_SYNC, and only run hwclock if it is set. This will probably go away entirely in a later release.
2008-11-30Remove 55batteryVictor Lowther2-21/+0
HAL has handled rescanning the batteries since mid 2006.
2008-10-29Added dbus_send helper function.Victor Lowther4-5/+12
This function works just like dbus-send, but returns $NA if the command fails for any reason. Also modified hooks to use dbus_send where applicable.
2008-10-07Reset acpi_video_flags before suspend.Michael Biebl1-3/+1
If no --quirk-s3-* option is passed to pm-suspend, set acpi_video_flags to 0. This allows to reliably test different set of quirks and clears any flags that were set via the kernel boot option. We deliberately ignore the kernel acpi_sleep option, quirks should be set via HAL.
2008-10-06One last cleanup in 00auto-quirksMichael Biebl1-1/+1
2008-10-05Do not save quirks if we were inhibited.Victor Lowther1-0/+1
2008-10-05Always reset acpi video flags in 99video on resumeVictor Lowther1-0/+2
2008-10-05Numbers are also valid in quirks from lshal.Victor Lowther1-1/+1
2008-10-05Fix incomplete renaming of _METHOD to _MODULEVictor Lowther2-8/+8
2008-10-05Fix stupid thinko in has_parameterVictor Lowther1-1/+1
2008-10-04Do not save generated .fdi in /tmpVictor Lowther1-2/+2
Instead, save them in /etc/hal/fdi/information. Closes an airline-plot potential DoS attack.
2008-10-03Merge branch 'auto-quirks'Victor Lowther1-1/+1
2008-09-27Fixed typo in 00auto-quirkVictor Lowther1-1/+1
2008-09-27Merge branch 'auto-quirks'Victor Lowther4-4/+135
2008-09-27Merge branch 'auto-backend'Victor Lowther4-119/+138
2008-09-27Use hal-get-property instead of dmidecode to get the chassis type.Victor Lowther1-2/+2
2008-09-17Impliment module autoloading.Victor Lowther1-6/+9
We can now autodetect the proper sleep methods, and the sleep modules are stackable.