{"id":261,"date":"2015-10-29T16:41:06","date_gmt":"2015-10-29T16:41:06","guid":{"rendered":"http:\/\/mclements.net\/blogWP\/?p=261"},"modified":"2016-09-20T19:42:08","modified_gmt":"2016-09-20T19:42:08","slug":"ubuntu-15-10-thinkpad-carbon-x1","status":"publish","type":"post","link":"http:\/\/mclements.net\/blogWP\/index.php\/2015\/10\/29\/ubuntu-15-10-thinkpad-carbon-x1\/","title":{"rendered":"Ubuntu 15.10, Thinkpad Carbon X1"},"content":{"rendered":"<p><strong>WARNING<\/strong>: Right after upgrading I started getting kernel panics 1-3 times per day. This is definitely a problem with the 4.2 linux kernel, as Ubuntu 15.04 with kernel 3.19 (the last version 3 kernel) was rock solid running for weeks at a time under heavy usage, many suspends\/wakes, plugging and replugging into docking stations, etc. all without rebooting. I always keep the prior version of the kernel installed, so for me, the solution is to keep Ubuntu 15.10 but select kernel 3.19 in Grub when booting.<\/p>\n<p>Now for the rest of the original post&#8230;<\/p>\n<p>I run Xubuntu on most of my computers both at home and at work. Version 15.10 just came out and I&#8217;ve upgraded all of them. On a desktop you might not notice much difference. On a laptop it&#8217;s got some good stuff you might like.<\/p>\n<p>The biggest difference from 15.04 is the kernel. 15.10 uses kernel 4.2 instead of \u00a0kernel 3.19 which 15.04 uses. This new kernel supports the power saving modes of Broadwell processors and micro-hardware appearing on modern laptops.<\/p>\n<p>Another benefit of 15.10, again for laptops, is that <strong>tlp<\/strong>\u00a0is fully supported and in the Xubuntu standard repos. And its default settings work well. It auto-detects when the X1 is plugged vs. running on battery and it extends battery life by a couple of hours &#8211;\u00a04-6 hours becomes\u00a06-8\u00a0with normal use and\u00a0screen constantly on.<\/p>\n<p><strong>A bit about tlp&#8230;<\/strong>\u00a0while it comes pre-configured with good default settings, you should check a few things to ensure you&#8217;re getting the most from it. Here&#8217;s a good <a href=\"http:\/\/linrunner.de\/en\/tlp\/docs\/tlp-configuration.html\">tlp reference<\/a> site to start. Now here&#8217;s an important tip from that site, specific to Ubuntu:<\/p>\n<p>First, you must deactivate Ubuntu&#8217;s normal CPU controller:\u00a0<strong>sudo update-rc.d -f ondemand remove<\/strong>. This allows TLP to adjust the CPU speeds.<br \/>\nThis command reverts this change:\u00a0<strong>sudo update-rc.d ondemand defaults<\/strong><\/p>\n<p>Use this command to check whether TLP can control the CPU speed: <strong>sudo tlp-stat -p<\/strong>. If it says\u00a0<strong>x86_energy_perf_policy: program not installed<\/strong>, then you need to install <strong>linux-tools-generic<\/strong>, and ensure the version matches your kernel.<\/p>\n<p>Another thing you should do is allow the CPU speed to vary. The default settings do not. Edit the file\u00a0<strong>\/etc\/default\/tlp<\/strong> as root, and change 4 lines. First, they&#8217;re commented out, so un-comment them. And, put in numeric values for your processor.<\/p>\n<p><strong>CPU_SCALING_MIN_FREQ_ON_AC=1000000<\/strong><br \/>\n<strong>CPU_SCALING_MAX_FREQ_ON_AC=3200000<\/strong><br \/>\n<strong>CPU_SCALING_MIN_FREQ_ON_BAT=500000<\/strong><br \/>\n<strong>CPU_SCALING_MAX_FREQ_ON_BAT=2000000<\/strong><\/p>\n<p>As you can see, I&#8217;ve used a lower top speed on BAT, and a \u00a0higher bottom speed on AC. This limits performance in favor of battery life, but not too much, while letting it slow down on AC, to save energy or charge faster. However, TLP will only use the higher speeds when the processor is active, so setting higher values won&#8217;t necessarily shorten battery life if the machine is idle. That said, TLP allows higher clock speeds liberally even when in powersave mode, so limiting the CPU top speed while on battery does extend battery life.<\/p>\n<p>NOTE: any changes you make to the TLP config file will take effect when you enter the command: <strong>sudo tlp start<\/strong>. You can run this command even if it&#8217;s already started.<\/p>\n<p>On Ubuntu 15.10 Kernel 4.2 all this happened automatically and everything worked. But when\u00a0I had to revert back to kernel 3.19, my battery life suffered because TLP was no longer controlling CPU speeds. I had to reinstall linux-tools-generic version like this: <strong>sudo apt-get-install linux-tools-generic=3.19.0*<\/strong>, which reverted the version back to match the kernel.<\/p>\n<p><strong>A bit about Xubuntu&#8230;<\/strong><\/p>\n<p>I&#8217;ve done 2 in-place upgrades (from 15.04) and 1 fresh install. All went smoothly.<\/p>\n<p>Why Xubuntu? it&#8217;s my favorite Linux distro because<\/p>\n<ul>\n<li>It&#8217;s Ubuntu &#8211; the most popular distro with the most complete and up-to-date repositories.<\/li>\n<li>It uses the XFCE desktop, which is smaller (both in RAM and disk), faster, more reliable than Ubuntu&#8217;s\u00a0Unity desktop.<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>WARNING: Right after upgrading I started getting kernel panics 1-3 times per day. This is definitely a problem with the 4.2 linux kernel, as Ubuntu 15.04 with kernel 3.19 (the last version 3 kernel) was rock solid running for weeks at a time under heavy usage, many suspends\/wakes, plugging and replugging into docking stations, etc. &hellip; <a href=\"http:\/\/mclements.net\/blogWP\/index.php\/2015\/10\/29\/ubuntu-15-10-thinkpad-carbon-x1\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Ubuntu 15.10, Thinkpad Carbon X1<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"class_list":["post-261","post","type-post","status-publish","format-standard","hentry","category-tech"],"_links":{"self":[{"href":"http:\/\/mclements.net\/blogWP\/index.php\/wp-json\/wp\/v2\/posts\/261","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/mclements.net\/blogWP\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/mclements.net\/blogWP\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/mclements.net\/blogWP\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/mclements.net\/blogWP\/index.php\/wp-json\/wp\/v2\/comments?post=261"}],"version-history":[{"count":11,"href":"http:\/\/mclements.net\/blogWP\/index.php\/wp-json\/wp\/v2\/posts\/261\/revisions"}],"predecessor-version":[{"id":574,"href":"http:\/\/mclements.net\/blogWP\/index.php\/wp-json\/wp\/v2\/posts\/261\/revisions\/574"}],"wp:attachment":[{"href":"http:\/\/mclements.net\/blogWP\/index.php\/wp-json\/wp\/v2\/media?parent=261"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/mclements.net\/blogWP\/index.php\/wp-json\/wp\/v2\/categories?post=261"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/mclements.net\/blogWP\/index.php\/wp-json\/wp\/v2\/tags?post=261"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}