Usually when we use a laptop, this type of equipment has keys with multimedia functions to control the volume of output through the speakers, but a conventional PC, with a conventional keyboard, this is not the case.
In my case, with Xfce I have found a way to upload, get off, silence y activar the volume using mixer, which is nothing more than a mixer for Alsa which is used through command lines. The commands I used in this case, along with the key combination, I put below:
Turn up the volume:
command: amixer sset Master playback 5%+
with the keys: [Ctrl] + [+]
Volume Down
command: amixer sset Master playback 5%-
with the keys: [Ctrl] + [-]
Put everything on Silent:
command: amixer sset Master mute
with the keys: [Ctrl] + [*]
Activate the sound:
command: amixer sset Master unmute
with the keys: [Ctrl] + [/]
I must clarify that Master is the channel to which I am going to apply the options. As usual in Xfce, to configure these shortcuts we go to Menu »Preferences» Keyboard »Application shortcuts and it should stay as in the image.
Sure, you can use the shortcuts you prefer 😀
Well, on my keyboard the volume keys work perfectly, in xfce, without configuring anything
What are the keys you use?
a special key that puts FN on the keyboard and at the same time:
cursor right (volume up)
cursor left (volume down)
cursor down (mute)
volume figures appear on the cursors on the keyboard to differentiate them
It is a multimedia keyboard that came with the mouse, wireless, logitech
Man, but that's a laptop or netbook right? I am talking about a normal PC with a keyboard without the FN key.
They also have FN, at least here, no idea in your land
Yes, on a PC, with your monitor, multifunction printer, multimedia speakers, and various other comics xD
there are multimedia keyboards for all tastes
Ehmm…, it is not a very good idea to use [Ctrl] + [+] and [Ctrl] + [-] to change the volume, that combination is used by many programs, for example Firefox and Chrome to change the zoom of the pages.
In any case, [Super] + [+] and [Super] + [-] would be more convenient.
Yup, you're right. U_U
My keyboard does not have the multimedia keys, so it is excellent for me to continue improving my XFCE.
Thank you!!
There is another alternative that consists of using xfce4-volumed
With xfce4-volumed it worked perfect for me. thanks…
I used the same commands, but associating the multimedia keys because xfce did not recognize the Fn keys, but then I discovered the Fnfx package and did not have to use them anymore.
My laptop has the Fn keys and even so I had to configure as you say xD. What does not appear is the OSD, how did you put it?
Thank you, it helped me 😀
A pleasure for us 😀
I have been using this technique for a year… using Ctrl-Fn-F9… because Fn-F9, which was the original, doesn't work. When I assign it, it tells me if I want to replace the original which supposedly controls volume with PulseAudio. But no matter how much you replace it, it doesn't work.
Do you know something about this?
Thank you.
Because it may not show me in the notify the volume when it goes up or down. The rest works
Thank you
It was very helpful, since my keyboard has no volume control 🙂 Xubuntu 14.4
I want to continue creating more keyboard shortcuts in the same way, for example the shutdown button, what would be the command to shut down the computer?
Excellent post, it has been very useful to me.
thank you very much.
MANY Thanks for your help. I don't know what happened with the volume keys, they stopped working on my Xubuntu 17.04.1 but thanks to the tutorial it's fine again.
sañudos from Lima Peru
Excellent, thank you very much, how useful this page is to me