d00d, on Aug 31 2010, 10:01 PM, said:
That would be useful, thanks.
ok here's how I managed to set the Nvidia GTX 285 GPU fan to auto on wake using nvclock.
install an open source util call sleepwatcher details here:
Sleepwatcher
You'll need to make nvclocks mapMemoryDriver.kext load on boot, i used DDs script and found I needed to install the kext in system, rebuild caches and reboot.
copy nvclock to /usr/local/sbin
Then edit /etc/rc.wakeup. add a line to set the GPU fan to auto before for loop
Eg:
/usr/local/sbin/nvclock -F auto -f
(we cant use a ~/.wakeup script as nvclock needs to run as root, and also when nobody's logged in)
Now every time your system wakes the GPU fan will be set to auto.
This won't set the fan to auto on boot however. Here's how I did that:
make a script to run nvclock to set the GPU fan to auto (I found I needed to put a sleep in to give the mapMemoryDriver kext time to load)
#!/bin/sh
#
sleep 60
/usr/local/sbin/nvclock -F auto -f
I stored this as a file /etc/rc.fansboot
I then created a launchd plist to run the file on boot, and installed it with luanchd load. I guess you could also do it via a login item.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple\
.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>com.projectosx.nvclockautofans</string>
<key>ProgramArguments</key>
<array>
<string>/etc/rc.fansboot</string>
</array>
<key>RunAtLoad</key>
<true/>
</dict>
</plist>
My system now sets the GPU fan to auto by the time you've booted and logged in, and every time you wake the system after sleep.
Cheers
Jon