<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>17022</bug_id>
          
          <creation_ts>2003-03-07 06:55 0000</creation_ts>
          <short_desc>would be nice to have an init script part of i8kutils</short_desc>
          <delta_ts>2004-08-18 04:43:56 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Ebuilds</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>eteran@alum.rit.edu</reporter>
          <assigned_to>hanno@gentoo.org</assigned_to>
          <cc>latexer@gentoo.org</cc>

      

      
          <long_desc isprivate="0">
            <who>eteran@alum.rit.edu</who>
            <bug_when>2003-03-07 06:55:22 0000</bug_when>
            <thetext>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 &quot;official&quot; ones ;)

proxy

----------cut----------
#!/sbin/runscript

depend() {
	need localmount
}

checkconfig() {
	if [ ! -e /proc/i8k ] ; then
		eerror &quot;i8k support has not been compiled into the kernel&quot;
		return 1
	fi
}

start() {
	checkconfig || return 1
	ebegin &quot;Starting i8kd&quot;
	start-stop-daemon --start --quiet --background --make-pidfile --pidfile
/var/run/i8k.pid --exec /usr/bin/i8kmon -- -d
	eend $?
}

stop() {
	ebegin &quot;Stopping i8kd&quot;
	start-stop-daemon --stop --quiet --pidfile /var/run/i8k.pid
	eend $?
}
----------end cut----------

Reproducible: Always
Steps to Reproduce:
1.
2.
3.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>gentoo@vilos.com</who>
            <bug_when>2003-04-24 14:00:09 0000</bug_when>
            <thetext>I don&apos;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 &quot;Starting i8kbuttons&quot;
        start-stop-daemon --start --quiet --pidfile /var/run/i8kbuttons.pid -b \
                --startas /usr/bin/i8kbuttons -- -u &apos;aumix -v +4&apos; -d &apos;aumix -v -4&apos;
        eend $?
}
                                                                                                                                   
stop() {
        ebegin &quot;Stopping i8kbuttons&quot;
        start-stop-daemon --stop --quiet --pidfile /var/run/i8kbuttons.pid
        eend $?
}
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>frank@szczerba.net</who>
            <bug_when>2003-05-04 17:34:40 0000</bug_when>
            <thetext>Created an attachment (id=11484)
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&apos;s post). I
have tested this on a Dell Latitude C400 running Gentoo 1.4_rc4.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>hanno@gentoo.org</who>
            <bug_when>2003-12-04 11:15:46 0000</bug_when>
            <thetext>added</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jaime.martin@uc3m.es</who>
            <bug_when>2004-08-18 04:43:56 0000</bug_when>
            <thetext>The init script and config file don&apos;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 -&gt; /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?</thetext>
          </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>11484</attachid>
            <date>2003-05-04 17:34 0000</date>
            <desc>init script and config file supporting i8kbuttons and i8kmon</desc>
            <filename>i8kutils-rc.tgz</filename>
            <type>application/octet-stream</type>
            <data encoding="base64">H4sIAGCGtT4AA+1W32/bNhDOq/VXXGU/JE1UWU6cDBmCIev8EKC2g9ZeC3RDQUuUTVgiVZJKOqT+
33eULMnOMjddlw3D+L1I4v3kx9MdqQ59xpl+Efnsu+Xek6AbdLtn/f5et8T9Z68XoOzstN8/7h53
jV7QC05O96D7NOlsI1eaSIA9KYTepfcl+X8U7We+mjHuy5yrULJMO05EM8qj/QO4c1ok1lQCSRRR
IudRtZCKKE+oclaOEy5ouAwFj9m8NGExvIdn4FHwMylCU1bwK3wPekG502pRKqWQ4E4WFIwokuwG
PTIFXGhgHI8jSWjkoqqkOpccAqcVMxPKnJQug2xEhc+fodEsonsc3M7P41fT4eDD9Lp6+2n8dlS9
D6eTgbuV1ozOGZq9MTEYn5vcZrnWgiuTShHaU1pkXkRoKjh4XrGGz485o+aZsShmCW77hkjDp9+4
eIEy+AX9tDwvJUta63oe/URD8HMlfXMMjQmKZiRczqXhvbKFzl29rfNDL8dtNgsrd1XqATR6ZtOo
GTWEmJWHNA0lqJk2mgVJm5o/TieT8ejD68H14HKCuniMna01d1WcMCbc+aE4tboazImMxsPxCFnf
STpy+y2Eo+bXkF06foBoZKxzNxpfTidj3CgnK/ycXA0H46nZuIbO+uP+hosyFdnGr/BNxSiy7LHF
KLLH1+JfPKUmm52n9MVM1of0B+r+7Wb4PwTF+W/66FPP/9OTkz+b/0H/7Lia/0Gvd1rM/+PAzv9/
Am14WU7R4ieNcTL7dOtK6DhtuCaSpBQHvzp32vi9MaUaEa5fPARcr7sfnEMo0pTgT29CbfjRArA5
AHaQG5HkKYU8gyX9rTE2DfMrzCNxy7cdmC77GAdprunacmu2oa3EmxHRIImmR3hVgZQlCVMU/59I
Hd33iC4ySZXCa5Lh7CquEnle5aCASFpceyIaM06jo037W3ReCGcUij5Lo4p802h3E49rRR/HpLG3
K6qPKrsH3UI56XZo4x61FImZCRATboKuJyAaaZZSkeuCk5oOJOp2wcLFlqvi3ubnWYQUmvA6R084
cfeRAZIn2twDewem5gybl6/eXDrDq3eD1xduPbVJyj7hhdH7aBKFIVHIgevUJXbhdgoLCA5dcDaK
pxF4jcAURS3QYj5PKArX4UmOoWCfi7ImVJ5lQuoDp70RrNTxbuDwxK0FZbha5KHI2aqlC+yIdtpZ
WFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhY/P34HY8tLfsAKAAA
</data>        

          </attachment>
    </bug>

</bugzilla>