Default volume keybindings do not work when audio is switched to HDMI
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
lubuntu-default-settings (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
The default keybindings for changing the volume in Lubuntu are found in /usr/share/
<!-- Keybinding for Volume management -->
<keybind key="XF86AudioR
<action name="Execute">
</action>
</keybind>
<keybind key="XF86AudioL
<action name="Execute">
</action>
</keybind>
<keybind key="XF86AudioM
<action name="Execute">
</action>
</keybind>
If you are running Lubuntu on a laptop (which has the built-in audio card with analog audio), those commands work correctly.
However, when you switch the audio to HDMI, those commands do not work anymore.
To switch to HDMI audio:
pacmd set-card-profile 0 output:
To switch back to analog audio:
pacmd set-card-profile 0 output:
Alternatively, right-click on the speaker icon at lxpanel, select "Volume Control Settings", and change the active profile at the "Configuration" tab.
The solution for this bug is quite simple: just add "-D pulse" to each of those commands, like this:
<!-- Keybinding for Volume management -->
<keybind key="XF86AudioR
<action name="Execute">
</action>
</keybind>
<keybind key="XF86AudioL
<action name="Execute">
</action>
</keybind>
<keybind key="XF86AudioM
<action name="Execute">
</action>
</keybind>
This solution was found here:
http://
https:/
This solution, however, will not update the user's own configuration file, and probably it shouldn't try anyway.