Audio jack not working in waldorf amd64

view story

http://crunchbang.org – Well I have a beats laptop and there is a subwoofer on my laptop. I got to the point now where my headphones work but when I plug them in the subwoofer is not muted so sound comes through there as well. I was able to get my beats subwoofer working from another persons work.  The problem is he wrote python script that when you plugin the headphones it mutes the subwoofer. Well I tried using his script but I think it is based on ubuntu and using acpid which I dont think debian uses ????... not too sure I am trying to figre out how to write a script myself to disable the subwoofer when headp (HowTos)