Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 17022 - would be nice to have an init script part of i8kutils
Summary: would be nice to have an init script part of i8kutils
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Hanno Böck
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-03-07 06:55 UTC by Evan Teran
Modified: 2004-08-18 04:43 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
init script and config file supporting i8kbuttons and i8kmon (i8kutils-rc.tgz,948 bytes, application/octet-stream)
2003-05-04 17:34 UTC, Frank Szczerba
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Evan Teran 2003-03-07 06:55:22 UTC
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.
Comment 1 Eric Johanson 2003-04-24 14:00:09 UTC
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 $?
}
Comment 2 Frank Szczerba 2003-05-04 17:34:40 UTC
Created attachment 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.
Comment 3 Hanno Böck gentoo-dev 2003-12-04 11:15:46 UTC
added
Comment 4 Jaime Martin 2004-08-18 04:43:56 UTC
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?