我经常在工作时播放新闻,并想在广告中使声音静音,因此四处寻找
产生了一些好东西,并产生了下面的脚本,其工作原理像一个吊饰:
161 [~]$ MM
numid=16,iface=MIXER,name='Master Playback Switch'
; type=BOOLEAN,access=rw------,values=1
: values=on
Wrong control identifier: Playback
Wrong control identifier: Switch'
numid=15,iface=MIXER,name='Master Playback Volume'
; type=INTEGER,access=rw---R--,values=1,min=0,max=127,step=0
: values=0
| dBscale-min=-95.25dB,step=0.75dB,mute=1
Wrong control identifier: Playback
Wrong control identifier: Volume'
...etc
可以,但是会在终端屏幕上造成混乱:(只是一种味道)
166 [~]$ MM
Wrong control identifier: Playback
Wrong control identifier: Switch'
Wrong control identifier: Playback
Wrong control identifier: Volume'
Wrong control identifier: Playback
Wrong control identifier: Switch'
Wrong control identifier: Playback
Wrong control identifier: Volume'
Wrong control identifier: Playback
Wrong control identifier: Volume'
Wrong control identifier: Playback
Wrong control identifier: Switch'
Wrong control identifier: Playback
Wrong control identifier: Volume'
amixer: Control default element write error: Operation not
permitted
...etc
在cset之后添加-q可以清理一点
166 [~]$ MM
Wrong control identifier: Playback
Wrong control identifier: Switch'
Wrong control identifier: Playback
Wrong control identifier: Volume'
Wrong control identifier: Playback
Wrong control identifier: Switch'
Wrong control identifier: Playback
Wrong control identifier: Volume'
Wrong control identifier: Playback
Wrong control identifier: Volume'
Wrong control identifier: Playback
Wrong control identifier: Switch'
Wrong control identifier: Playback
Wrong control identifier: Volume'
amixer: Control default element write error: Operation not permitted
...etc
但是,为什么我会收到所有这些“错误的控件标识符”消息?
我试图man grep但是后来我的头掉下来了,我不得不用胶带将其重新贴上,现在我头疼。 而且我饿了。
干杯