See here.
Basically, it doesn't work. You, at present can not have a front panel on a g5 that will automatically switch to headphone jack when headphones are plugged into the front jack.
However, some people have been able to manually select (Sys Pref, -> Sound, -> Output) the front jack. I...