{"id":135,"date":"2015-09-11T22:12:39","date_gmt":"2015-09-11T22:12:39","guid":{"rendered":"http:\/\/info.ffteixeira.net\/2015\/09\/11\/tip-for-significantly-increasing-battery-life-reducing-power-consumption-thinkpad-x220\/"},"modified":"2015-09-11T22:12:39","modified_gmt":"2015-09-11T22:12:39","slug":"tip-for-significantly-increasing-battery-life-reducing-power-consumption-thinkpad-x220","status":"publish","type":"post","link":"https:\/\/blog.ffteixeira.net\/?p=135","title":{"rendered":"Tip for significantly increasing battery life \/ reducing power consumption (Thinkpad X220)"},"content":{"rendered":"<pre>\nThe biggest win was setting i915.i915_enable_rc6=1 on the kernel command \nline, although I&#039;ve read that this can cause some instability, depending \non you kernel and usage -- had a couple of crashes\/freezes a 6 months \nago, but it seems pretty stable now.  The benefits for a laptop \ndefinitely out-weigh the inconvenience or a few rare freezes, but it \nwould be different for a server.\n\nMight try out the other kernel line options and see if I can do better :-)\n\nHere&#039;s my \/etc\/rc.d\/rc.local file in case you are interested:\n-------------------------------------\n#!\/bin\/bash\n\necho 5 &gt; \/proc\/sys\/vm\/laptop_mode\necho 0 &gt; \/proc\/sys\/kernel\/nmi_watchdog\necho 1 &gt; \/sys\/devices\/system\/cpu\/sched_mc_power_savings\necho ondemand &gt; \/sys\/devices\/system\/cpu\/cpu0\/cpufreq\/scaling_governor\necho 1500 &gt; \/proc\/sys\/vm\/dirty_writeback_centisecs\nfor i in \/sys\/bus\/usb\/devices\/*\/power\/autosuspend; do echo 1 &gt; $i; done\nfor i in \/sys\/bus\/usb\/devices\/*\/power\/level; do echo auto &gt; $i; done\necho min_power &gt; \/sys\/class\/scsi_host\/host0\/link_power_management_policy\necho min_power &gt; \/sys\/class\/scsi_host\/host1\/link_power_management_policy\necho Y &gt; \/sys\/module\/snd_hda_intel\/parameters\/power_save_controller\necho 1 &gt; \/sys\/module\/snd_hda_intel\/parameters\/power_save\nfor i in \/sys\/bus\/{pci,i2c}\/devices\/*\/power\/control; do echo auto &gt; $i; done\n\niwconfig wlan0 power on<\/pre>\n<p><a href=\"https:\/\/lists.centos.org\/pipermail\/centos\/2012-August\/128092.html\" target=\"_blank\" rel=\"noopener noreferrer\">Credits <\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>The biggest win was setting i915.i915_enable_rc6=1 on the kernel command line, although I&#039;ve read that this can cause some instability, depending on you kernel and usage &#8212; had a couple of crashes\/freezes a 6 months ago, but it seems pretty &hellip; <a href=\"https:\/\/blog.ffteixeira.net\/?p=135\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-135","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/blog.ffteixeira.net\/index.php?rest_route=\/wp\/v2\/posts\/135","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.ffteixeira.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.ffteixeira.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.ffteixeira.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.ffteixeira.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=135"}],"version-history":[{"count":0,"href":"https:\/\/blog.ffteixeira.net\/index.php?rest_route=\/wp\/v2\/posts\/135\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.ffteixeira.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=135"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.ffteixeira.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=135"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.ffteixeira.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=135"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}