Saturday, April 9, 2011

Disable volume OSD in gnome (workaround)

By default, when you use the media keys to change the volume in Gnome, an On Screen Display (OSD) appears, telling you what the volume is. This is distracting when you're trying to watch full screen video (especially in flash), and can cause other problems with full screen apps.

There doesn't seem to be a good way to turn it off, but here's a way to work around it:

  1. In Gnome's "Keyboard Shortcuts" dialog, use "Add" to add 3 custom shortcut

    • Increase volume: amixer -c 0 sset Master,0 1+ unmute

    • Decrease volume: amixer -c 0 sset Master,0 1- unmute

    • Toggle mute: amixer -c 0 sset Master,0 toggle



  2. Assign these to the media keys

The keys should do the same thing they did before, without showing the OSD. (If you want to change volume more quickly, use 2+, 3-, 4+, etc instead of 1)