gentoo-ebuilds/x11-drivers/nvidia-drivers/files/nvidia-powerd.initd
Ionen Wolkens 8c3f7ffc9f
x11-drivers/nvidia-drivers: add nvidia-powerd openrc script
Untested given requires specific hardware to even start the daemon
which I do not have. Please report if any issues.

Not worth revbumps, can let it propagate with rebuilds during kernel
upgrades.

Use /var/run rather than /run given nvidia hardcodes path to the pid
file and /run may be incorrect if /var/run is not a symlink. Albeit
with command_background=true openrc is technically the one handling
it (may avoid duplicates, again can't test).

Closes: https://bugs.gentoo.org/923117
Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
2024-01-28 11:32:24 -05:00

11 lines
245 B
Text

#!/sbin/openrc-run
# SPDX-License-Identifier: MIT
description="Support for NVIDIA Dynamic Boost (only for use with specific laptops)"
command="nvidia-powerd"
command_background=true
pidfile="/var/run/nvidia-powerd.pid"
depend() {
need dbus
}