The fix was only fixed dual graphic auto switch, OEM projects need a suspend_30_cycles_with_reboots/logs for dual graphic like
1. Add new “suspend 30 with reboot” template for dual graphics based on /stress/jobs.pxu #68~#83 to /suspend/suspend-graphics.pxu
unit: template
template-resource: graphics_card
template-filter: graphics_card.prime_gpu_offload == 'Off'
id: power-management/{index}_suspend_30_cycles_with_reboots_{product_slug}
plugin: shell
category_id: com.canonical.plainbox::stress
depends:
power-management/rtc
suspend/suspend_advanced
graphics/{index}_auto_switch_card_{product_slug}
requires: ……
flags: noreturn autorestart
user: root
environ: PM_TEST_DRY_RUN
command: …..
2. Add new nested plan for dual graphics into /stress/test-plan.pxu for example
Id: com.canonical.certification::stress-suspend-30-cycles-with-reboots-automated-dual-graphics
unit: test plan
_name: Suspend stress tests (with reboots) for dual graphics
_description: Suspend stress tests (with reboots) for dual graphics
include:
power-management/1_suspend_30_cycles_with_reboots_.*
power-management/1_suspend-30-cycle-log-attach-with-reboots_.*
…...
power-management/2_suspend_30_cycles_with_reboots_.*
power-management/2_suspend-30-cycle-log-attach-with-reboots_.*
….
The fix was only fixed dual graphic auto switch, OEM projects need a suspend_ 30_cycles_ with_reboots/ logs for dual graphic like
1. Add new “suspend 30 with reboot” template for dual graphics based on /stress/jobs.pxu #68~#83 to /suspend/ suspend- graphics. pxu card.prime_ gpu_offload == 'Off' t/{index} _suspend_ 30_cycles_ with_reboots_ {product_ slug} plainbox: :stress management/ rtc suspend_ advanced {index} _auto_switch_ card_{product_ slug}
unit: template
template-resource: graphics_card
template-filter: graphics_
id: power-managemen
plugin: shell
category_id: com.canonical.
depends:
power-
suspend/
graphics/
requires: ……
flags: noreturn autorestart
user: root
environ: PM_TEST_DRY_RUN
command: …..
2. Add new nested plan for dual graphics into /stress/ test-plan. pxu for example certification: :stress- suspend- 30-cycles- with-reboots- automated- dual-graphics t/1_suspend_ 30_cycles_ with_reboots_ .* t/1_suspend- 30-cycle- log-attach- with-reboots_ .* t/2_suspend_ 30_cycles_ with_reboots_ .* t/2_suspend- 30-cycle- log-attach- with-reboots_ .*
Id: com.canonical.
unit: test plan
_name: Suspend stress tests (with reboots) for dual graphics
_description: Suspend stress tests (with reboots) for dual graphics
include:
power-managemen
power-managemen
…...
power-managemen
power-managemen
….