Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] nvidia: add hooks for suspend/resume
@ 2024-09-27 13:50 abenson
  2024-10-01 13:12 ` [PR PATCH] [Closed]: " abenson
  0 siblings, 1 reply; 2+ messages in thread
From: abenson @ 2024-09-27 13:50 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 579 bytes --]

There is a new pull request by abenson against master on the void-packages repository

https://github.com/abenson/void-packages nvidia_fixsleep
https://github.com/void-linux/void-packages/pull/52373

nvidia: add hooks for suspend/resume
Since this does seem to be needed, I adapted the systemd units to work with zzz.d hooks.

#### Testing the changes
- I tested the changes in this PR: **YES**

#### Local build testing
- I built this PR locally for my native architecture, x86_64

A patch file from https://github.com/void-linux/void-packages/pull/52373.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-nvidia_fixsleep-52373.patch --]
[-- Type: text/x-diff, Size: 1861 bytes --]

From d8ed60d9c64b8c2bb9df47ee965d8d9a815fdca5 Mon Sep 17 00:00:00 2001
From: Andrew Benson <abenson+void@gmail.com>
Date: Fri, 27 Sep 2024 08:32:58 -0500
Subject: [PATCH] nvidia: add hooks for suspend/resume

---
 srcpkgs/nvidia/files/nvidia-resume  | 2 ++
 srcpkgs/nvidia/files/nvidia-suspend | 2 ++
 srcpkgs/nvidia/template             | 6 +++++-
 3 files changed, 9 insertions(+), 1 deletion(-)
 create mode 100644 srcpkgs/nvidia/files/nvidia-resume
 create mode 100644 srcpkgs/nvidia/files/nvidia-suspend

diff --git a/srcpkgs/nvidia/files/nvidia-resume b/srcpkgs/nvidia/files/nvidia-resume
new file mode 100644
index 00000000000000..219e7f8953349d
--- /dev/null
+++ b/srcpkgs/nvidia/files/nvidia-resume
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec /usr/bin/nvidia-sleep.sh "resume"
diff --git a/srcpkgs/nvidia/files/nvidia-suspend b/srcpkgs/nvidia/files/nvidia-suspend
new file mode 100644
index 00000000000000..c47dfc384e15ad
--- /dev/null
+++ b/srcpkgs/nvidia/files/nvidia-suspend
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec /usr/bin/nvidia-sleep.sh "suspend"
diff --git a/srcpkgs/nvidia/template b/srcpkgs/nvidia/template
index a81560dd947275..275d6d4ede0cd9 100644
--- a/srcpkgs/nvidia/template
+++ b/srcpkgs/nvidia/template
@@ -4,7 +4,7 @@ _desc="NVIDIA drivers for linux"
 
 pkgname=nvidia
 version=550.120
-revision=1
+revision=2
 maintainer="Andrew Benson <abenson+void@gmail.com>"
 license="custom:NVIDIA Proprietary"
 homepage="https://www.nvidia.com/en-us/drivers/unix/"
@@ -210,6 +210,10 @@ do_install() {
 	mkdir -p usr/share/dbus-1/system.d
 	vinstall nvidia-dbus.conf 644 usr/share/dbus-1/system.d
 	vbin systemd/nvidia-sleep.sh
+	vmkdir etc/zzz.d/suspend
+	vinstall ${FILESDIR}/nvidia-suspend 0755 etc/zzz.d/suspend
+	vmkdir etc/zzz.d/resume
+	vinstall ${FILESDIR}/nvidia-resume 0755 etc/zzz.d/resume
 
 	# opencl pkg
 	vinstall nvidia.icd 644 etc/OpenCL/vendors

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PR PATCH] [Closed]: nvidia: add hooks for suspend/resume
  2024-09-27 13:50 [PR PATCH] nvidia: add hooks for suspend/resume abenson
@ 2024-10-01 13:12 ` abenson
  0 siblings, 0 replies; 2+ messages in thread
From: abenson @ 2024-10-01 13:12 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 420 bytes --]

There's a closed pull request on the void-packages repository

nvidia: add hooks for suspend/resume
https://github.com/void-linux/void-packages/pull/52373

Description:
Since this does seem to be needed, I adapted the systemd units to work with zzz.d hooks.

#### Testing the changes
- I tested the changes in this PR: **YES**

#### Local build testing
- I built this PR locally for my native architecture, x86_64

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-10-01 13:12 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-09-27 13:50 [PR PATCH] nvidia: add hooks for suspend/resume abenson
2024-10-01 13:12 ` [PR PATCH] [Closed]: " abenson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).