mirror of
https://github.com/lingble/meta-tegra.git
synced 2025-11-02 05:17:52 +00:00
tegra-nvpmodel: update nvpmodel.service unit file
* Fix the service type to be oneshot, with RemainAfterExit set to true. Trying to execute nvpmodel multiple times leads to spurious failures. * Add a dependency on nvpower.service, following how Jetson Linux does. Evidently the nvpower script now performs some setup the nvpmodel needs, which wasn't true in older L4T versions. Signed-off-by: Matt Madison <matt@madison.systems>
This commit is contained in:
committed by
Matt Madison
parent
3c459ad29c
commit
1e589d0223
@@ -1,13 +1,13 @@
|
|||||||
[Unit]
|
[Unit]
|
||||||
Description=NVIDIA power model daemon
|
Description=NVIDIA power model daemon
|
||||||
Requires=nvstartup.service
|
Requires=nvstartup.service nvpower.service
|
||||||
After=nvstartup.service
|
After=nvstartup.service nvpower.service
|
||||||
Before=graphical.target display-manager.service
|
Before=graphical.target display-manager.service
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=simple
|
Type=oneshot
|
||||||
|
RemainAfterExit=yes
|
||||||
ExecStart=/usr/sbin/nvpmodel -f /etc/nvpmodel.conf
|
ExecStart=/usr/sbin/nvpmodel -f /etc/nvpmodel.conf
|
||||||
Restart=on-failure
|
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
|||||||
@@ -24,4 +24,4 @@ inherit systemd update-rc.d
|
|||||||
INITSCRIPT_NAME = "nvpmodel"
|
INITSCRIPT_NAME = "nvpmodel"
|
||||||
INITSCRIPT_PARAMS = "defaults"
|
INITSCRIPT_PARAMS = "defaults"
|
||||||
SYSTEMD_SERVICE:${PN} = "nvpmodel.service"
|
SYSTEMD_SERVICE:${PN} = "nvpmodel.service"
|
||||||
RDEPENDS:${PN} = "tegra-nvpmodel-base"
|
RDEPENDS:${PN} = "tegra-nvpmodel-base tegra-nvpower"
|
||||||
|
|||||||
Reference in New Issue
Block a user