LoginSignup
4
4

More than 5 years have passed since last update.

OS起動後、音がミュートになっているのを解除する方法

Last updated at Posted at 2015-05-23

参考

alsactl を使う

ミュートを解除した状態で保存

設定保存
/usr/sbin/alsactl --file ~/.config/asound.state store
設定復元
/usr/sbin/alsactl --file ~/.config/asound.state restore

amixer を使う

ミュート状態と、ミュート解除状態をamixerコマンドの出力結果でdiffをとりあたりをつける。
自分の場合だと以下でミュート解除できた。

amixer -q set IEC958 on
~/.bashrc
if [ "$DISPLAY" = ":0.0" ];then
  amixer -q set IEC958 on
fi
4
4
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
4