View Single Post
Posts: 2,154 | Thanked: 8,464 times | Joined on May 2010
#901
Originally Posted by vi_ View Post
I have just made the jump to OMP.

2 suggestions you can feel free to ignore.

1. Pali, how did you manage to 'read' the state of the headset button without changing the jack bias thing in hal thing?? I wept tears of joy! Suggestion 1. Include some kind of basic 'headphoned' functionality in OMP. That is pause the music when I unplug the headphones. This means I can have 1 less daemon running in the background meaning more battery life and available memory for all my porn watching.

2. Actually I only have 1 suggestion. See above.
Jack bias switch is classic alsa mute swicth. So you can use alsamixer or amixer (or other alsa tool) to changing/muting some alsa switches.

Problematic is only daemon alsaped (closed, nokia, prorietary) which muting jack bias switch when headphones are connected or disconnected. (stupid!)

So my patch listen to HAL signal "jack inserted" and enable jack bias switch using amixer. Signal is sent after alsaped daemon disabling jack bias, so OMP can enable it again

And implementing autopuase OMP when headphones are disconnected will be my next think which I implement. I want to remove headphoned daemon too
 

The Following 11 Users Say Thank You to pali For This Useful Post: