* [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
* Re: [PR PATCH] [Updated] tlp: add zzz resume/suspend hooks
2022-11-14 22:13 [PR PATCH] tlp: add zzz resume/suspend hooks hazen2215
@ 2022-11-14 22:17 ` hazen2215
2022-11-15 1:54 ` hazen2215
` (19 subsequent siblings)
20 siblings, 0 replies; 22+ messages in thread
From: hazen2215 @ 2022-11-14 22:17 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1271 bytes --]
There is an updated 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 f53e1c4da9a934a7fea3f618db09eee2a2967bb4 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..cbd1eb070fe2 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 50-tlp.sh
+ vinstall ${FILESDIR}/tlp.suspend 755 /etc/zzz.d/suspend 50-tlp.sh
rm -rf ${DESTDIR}/etc/init.d
}
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: [PR PATCH] [Updated] tlp: add zzz resume/suspend hooks
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
` (18 subsequent siblings)
20 siblings, 0 replies; 22+ messages in thread
From: hazen2215 @ 2022-11-15 1:54 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1271 bytes --]
There is an updated 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 9d7b5c3ed7df99758fc78b3000dd61315dd0d664 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..cbd1eb070fe2 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 50-tlp.sh
+ vinstall ${FILESDIR}/tlp.suspend 755 /etc/zzz.d/suspend 50-tlp.sh
rm -rf ${DESTDIR}/etc/init.d
}
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: [PR PATCH] [Updated] tlp: add zzz resume/suspend hooks
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
` (17 subsequent siblings)
20 siblings, 0 replies; 22+ messages in thread
From: hazen2215 @ 2022-11-15 2:13 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1271 bytes --]
There is an updated 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: 2014 bytes --]
From 49f25bfb9523922e1db2074562c450a9e3443282 Mon Sep 17 00:00:00 2001
From: hazen2215 <haz@disroot.org>
Date: Tue, 15 Nov 2022 10:59:09 +0900
Subject: [PATCH] tlp: add zzz resume/suspend hooks
also make it conflict with perl-Unicode-Tussle (/usr/bin/nfc)
---
srcpkgs/tlp/files/tlp.resume | 2 ++
srcpkgs/tlp/files/tlp.suspend | 2 ++
srcpkgs/tlp/template | 6 ++++--
3 files changed, 8 insertions(+), 2 deletions(-)
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..e1310dcff980 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>"
@@ -11,7 +11,7 @@ changelog="https://raw.githubusercontent.com/linrunner/TLP/main/changelog"
distfiles="https://github.com/linrunner/TLP/archive/${version}.tar.gz"
checksum=b5f08f00d535c26abc49b336b4c7264c6e5fb7bc3de8054eaabeebdd00e0760e
-conflicts="laptop-mode>=0"
+conflicts="laptop-mode>=0 perl-Unicode-Tussle>=0"
conf_files="/etc/tlp.conf /etc/tlp.d/*.conf"
do_install() {
@@ -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 50-tlp.sh
+ vinstall ${FILESDIR}/tlp.suspend 755 /etc/zzz.d/suspend 50-tlp.sh
rm -rf ${DESTDIR}/etc/init.d
}
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: tlp: add zzz resume/suspend hooks
2022-11-14 22:13 [PR PATCH] tlp: add zzz resume/suspend hooks hazen2215
` (2 preceding siblings ...)
2022-11-15 2:13 ` hazen2215
@ 2022-11-15 17:24 ` nbelikov
2022-11-16 3:47 ` [PR PATCH] [Updated] " hazen2215
` (16 subsequent siblings)
20 siblings, 0 replies; 22+ messages in thread
From: nbelikov @ 2022-11-15 17:24 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 408 bytes --]
New comment by nbelikov on void-packages repository
https://github.com/void-linux/void-packages/pull/40534#issuecomment-1315639725
Comment:
A small suggestion, if I may:
exec tlp {suspend,resume}
`exec` isn't necessary but would improve performance a little bit essentially for free.
I use the same set of scripts myself (which only differ in aforementioned exec's) and they work as expected.
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: [PR PATCH] [Updated] tlp: add zzz resume/suspend hooks
2022-11-14 22:13 [PR PATCH] tlp: add zzz resume/suspend hooks hazen2215
` (3 preceding siblings ...)
2022-11-15 17:24 ` nbelikov
@ 2022-11-16 3:47 ` hazen2215
2022-11-16 3:50 ` hazen2215
` (15 subsequent siblings)
20 siblings, 0 replies; 22+ messages in thread
From: hazen2215 @ 2022-11-16 3:47 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1334 bytes --]
There is an updated 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
also make it conflict with perl-Unicode-Tussle (/usr/bin/nfc)
#### 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: 2024 bytes --]
From 4544a5f009a0e7d11d5c64f0d87709524ec16cb0 Mon Sep 17 00:00:00 2001
From: hazen2215 <haz@disroot.org>
Date: Tue, 15 Nov 2022 10:59:09 +0900
Subject: [PATCH] tlp: add zzz resume/suspend hooks
also make it conflict with perl-Unicode-Tussle (/usr/bin/nfc)
---
srcpkgs/tlp/files/tlp.resume | 2 ++
srcpkgs/tlp/files/tlp.suspend | 2 ++
srcpkgs/tlp/template | 6 ++++--
3 files changed, 8 insertions(+), 2 deletions(-)
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..85cda8662fad
--- /dev/null
+++ b/srcpkgs/tlp/files/tlp.resume
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec tlp resume
diff --git a/srcpkgs/tlp/files/tlp.suspend b/srcpkgs/tlp/files/tlp.suspend
new file mode 100644
index 000000000000..9a88ad1b84d8
--- /dev/null
+++ b/srcpkgs/tlp/files/tlp.suspend
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec tlp suspend
diff --git a/srcpkgs/tlp/template b/srcpkgs/tlp/template
index dbfc33f2b68f..e1310dcff980 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>"
@@ -11,7 +11,7 @@ changelog="https://raw.githubusercontent.com/linrunner/TLP/main/changelog"
distfiles="https://github.com/linrunner/TLP/archive/${version}.tar.gz"
checksum=b5f08f00d535c26abc49b336b4c7264c6e5fb7bc3de8054eaabeebdd00e0760e
-conflicts="laptop-mode>=0"
+conflicts="laptop-mode>=0 perl-Unicode-Tussle>=0"
conf_files="/etc/tlp.conf /etc/tlp.d/*.conf"
do_install() {
@@ -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 50-tlp.sh
+ vinstall ${FILESDIR}/tlp.suspend 755 /etc/zzz.d/suspend 50-tlp.sh
rm -rf ${DESTDIR}/etc/init.d
}
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: tlp: add zzz resume/suspend hooks
2022-11-14 22:13 [PR PATCH] tlp: add zzz resume/suspend hooks hazen2215
` (4 preceding siblings ...)
2022-11-16 3:47 ` [PR PATCH] [Updated] " hazen2215
@ 2022-11-16 3:50 ` hazen2215
2022-11-16 9:59 ` [PR PATCH] [Updated] " hazen2215
` (14 subsequent siblings)
20 siblings, 0 replies; 22+ messages in thread
From: hazen2215 @ 2022-11-16 3:50 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 158 bytes --]
New comment by hazen2215 on void-packages repository
https://github.com/void-linux/void-packages/pull/40534#issuecomment-1316285649
Comment:
added `exec`.
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: [PR PATCH] [Updated] tlp: add zzz resume/suspend hooks
2022-11-14 22:13 [PR PATCH] tlp: add zzz resume/suspend hooks hazen2215
` (5 preceding siblings ...)
2022-11-16 3:50 ` hazen2215
@ 2022-11-16 9:59 ` hazen2215
2022-11-16 10:09 ` hazen2215
` (13 subsequent siblings)
20 siblings, 0 replies; 22+ messages in thread
From: hazen2215 @ 2022-11-16 9:59 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1334 bytes --]
There is an updated 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
also make it conflict with perl-Unicode-Tussle (/usr/bin/nfc)
#### 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: 2098 bytes --]
From 9f5c7b3914862575911a146008f55dcd07a13044 Mon Sep 17 00:00:00 2001
From: hazen2215 <haz@disroot.org>
Date: Tue, 15 Nov 2022 10:59:09 +0900
Subject: [PATCH] tlp: add zzz resume/suspend hooks
also make it conflict with perl-Unicode-Tussle (/usr/bin/nfc)
---
srcpkgs/tlp/files/tlp.resume | 2 ++
srcpkgs/tlp/files/tlp.suspend | 2 ++
srcpkgs/tlp/template | 6 ++++--
3 files changed, 8 insertions(+), 2 deletions(-)
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..1354e0eaf969
--- /dev/null
+++ b/srcpkgs/tlp/files/tlp.resume
@@ -0,0 +1,2 @@
+#!/bin/sh
+chpst -b tlp sv status >/dev/null && exec tlp resume
diff --git a/srcpkgs/tlp/files/tlp.suspend b/srcpkgs/tlp/files/tlp.suspend
new file mode 100644
index 000000000000..e96c1618c757
--- /dev/null
+++ b/srcpkgs/tlp/files/tlp.suspend
@@ -0,0 +1,2 @@
+#!/bin/sh
+chpst -b tlp sv status >/dev/null && exec tlp suspend
diff --git a/srcpkgs/tlp/template b/srcpkgs/tlp/template
index dbfc33f2b68f..e1310dcff980 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>"
@@ -11,7 +11,7 @@ changelog="https://raw.githubusercontent.com/linrunner/TLP/main/changelog"
distfiles="https://github.com/linrunner/TLP/archive/${version}.tar.gz"
checksum=b5f08f00d535c26abc49b336b4c7264c6e5fb7bc3de8054eaabeebdd00e0760e
-conflicts="laptop-mode>=0"
+conflicts="laptop-mode>=0 perl-Unicode-Tussle>=0"
conf_files="/etc/tlp.conf /etc/tlp.d/*.conf"
do_install() {
@@ -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 50-tlp.sh
+ vinstall ${FILESDIR}/tlp.suspend 755 /etc/zzz.d/suspend 50-tlp.sh
rm -rf ${DESTDIR}/etc/init.d
}
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: tlp: add zzz resume/suspend hooks
2022-11-14 22:13 [PR PATCH] tlp: add zzz resume/suspend hooks hazen2215
` (6 preceding siblings ...)
2022-11-16 9:59 ` [PR PATCH] [Updated] " hazen2215
@ 2022-11-16 10:09 ` hazen2215
2022-11-16 21:14 ` leahneukirchen
` (12 subsequent siblings)
20 siblings, 0 replies; 22+ messages in thread
From: hazen2215 @ 2022-11-16 10:09 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 235 bytes --]
New comment by hazen2215 on void-packages repository
https://github.com/void-linux/void-packages/pull/40534#issuecomment-1316735751
Comment:
modified so the hooks will execute `tlp {suspend,resume}` only if `tlp` service is enabled
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: tlp: add zzz resume/suspend hooks
2022-11-14 22:13 [PR PATCH] tlp: add zzz resume/suspend hooks hazen2215
` (7 preceding siblings ...)
2022-11-16 10:09 ` hazen2215
@ 2022-11-16 21:14 ` leahneukirchen
2022-11-25 0:48 ` dkwo
` (11 subsequent siblings)
20 siblings, 0 replies; 22+ messages in thread
From: leahneukirchen @ 2022-11-16 21:14 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 164 bytes --]
New comment by leahneukirchen on void-packages repository
https://github.com/void-linux/void-packages/pull/40534#issuecomment-1317676456
Comment:
cc @adbrown101
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: tlp: add zzz resume/suspend hooks
2022-11-14 22:13 [PR PATCH] tlp: add zzz resume/suspend hooks hazen2215
` (8 preceding siblings ...)
2022-11-16 21:14 ` leahneukirchen
@ 2022-11-25 0:48 ` dkwo
2022-11-25 1:06 ` [PR REVIEW] " sgn
` (10 subsequent siblings)
20 siblings, 0 replies; 22+ messages in thread
From: dkwo @ 2022-11-25 0:48 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 208 bytes --]
New comment by dkwo on void-packages repository
https://github.com/void-linux/void-packages/pull/40534#issuecomment-1326920100
Comment:
what about https://github.com/void-linux/void-packages/issues/40739 ?
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: [PR REVIEW] tlp: add zzz resume/suspend hooks
2022-11-14 22:13 [PR PATCH] tlp: add zzz resume/suspend hooks hazen2215
` (9 preceding siblings ...)
2022-11-25 0:48 ` dkwo
@ 2022-11-25 1:06 ` sgn
2022-11-25 1:11 ` sgn
` (9 subsequent siblings)
20 siblings, 0 replies; 22+ messages in thread
From: sgn @ 2022-11-25 1:06 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 194 bytes --]
New review comment by sgn on void-packages repository
https://github.com/void-linux/void-packages/pull/40534#discussion_r1031931518
Comment:
Maybe we should rename `nfc` to `tlp-nfc` instead?
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: [PR REVIEW] tlp: add zzz resume/suspend hooks
2022-11-14 22:13 [PR PATCH] tlp: add zzz resume/suspend hooks hazen2215
` (10 preceding siblings ...)
2022-11-25 1:06 ` [PR REVIEW] " sgn
@ 2022-11-25 1:11 ` sgn
2022-11-25 10:01 ` [PR PATCH] [Updated] " hazen2215
` (8 subsequent siblings)
20 siblings, 0 replies; 22+ messages in thread
From: sgn @ 2022-11-25 1:11 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 312 bytes --]
New review comment by sgn on void-packages repository
https://github.com/void-linux/void-packages/pull/40534#discussion_r1031931518
Comment:
Maybe we should rename `nfc` to `tlp-nfc` instead?
Or contained them inside `/usr/share/tlp`, link back `tlp` to `/usr/bin` and put `/usr/share/tlp` in `tlp`'s `PATH`?
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: [PR PATCH] [Updated] tlp: add zzz resume/suspend hooks
2022-11-14 22:13 [PR PATCH] tlp: add zzz resume/suspend hooks hazen2215
` (11 preceding siblings ...)
2022-11-25 1:11 ` sgn
@ 2022-11-25 10:01 ` hazen2215
2023-01-13 1:17 ` hazen2215
` (7 subsequent siblings)
20 siblings, 0 replies; 22+ messages in thread
From: hazen2215 @ 2022-11-25 10:01 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1334 bytes --]
There is an updated 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
also make it conflict with perl-Unicode-Tussle (/usr/bin/nfc)
#### 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: 2123 bytes --]
From b659ec9c16540931187392a4e5cb69d2874ca74e Mon Sep 17 00:00:00 2001
From: hazen2215 <haz@disroot.org>
Date: Tue, 15 Nov 2022 10:59:09 +0900
Subject: [PATCH] tlp: add zzz resume/suspend hooks
also make it conflict with perl-Unicode-Tussle (/usr/bin/nfc)
---
srcpkgs/tlp/files/tlp.resume | 2 ++
srcpkgs/tlp/files/tlp.suspend | 2 ++
srcpkgs/tlp/template | 6 ++++--
3 files changed, 8 insertions(+), 2 deletions(-)
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..1354e0eaf969
--- /dev/null
+++ b/srcpkgs/tlp/files/tlp.resume
@@ -0,0 +1,2 @@
+#!/bin/sh
+chpst -b tlp sv status >/dev/null && exec tlp resume
diff --git a/srcpkgs/tlp/files/tlp.suspend b/srcpkgs/tlp/files/tlp.suspend
new file mode 100644
index 000000000000..e96c1618c757
--- /dev/null
+++ b/srcpkgs/tlp/files/tlp.suspend
@@ -0,0 +1,2 @@
+#!/bin/sh
+chpst -b tlp sv status >/dev/null && exec tlp suspend
diff --git a/srcpkgs/tlp/template b/srcpkgs/tlp/template
index 2c9433667cf9..560763839e9f 100644
--- a/srcpkgs/tlp/template
+++ b/srcpkgs/tlp/template
@@ -1,7 +1,7 @@
# Template file for 'tlp'
pkgname=tlp
version=1.5.0
-revision=2
+revision=3
depends="hdparm bash iw util-linux ethtool perl"
short_desc="Advanced power management tool for Linux"
maintainer="Alan Brown <adbrown@rocketmail.com>"
@@ -11,7 +11,7 @@ changelog="https://raw.githubusercontent.com/linrunner/TLP/main/changelog"
distfiles="https://github.com/linrunner/TLP/archive/${version}.tar.gz"
checksum=b5f08f00d535c26abc49b336b4c7264c6e5fb7bc3de8054eaabeebdd00e0760e
-conflicts="laptop-mode>=0"
+conflicts="laptop-mode>=0 perl-Unicode-Tussle>=0"
conf_files="/etc/tlp.conf /etc/tlp.d/*.conf"
make_dirs="/var/lib/tlp 0755 root root"
@@ -32,6 +32,8 @@ do_install() {
rm -f ${DESTDIR}/usr/share/man/man8/*.service.8
vsv tlp
+ vinstall ${FILESDIR}/tlp.resume 755 /etc/zzz.d/resume 50-tlp.sh
+ vinstall ${FILESDIR}/tlp.suspend 755 /etc/zzz.d/suspend 50-tlp.sh
rm -rf ${DESTDIR}/etc/init.d
}
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: [PR PATCH] [Updated] tlp: add zzz resume/suspend hooks
2022-11-14 22:13 [PR PATCH] tlp: add zzz resume/suspend hooks hazen2215
` (12 preceding siblings ...)
2022-11-25 10:01 ` [PR PATCH] [Updated] " hazen2215
@ 2023-01-13 1:17 ` hazen2215
2023-04-13 1:50 ` github-actions
` (6 subsequent siblings)
20 siblings, 0 replies; 22+ messages in thread
From: hazen2215 @ 2023-01-13 1:17 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1334 bytes --]
There is an updated 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
also make it conflict with perl-Unicode-Tussle (/usr/bin/nfc)
#### 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: 2121 bytes --]
From b031c99e0569a5c880424627ecb7ff56bac01d74 Mon Sep 17 00:00:00 2001
From: hazen2215 <haz@disroot.org>
Date: Tue, 15 Nov 2022 10:59:09 +0900
Subject: [PATCH] tlp: add zzz resume/suspend hooks
also make it conflict with perl-Unicode-Tussle (/usr/bin/nfc)
---
srcpkgs/tlp/files/tlp.resume | 2 ++
srcpkgs/tlp/files/tlp.suspend | 2 ++
srcpkgs/tlp/template | 6 ++++--
3 files changed, 8 insertions(+), 2 deletions(-)
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..1354e0eaf969
--- /dev/null
+++ b/srcpkgs/tlp/files/tlp.resume
@@ -0,0 +1,2 @@
+#!/bin/sh
+chpst -b tlp sv status >/dev/null && exec tlp resume
diff --git a/srcpkgs/tlp/files/tlp.suspend b/srcpkgs/tlp/files/tlp.suspend
new file mode 100644
index 000000000000..e96c1618c757
--- /dev/null
+++ b/srcpkgs/tlp/files/tlp.suspend
@@ -0,0 +1,2 @@
+#!/bin/sh
+chpst -b tlp sv status >/dev/null && exec tlp suspend
diff --git a/srcpkgs/tlp/template b/srcpkgs/tlp/template
index 2c9433667cf9..e8f6ed94ad4f 100644
--- a/srcpkgs/tlp/template
+++ b/srcpkgs/tlp/template
@@ -1,7 +1,7 @@
# Template file for 'tlp'
pkgname=tlp
version=1.5.0
-revision=2
+revision=3
depends="hdparm bash iw util-linux ethtool perl"
short_desc="Advanced power management tool for Linux"
maintainer="Alan Brown <adbrown@rocketmail.com>"
@@ -11,7 +11,7 @@ changelog="https://raw.githubusercontent.com/linrunner/TLP/main/changelog"
distfiles="https://github.com/linrunner/TLP/archive/${version}.tar.gz"
checksum=b5f08f00d535c26abc49b336b4c7264c6e5fb7bc3de8054eaabeebdd00e0760e
-conflicts="laptop-mode>=0"
+conflicts="laptop-mode>=0 perl-Unicode-Tussle>=0"
conf_files="/etc/tlp.conf /etc/tlp.d/*.conf"
make_dirs="/var/lib/tlp 0755 root root"
@@ -32,6 +32,8 @@ do_install() {
rm -f ${DESTDIR}/usr/share/man/man8/*.service.8
vsv tlp
+ vinstall ${FILESDIR}/tlp.resume 755 etc/zzz.d/resume 50-tlp.sh
+ vinstall ${FILESDIR}/tlp.suspend 755 etc/zzz.d/suspend 50-tlp.sh
rm -rf ${DESTDIR}/etc/init.d
}
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: tlp: add zzz resume/suspend hooks
2022-11-14 22:13 [PR PATCH] tlp: add zzz resume/suspend hooks hazen2215
` (13 preceding siblings ...)
2023-01-13 1:17 ` hazen2215
@ 2023-04-13 1:50 ` github-actions
2023-04-13 13:16 ` dkwo
` (5 subsequent siblings)
20 siblings, 0 replies; 22+ messages in thread
From: github-actions @ 2023-04-13 1:50 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 305 bytes --]
New comment by github-actions[bot] on void-packages repository
https://github.com/void-linux/void-packages/pull/40534#issuecomment-1506206038
Comment:
Pull Requests become stale 90 days after last activity and are closed 14 days after that. If this pull request is still relevant bump it or assign it.
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: tlp: add zzz resume/suspend hooks
2022-11-14 22:13 [PR PATCH] tlp: add zzz resume/suspend hooks hazen2215
` (14 preceding siblings ...)
2023-04-13 1:50 ` github-actions
@ 2023-04-13 13:16 ` dkwo
2023-07-13 2:08 ` github-actions
` (4 subsequent siblings)
20 siblings, 0 replies; 22+ messages in thread
From: dkwo @ 2023-04-13 13:16 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 169 bytes --]
New comment by dkwo on void-packages repository
https://github.com/void-linux/void-packages/pull/40534#issuecomment-1506948117
Comment:
i think this is still relevant
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: tlp: add zzz resume/suspend hooks
2022-11-14 22:13 [PR PATCH] tlp: add zzz resume/suspend hooks hazen2215
` (15 preceding siblings ...)
2023-04-13 13:16 ` dkwo
@ 2023-07-13 2:08 ` github-actions
2023-07-13 4:38 ` [PR PATCH] [Updated] " hazen2215
` (3 subsequent siblings)
20 siblings, 0 replies; 22+ messages in thread
From: github-actions @ 2023-07-13 2:08 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 305 bytes --]
New comment by github-actions[bot] on void-packages repository
https://github.com/void-linux/void-packages/pull/40534#issuecomment-1633429920
Comment:
Pull Requests become stale 90 days after last activity and are closed 14 days after that. If this pull request is still relevant bump it or assign it.
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: [PR PATCH] [Updated] tlp: add zzz resume/suspend hooks
2022-11-14 22:13 [PR PATCH] tlp: add zzz resume/suspend hooks hazen2215
` (16 preceding siblings ...)
2023-07-13 2:08 ` github-actions
@ 2023-07-13 4:38 ` hazen2215
2023-09-29 22:51 ` hazen2215
` (2 subsequent siblings)
20 siblings, 0 replies; 22+ messages in thread
From: hazen2215 @ 2023-07-13 4:38 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1334 bytes --]
There is an updated 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
also make it conflict with perl-Unicode-Tussle (/usr/bin/nfc)
#### 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: 2121 bytes --]
From c01486ba242db8412e8e3b3cc926e1e531c2746f Mon Sep 17 00:00:00 2001
From: hazen2215 <haz@disroot.org>
Date: Tue, 15 Nov 2022 10:59:09 +0900
Subject: [PATCH] tlp: add zzz resume/suspend hooks
also make it conflict with perl-Unicode-Tussle (/usr/bin/nfc)
---
srcpkgs/tlp/files/tlp.resume | 2 ++
srcpkgs/tlp/files/tlp.suspend | 2 ++
srcpkgs/tlp/template | 6 ++++--
3 files changed, 8 insertions(+), 2 deletions(-)
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..1354e0eaf969
--- /dev/null
+++ b/srcpkgs/tlp/files/tlp.resume
@@ -0,0 +1,2 @@
+#!/bin/sh
+chpst -b tlp sv status >/dev/null && exec tlp resume
diff --git a/srcpkgs/tlp/files/tlp.suspend b/srcpkgs/tlp/files/tlp.suspend
new file mode 100644
index 000000000000..e96c1618c757
--- /dev/null
+++ b/srcpkgs/tlp/files/tlp.suspend
@@ -0,0 +1,2 @@
+#!/bin/sh
+chpst -b tlp sv status >/dev/null && exec tlp suspend
diff --git a/srcpkgs/tlp/template b/srcpkgs/tlp/template
index 2c9433667cf9..e8f6ed94ad4f 100644
--- a/srcpkgs/tlp/template
+++ b/srcpkgs/tlp/template
@@ -1,7 +1,7 @@
# Template file for 'tlp'
pkgname=tlp
version=1.5.0
-revision=2
+revision=3
depends="hdparm bash iw util-linux ethtool perl"
short_desc="Advanced power management tool for Linux"
maintainer="Alan Brown <adbrown@rocketmail.com>"
@@ -11,7 +11,7 @@ changelog="https://raw.githubusercontent.com/linrunner/TLP/main/changelog"
distfiles="https://github.com/linrunner/TLP/archive/${version}.tar.gz"
checksum=b5f08f00d535c26abc49b336b4c7264c6e5fb7bc3de8054eaabeebdd00e0760e
-conflicts="laptop-mode>=0"
+conflicts="laptop-mode>=0 perl-Unicode-Tussle>=0"
conf_files="/etc/tlp.conf /etc/tlp.d/*.conf"
make_dirs="/var/lib/tlp 0755 root root"
@@ -32,6 +32,8 @@ do_install() {
rm -f ${DESTDIR}/usr/share/man/man8/*.service.8
vsv tlp
+ vinstall ${FILESDIR}/tlp.resume 755 etc/zzz.d/resume 50-tlp.sh
+ vinstall ${FILESDIR}/tlp.suspend 755 etc/zzz.d/suspend 50-tlp.sh
rm -rf ${DESTDIR}/etc/init.d
}
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: [PR PATCH] [Updated] tlp: add zzz resume/suspend hooks
2022-11-14 22:13 [PR PATCH] tlp: add zzz resume/suspend hooks hazen2215
` (17 preceding siblings ...)
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
20 siblings, 0 replies; 22+ messages in thread
From: hazen2215 @ 2023-09-29 22:51 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1334 bytes --]
There is an updated 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
also make it conflict with perl-Unicode-Tussle (/usr/bin/nfc)
#### 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: 2127 bytes --]
From 185ff4b35e66f4ab449962cd8c141d0b3c6ea3f0 Mon Sep 17 00:00:00 2001
From: hazen2215 <haz@disroot.org>
Date: Tue, 15 Nov 2022 10:59:09 +0900
Subject: [PATCH] tlp: add zzz resume/suspend hooks
also make it conflict with perl-Unicode-Tussle (/usr/bin/nfc)
---
srcpkgs/tlp/files/tlp.resume | 2 ++
srcpkgs/tlp/files/tlp.suspend | 2 ++
srcpkgs/tlp/template | 6 ++++--
3 files changed, 8 insertions(+), 2 deletions(-)
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 0000000000000..1354e0eaf9692
--- /dev/null
+++ b/srcpkgs/tlp/files/tlp.resume
@@ -0,0 +1,2 @@
+#!/bin/sh
+chpst -b tlp sv status >/dev/null && exec tlp resume
diff --git a/srcpkgs/tlp/files/tlp.suspend b/srcpkgs/tlp/files/tlp.suspend
new file mode 100644
index 0000000000000..e96c1618c7572
--- /dev/null
+++ b/srcpkgs/tlp/files/tlp.suspend
@@ -0,0 +1,2 @@
+#!/bin/sh
+chpst -b tlp sv status >/dev/null && exec tlp suspend
diff --git a/srcpkgs/tlp/template b/srcpkgs/tlp/template
index 2c9433667cf95..e8f6ed94ad4f2 100644
--- a/srcpkgs/tlp/template
+++ b/srcpkgs/tlp/template
@@ -1,7 +1,7 @@
# Template file for 'tlp'
pkgname=tlp
version=1.5.0
-revision=2
+revision=3
depends="hdparm bash iw util-linux ethtool perl"
short_desc="Advanced power management tool for Linux"
maintainer="Alan Brown <adbrown@rocketmail.com>"
@@ -11,7 +11,7 @@ changelog="https://raw.githubusercontent.com/linrunner/TLP/main/changelog"
distfiles="https://github.com/linrunner/TLP/archive/${version}.tar.gz"
checksum=b5f08f00d535c26abc49b336b4c7264c6e5fb7bc3de8054eaabeebdd00e0760e
-conflicts="laptop-mode>=0"
+conflicts="laptop-mode>=0 perl-Unicode-Tussle>=0"
conf_files="/etc/tlp.conf /etc/tlp.d/*.conf"
make_dirs="/var/lib/tlp 0755 root root"
@@ -32,6 +32,8 @@ do_install() {
rm -f ${DESTDIR}/usr/share/man/man8/*.service.8
vsv tlp
+ vinstall ${FILESDIR}/tlp.resume 755 etc/zzz.d/resume 50-tlp.sh
+ vinstall ${FILESDIR}/tlp.suspend 755 etc/zzz.d/suspend 50-tlp.sh
rm -rf ${DESTDIR}/etc/init.d
}
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: [PR PATCH] [Updated] tlp: add zzz resume/suspend hooks
2022-11-14 22:13 [PR PATCH] tlp: add zzz resume/suspend hooks hazen2215
` (18 preceding siblings ...)
2023-09-29 22:51 ` hazen2215
@ 2023-09-29 22:52 ` hazen2215
2023-10-02 7:44 ` [PR PATCH] [Merged]: " sgn
20 siblings, 0 replies; 22+ messages in thread
From: hazen2215 @ 2023-09-29 22:52 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1334 bytes --]
There is an updated 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
also make it conflict with perl-Unicode-Tussle (/usr/bin/nfc)
#### 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: 2135 bytes --]
From 40f964daf880fabd12563ab91e86b5d2c07a0416 Mon Sep 17 00:00:00 2001
From: hazen2215 <haz@disroot.org>
Date: Tue, 15 Nov 2022 10:59:09 +0900
Subject: [PATCH] tlp: add zzz resume/suspend hooks
also make it conflict with perl-Unicode-Tussle (/usr/bin/nfc)
---
srcpkgs/tlp/files/tlp.resume | 2 ++
srcpkgs/tlp/files/tlp.suspend | 2 ++
srcpkgs/tlp/template | 6 ++++--
3 files changed, 8 insertions(+), 2 deletions(-)
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 0000000000000..9603650ff55d9
--- /dev/null
+++ b/srcpkgs/tlp/files/tlp.resume
@@ -0,0 +1,2 @@
+#!/bin/sh
+[ -s /var/service/tlp/supervise/pid ] && exec tlp resume
diff --git a/srcpkgs/tlp/files/tlp.suspend b/srcpkgs/tlp/files/tlp.suspend
new file mode 100644
index 0000000000000..a3758a3c0bdc4
--- /dev/null
+++ b/srcpkgs/tlp/files/tlp.suspend
@@ -0,0 +1,2 @@
+#!/bin/sh
+[ -s /var/service/tlp/supervise/pid ] && exec tlp suspend
diff --git a/srcpkgs/tlp/template b/srcpkgs/tlp/template
index 2c9433667cf95..e8f6ed94ad4f2 100644
--- a/srcpkgs/tlp/template
+++ b/srcpkgs/tlp/template
@@ -1,7 +1,7 @@
# Template file for 'tlp'
pkgname=tlp
version=1.5.0
-revision=2
+revision=3
depends="hdparm bash iw util-linux ethtool perl"
short_desc="Advanced power management tool for Linux"
maintainer="Alan Brown <adbrown@rocketmail.com>"
@@ -11,7 +11,7 @@ changelog="https://raw.githubusercontent.com/linrunner/TLP/main/changelog"
distfiles="https://github.com/linrunner/TLP/archive/${version}.tar.gz"
checksum=b5f08f00d535c26abc49b336b4c7264c6e5fb7bc3de8054eaabeebdd00e0760e
-conflicts="laptop-mode>=0"
+conflicts="laptop-mode>=0 perl-Unicode-Tussle>=0"
conf_files="/etc/tlp.conf /etc/tlp.d/*.conf"
make_dirs="/var/lib/tlp 0755 root root"
@@ -32,6 +32,8 @@ do_install() {
rm -f ${DESTDIR}/usr/share/man/man8/*.service.8
vsv tlp
+ vinstall ${FILESDIR}/tlp.resume 755 etc/zzz.d/resume 50-tlp.sh
+ vinstall ${FILESDIR}/tlp.suspend 755 etc/zzz.d/suspend 50-tlp.sh
rm -rf ${DESTDIR}/etc/init.d
}
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: [PR PATCH] [Merged]: tlp: add zzz resume/suspend hooks
2022-11-14 22:13 [PR PATCH] tlp: add zzz resume/suspend hooks hazen2215
` (19 preceding siblings ...)
2023-09-29 22:52 ` hazen2215
@ 2023-10-02 7:44 ` sgn
20 siblings, 0 replies; 22+ messages in thread
From: sgn @ 2023-10-02 7:44 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1178 bytes --]
There's a merged pull request on the void-packages repository
tlp: add zzz resume/suspend hooks
https://github.com/void-linux/void-packages/pull/40534
Description:
<!-- Uncomment relevant sections and delete options which are not applicable -->
https://github.com/linrunner/TLP/issues/656
also make it conflict with perl-Unicode-Tussle (/usr/bin/nfc)
#### 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
-->
^ 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).