{"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

I’ve now added the files and install instructions to our Git repository and linked it with a Redmine project: https:\/\/redmine.techtonium.com\/projects\/automatic-laptop-fan-control-script<\/a><\/p>\n

 <\/p>\n

I no longer have to play hot-potato with my laptop and maybe I’ll be able to focus on documenting one of my other project’s code…. Just maybe….<\/p>\n","protected":false},"excerpt":{"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 […]<\/p>\n","protected":false},"author":2,"featured_media":679,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"ngg_post_thumbnail":0,"footnotes":""},"categories":[11,6],"tags":[],"_links":{"self":[{"href":"https:\/\/idleengineers.com\/wp-json\/wp\/v2\/posts\/543"}],"collection":[{"href":"https:\/\/idleengineers.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/idleengineers.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/idleengineers.com\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/idleengineers.com\/wp-json\/wp\/v2\/comments?post=543"}],"version-history":[{"count":0,"href":"https:\/\/idleengineers.com\/wp-json\/wp\/v2\/posts\/543\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/idleengineers.com\/wp-json\/"}],"wp:attachment":[{"href":"https:\/\/idleengineers.com\/wp-json\/wp\/v2\/media?parent=543"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/idleengineers.com\/wp-json\/wp\/v2\/categories?post=543"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/idleengineers.com\/wp-json\/wp\/v2\/tags?post=543"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}