diff options
author | PlusMinus0 | 2016-09-21 11:10:26 +0200 |
---|---|---|
committer | PlusMinus0 | 2016-09-21 11:10:26 +0200 |
commit | 6191d81c3614284fb47493752d7bd907b8368937 (patch) | |
tree | e3b255772dbd8d0c898e9adcd601b04cf554b6f8 /displaylink-sleep.sh | |
parent | c24dd22790a8438ca999a404a11a727e2416d12f (diff) | |
download | aur-6191d81c3614284fb47493752d7bd907b8368937.tar.gz |
Modified udev and service to match upstream.
Diffstat (limited to 'displaylink-sleep.sh')
-rw-r--r-- | displaylink-sleep.sh | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/displaylink-sleep.sh b/displaylink-sleep.sh index bc26362e2f10..b47d5fd2d45d 100644 --- a/displaylink-sleep.sh +++ b/displaylink-sleep.sh @@ -1,22 +1,24 @@ #!/bin/bash -# Copyright (c) 2015 DisplayLink (UK) Ltd. +# Copyright (c) 2015 - 2016 DisplayLink (UK) Ltd. suspend_dlm() { #flush any bytes in pipe - while read -n 1 -t 1 SUSPEND_RESULT < /usr/lib/displaylink/PmMessagesPort_out; do : ; done; + while read -n 1 -t 1 SUSPEND_RESULT < /tmp/PmMessagesPort_out; do : ; done; #suspend DisplayLinkManager - echo "S" > /usr/lib/displaylink/PmMessagesPort_in + echo "S" > /tmp/PmMessagesPort_in - #wait until suspend of DisplayLinkManager finish - read -n 1 -t 10 SUSPEND_RESULT < /usr/lib/displaylink/PmMessagesPort_out + if [ -f /tmp/PmMessagesPort_out ]; then + #wait until suspend of DisplayLinkManager finish + read -n 1 -t 10 SUSPEND_RESULT < /tmp/PmMessagesPort_out + fi } resume_dlm() { #resume DisplayLinkManager - echo "R" > /usr/lib/displaylink/PmMessagesPort_in + echo "R" > /tmp/PmMessagesPort_in } case "\$1/\$2" in |