diff options
author | Peter Jones <pjones@redhat.com> | 2007-01-30 16:50:27 +0000 |
---|---|---|
committer | Peter Jones <pjones@redhat.com> | 2007-01-30 16:50:27 +0000 |
commit | dd5832149649ffc7128548e83f9592468801f9f4 (patch) | |
tree | 0c450fd1ed2f483c3f5ffa49e65fdf43330ee1ef | |
parent | 533751122ad699a8390954bd1a611560ffb30f9b (diff) |
- add pm hook to save and restore alsa settings
- add 60sysfont and 65alsa to Makefile.am
-rw-r--r-- | ChangeLog | 3 | ||||
-rwxr-xr-x | pm/hooks/65alsa | 14 | ||||
-rw-r--r-- | pm/hooks/Makefile.am | 2 |
3 files changed, 19 insertions, 0 deletions
@@ -1,5 +1,8 @@ 2007-01-30 Peter Jones <pjones@redhat.com> + * pm/hooks/65alsa: Add a hook to save and restore alsa settings (patch + from Phil Knirsch). + * pm/hooks/60sysfont: Add a hook to reset the sysfont on resume, originally by Phill Knirsch (rhbz #215391). diff --git a/pm/hooks/65alsa b/pm/hooks/65alsa new file mode 100755 index 0000000..d3338e6 --- /dev/null +++ b/pm/hooks/65alsa @@ -0,0 +1,14 @@ +#!/bin/bash + +case "$1" in + hibernate|suspend) + /usr/sbin/alsactl store 0 >/dev/null 2>&1 + ;; + thaw|resume) + /usr/sbin/alsactl restore 0 >/dev/null 2>&1 + ;; + *) + ;; +esac + +exit $? diff --git a/pm/hooks/Makefile.am b/pm/hooks/Makefile.am index 15c5137..039d57a 100644 --- a/pm/hooks/Makefile.am +++ b/pm/hooks/Makefile.am @@ -8,6 +8,8 @@ sleep_SCRIPTS = \ 20video \ 49bluetooth \ 50modules \ + 60sysfont \ + 65alsa \ 90clock \ 94cpufreq \ 95led |