Skip to content

Add panel backlight ramp monitor test (New)#2653

Merged
stanley31huang merged 1 commit into
mainfrom
land-monitor-in-ce-oem
Jul 13, 2026
Merged

Add panel backlight ramp monitor test (New)#2653
stanley31huang merged 1 commit into
mainfrom
land-monitor-in-ce-oem

Conversation

@baconYao

@baconYao baconYao commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

Description

Introduce a new backlight panel helper with two subcommands: resource to enumerate backlight devices for Checkbox resource records, and test to ramp brightness across five levels and verify each step.

Support optional alias mapping via BACKLIGHT_PANEL_MAP so generated jobs can use stable panel names while targeting the real sysfs device.

Resolved issues

Documentation

Tests

@baconYao
baconYao requested review from a team and Copilot July 7, 2026 08:20
@baconYao baconYao added the ce-oem The PR only contains to the ce-oem provider under the contrib area label Jul 7, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a new CE-OEM “monitor” capability for built-in panel backlight testing by introducing a helper script that (a) enumerates /sys/class/backlight devices as Checkbox resources and (b) runs a 5-step brightness ramp test per device, with optional alias mapping via BACKLIGHT_PANEL_MAP.

Changes:

  • Add a new manifest entry (has_built_in_panel) and gate backlight jobs on it.
  • Add resource + templated user-interactive job units to enumerate backlight devices and test brightness ramp per panel.
  • Add bin/backlight_panel.py implementation plus unittest coverage.

Reviewed changes

Copilot reviewed 3 out of 4 changed files in this pull request and generated 2 comments.

File Description
contrib/checkbox-ce-oem/checkbox-provider-ce-oem/units/monitor/manifest.pxu Adds a new manifest entry to indicate presence of a built-in display panel.
contrib/checkbox-ce-oem/checkbox-provider-ce-oem/units/monitor/jobs.pxu Introduces resource enumeration and templated brightness ramp jobs (gated by the new manifest entry).
contrib/checkbox-ce-oem/checkbox-provider-ce-oem/bin/backlight_panel.py Implements backlight resource enumeration, optional alias mapping, and brightness ramp test logic.
contrib/checkbox-ce-oem/checkbox-provider-ce-oem/tests/test_backlight_panel.py Adds unit tests for mapping parsing, record generation, brightness ramp behavior, and CLI handlers.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread contrib/checkbox-ce-oem/checkbox-provider-ce-oem/units/monitor/jobs.pxu Outdated
Comment thread contrib/checkbox-ce-oem/checkbox-provider-ce-oem/units/monitor/jobs.pxu Outdated

@seankingyang seankingyang left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add these test case (also resource job ) into the test plan.

@seankingyang
seankingyang self-requested a review July 13, 2026 07:50
seankingyang
seankingyang previously approved these changes Jul 13, 2026

@seankingyang seankingyang left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM~

@stanley31huang stanley31huang left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Introduce a new backlight panel helper with two subcommands:
resource to enumerate backlight devices for Checkbox
resource records, and test to ramp brightness across five levels and
verify each step.

Support optional alias mapping via BACKLIGHT_PANEL_MAP so generated
jobs can use stable panel names while targeting the real sysfs device.

Add monitor units to:

expose backlight devices as resources,
generate per-panel user-interact-verify jobs, and
gate execution on a built-in panel manifest entry.

Signed-off-by: baconYao <patrick.chang@canonical.com>
@baconYao
baconYao force-pushed the land-monitor-in-ce-oem branch from 42b8f63 to 0eb6fd5 Compare July 13, 2026 09:02
@stanley31huang
stanley31huang self-requested a review July 13, 2026 09:05

@stanley31huang stanley31huang left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@stanley31huang
stanley31huang merged commit 61a37b5 into main Jul 13, 2026
15 checks passed
@stanley31huang
stanley31huang deleted the land-monitor-in-ce-oem branch July 13, 2026 09:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ce-oem The PR only contains to the ce-oem provider under the contrib area

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants