summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIonen Wolkens <ionen@gentoo.org>2024-01-28 07:15:42 -0500
committerIonen Wolkens <ionen@gentoo.org>2024-01-28 11:32:24 -0500
commit8c3f7ffc9f5a88869bc70150eddf8465c8d5c70d (patch)
treedada0b08e5eba47c7fefd1a3462f02936cf607f5 /x11-drivers
parentx11-drivers/nvidia-drivers: relicense nvidia-persistenced.initd (diff)
downloadgentoo-8c3f7ffc9f5a88869bc70150eddf8465c8d5c70d.tar.gz
gentoo-8c3f7ffc9f5a88869bc70150eddf8465c8d5c70d.tar.bz2
gentoo-8c3f7ffc9f5a88869bc70150eddf8465c8d5c70d.zip
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>
Diffstat (limited to 'x11-drivers')
-rw-r--r--x11-drivers/nvidia-drivers/files/nvidia-powerd.initd11
-rw-r--r--x11-drivers/nvidia-drivers/nvidia-drivers-525.147.05.ebuild1
-rw-r--r--x11-drivers/nvidia-drivers/nvidia-drivers-535.146.02.ebuild1
-rw-r--r--x11-drivers/nvidia-drivers/nvidia-drivers-535.154.05.ebuild1
-rw-r--r--x11-drivers/nvidia-drivers/nvidia-drivers-535.43.23.ebuild1
-rw-r--r--x11-drivers/nvidia-drivers/nvidia-drivers-545.29.06-r1.ebuild1
-rw-r--r--x11-drivers/nvidia-drivers/nvidia-drivers-550.40.07.ebuild1
7 files changed, 17 insertions, 0 deletions
diff --git a/x11-drivers/nvidia-drivers/files/nvidia-powerd.initd b/x11-drivers/nvidia-drivers/files/nvidia-powerd.initd
new file mode 100644
index 000000000000..5132a20c6539
--- /dev/null
+++ b/x11-drivers/nvidia-drivers/files/nvidia-powerd.initd
@@ -0,0 +1,11 @@
+#!/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
+}
diff --git a/x11-drivers/nvidia-drivers/nvidia-drivers-525.147.05.ebuild b/x11-drivers/nvidia-drivers/nvidia-drivers-525.147.05.ebuild
index df13ac50f4b9..88e1b916d113 100644
--- a/x11-drivers/nvidia-drivers/nvidia-drivers-525.147.05.ebuild
+++ b/x11-drivers/nvidia-drivers/nvidia-drivers-525.147.05.ebuild
@@ -410,6 +410,7 @@ documentation that is installed alongside this README."
# MODULE:powerd extras
if use amd64; then
+ newinitd "${FILESDIR}"/nvidia-powerd.initd nvidia-powerd #923117
systemd_dounit systemd/system/nvidia-powerd.service
insinto /usr/share/dbus-1/system.d
diff --git a/x11-drivers/nvidia-drivers/nvidia-drivers-535.146.02.ebuild b/x11-drivers/nvidia-drivers/nvidia-drivers-535.146.02.ebuild
index 5b949b48cd04..4c38e242a855 100644
--- a/x11-drivers/nvidia-drivers/nvidia-drivers-535.146.02.ebuild
+++ b/x11-drivers/nvidia-drivers/nvidia-drivers-535.146.02.ebuild
@@ -417,6 +417,7 @@ documentation that is installed alongside this README."
# MODULE:powerd extras
if use amd64; then
+ newinitd "${FILESDIR}"/nvidia-powerd.initd nvidia-powerd #923117
systemd_dounit systemd/system/nvidia-powerd.service
insinto /usr/share/dbus-1/system.d
diff --git a/x11-drivers/nvidia-drivers/nvidia-drivers-535.154.05.ebuild b/x11-drivers/nvidia-drivers/nvidia-drivers-535.154.05.ebuild
index 5b949b48cd04..4c38e242a855 100644
--- a/x11-drivers/nvidia-drivers/nvidia-drivers-535.154.05.ebuild
+++ b/x11-drivers/nvidia-drivers/nvidia-drivers-535.154.05.ebuild
@@ -417,6 +417,7 @@ documentation that is installed alongside this README."
# MODULE:powerd extras
if use amd64; then
+ newinitd "${FILESDIR}"/nvidia-powerd.initd nvidia-powerd #923117
systemd_dounit systemd/system/nvidia-powerd.service
insinto /usr/share/dbus-1/system.d
diff --git a/x11-drivers/nvidia-drivers/nvidia-drivers-535.43.23.ebuild b/x11-drivers/nvidia-drivers/nvidia-drivers-535.43.23.ebuild
index b13548c43466..5e197cccc108 100644
--- a/x11-drivers/nvidia-drivers/nvidia-drivers-535.43.23.ebuild
+++ b/x11-drivers/nvidia-drivers/nvidia-drivers-535.43.23.ebuild
@@ -415,6 +415,7 @@ documentation that is installed alongside this README."
# MODULE:powerd extras
if use amd64; then
+ newinitd "${FILESDIR}"/nvidia-powerd.initd nvidia-powerd #923117
systemd_dounit systemd/system/nvidia-powerd.service
insinto /usr/share/dbus-1/system.d
diff --git a/x11-drivers/nvidia-drivers/nvidia-drivers-545.29.06-r1.ebuild b/x11-drivers/nvidia-drivers/nvidia-drivers-545.29.06-r1.ebuild
index 511984ae0ecd..293bf8b8844d 100644
--- a/x11-drivers/nvidia-drivers/nvidia-drivers-545.29.06-r1.ebuild
+++ b/x11-drivers/nvidia-drivers/nvidia-drivers-545.29.06-r1.ebuild
@@ -405,6 +405,7 @@ documentation that is installed alongside this README."
# MODULE:powerd extras
if use amd64; then
+ newinitd "${FILESDIR}"/nvidia-powerd.initd nvidia-powerd #923117
systemd_dounit systemd/system/nvidia-powerd.service
insinto /usr/share/dbus-1/system.d
diff --git a/x11-drivers/nvidia-drivers/nvidia-drivers-550.40.07.ebuild b/x11-drivers/nvidia-drivers/nvidia-drivers-550.40.07.ebuild
index 1446f39fa422..080762dc4185 100644
--- a/x11-drivers/nvidia-drivers/nvidia-drivers-550.40.07.ebuild
+++ b/x11-drivers/nvidia-drivers/nvidia-drivers-550.40.07.ebuild
@@ -398,6 +398,7 @@ documentation that is installed alongside this README."
# MODULE:powerd extras
insinto /usr/share/dbus-1/system.d
doins nvidia-dbus.conf
+ newinitd "${FILESDIR}"/nvidia-powerd.initd nvidia-powerd #923117
systemd_dounit systemd/system/nvidia-powerd.service
# symlink non-versioned so nvidia-settings can use it even if misdetected