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