mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-24 00:45:52 +00:00
[NEW PORT] sysutils/estctrl
This port provides a daemon for adjusting the cpu frequency (using the Enhanced Speedstep module in sysutils/est) based on the current cpu load and power source. PR: ports/71270 Submitted by: Colin Percival <cperciva@daemonology.net>
This commit is contained in:
parent
d2d87f21b3
commit
964ba0afd9
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=117887
@ -111,6 +111,7 @@
|
||||
SUBDIR += enteruser
|
||||
SUBDIR += eroaster
|
||||
SUBDIR += est
|
||||
SUBDIR += estctrl
|
||||
SUBDIR += etcmerge
|
||||
SUBDIR += eventwatcher
|
||||
SUBDIR += extipl
|
||||
|
36
sysutils/estctrl/Makefile
Normal file
36
sysutils/estctrl/Makefile
Normal file
@ -0,0 +1,36 @@
|
||||
# New ports collection makefile for: Enhanced SpeedStep control daemon
|
||||
# Date created: 1 September 2004
|
||||
# Whom: cperciva@daemonology.net
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
PORTNAME= estctrl
|
||||
PORTVERSION= 0.7
|
||||
CATEGORIES= sysutils
|
||||
MASTER_SITES= http://www.daemonology.net/freebsd-est/
|
||||
|
||||
MAINTAINER= cperciva@daemonology.net
|
||||
COMMENT= Enhanced SpeedStep control daemon
|
||||
|
||||
RUN_DEPENDS= ${LOCALBASE}/modules/est.ko:${PORTSDIR}/sysutils/est
|
||||
|
||||
ONLY_FOR_ARCHS= i386
|
||||
|
||||
USE_RC_SUBR= yes
|
||||
RC_SCRIPTS_SUB= PREFIX=${PREFIX} RC_SUBR=${RC_SUBR}
|
||||
|
||||
PLIST_FILES= sbin/estctrl \
|
||||
etc/rc.d/estctrl.sh
|
||||
|
||||
MAKE_ENV= BINDIR=${PREFIX}/sbin
|
||||
|
||||
post-extract:
|
||||
${SED} ${RC_SCRIPTS_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} \
|
||||
${FILESDIR}/estctrl.sh > ${WRKDIR}/estctrl.sh
|
||||
|
||||
post-install:
|
||||
${INSTALL_SCRIPT} ${WRKDIR}/estctrl.sh ${PREFIX}/etc/rc.d/estctrl.sh
|
||||
${CAT} ${PKGMESSAGE}
|
||||
|
||||
.include <bsd.port.mk>
|
2
sysutils/estctrl/distinfo
Normal file
2
sysutils/estctrl/distinfo
Normal file
@ -0,0 +1,2 @@
|
||||
MD5 (estctrl-0.7.tar.gz) = 03dc1b69dd2ee37638eaba85d04655ba
|
||||
SIZE (estctrl-0.7.tar.gz) = 2547
|
31
sysutils/estctrl/files/estctrl.sh
Normal file
31
sysutils/estctrl/files/estctrl.sh
Normal file
@ -0,0 +1,31 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
# PROVIDE: estctrl
|
||||
# REQUIRE: est
|
||||
# KEYWORD: FreeBSD
|
||||
|
||||
# Define estctrl_* variables in one of these files:
|
||||
# /etc/rc.conf
|
||||
# /etc/rc.conf.local
|
||||
# /etc/rc.conf.d/est
|
||||
#
|
||||
# DO NOT CHANGE THESE DEFAULT VALUES HERE
|
||||
#
|
||||
estctrl_enable="NO"
|
||||
estctrl_speed_ac="adaptive"
|
||||
estctrl_speed_battery="adaptive"
|
||||
|
||||
. %%RC_SUBR%%
|
||||
|
||||
name="estctrl"
|
||||
rcvar=`set_rcvar`
|
||||
|
||||
load_rc_config $name
|
||||
|
||||
command="%%PREFIX%%/sbin/estctrl"
|
||||
command_args="-a ${estctrl_speed_ac} -b ${estctrl_speed_battery} &"
|
||||
|
||||
run_rc_command "$1"
|
7
sysutils/estctrl/pkg-descr
Normal file
7
sysutils/estctrl/pkg-descr
Normal file
@ -0,0 +1,7 @@
|
||||
This is a daemon for controlling the CPU speed via Enhanced Speedstep on
|
||||
Intel Pentium M processors based on the current cpu load and power source.
|
||||
|
||||
WWW: http://www.daemonology.net/freebsd-est/
|
||||
|
||||
- Colin Percival
|
||||
cperciva@daemonology.net
|
7
sysutils/estctrl/pkg-message
Normal file
7
sysutils/estctrl/pkg-message
Normal file
@ -0,0 +1,7 @@
|
||||
To start the Enhanced Speedstep daemon at boot:
|
||||
echo 'estctrl_enable="YES"' >> /etc/rc.conf
|
||||
|
||||
To run the processor at minimum or maximum frequency when on AC or
|
||||
battery power, set the est_speed_ac or est_speed_battery variables
|
||||
to "min" or "max".
|
||||
|
Loading…
Reference in New Issue
Block a user