如何在声音菜单中加入麦克风调整

如何在声音菜单中加入麦克风调整

当我使用 Skype 时,我有 2 个用于声音的滚动条:

在此处输入图片描述

我怎样才能始终保留这 2 个滚动条,而不仅仅是在进行 Skype 对话时?当我不与 Skype 对话时,只有扬声器滚动条可见。

编辑1:

以下是输出sudo updatedb; locate -r indicator-sound-service$

/home/dusan/.local/share/Trash/files/build/src/indicator-sound-service
/home/dusan/.local/share/Trash/files/indicator-sound-12.10.2+14.04.20140401/build/src/indicator-sound-service
/home/dusan/.local/share/Trash/files/indicator-sound-12.2.10.2+14.04.20140401/build/src/indicator-sound-service
/home/dusan/.local/share/Trash/files/src/indicator-sound-service
/home/dusan/.local/share/Trash/files/src.2/indicator-sound-service
/home/dusan/.local/share/Trash/files/src.3/indicator-sound-service
/home/dusan/.local/share/Trash/files/src.4/indicator-sound-service
/usr/lib/x86_64-linux-gnu/indicator-sound/indicator-sound-service
/usr/local/lib/x86_64-linux-gnu/indicator-sound/indicator-sound-service

答案1

14.04

  1. 下载构建依赖项和源代码

    sudo apt-get build-dep indicator-sound
    apt-get source indicator-sound
    
  2. 改变src/volume-control.vala

    修改默认从falsetrue

    /** true when a microphone is active **/
    public bool active_mic { get; private set; default = true; }
    

    使用以下方式设置隐藏变量的注释行//

                case Context.SubscriptionEventType.REMOVE:
                    //this.active_mic = false;
                    break;
    
  3. 构建和安装

    cd indicator-sound-12.10.2+14.04.20140313/
    mkdir build
    cd build/
    cmake ..
    make
    sudo make install
    
  4. 终止正在运行indicator-sound-service或注销/登录

    pkill -f indicator-sound-service
    

显示麦克风始终处于声音指示器弹出状态

笔记:

由于某些原因,您可能想要跳过sudo make install或不起作用,然后只需替换可执行文件:

sudo rm /usr/lib/x86_64-linux-gnu/indicator-sound/indicator-sound-service
sudo cp src/indicator-sound-service /usr/lib/x86_64-linux-gnu/indicator-sound/indicator-sound-service
pkill -f indicator-sound-service

相关内容