From 9b0d29b1373b4a22bd1c441eea01bdb47b9deb7b Mon Sep 17 00:00:00 2001 From: Ward from fusion-voyager-3 Date: Thu, 25 Jul 2024 01:40:16 +0300 Subject: [PATCH] add postinst for suspend --- .../nvidia-suspend-common-#DRIVER_VERSION_MAJOR#.postinst | 5 +++++ .../nvidia-suspend-common-#DRIVER_VERSION_MAJOR#.prerm | 5 +++++ 2 files changed, 10 insertions(+) create mode 100644 nvidia-graphics-drivers-#DRIVER_VERSION_MAJOR#/debian/nvidia-suspend-common-#DRIVER_VERSION_MAJOR#.postinst create mode 100644 nvidia-graphics-drivers-#DRIVER_VERSION_MAJOR#/debian/nvidia-suspend-common-#DRIVER_VERSION_MAJOR#.prerm diff --git a/nvidia-graphics-drivers-#DRIVER_VERSION_MAJOR#/debian/nvidia-suspend-common-#DRIVER_VERSION_MAJOR#.postinst b/nvidia-graphics-drivers-#DRIVER_VERSION_MAJOR#/debian/nvidia-suspend-common-#DRIVER_VERSION_MAJOR#.postinst new file mode 100644 index 0000000..527a1b1 --- /dev/null +++ b/nvidia-graphics-drivers-#DRIVER_VERSION_MAJOR#/debian/nvidia-suspend-common-#DRIVER_VERSION_MAJOR#.postinst @@ -0,0 +1,5 @@ +#!/bin/sh + +systemctl enable nvidia-hibernate || true +systemctl enable nvidia-resume || true +systemctl enable nvidia-suspend || true diff --git a/nvidia-graphics-drivers-#DRIVER_VERSION_MAJOR#/debian/nvidia-suspend-common-#DRIVER_VERSION_MAJOR#.prerm b/nvidia-graphics-drivers-#DRIVER_VERSION_MAJOR#/debian/nvidia-suspend-common-#DRIVER_VERSION_MAJOR#.prerm new file mode 100644 index 0000000..7a7406c --- /dev/null +++ b/nvidia-graphics-drivers-#DRIVER_VERSION_MAJOR#/debian/nvidia-suspend-common-#DRIVER_VERSION_MAJOR#.prerm @@ -0,0 +1,5 @@ +#!/bin/sh + +systemctl disable nvidia-hibernate || true +systemctl disable nvidia-resume || true +systemctl disable nvidia-suspend || true