{"id":543,"date":"2011-12-21T23:31:22","date_gmt":"2011-12-22T07:31:22","guid":{"rendered":"http:\/\/www.idleengineers.com\/?p=543"},"modified":"2011-12-21T23:31:22","modified_gmt":"2011-12-22T07:31:22","slug":"laptop-fan-control","status":"publish","type":"post","link":"https:\/\/idleengineers.com\/blog\/laptop-fan-control\/","title":{"rendered":"Laptop Fan Control"},"content":{"rendered":"
I was sitting on my couch, watching Arrested Development and coding, when I got distracted by the ridiculous heat that was being produced by my laptop. In the past I found some files deep in \/proc that could give the current temperature and allow me to change the fan speed. As mentioned in “Nine Traits of the Veteran Unix Admin<\/a>” by Pual Venezia, I don’t want to just patch the problem and I need to find an elegant solution (traits 4 and 5).<\/p>\n <\/p>\n So, in the end I wrote a script that will attempt to keep the average temperature within a specified range by incrementally increasing the fan speed. It also reduces the speed if the temperature drops. In addition, I created a script using the start-strop-daemon so that the fan control script can be properly launched and stopped at startup and shutdown.<\/p>\n <\/p>\n