headphone-indicator

Intro

Indicator for headphone status and this will auto mute playing songs while headphone got unplug by accident.
Toggles in the menu shows how many Jacks do your computer had. Indicator won’t monitor the jack port if you switch toggle off.
You can also download the developer version on Github

Dependence

  • amixer
  • gnome-shell

Support players

  • Rhythmbox
  • Banshee
  • Audacious

FAQ

  • Q:It doesn’t show nothing on my panel
    A:

    1. Install “amixer”(or alsa-utils).
    2. You can also check that whether your computer supporting this extension by running “amixer -c0 contents | grep Jack“. Results should content at least one “Headphone Jack” like the screenshot below
  • Q:How can I send you log?
    A:you can run
    amixer -c0 contents > ~/amixer.log && cat /proc/asound/card0/codec#0 > ~/asound.log && zip ~/headphone ~/amixer.log ~/asound.log && rm ~/amixer.log ~/asound.log
    in terminal and report this issue to https://github.com/mengzhuo/gnome-shell-headphone-indicator/issues