public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: app-laptop/tpacpi-bat/files/
@ 2016-11-15  0:40 Christoph Junghans
  0 siblings, 0 replies; 2+ messages in thread
From: Christoph Junghans @ 2016-11-15  0:40 UTC (permalink / raw
  To: gentoo-commits

commit:     847bc79f1b8dc541dec07f6f82ab4577a254b66b
Author:     Christoph Junghans <junghans <AT> gentoo <DOT> org>
AuthorDate: Tue Nov 15 00:39:54 2016 +0000
Commit:     Christoph Junghans <junghans <AT> gentoo <DOT> org>
CommitDate: Tue Nov 15 00:39:54 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=847bc79f

app-laptop/tpacpi-bat: update patch

Package-Manager: portage-2.3.0

 app-laptop/tpacpi-bat/files/tpacpi-bat.initd.1 | 2 +-
 app-laptop/tpacpi-bat/files/tpacpi-bat.initd.2 | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/app-laptop/tpacpi-bat/files/tpacpi-bat.initd.1 b/app-laptop/tpacpi-bat/files/tpacpi-bat.initd.1
index 63a4d33..d9f5de7 100644
--- a/app-laptop/tpacpi-bat/files/tpacpi-bat.initd.1
+++ b/app-laptop/tpacpi-bat/files/tpacpi-bat.initd.1
@@ -1,5 +1,5 @@
 #!/sbin/openrc-run
-# Copyright (C) 2012-2013 Christoph Junghans <ottxor@gentoo.org>
+# Copyright (C) 2012-2016 Christoph Junghans <junghans@gentoo.org>
 #
 # Distributed under the terms of the GNU General Public License, v2 or later
 

diff --git a/app-laptop/tpacpi-bat/files/tpacpi-bat.initd.2 b/app-laptop/tpacpi-bat/files/tpacpi-bat.initd.2
index 796b94a..7c92b73 100644
--- a/app-laptop/tpacpi-bat/files/tpacpi-bat.initd.2
+++ b/app-laptop/tpacpi-bat/files/tpacpi-bat.initd.2
@@ -1,5 +1,5 @@
 #!/sbin/openrc-run
-# Copyright (C) 2012-2013 Christoph Junghans <ottxor@gentoo.org>
+# Copyright (C) 2012-2016 Christoph Junghans <junghans@gentoo.org>
 #
 # Distributed under the terms of the GNU General Public License, v2 or later
 


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

* [gentoo-commits] repo/gentoo:master commit in: app-laptop/tpacpi-bat/files/
@ 2020-11-06 16:20 Christoph Junghans
  0 siblings, 0 replies; 2+ messages in thread
From: Christoph Junghans @ 2020-11-06 16:20 UTC (permalink / raw
  To: gentoo-commits

commit:     a60e979137b7112178a78e3e2ebe0a972b78d006
Author:     Michael Mair-Keimberger <m.mairkeimberger <AT> gmail <DOT> com>
AuthorDate: Fri Nov  6 15:24:33 2020 +0000
Commit:     Christoph Junghans <junghans <AT> gentoo <DOT> org>
CommitDate: Fri Nov  6 16:19:17 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a60e9791

app-laptop/tpacpi-bat: remove unused files

Closes: https://github.com/gentoo/gentoo/pull/18150
Package-Manager: Portage-3.0.8, Repoman-3.0.2
Signed-off-by: Michael Mair-Keimberger <m.mairkeimberger <AT> gmail.com>
Signed-off-by: Christoph Junghans <junghans <AT> gentoo.org>

 app-laptop/tpacpi-bat/files/tpacpi-bat.confd.0 | 15 -----
 app-laptop/tpacpi-bat/files/tpacpi-bat.initd.1 | 78 --------------------------
 2 files changed, 93 deletions(-)

diff --git a/app-laptop/tpacpi-bat/files/tpacpi-bat.confd.0 b/app-laptop/tpacpi-bat/files/tpacpi-bat.confd.0
deleted file mode 100644
index 94da0a3eb12..00000000000
--- a/app-laptop/tpacpi-bat/files/tpacpi-bat.confd.0
+++ /dev/null
@@ -1,15 +0,0 @@
-# /etc/conf.d/tpacpi-bat: config file for /etc/init.d/tpacpi-bat
-
-# use '/etc/init.d/tpacpi-bat info' at any time to check the thresholds
-# currently used by the driver
-
-# default thresholds for '/etc/init.d/tpacpi-bat start'
-TPACPI_BAT_THRESH_START="30"
-TPACPI_BAT_THRESH_STOP="85"
-# values to be used for '/etc/init.d/tpacpi-bat low'
-TPACPI_BAT_LOW_THRESH_START="${TPACPI_BAT_THRESH_START}"
-TPACPI_BAT_LOW_THRESH_STOP="${TPACPI_BAT_THRESH_STOP}"
-
-# values to be used for '/etc/init.d/tpacpi-bat high'
-TPACPI_BAT_HIGH_THRESH_START="95"
-TPACPI_BAT_HIGH_THRESH_STOP="99" #see bug #485526

diff --git a/app-laptop/tpacpi-bat/files/tpacpi-bat.initd.1 b/app-laptop/tpacpi-bat/files/tpacpi-bat.initd.1
deleted file mode 100644
index d9f5de7fb3d..00000000000
--- a/app-laptop/tpacpi-bat/files/tpacpi-bat.initd.1
+++ /dev/null
@@ -1,78 +0,0 @@
-#!/sbin/openrc-run
-# Copyright (C) 2012-2016 Christoph Junghans <junghans@gentoo.org>
-#
-# Distributed under the terms of the GNU General Public License, v2 or later
-
-extra_started_commands="low high info"
-
-BATS="1"
-
-depend() {
-	after modules
-}
-
-start() {
-	local state1
-
-	ebegin "Making sure that module 'acpi_call' is loaded"
-	modprobe acpi_call
-	state1=$?
-	eend ${state1}
-
-	[ "${state1}" -ne "0" ] && return 1
-
-	ebegin "Starting ${SVCNAME}"
-	set_all ${TPACPI_BAT_THRESH_START} ${TPACPI_BAT_THRESH_STOP}
-	eend $?
-}
-
-stop() {
-	einfo "Nothing required to be done to stop ${SVCNAME}"
-}
-
-require_started() {
-	if ! service_started; then
-		"${RC_SERVICE}" start || return $?
-	fi
-}
-
-high() {
-	require_started
-
-	einfo "Switching ${SVCNAME} to high thesholds"
-	set_all ${TPACPI_BAT_HIGH_THRESH_START} ${TPACPI_BAT_HIGH_THRESH_STOP}
-}
-
-low() {
-	require_started
-
-	einfo "Switching ${SVCNAME} to low thesholds"
-	set_all ${TPACPI_BAT_LOW_THRESH_START} ${TPACPI_BAT_LOW_THRESH_STOP}
-}
-
-set_all() {
-	local tstart=$1
-	local tstop=$2
-	local bat
-
-	for bat in ${BATS}; do
-		ebegin "  setting thresholds for ${bat}: $tstart $tstop"
-		/usr/bin/tpacpi-bat -s startThreshold ${bat} ${tstart}
-		/usr/bin/tpacpi-bat -s stopThreshold ${bat} ${tstop}
-		eend $?
-	done
-}
-
-info() {
-	local tstart
-	local tstop
-	local bat
-
-	require_started
-
-	for bat in ${BATS}; do
-		tstart=$(/usr/bin/tpacpi-bat -g startThreshold ${bat})
-		tstop=$(/usr/bin/tpacpi-bat -g stopThreshold ${bat})
-		einfo "Battery ${bat}: ${tstart} ${tstop}"
-	done
-}


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

end of thread, other threads:[~2020-11-06 16:20 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-11-06 16:20 [gentoo-commits] repo/gentoo:master commit in: app-laptop/tpacpi-bat/files/ Christoph Junghans
  -- strict thread matches above, loose matches on Subject: below --
2016-11-15  0:40 Christoph Junghans

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox