Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

10.5: Auto-start G4FanControl in 10.5 Apps
Under tiger I used an app called G4FanControl on my PowerBook G4 to keep it from being uncomfortably hot when pushing it hard. The GUI version runs under Leopard, but requires you to run it every time you log in, and enter your password. Once you do this, you also have to re-set your temperatures because the app does not remember them. I found a very easy way to circumvent this annoyance.

First, download the CLI version of the utility, then create a script that has chmod 755 permissions which will call the app with the needed flags. Once this is complete, you can use a utility called Lingon that can create a launchd entry easily. Point it at your script, and it will now run at startup (pre login screen). This will set the temperature once per boot.

To test that launchd was working, I set the temps using the script, then reset the thresholds to approximately 45, which made the machine dead quiet. Upon reboot, my fans spooled up to cool the machine to the values in my script.

[robg adds: Unfortunately, the author didn't include either the actual CLI script they created or their email address, so this is as much detail as I have.]
    •    
  • Currently 1.50 / 5
  You rated: 3 / 5 (4 votes cast)
 
[7,069 views]  

10.5: Auto-start G4FanControl in 10.5 | 1 comments | Create New Account
Click here to return to the '10.5: Auto-start G4FanControl in 10.5' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.5: Auto-start G4FanControl in 10.5
Authored by: mysty on May 03, '08 01:53:37PM
I think what you want to end up with is something like a /Library/LaunchDaemons/com.your.g4fancontrolStarter.plist that contains something along the lines of the following:

--
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">;
<plist version="1.0">
<dict>
<key>Label</key>
<string>com.your.g4fancontrolStarter</string>
<key>ProgramArguments</key>
<array>
<string>/Users/<YOU>/Scripts/g4fancontrol-startup.sh</string>
</array>
<key>QueueDirectories</key>
<array/>
<key>RunAtLoad</key>
<true/>
<key>WatchPaths</key>
<array/>
</dict>
</plist>
--

My /Users/<YOU>/Scripts/g4fancontrol-startup.sh script looks like

--
#!/bin/sh
/usr/local/bin/g4fancontrol04/g4fancontrol --set 60
--

as this is where I moved the CLI version after make

Note that the value of 60 is the apple default and it is up to you to choose a balance between a warm lap and overworked fans. Your mileage may vary! :)


[ Reply to This | # ]