音量热键在 Lubuntu 中不起作用

use*_*836 11 sound keyboard shortcut-keys lubuntu

我在我的联想 Z510 中安装了 Lubuntu(14.04.2 LTS)。

我的笔记本电脑中的多媒体热键是独立的。指使用多媒体键我不必Fn按键。亮度热键工作正常,但只有音量按钮(静音、增大音量、减小音量)不起作用。

我试过

gsettings reset org.gnome.settings-daemon.plugins.media-keys volume-up
gsettings reset org.gnome.settings-daemon.plugins.media-keys volume-down
gsettings reset org.gnome.settings-daemon.plugins.media-keys volume-mute
Run Code Online (Sandbox Code Playgroud)

但仍然没有任何反应。

mee*_*ick 9

在 17.04 上,默认音量命令将不起作用,因为在 ~/.config/openbox/lubuntu-rc.xml 上 amixer 命令是错误的。为了修复它,找到“XF86Audio”关键标签

<keybind key="XF86AudioRaiseVolume">
      <action name="Execute">
        <command>amixer -q sset Master 3%+ unmute</command>
      </action>
    </keybind>
    <keybind key="XF86AudioLowerVolume">
      <action name="Execute">
        <command>amixer -q sset Master 3%- unmute</command>
      </action>
    </keybind>
    <keybind key="XF86AudioMute">
      <action name="Execute">
        <command>amixer -q sset Master toggle</command>
      </action>
    </keybind>
Run Code Online (Sandbox Code Playgroud)

将 amixer -q 选项更改为“amixer -D 脉冲”。该文件必须如下所示:

<!-- Keybinding for Volume management -->
    <keybind key="XF86AudioRaiseVolume">
      <action name="Execute">
        <command>amixer -D pulse sset Master 3%+ unmute</command>
      </action>
    </keybind>
    <keybind key="XF86AudioLowerVolume">
      <action name="Execute">
        <command>amixer -D pulse sset Master 3%- unmute</command>
      </action>
    </keybind>
    <keybind key="XF86AudioMute">
      <action name="Execute">
        <command>amixer -D pulse sset Master toggle</command>
      </action>
    </keybind>
Run Code Online (Sandbox Code Playgroud)

  • 我认为需要 `openbox --reconfigure` 使更改生效,但它仍然对我不起作用。我通常必须将 Fn 与 F1、F2 和 F3 结合使用以进行音量控制(不工作)以及 F5 和 F6 以进行亮度控制(* 确实* 工作)。 (2认同)

小智 3

尝试更改一些命令$HOME/.config/openbox/lubuntu-rc.xml

<!-- Keybinding for Volume management -->
<keybind key="XF86AudioRaiseVolume">
<action name="Execute">
<command>amixer -D pulse sset Master 3%+</command>
</action>
</keybind>
<keybind key="XF86AudioLowerVolume">
<action name="Execute">
<command>amixer -D pulse sset Master 3%-</command>
</action>
</keybind>
<keybind key="XF86AudioMute">
<action name="Execute">
<command>amixer -D pulse sset Master 0%</command>
</action>
</keybind>
Run Code Online (Sandbox Code Playgroud)


Nik*_*kog 0

尝试keytouch,一个键盘快捷键编辑器。

在终端中输入安装

sudo apt-get install keytouch-editor
Run Code Online (Sandbox Code Playgroud)