Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm using my Logitech M510 mouse's scroll buttons (left & right) to change the volume level. Using xbindkeys I can set them with command like this:

amixer -c 0 set Master playback 2dB+ unmute

But these amixer commands doesn't show the volume popup and they also doesn't maximize the volume to it's maximum. This happens because in sound setting I saw that the sign for 100% is not at the end of the slider but around the 80.

So, how can I detect the buttons for volume up and down from the keyboard. Then with xbindkeys I will bind my mouse buttons to work like them.

xev doesn't show anything when pressing the buttons from the keyboard. Instead of this they are working fine with Linux, just not detected by xev and I can't get the key number for using in xbindkeys.

share|improve this question
up vote 0 down vote accepted

The buttons are XF86AudioRaiseVolume and XF86AudioLowerVolume.

They are not detected by xev, don't know why. But after using these values it worked.


share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.