Skip to content

RDKEMW-22632: Order service start after PowerManager - #327

Open
Anand73-n wants to merge 1 commit into
developfrom
topic/RDKEMW-21821
Open

RDKEMW-22632: Order service start after PowerManager#327
Anand73-n wants to merge 1 commit into
developfrom
topic/RDKEMW-21821

Conversation

@Anand73-n

Copy link
Copy Markdown
Contributor

Reason for change: Ensure PowerManager service is started before NetworkManager
Test procedure: Reboot, then inspect the order units actually started
Risks: low
Priority: P1

Copilot AI review requested due to automatic review settings July 22, 2026 14:34
@Anand73-n
Anand73-n requested a review from a team as a code owner July 22, 2026 14:34

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

This PR adds a systemd drop-in to ensure wpeframework-networkmanager.service is ordered after wpeframework-powermanager.service, so PowerManager is started first on boot in GNOME-enabled builds.

Changes:

  • Add a systemd drop-in setting After= and Wants= for wpeframework-powermanager.service.
  • Install the new drop-in into wpeframework-networkmanager.service.d via the plugin CMake install rules.

Reviewed changes

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

File Description
plugin/gnome/systemd/gnome-powermanager-dependency.conf Introduces the systemd unit drop-in to order NetworkManager after PowerManager and pull it in.
plugin/CMakeLists.txt Installs the new drop-in alongside existing NetworkManager systemd drop-ins when ENABLE_GNOME_NETWORKMANAGER is enabled.

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

@Anand73-n
Anand73-n force-pushed the topic/RDKEMW-21821 branch from 6add70f to e0485e4 Compare July 22, 2026 14:36
Copilot AI review requested due to automatic review settings July 22, 2026 14:36

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

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

Comment thread plugin/gnome/systemd/gnome-powermanager-dependency.conf Outdated
Copilot AI review requested due to automatic review settings July 22, 2026 15:04
@Anand73-n
Anand73-n force-pushed the topic/RDKEMW-21821 branch from e0485e4 to 6fa89ab Compare July 22, 2026 15:04

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

Copilot reviewed 2 out of 2 changed files in this pull request and generated no new comments.

Comments suppressed due to low confidence (1)

plugin/gnome/systemd/gnome-powermanager-dependency.conf:3

  • After= only enforces ordering when both units are already part of the same transaction; it does not ensure wpeframework-powermanager.service is started. If the goal is to ensure PowerManager is started before NetworkManager, add a dependency like Wants= (or Requires= if NetworkManager cannot function without it) alongside After=.
[Unit]
# Ensure NetworkManager starts after PowerManager
After=wpeframework-powermanager.service

@Anand73-n
Anand73-n force-pushed the topic/RDKEMW-21821 branch from 6fa89ab to ecb654a Compare July 22, 2026 15:51
Copilot AI review requested due to automatic review settings July 22, 2026 15:51

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

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

Comments suppressed due to low confidence (1)

plugin/gnome/systemd/gnome-powermanager-dependency.conf:3

  • After= only enforces ordering if both units are started; it does not pull in/activate PowerManager. If the goal is to ensure PowerManager is started before this service, add a dependency (e.g., Wants= or Requires=) alongside After= so systemd will start PowerManager when NetworkManager is started.
[Unit]
# Ensure NetworkManager starts after PowerManager
After=wpeframework-powermanager.service

Comment thread plugin/NetworkManagerPowerClient.cpp
Reason for change: Ensure PowerManager service is started before NetworkManager
Test procedure: Reboot, then inspect the order units actually started
Risks: low
Priority: P1

Signed-off-by: Anand N <Anand_N@comcast.com>
Copilot AI review requested due to automatic review settings July 22, 2026 16:08
@Anand73-n
Anand73-n force-pushed the topic/RDKEMW-21821 branch from ecb654a to 3f3c55f Compare July 22, 2026 16:08

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

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

Comment on lines +1 to +3
[Unit]
# Ensure NetworkManager starts after PowerManager
After=wpeframework-powermanager.service
@Anand73-n Anand73-n changed the title RDKEMW-21821: Order service start after PowerManager RDKEMW-22632: Order service start after PowerManager Jul 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants