I want to set the speaker and microphone volume to zero or mute them every time my laptop starts, even if the last time I shut down my computer they where not muted. Just like what Kali Linux does. Thanks in advanced.
This answer from stack exchange should do the trick: Set Ubuntu Sound Volume on boot
From the question you want to use this command:
`/usr/bin/amixer -c 0 sset Master,0 0% > /dev/null`
From the answer you want to add the command in:
Insert the command after the first line and before the last line:
#!/bin/sh # <---- This is the first line `/usr/bin/amixer -c 0 sset Master,0 0% > /dev/null` exit 0 # <---- This is the last line
In my Ubuntu 16.04 LTS sound is already muted on boot. This happens to others as well: How to make my microphone unmuted on startup?
Check the file
/etc/modprobe.d/alsa-base.conf and look for the line:
options snd-hda-intel model=auto enable=yes
If it exists either delete it or put
# in the first character position.