Advertisement
Guest User

Untitled

a guest
Feb 19th, 2017
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. cd /lib/systemd/system-sleep
  2. sudo cp hdparm tv-sound
  3. gksu gedit tv-sound
  4.  
  5. #!/bin/sh
  6.  
  7. case $1/$2 in
  8. pre/*)
  9. echo "Going to $2..."
  10. # Place your pre suspend commands here, or `exit 0` if no pre suspend action required
  11. sleep 1
  12. ;;
  13. post/*)
  14. echo "Waking up from $2..."
  15. # Place your post suspend (resume) commands here, or `exit 0` if no post suspend action required
  16. sleep 2
  17. export PULSE_RUNTIME_PATH="/run/user/1000/pulse/"
  18. sudo -u rick -E pacmd set-card-profile 0 output:hdmi-stereo
  19. ;;
  20. esac
  21.  
  22. sudo chmod +x tv-sound
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement