On Mon, Jan 16, 2012 at 10:14:28PM -0600, ??Q?? wrote > I want sound muted on boot, but it always starts unmuted. I don't know > when this problem started; I only noticed it because I recently went > through a stretch of being unable to hibernate, so I booted a lot. > > grep -i =\" /etc/conf.d/alsasound > ENABLE_OSS_EMUL="yes" > RESTORE_ON_START="no" > SAVE_ON_STOP="no" > LOAD_ON_START="no" > > I thought the RESTORE_ON_START="no" should do what I want, but no such > luck. I tried the old `# alsactl store` after using alsamixer to mute > sound, which also didn't help.
Here's a heavy-handed way to over-ride that; do this as root... 1) Use alsamixer to mute sound 2) Immediately afterwards, save the settings to e.g. /root/muted.state # alsactl store -f /root/muted.state 3) Create file /etc/local.d/000.start and set it executable. It should have 2 lines #!/bin/bash alsactl restore -f /root/muted.state This will cause the muted configuration to be restore near the end of the boot process 4) If you're really paranoid... # cp /etc/local.d/000.start /etc/local.d/000.stop to force muting when shutting down. ***IMPORTANT*** This does not affect what happens at hibernation. "man hibernate.conf" and check the syntax of "OnSuspend" and "OnResume" for handling issuing custom commands when hibernating or starting up from hibernation. -- Walter Dnes <waltd...@waltdnes.org>