2
name: network_before_suspend
4
description: Test the network before suspending.
5
command: network_check -a
8
name: resolution_before_suspend
9
description: Record the current resolution before suspending.
10
command: xrandr -q |grep '*'| awk '{print $1}' > $CHECKBOX_DATA/resolution_before_suspend.txt
13
name: audio_before_suspend
14
description: Test the audio before suspending.
15
command: amixer > $CHECKBOX_DATA/audio_before_suspend.txt
18
name: wireless_before_suspend
19
command: internet_test
21
Wireless network connection procedure:
22
1.- Click on the Network Manager applet
23
2.- Click on Disconnect under 'Wired Networks'
24
3.- Select a network below the 'Wireless networks' section
25
4.- Notify OSD should confirm that the connection has been established
26
5.- Select Test to verify connection and throughput
34
name: bluetooth_detect_before_suspend
35
requires: package.name == 'bluez'
36
command: hcitool dev | tail -n+2 | awk '{print $2}'
38
The address of your Bluetooth device is:
44
name: bluetooth_mouse_before_suspend
45
depends: bluetooth_detect_before_suspend
47
Verify a bluetooth peripheral. An example verification procedure for a bluetooth mouse is given.
49
Bluetooth mouse procedure:
50
1.- Enable the bluetooth mouse
51
2.- Click on the bluetooth icon in the menu bar
52
3.- Select 'Setup new device'
53
4.- Look for the device in the list and select it
54
5.- Move the mouse around the screen
55
6.- Perform some single/double/right click operations
57
Did all the steps work?
60
name: sleep_state_test
61
depends: rtc network_before_suspend resolution_before_suspend wireless_before_suspend bluetooth_detect_before_suspend bluetooth_mouse_before_suspend
62
requires: package.name == 'pm-utils'
64
Power management Suspend and Resume test
66
Click test and your system will suspend for about 30 - 60 seconds. If your system does not wake itself up after 60 seconds, please press the power button momentarily to wake the system manually.
68
command: sleep_test -d
71
name: network_after_suspend
72
depends: sleep_state_test network_before_suspend
73
description: Test the network after resuming.
74
command: internet_test
77
name: resolution_after_suspend
78
depends: sleep_state_test resolution_before_suspend
79
description: Test to see that we have the same resolution after resuming as before.
80
command: xrandr -q |grep '*'| awk '{print $1}' | diff $CHECKBOX_DATA/resolution_before_suspend.txt -
83
name: audio_after_suspend
84
depends: sleep_state_test audio_before_suspend
85
description: Test the audio after resuming.
86
command: amixer | diff $CHECKBOX_DATA/audio_before_suspend.txt -
89
name: wireless_after_suspend
90
depends: sleep_state_test wireless_before_suspend
91
command: internet_test
93
Wireless network connection procedure:
94
1.- Click on the Network Manager applet
95
2.- If a wired connection is established, click its Disconnect option
96
3.- Select a network below the 'Wireless networks' section
97
4.- Notify OSD should confirm that the connection has been established
98
5.- Select Test to verify connection and throughput
106
name: bluetooth_detect_after_suspend
107
depends: sleep_state_test bluetooth_detect_before_suspend
108
requires: package.name == 'bluez'
109
command: hcitool dev | tail -n+2 | awk '{print $2}'
111
The address of your Bluetooth device is:
117
name: bluetooth_mouse_after_suspend
118
depends: sleep_state_test bluetooth_detect_after_suspend
120
Verify a bluetooth peripheral. An example verification procedure for a bluetooth mouse is given.
122
Bluetooth mouse procedure:
123
1.- Enable the bluetooth mouse
124
2.- Click on the bluetooth icon in the menu bar
125
3.- Select 'Setup new device'
126
4.- Look for the device in the list and select it
127
5.- Move the mouse around the screen
128
6.- Perform some single/double/right click operations
130
Did all the steps work?
133
name: cycle_resolutions_after_suspend
134
depends: sleep_state_test xrandr_cycle
136
This test will check to make sure that supported video modes work after a suspend and resume. Click Test to Begin.
137
command: xrandr_cycle
140
name: record_playback_after_suspend
141
depends: sleep_state_test
143
device.category == 'AUDIO'
144
package.name == 'alsa-base'
145
command: alsa_record_playback
147
This will check to make sure that your audio device works properly after a suspend and resume. You can use either internal or external microphone and speakers.
149
To execute this test, make sure your speaker and microphone are NOT muted and the volume is set sufficiently loud to record and play audio. Click the Test button and then speak into your microphone. After a few seconds, your speech will be played back to you.
151
Did you hear your speech played back?
154
name: suspend_30_cycles
156
requires: package.name == 'pm-utils'
158
command: sleep_test -i 30 -s mem --debug
160
Enter and resume from suspend state for 30 iterations. Please note that this is a lengthy test. Click Test to begin.
162
Did the system successfully suspend and resume for 30 iterations?
167
command: sleep_test -s disk -w 120 --debug
169
This will check to make sure your system can successfully hibernate (if supported).
171
Click the Test button to begin. The system will hibernate and should wake itself within 5 minutes. If your system does not wake itself after 5 minutes, please press the power button to wake the system manually.
173
Did the system successfully hibernate and did it work properly after waking up?
176
name: hibernate_30_cycles
178
requires: package.name == 'pm-utils'
180
command: sleep_test -i 30 -s disk -w 120 --debug
182
Enter and resume from hibernate for 30 iterations. Please note that this is a very lengthy test. Also, if your system does not wake itself after 2 minutes, you will need to press the power button to wake the system up.
184
Also, you will need to ensure your system has no power-on or HDD passwords set, and that grub is set to boot Ubuntu by default if you have a multi-boot set-up.
186
Did the system successfully hibernate and wake 30 times?