Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] tlp: add zzz resume/suspend hooks
@ 2022-11-14 22:13 hazen2215
  2022-11-14 22:17 ` [PR PATCH] [Updated] " hazen2215
                   ` (20 more replies)
  0 siblings, 21 replies; 22+ messages in thread
From: hazen2215 @ 2022-11-14 22:13 UTC (permalink / raw)
  To: ml

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

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

https://github.com/hazen2215/void-packages tlp
https://github.com/void-linux/void-packages/pull/40534

tlp: add zzz resume/suspend hooks
<!-- Uncomment relevant sections and delete options which are not applicable -->
https://github.com/linrunner/TLP/issues/656

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

<!--
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
-->

<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl
-->


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

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

From 27a60542802ae87c0aa5e3c9e3590d1eae9d2ed5 Mon Sep 17 00:00:00 2001
From: hazen2215 <haz@disroot.org>
Date: Tue, 15 Nov 2022 07:07:28 +0900
Subject: [PATCH] tlp: add zzz resume/suspend hooks

---
 srcpkgs/tlp/files/tlp.resume  | 2 ++
 srcpkgs/tlp/files/tlp.suspend | 2 ++
 srcpkgs/tlp/template          | 4 +++-
 3 files changed, 7 insertions(+), 1 deletion(-)
 create mode 100644 srcpkgs/tlp/files/tlp.resume
 create mode 100644 srcpkgs/tlp/files/tlp.suspend

diff --git a/srcpkgs/tlp/files/tlp.resume b/srcpkgs/tlp/files/tlp.resume
new file mode 100644
index 000000000000..7a53e86b0eaa
--- /dev/null
+++ b/srcpkgs/tlp/files/tlp.resume
@@ -0,0 +1,2 @@
+#!/bin/sh
+tlp resume
diff --git a/srcpkgs/tlp/files/tlp.suspend b/srcpkgs/tlp/files/tlp.suspend
new file mode 100644
index 000000000000..39250f309262
--- /dev/null
+++ b/srcpkgs/tlp/files/tlp.suspend
@@ -0,0 +1,2 @@
+#!/bin/sh
+tlp suspend
diff --git a/srcpkgs/tlp/template b/srcpkgs/tlp/template
index dbfc33f2b68f..f9031d7e4574 100644
--- a/srcpkgs/tlp/template
+++ b/srcpkgs/tlp/template
@@ -1,7 +1,7 @@
 # Template file for 'tlp'
 pkgname=tlp
 version=1.5.0
-revision=1
+revision=2
 depends="hdparm bash iw util-linux ethtool perl"
 short_desc="Advanced power management tool for Linux"
 maintainer="Alan Brown <adbrown@rocketmail.com>"
@@ -31,6 +31,8 @@ do_install() {
 	rm -f ${DESTDIR}/usr/share/man/man8/*.service.8
 
 	vsv tlp
+	vinstall ${FILESDIR}/tlp.resume 755 /etc/zzz.d/resume 00-tlp.sh
+	vinstall ${FILESDIR}/tlp.suspend 755 /etc/zzz.d/suspend 00-tlp.sh
 
 	rm -rf ${DESTDIR}/etc/init.d
 }

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

end of thread, other threads:[~2023-10-02  7:44 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-14 22:13 [PR PATCH] tlp: add zzz resume/suspend hooks hazen2215
2022-11-14 22:17 ` [PR PATCH] [Updated] " hazen2215
2022-11-15  1:54 ` hazen2215
2022-11-15  2:13 ` hazen2215
2022-11-15 17:24 ` nbelikov
2022-11-16  3:47 ` [PR PATCH] [Updated] " hazen2215
2022-11-16  3:50 ` hazen2215
2022-11-16  9:59 ` [PR PATCH] [Updated] " hazen2215
2022-11-16 10:09 ` hazen2215
2022-11-16 21:14 ` leahneukirchen
2022-11-25  0:48 ` dkwo
2022-11-25  1:06 ` [PR REVIEW] " sgn
2022-11-25  1:11 ` sgn
2022-11-25 10:01 ` [PR PATCH] [Updated] " hazen2215
2023-01-13  1:17 ` hazen2215
2023-04-13  1:50 ` github-actions
2023-04-13 13:16 ` dkwo
2023-07-13  2:08 ` github-actions
2023-07-13  4:38 ` [PR PATCH] [Updated] " hazen2215
2023-09-29 22:51 ` hazen2215
2023-09-29 22:52 ` hazen2215
2023-10-02  7:44 ` [PR PATCH] [Merged]: " sgn

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).