Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions plugin/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,8 @@ if(ENABLE_GNOME_NETWORKMANAGER)
DESTINATION ${CMAKE_INSTALL_PREFIX}/../lib/rdk)
install(FILES gnome/systemd/gnome-networkmanager-migration.conf
DESTINATION ${CMAKE_INSTALL_PREFIX}/../lib/systemd/system/wpeframework-networkmanager.service.d)
install(FILES gnome/systemd/nm-powermanager.conf
DESTINATION ${CMAKE_INSTALL_PREFIX}/../lib/systemd/system/wpeframework-networkmanager.service.d)
endif(ENABLE_GNOME_NETWORKMANAGER)

#Generate Plugin configuration file
Expand Down
3 changes: 2 additions & 1 deletion plugin/NetworkManagerPowerClient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,13 @@ NetworkManagerPowerClient::NetworkManagerPowerClient(INetworkPowerCallback& call
, mPreChangeNotification(*this)
, mChangedNotification(*this)
{
NMLOG_INFO("connecting to PowerManager");
NMLOG_INFO("NetworkManagerPowerClient ctor");
if (auto r = Open(RPC::CommunicationTimeOut, Connector(), "org.rdk.PowerManager"); r == Core::ERROR_NONE) {
// Connected; Operational() will be called by the framework when the proxy is ready
} else {
NMLOG_ERROR("failed to open link to PowerManager (error %u)", r);
}
NMLOG_INFO("NetworkManagerPowerClient ctor ends");
Comment thread
Anand73-n marked this conversation as resolved.
}

NetworkManagerPowerClient::~NetworkManagerPowerClient()
Expand Down
4 changes: 4 additions & 0 deletions plugin/gnome/systemd/nm-powermanager.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[Unit]
# Ensure NetworkManager starts after PowerManager
Wants=wpeframework-powermanager.service
After=wpeframework-powermanager.service
Comment thread
Copilot marked this conversation as resolved.
Loading