[FIX] Adjust sound with Multimedia Keys in XFCE 4/Xubuntu
When I installed Xubuntu 12.04 on my laptop (HP Touchsmart tm2) I noticed that even though I had sound playback and the OSD worked, the sound volume didn't increased/decreased after hitting the proper keyboard keys. This was because the keys were actually adjusting the volume of the HDMI output.
This can fixed by changing the value of active-card in the xfce4-mixer settings, but first the correct value must be determined:
- Open "Sound Settings" (Alt+F2 and type: pavucontrol).
- Select the "Output Devices" Tab.
- Annotate the device's name, leaving out spaces and all characters from this list: ()-/
- Now add "Playback" to the beginning and "PulseAudioMixer" to the end of name annotated in the previous step. For me the correct value is: PlaybackBuiltinAudioAnalogStereoPulseAudioMixer
Now that we possess the correct, lets change the xfce4-mixer settings:
- Open the "Settings Editor" (Alt+F2 and type: xfce4-settings-editor).
- Choose the xfce4-mixer channel.
- Edit the active-card value entering the value determined previously.
- For settings take effect, either restart xfce4-volumed (killall xfce4-volumed && xfce4-volumned) or logout/login.