Welcome to the Linux Foundation Forum!

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.

Sign In or Register to comment.