2013-06-17, 11:12
Hi
Sorry, this is the content of the link, and what I am trying to create: -
Put this to /etc/pm/sleep.d/000-resume-audio
chmod +x /etc/pm/sleep.d/000-resume-audio
Code:
#!/bin/sh
USER=xbmctest
case "$1" in
resume)
# that defines the default primary output
(sleep 10; \
OUTPUT=`su -c "xrandr -display :0 -q | sed '/ connected/!d;s/ .*//;q'" $USER`; \
su -c "xrandr -display :0 --output $OUTPUT --off" $USER; \
sleep 1; \
su -c "xrandr -display :0 --output $OUTPUT --auto" $USER&
;;
esac
Sorry, this is the content of the link, and what I am trying to create: -
Put this to /etc/pm/sleep.d/000-resume-audio
chmod +x /etc/pm/sleep.d/000-resume-audio
Code:
#!/bin/sh
USER=xbmctest
case "$1" in
resume)
# that defines the default primary output
(sleep 10; \
OUTPUT=`su -c "xrandr -display :0 -q | sed '/ connected/!d;s/ .*//;q'" $USER`; \
su -c "xrandr -display :0 --output $OUTPUT --off" $USER; \
sleep 1; \
su -c "xrandr -display :0 --output $OUTPUT --auto" $USER&
;;
esac