Bug 17022 - would be nice to have an init script part of i8kutils
|
Bug#:
17022
|
Product: Gentoo Linux
|
Version: unspecified
|
Platform: All
|
|
OS/Version: Linux
|
Status: RESOLVED
|
Severity: enhancement
|
Priority: P2
|
|
Resolution: FIXED
|
Assigned To: hanno@gentoo.org
|
Reported By: eteran@alum.rit.edu
|
|
Component: Ebuilds
|
|
|
URL:
|
|
Summary: would be nice to have an init script part of i8kutils
|
|
Keywords:
|
|
Status Whiteboard:
|
|
Opened: 2003-03-07 06:55 0000
|
the i8kutils are useful for dell laptops, and there is a i8kmon utility which
when run as a deamon will auto-manage the fan speeds on such laptops. It would
be very nice if an init script (example provided) would be added to the ebuild
so any user can have there system setup to have the fans work as they should
automatically :)
This script seems to work pretty nicely, but i like to go with "official" ones ;)
proxy
----------cut----------
#!/sbin/runscript
depend() {
need localmount
}
checkconfig() {
if [ ! -e /proc/i8k ] ; then
eerror "i8k support has not been compiled into the kernel"
return 1
fi
}
start() {
checkconfig || return 1
ebegin "Starting i8kd"
start-stop-daemon --start --quiet --background --make-pidfile --pidfile
/var/run/i8k.pid --exec /usr/bin/i8kmon -- -d
eend $?
}
stop() {
ebegin "Stopping i8kd"
start-stop-daemon --stop --quiet --pidfile /var/run/i8k.pid
eend $?
}
----------end cut----------
Reproducible: Always
Steps to Reproduce:
1.
2.
3.
I don't trust the i8k to manage my fans, however, it does a sweet job of
assiging my buttons to control volume.
Here is my shot at an init script to set this up. It requires aumix.
start() {
ebegin "Starting i8kbuttons"
start-stop-daemon --start --quiet --pidfile /var/run/i8kbuttons.pid -b
\
--startas /usr/bin/i8kbuttons -- -u 'aumix -v +4' -d 'aumix -v
-4'
eend $?
}
stop() {
ebegin "Stopping i8kbuttons"
start-stop-daemon --stop --quiet --pidfile /var/run/i8kbuttons.pid
eend $?
}
Created an attachment (id=11484) [details]
init script and config file supporting i8kbuttons and i8kmon
The attached script and config file supports both i8kbuttons and i8kmon. Either
one can be disabled from the config file. Sample configuration values are given
for use with ALSA (my configuration) and aumix (copied from chadh's post). I
have tested this on a Dell Latitude C400 running Gentoo 1.4_rc4.
The init script and config file don't appear if I install i8kutils_1.17:
$qpkg -l i8kutils
app-laptop/i8kutils-1.17 *
CONTENTS:
/usr
/usr/bin
/usr/bin/i8kbuttons
/usr/bin/i8kctl
/usr/bin/i8kfan -> /usr/bin/i8kctl 1092821608
/usr/bin/i8kmon
/usr/share
/usr/share/man
/usr/share/man/man1
/usr/share/man/man1/i8kbuttons.1.gz
/usr/share/man/man1/i8kctl.1.gz
/usr/share/man/man1/i8kmon.1.gz
/usr/share/doc
/usr/share/doc/i8kutils-1.17
/usr/share/doc/i8kutils-1.17/examples
/usr/share/doc/i8kutils-1.17/examples/40custom_load-xmodmap.gz
/usr/share/doc/i8kutils-1.17/examples/i8k.def.gz
/usr/share/doc/i8kutils-1.17/examples/setmixer.sh.gz
/usr/share/doc/i8kutils-1.17/examples/Xmodmap.gz
/usr/share/doc/i8kutils-1.17/README.i8kutils.gz
/usr/share/doc/i8kutils-1.17/i8kmon.conf.gz
Why not are they included?