A message for Linux.com registered users: We are in the process of making changes to the Linux forums. Starting Monday, 8/13/18 at 6:00 PM PT, you will be unable to access the forums. They will re-launch as soon as possible on Wednesday, 8/15/18 with new features and improved functionality. Thank you for your patience and stay tuned for the new improved forums.

November 20, 2014

Run .py script in /etc/pm/sleep.d to get my headphones to keep working when I close my laptop

Hi y'all!
Toshiba P205 laptop with Linux Mint 17 and cinnamon.
The headphones port would not work. I ran HDA Analyzer and checked EAPD, created a script "audio.py" from there and managed to run it on reboot in r-local.
I'd like to run it in /etc/pm/sleep.d so my headphones can still work on resume.
i tried:
#!/bin/sh
case "$1" in
thaw|resume)
python /home/username/Documents/audio.py
;;
esac

What am I missing?

Please help! I've had mint for 2 weeks.

Thanks for looking.

Click Here!