Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- cd /lib/systemd/system-sleep
- sudo cp hdparm tv-sound
- gksu gedit tv-sound
- #!/bin/sh
- case $1/$2 in
- pre/*)
- echo "Going to $2..."
- # Place your pre suspend commands here, or `exit 0` if no pre suspend action required
- sleep 1
- ;;
- post/*)
- echo "Waking up from $2..."
- # Place your post suspend (resume) commands here, or `exit 0` if no post suspend action required
- sleep 2
- export PULSE_RUNTIME_PATH="/run/user/1000/pulse/"
- sudo -u rick -E pacmd set-card-profile 0 output:hdmi-stereo
- ;;
- esac
- sudo chmod +x tv-sound
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement