1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
|
plugin: manual
name: power-management/shutdown-boot
_description:
Shutdown/boot cycle verification procedure:
1.- Shutdown your machine
2.- Boot your machine
3.- Repeat steps 1 and 2 at least 5 times
.
Note: This test case has to be executed manually before checkbox execution
plugin: manual
name: power-management/lid
_description:
Does closing your laptop lid cause your screen to blank?
plugin: manual
name: power-management/lid_close
requires: device.product == 'Lid Switch' and package.name == 'linux'
command:
for i in `seq 20`; do
state=`cat /proc/acpi/button/lid/LID/state | awk '{print $2}'`
[ "$state" = "closed" ] && exit 0 || sleep 0.5
done
exit 1
_description:
Click the Test button, then close and open the lid.
.
Did the screen turn off while the lid was closed?
plugin: manual
name: power-management/lid_open
requires: device.product == 'Lid Switch' and package.name == 'linux'
command:
for i in `seq 20`; do
state=`cat /proc/acpi/button/lid/LID/state | awk '{print $2}'`
[ "$state" = "open" ] && exit 0 || sleep 0.5
done
exit 1
_description:
Click the Test button, then close the lid and wait 5 seconds.
.
Open the lid.
.
Did the screen turn back on when the lid was opened?
plugin: shell
name: power-management/rtc
requires: package.name == 'linux'
command:
test -e /dev/rtc
_description:
Make sure that the RTC (Real-Time Clock) device exists.
plugin: shell
name: power-management/fwts_wakealarm
_description: Run Colin Kings FWTS wakealarm test
requires:
package.name == 'linux'
package.name == 'fwts'
command: fwts_test -w -l $CHECKBOX_DATA/fwts-wakealarm.log
plugin: shell
name: power-management/tickless_idle
requires: package.name == 'linux'
_description: Check to see if CONFIG_NO_HZ is set in the kernel
command:
zgrep 'CONFIG_NO_HZ=y' /boot/config-`uname -r` >/dev/null 2>&1
|