Package: pm-utils / 1.4.1-15

Metadata

Package Version Patches format
pm-utils 1.4.1-15 3.0 (quilt)

Patch series

view the series file
Patch File delta Description
05 uswsusp hibernate mode.patch | (download)

pm/module.d/uswsusp | 6 5 + 1 - 0 !
1 file changed, 5 insertions(+), 1 deletion(-)

 check hibernate_mode in uswsusp module
01_xfs_buffer_arguments.patch | (download)

pm/power.d/xfs_buffer | 2 1 + 1 - 0 !
1 file changed, 1 insertion(+), 1 deletion(-)

 [patch 2/2] pm/power.d/xfs_buffer: fix wrong argument ordering

Write the values in the correct order.

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=44620
Bug-Ubuntu: https://launchpad.net/bugs/645974

Signed-off-by: Martin Pitt <martin.pitt@ubuntu.com>

02 logging append.patch | (download)

pm/pm-functions.in | 2 1 + 1 - 0 !
1 file changed, 1 insertion(+), 1 deletion(-)

 do not clear the log file on each operation, but instead append to it.
 This makes debugging of several suspends much easier.
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=25255
Bug-Ubuntu: https://launchpad.net/bugs/410352

03 fix alpm typo.patch | (download)

pm/power.d/sata_alpm | 2 1 + 1 - 0 !
1 file changed, 1 insertion(+), 1 deletion(-)

 [patch 3/3] fix typo in sata_alpm
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

ALPM → APLM

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=44676
Bug-Ubuntu: https://launchpad.net/bugs/900930

04 ignore led failure.patch | (download)

pm/sleep.d/95led | 2 2 + 0 - 0 !
1 file changed, 2 insertions(+)

 led operation should not block s3/s4
06 quirk lkw cache.patch | (download)

man/pm-action.xml | 9 5 + 4 - 0 !
pm/pm-functions.in | 2 1 + 1 - 0 !
2 files changed, 6 insertions(+), 5 deletions(-)

 store last_known_working.quirkdb in /var/cache
 last_known_working.quirkdb is more of a cache file then a configuration file
 and e.g. changes on kernel upgrades, so we don't want it in /etc/pm.
 Move it to /var/cache/pm-utils instead
09 document add drop parameters.patch | (download)

man/pm-action.xml | 19 19 + 0 - 0 !
1 file changed, 19 insertions(+)

 document {add,drop}_parameters config variables
Debian-Bug: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=485443
11 handle on_ac_power 255 return code.patch | (download)

src/pm-powersave.in | 11 10 + 1 - 0 !
1 file changed, 10 insertions(+), 1 deletion(-)

 handle on_ac_power 255 return code
 As we are using the on_ac_power utility from powermgmt-base, which returns
 255 when it can't determine the AC power state, assume we have a desktop
 system in such a case. This behaviour is compatible with the pm-utils upstream
 implementation of on_ac_power.
Debian-Bug: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=572060
12 fix intel audio powersave hook.patch | (download)

pm/power.d/intel-audio-powersave | 4 2 + 2 - 0 !
1 file changed, 2 insertions(+), 2 deletions(-)

 [pm-utils] wrong path in intel-audio-powersave (and a small bug)
Date: Sat, 25 Sep 2010 11:27:30 +0200

In the script intel-audio-powersave is this loop

for dev in /sys/module/snd_*/parameters/power_save; do
	[ -w "$dev/parameters/power_save" ] || continue
     printf "Setting power savings for $s to %d..." "$dev##*/" "$1"
	echo $1 > "$dev/parameters/power_save" && echo Done. || echo Failed.
done

I think it should be

for dev in /sys/module/snd_*; do
	[ -w "$dev/parameters/power_save" ] || continue
     printf "Setting power savings for %s to %d..." "${dev##*/}" "$1"
	echo $1 > "$dev/parameters/power_save" && echo Done. || echo Failed.
done


This fixes the two bugs.

13 49bluetooth sync.patch | (download)

pm/sleep.d/49bluetooth | 9 9 + 0 - 0 !
1 file changed, 9 insertions(+)

 [patch] 49bluetooth: wait for btusb module to get unused

The 49bluetooth hook disables /proc/acpi/ibm/bluetooth but this isn't
synchronous, i. e. it doesn't wait until the module usage count actually drops
to 0. Due to that, it's impossible to add btusb to SUSPEND_MODULES (on some
models/older kernels you need to do that to fix suspend problems), as at that
point the module is still in use.

On my system (ThinkPad X201) the module takes between 0.3 and 0.5 seconds to
unload, so use 100 ms wait steps with a timeout of 2 seconds.

Bug: https://bugs.freedesktop.org//show_bug.cgi?id=33759
Bug-Ubuntu: https://launchpad.net/bugs/698331

14 disable sata alpm.patch | (download)

pm/power.d/sata_alpm | 4 2 + 2 - 0 !
1 file changed, 2 insertions(+), 2 deletions(-)

 disable sata link power management by default, as it still causes disk errors and corruptions on many hardware.
15 video_quirks_on_x86_only.patch | (download)

pm/sleep.d/98video-quirk-db-handler | 6 6 + 0 - 0 !
pm/sleep.d/99video | 7 7 + 0 - 0 !
2 files changed, 13 insertions(+)

 only run the video quirk handlers on x86 and x86_64, as they are quite expensive.
16 no powersave before suspend.patch | (download)

pm/sleep.d/00powersave | 9 7 + 2 - 0 !
1 file changed, 7 insertions(+), 2 deletions(-)

 calling pm-powersave before pm-suspend is very slow, it. e. g. takes > 1.5 seconds on a nexus 7. this does not nearly compensate the potentially slightly slower suspend operation in low power mode, so disable it.
17 fix wireless hook.patch | (download)

pm/power.d/wireless | 2 1 + 1 - 0 !
1 file changed, 1 insertion(+), 1 deletion(-)

 fix typo in wireless hook to make enabled check actually work.
25 pmu.patch | (download)

pm/module.d/uswsusp | 2 1 + 1 - 0 !
pm/pm-functions.in | 26 24 + 2 - 0 !
2 files changed, 25 insertions(+), 3 deletions(-)

 replace the usage of the compiled pm-pmu program with a call
# to perl, so that pm-utils can stay Architecture: all

26 inhibit on right status.patch | (download)

pm/pm-functions.in | 4 3 + 1 - 0 !
1 file changed, 3 insertions(+), 1 deletion(-)

 do not use the exit status of log rather the exit status of the hook.
27 run hook logging.patch | (download)

pm/pm-functions.in | 2 1 + 1 - 0 !
1 file changed, 1 insertion(+), 1 deletion(-)

 in suspend log, put empty line after running the hook, not in between.
28 suspend hybrid.patch | (download)

pm/pm-functions.in | 20 20 + 0 - 0 !
1 file changed, 20 insertions(+)

 add support for in-kernel suspend to both
29 laptop mode sysctl.patch | (download)

pm/power.d/laptop-mode | 2 0 + 2 - 0 !
1 file changed, 2 deletions(-)

 respect sysctl.conf by laptop-mode
 Since laptop-mode can be executed after or before sysctl.conf depending on
 the system on AC or Battery, it is not good idea to overwite /proc/sys/vm/*
 with the fixed default kernel values.
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=45889
Bug-Debian: https://bugs.debian.org/659260


80 service.patch | (download)

pm/functions.in | 6 3 + 3 - 0 !
1 file changed, 3 insertions(+), 3 deletions(-)

---