---->> IRQ <<---- ] Fan v0.4b [ yellow... these are some little utils to control the Dell laptop Fan on a FreeBSD machine. Dell has been less then supportive on this subject! but after 'lending' some source code from someone who did some reverse engineering on the dell test utils for DOS and me doing some reverse engineering on the bios its self. it seems to be functional enough to be useful on a Latitude_CPXH500+BIOS A13 the source is clean and very straight forward so have a go at tweaking it to your taste the Fan.cc util has 4 mandatory options 'Fan [off] [low] [high] [stats]' [off] => below what temp should the fan swith off [low] => at what temp should the fan switch to low speed [high] => above what temp should the fan swith to high speed [stats] => 0 no stats, 1 show stats, 2 only show stats and quit. Example: Fan 40 45 50 1 40, switch fan off when temp lower then 40C 45, switch it to low speed when temp is higher then 45C 50, and make even more noise when temp is higher then 50C 1, please show me the status, because i don't trust machines. i find that 40 45 50 are good settings. To Compile this one, with debug option so you can tell if there is something wrong. gcc Fan.cc -g -O2 -static -o fan // down.cc [ shuts down laptop power ] [Be sure to umount all before !!] To compile this one gcc -O2 -static down.cc -o down // patch to add 'shutdown -p' "The system is halted and the power is turned off" to the kernel 1.patch -> adds a few lines to /usr/src/sys/kern/kern_shutdown.c 2.patch -> adds 2 compiler options to /usr/src/sys/compile//Makefile // delletje.cc [ this is Highly Experimental code to control some other bios functions ] [and is know to fubar my laptop so bad, that only a power cycle brings it back to life] if anyone can get his/her hands on the BIOS calls documentation, then please CC: me a copy so i can make this more usable software. ----------------------------------------------------------------- This tool uses the GNU licence for those who care. thanks to the guy who ran a disassembler over the DOS utils ! and Dell , stop making gear with build in breakdown and other secrets !! for any useful brain dumps in my direction: bofn@irq.org for more stuff and rants http://www.geocities.com/bofn1001/ mirror> http://www.angelfire.com/punk4/bofn1001/ // Change log 0.3b -> 0.4b Thu Apr 3 23:33:26 NZST 2003 a little fix in Fan.cc battery level calculation new> delletje.cc change in licence from GPL to [my way or else..] 0.2b -> 0.3b Sun Mar 16 21:21:51 NZST 2003 added a very small util to power down the machine [be sure to umount all rw disks before you run this !!] added a kernel patches to activate 'shutdown -p' 0.1b -> 0.2b Thu Feb 27 17:53:49 NZDT 2003 found the Battery Level and many more options to play with but for today only put in the battery level report. .................................................................. %% "People demand freedom of speech as a compensation for the freedom of thought which they seldom use." %% #EOF