Author: pebender
Date: Wed Jun 17 14:19:08 2009
New Revision: 4961
Modified:
trunk/gar-minimyth/html/minimyth/document-changelog.txt
trunk/gar-minimyth/script/meta/minimyth/files/source/rootfs/usr/bin/mm_sleep
Log:
- Modified suspend/resume script (mm_sleep)
- Added hack to 'clear' NVidia HDMI output upon resume so that it does
not
make a screaching sound.
Modified: trunk/gar-minimyth/html/minimyth/document-changelog.txt
==============================================================================
--- trunk/gar-minimyth/html/minimyth/document-changelog.txt (original)
+++ trunk/gar-minimyth/html/minimyth/document-changelog.txt Wed Jun 17
14:19:08 2009
@@ -1,7 +1,7 @@
MiniMyth Changelog
--------------------------------------------------------------------------------
-Changes since 67 (2009-06-15):
+Changes since 67 (2009-06-17):
Current MythTV versions
MythTV 0.20-softpad: version 0.20.2.softpad, release-0-20-fixes branch
svn 16082 and
@@ -27,6 +27,10 @@
Modified kernel
- Updated unionfs patch.
+
+Modified suspend/resume script (mm_sleep)
+ - Added hack to 'clear' NVidia HDMI output upon resume so that it does
not
+ make a screaching sound.
Fixed bugs
- Patched irserver to use the lircd FIFOs new location:
/var/run/lirc/lircd.
Modified:
trunk/gar-minimyth/script/meta/minimyth/files/source/rootfs/usr/bin/mm_sleep
==============================================================================
---
trunk/gar-minimyth/script/meta/minimyth/files/source/rootfs/usr/bin/mm_sleep
(original)
+++
trunk/gar-minimyth/script/meta/minimyth/files/source/rootfs/usr/bin/mm_sleep
Wed Jun 17 14:19:08 2009
@@ -102,7 +102,38 @@
}
# Restore system time from the hardware clock.
-system(qq(/sbin/hwclock -r -u));
+system(qq(/sbin/hwclock -r -u $devnull 2>&1));
+
+# Hack to 'clear' NVidia HDMI audio device output.
+# Without this, it may output a continuous screeching sound upon resume.
+ as it does not always resume cleanly.
+if (-x '/usr/bin/aplay')
+{
+ # Find all NVidia HDMI sound devices.
+ my @device_list = ();
+ if (open(FILE, '-|', "/usr/bin/aplay -L"))
+ {
+ while (<FILE>)
+ {
+ chomp;
+ if (/^(hdmi:CARD=NVidia,.*)$/i)
+ {
+ push(@device_list, $1);
+ }
+ }
+ close(FILE);
+ }
+ # Send each NVidia HDMI sound device one silent sample of 48kHz, 2
channel, 16-bit audio.
+ # The packed string is the one silent sample in WAVE file format.
+ foreach my $device (@device_list)
+ {
+ if (open(FILE, '|-', "/usr/bin/aplay -q -D '$device' > $devnull
2>&1"))
+ {
+ print FILE
pack('a*Va*a*VvvVVvva*Vvv', 'RIFF',40,'WAVE','fmt
',16,1,2,48000,48000*2*16/8,2*16/8,16,'data',4,0,0);
+ close(FILE);
+ }
+ }
+}
# Start X
if ($minimyth->var_get('MM_X_RESTART_ON_SLEEP_ENABLED') eq 'yes')
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"minimyth-commits" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/minimyth-commits?hl=en
-~----------~----~----~----~------~----~------~--~---