summaryrefslogtreecommitdiff
path: root/jobs
diff options
authorPo-Hsu Lin <po-hsu.lin@canonical.com>2015-03-18 10:01:32 +0800
committerPo-Hsu Lin <po-hsu.lin@canonical.com>2015-03-18 10:01:32 +0800
commit51639d8346b24cb7217542e2e5c99f743bf87abd (patch)
treefd4ae25976d57c0052ec3dbd52872e3324f76de2 /jobs
parent73b271ef5d74794746334c2bcd11e5e33bf2bcdb (diff)
resolution_before_suspend: adding switch_card job dependency to it
Diffstat (limited to 'jobs')
-rw-r--r--jobs/suspend.txt.in1
1 files changed, 1 insertions, 0 deletions
diff --git a/jobs/suspend.txt.in b/jobs/suspend.txt.in
index 64a10bb..03c4059 100644
--- a/jobs/suspend.txt.in
+++ b/jobs/suspend.txt.in
@@ -19,6 +19,7 @@ command:
cat <<'EOF' | run_templates -t -s 'graphics_card_resource'
plugin: shell
id: suspend/`echo ${index}`_resolution_before_suspend_`echo "${product}" | sed 's/ /_/g;s/[^_a-zA-Z0-9-]//g'`
+ depends: graphics/`echo ${index}`_switch_card_`echo "${product}" | sed 's/ /_/g;s/[^_a-zA-Z0-9-]//g'`
estimated_duration: 1.2
_description: Record the current resolution before suspending.
command: xrandr -q |grep '*'| awk '{print $1}' > $PLAINBOX_SESSION_SHARE/`echo ${index}`_resolution_before_suspend_`echo "${product}" | sed 's/ /_/g;s/[^_a-zA-Z0-9-]//g'`.txt