Browse Source
system/i8kutils: Updated for version 20210330_c993fb1d.
system/i8kutils: Updated for version 20210330_c993fb1d.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>pull/210/head
committed by
Willy Sudiarto Raharjo
No known key found for this signature in database
GPG Key ID: 3F617144D7238786
8 changed files with 65 additions and 173 deletions
-
28system/i8kutils/README
-
13system/i8kutils/doinst.sh
-
29system/i8kutils/fix_Makefile.patch
-
11system/i8kutils/fix_i8kmon_toggle_fan.patch
-
65system/i8kutils/i8kutils.SlackBuild
-
14system/i8kutils/i8kutils.info
-
68system/i8kutils/rc.i8kmon
-
10system/i8kutils/slack-desc
@ -1,3 +1,25 @@ |
|||||
This package contains user-space programs for controlling the fans |
|
||||
on Dell laptops. Make sure the i8k module is loaded before using |
|
||||
i8kutils. |
|
||||
|
i8kutils package contains user-space programs for controlling the fans |
||||
|
on some Dell laptops. |
||||
|
|
||||
|
Note: i8kutils is entirely built upon the dell-smm-hwmon kernel module. |
||||
|
|
||||
|
These data contains the states and the system temperature along with |
||||
|
others infos. The fields returned in a query to the system are |
||||
|
summarized below. |
||||
|
|
||||
|
* BIOS version |
||||
|
|
||||
|
* Dell service tag (later known as 'serial number') |
||||
|
|
||||
|
* CPU temperature |
||||
|
|
||||
|
* fan status |
||||
|
|
||||
|
* fan rotation speed (only on some models) |
||||
|
|
||||
|
* ac power status |
||||
|
|
||||
|
* volume buttons status (not the multimedia buttons) |
||||
|
|
||||
|
The data are collected from the dell-smm-hwmon kernel module that is |
||||
|
included in recent kernels. |
@ -1,13 +0,0 @@ |
|||||
config() { |
|
||||
NEW="$1" |
|
||||
OLD="$(dirname $NEW)/$(basename $NEW .new)" |
|
||||
# If there's no config file by that name, mv it over: |
|
||||
if [ ! -r $OLD ]; then |
|
||||
mv $NEW $OLD |
|
||||
elif [ "$(cat $OLD | md5sum)" = "$(cat $NEW | md5sum)" ]; then |
|
||||
# toss the redundant copy |
|
||||
rm $NEW |
|
||||
fi |
|
||||
# Otherwise, we leave the .new copy for the admin to consider... |
|
||||
} |
|
||||
config etc/i8kmon.conf.new |
|
@ -1,29 +0,0 @@ |
|||||
diff -Naur i8kutils/Makefile i8kutils_new/Makefile
|
|
||||
--- i8kutils/Makefile 2014-12-09 16:40:11.000000000 +0100
|
|
||||
+++ i8kutils_new/Makefile 2015-01-31 13:15:21.031912744 +0100
|
|
||||
@@ -14,16 +14,19 @@
|
|
||||
# General Public License for more details. |
|
||||
|
|
||||
ccflags-y = -Wall |
|
||||
+CC = gcc
|
|
||||
|
|
||||
all: i8kctl probe_i8k_calls_time |
|
||||
|
|
||||
-i8kctl: i8kctl.c i8kctl.o
|
|
||||
- gcc -Wall i8kctl.c -o i8kctl
|
|
||||
+i8kctl: i8kctl.c
|
|
||||
+ $(CC) $(CFLAGS) $(LDFLAGS) -Wall i8kctl.c -o i8kctl
|
|
||||
|
|
||||
-probe_i8k_calls_time: probe_i8k_calls_time.c
|
|
||||
- gcc -Wall -c -g -DLIB i8kctl.c
|
|
||||
- gcc -Wall -c -g -DLIB probe_i8k_calls_time.c
|
|
||||
- gcc -o probe_i8k_calls_time i8kctl.o probe_i8k_calls_time.o
|
|
||||
+i8kctl_DLIB.o: i8kctl.c
|
|
||||
+ $(CC) $(CFLAGS) -Wall -c -g -DLIB i8kctl.c -o i8kctl_DLIB.o
|
|
||||
+
|
|
||||
+probe_i8k_calls_time: i8kctl_DLIB.o probe_i8k_calls_time.c
|
|
||||
+ $(CC) $(CFLAGS) -Wall -c -g -DLIB probe_i8k_calls_time.c
|
|
||||
+ $(CC) $(CFLAGS) $(LDFLAGS) -Wall -o probe_i8k_calls_time i8kctl_DLIB.o probe_i8k_calls_time.o
|
|
||||
|
|
||||
i8k: |
|
||||
make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules |
|
@ -1,11 +0,0 @@ |
|||||
diff -Naur i8kutils/i8kmon new/i8kmon
|
|
||||
--- i8kutils/i8kmon 2015-05-21 11:33:21.596018503 +0200
|
|
||||
+++ new/i8kmon 2015-05-21 11:35:11.958867344 +0200
|
|
||||
@@ -430,6 +430,7 @@
|
|
||||
|
|
||||
proc toggle_fan {fan {speed {}}} { |
|
||||
global status |
|
||||
+ global config
|
|
||||
|
|
||||
if {$speed != {}} { |
|
||||
set status($fan) $speed |
|
@ -1,10 +1,10 @@ |
|||||
PRGNAM="i8kutils" |
PRGNAM="i8kutils" |
||||
VERSION="1.42" |
|
||||
HOMEPAGE="https://launchpad.net/i8kutils" |
|
||||
DOWNLOAD="https://launchpad.net/i8kutils/trunk/1.42/+download/i8kutils_1.42.tar.xz" |
|
||||
MD5SUM="7470b2908b39a41e3f26b8b3398e189d" |
|
||||
|
VERSION="20210330_c993fb1d" |
||||
|
HOMEPAGE="https://github.com/vitorafsr/i8kutils/" |
||||
|
DOWNLOAD="https://github.com/vitorafsr/i8kutils/archive/c993fb1da1bba5c2cd2860c1aa6c3916b4de77e4/i8kutils-c993fb1da1bba5c2cd2860c1aa6c3916b4de77e4.tar.gz" |
||||
|
MD5SUM="d1d2d0e646ac54a01b49f97ea73d00f9" |
||||
DOWNLOAD_x86_64="" |
DOWNLOAD_x86_64="" |
||||
MD5SUM_x86_64="" |
MD5SUM_x86_64="" |
||||
REQUIRES="acpi" |
|
||||
MAINTAINER="Fabio Sangiovanni" |
|
||||
EMAIL="sjh+sbo@sanjioh.org" |
|
||||
|
REQUIRES="" |
||||
|
MAINTAINER="Lockywolf" |
||||
|
EMAIL="for_sbo.i8kutils_2023-05-15@lockywolf.net" |
@ -1,68 +0,0 @@ |
|||||
#!/bin/sh |
|
||||
# Start/stop/restart i8kmon. |
|
||||
|
|
||||
I8KMON_PARAMS="--auto --daemon" |
|
||||
|
|
||||
# Start i8kmon |
|
||||
i8kmon_start() { |
|
||||
if [ -x /usr/bin/i8kmon -a -f /proc/i8k ]; then |
|
||||
echo "Starting i8kmon daemon: /usr/bin/i8kmon $I8KMON_PARAMS &" |
|
||||
/usr/bin/i8kmon $I8KMON_PARAMS & |
|
||||
fi |
|
||||
} |
|
||||
|
|
||||
# Stop i8kmon |
|
||||
i8kmon_stop() { |
|
||||
echo "Stopping i8kmon daemon" |
|
||||
pkill -f "tclsh /usr/bin/i8kmon $I8KMON_PARAMS" |
|
||||
} |
|
||||
|
|
||||
# Check status |
|
||||
i8kmon_status() { |
|
||||
pgrep -f "tclsh /usr/bin/i8kmon $I8KMON_PARAMS" > /dev/null |
|
||||
local I8KMON_STATUS=$? |
|
||||
if [ $I8KMON_STATUS -ne 0 ]; then |
|
||||
return 1 |
|
||||
fi |
|
||||
} |
|
||||
|
|
||||
# Restart i8kmon |
|
||||
i8kmon_restart() { |
|
||||
$0 stop |
|
||||
sleep 1 |
|
||||
$0 start |
|
||||
} |
|
||||
|
|
||||
case "$1" in |
|
||||
'start') |
|
||||
if ( ! i8kmon_status ); then |
|
||||
i8kmon_start |
|
||||
else |
|
||||
echo "i8kmon is already running" |
|
||||
fi |
|
||||
;; |
|
||||
|
|
||||
'stop') |
|
||||
if ( i8kmon_status ); then |
|
||||
i8kmon_stop |
|
||||
else |
|
||||
echo "i8kmon is already stopped" |
|
||||
fi |
|
||||
;; |
|
||||
|
|
||||
'status') |
|
||||
if ( i8kmon_status ); then |
|
||||
echo "i8kmon is currently running" |
|
||||
else |
|
||||
echo "i8kmon is NOT running" |
|
||||
fi |
|
||||
;; |
|
||||
|
|
||||
'restart') |
|
||||
i8kmon_restart |
|
||||
;; |
|
||||
|
|
||||
*) |
|
||||
echo "Usage: $0 start|stop|status|restart" |
|
||||
;; |
|
||||
esac |
|
Write
Preview
Loading…
Cancel
Save
Reference in new issue