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)

2 comments:

Shun Dake said...

Hello! Do you know how can I disable the OSD of brightness on gnome?

Jeremy said...

Hm...doesn't look like the same trick will work. (My laptop uses fn+F# to change brightness, and gnome keyboard shortcuts isn't picking that up as a key combination). Looks like you'd have to find a setting for notifyOSD or gnome-power-manager to actually disable it. Good luck!