<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.thinkwiki.org/w/index.php?action=history&amp;feed=atom&amp;title=X1_Linux_Tweaks</id>
	<title>X1 Linux Tweaks - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://www.thinkwiki.org/w/index.php?action=history&amp;feed=atom&amp;title=X1_Linux_Tweaks"/>
	<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/w/index.php?title=X1_Linux_Tweaks&amp;action=history"/>
	<updated>2026-05-16T22:39:36Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.31.12</generator>
	<entry>
		<id>https://www.thinkwiki.org/w/index.php?title=X1_Linux_Tweaks&amp;diff=56138&amp;oldid=prev</id>
		<title>Numeric: LNVDOCURL</title>
		<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/w/index.php?title=X1_Linux_Tweaks&amp;diff=56138&amp;oldid=prev"/>
		<updated>2015-01-17T18:22:27Z</updated>

		<summary type="html">&lt;p&gt;LNVDOCURL&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 18:22, 17 January 2015&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l10&quot; &gt;Line 10:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 10:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;'''Recommendations'''&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;'''Recommendations'''&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# Install &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;[http://support.lenovo.com/us/en/downloads/ds034646 &lt;/del&gt;firmware updates&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;] &lt;/del&gt;from Lenovo, especially for Intel or Sandisk drives&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# Install &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;{{LNVDOCURL|DS034646|&lt;/ins&gt;firmware updates&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;}} &lt;/ins&gt;from Lenovo, especially for Intel or Sandisk drives&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# When partitioning your drive place your swap partition at the end of the volume.&amp;#160; Make sure it is at least the size of your RAM (for hibernate).&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# When partitioning your drive place your swap partition at the end of the volume.&amp;#160; Make sure it is at least the size of your RAM (for hibernate).&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# Setup and force TRIM in fstab with the following options in your /etc/fstab '''discard, noatime and commit=500''' (Note: if you are concerned with possible data loss with commit, set it lower)&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# Setup and force TRIM in fstab with the following options in your /etc/fstab '''discard, noatime and commit=500''' (Note: if you are concerned with possible data loss with commit, set it lower)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key c1thinkwiki:diff::1.12:old-56137:rev-56138 --&gt;
&lt;/table&gt;</summary>
		<author><name>Numeric</name></author>
		
	</entry>
	<entry>
		<id>https://www.thinkwiki.org/w/index.php?title=X1_Linux_Tweaks&amp;diff=56137&amp;oldid=prev</id>
		<title>Dalesaurus: â†Created page with 'These instructions are for the 1st Generation X1 carbon but should generally apply to the 2nd gen.  The suggestions here were tested with a 3444-F9U to extend battery t...'</title>
		<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/w/index.php?title=X1_Linux_Tweaks&amp;diff=56137&amp;oldid=prev"/>
		<updated>2015-01-16T18:00:20Z</updated>

		<summary type="html">&lt;p&gt;â†Created page with &amp;#039;These instructions are for the 1st Generation X1 carbon but should generally apply to the 2nd gen.  The suggestions here were tested with a 3444-F9U to extend battery t...&amp;#039;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;These instructions are for the 1st Generation X1 carbon but should generally apply to the 2nd gen.  The suggestions here were tested with a 3444-F9U to extend battery to ~5 hours of normal use and a ~6 second boot time.&lt;br /&gt;
&lt;br /&gt;
== SSD Optimizations ==&lt;br /&gt;
&lt;br /&gt;
'''General Information'''&lt;br /&gt;
&lt;br /&gt;
* https://wiki.archlinux.org/index.php/Solid_State_Drives&lt;br /&gt;
* https://help.ubuntu.com/community/AA1/Using&lt;br /&gt;
&lt;br /&gt;
'''Recommendations'''&lt;br /&gt;
&lt;br /&gt;
# Install [http://support.lenovo.com/us/en/downloads/ds034646 firmware updates] from Lenovo, especially for Intel or Sandisk drives&lt;br /&gt;
# When partitioning your drive place your swap partition at the end of the volume.  Make sure it is at least the size of your RAM (for hibernate).&lt;br /&gt;
# Setup and force TRIM in fstab with the following options in your /etc/fstab '''discard, noatime and commit=500''' (Note: if you are concerned with possible data loss with commit, set it lower)&lt;br /&gt;
#: &amp;lt;code&amp;gt;#&amp;gt; vi /etc/fstab&lt;br /&gt;
#: # &amp;lt;file system&amp;gt; &amp;lt;mount point&amp;gt;   &amp;lt;type&amp;gt;  &amp;lt;options&amp;gt;       &amp;lt;dump&amp;gt;  &amp;lt;pass&amp;gt;&lt;br /&gt;
#: # !!!!!!!!!!!!!!!!!!!!!! THESE ARE EXAMPLES, DO NOT COPY TO YOUR OWN FSTAB !!!!!!!!!!!!!!!!!!!!!!&lt;br /&gt;
#: /dev/mapper/lubuntu--vg-root /               ext4    discard,noatime,commit=500,errors=remount-ro 0       1&lt;br /&gt;
#: UUID=34340aba-22cf-4b42-bdf1-2ba70bd8fa44 /boot           ext4    discard,noatime,commit=500,defaults        0       2&amp;lt;/code&amp;gt;&lt;br /&gt;
# Convert your /tmp directory to use RAM via tmpfs&lt;br /&gt;
#: &amp;lt;code&amp;gt;#&amp;gt; vi /etc/fstab&lt;br /&gt;
#: tmpfs /tmp tmpfs defaults,noatime,mode=1777,nosuid 0 0 &amp;lt;/code&amp;gt;&lt;br /&gt;
# SSDs work best with NOOP as the schedulers, this is set via Kernel Parameter in GRUB&lt;br /&gt;
#: &amp;lt;code&amp;gt;#vi /etc/default/grub &lt;br /&gt;
#: GRUB_CMDLINE_LINUX_DEFAULT=&amp;quot;quiet splash elevator=noop&amp;quot; &amp;lt;/code&amp;gt;&lt;br /&gt;
#: &lt;br /&gt;
#: and run:&lt;br /&gt;
#: sudo update-grub&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Getting Battery Life Under Control ==&lt;br /&gt;
After the initial install it can be quite disappointing to see that your new laptop only has 2.5h of available battery.  Before you start making any tweaks [https://01.org/powertop install PowerTOP] to measure what is consuming the most power.  Several of these items were tested from the [https://wiki.ubuntu.com/Kernel/PowerManagement/PowerSavingTweaks Ubuntu Power Saving Tweaks] list.&lt;br /&gt;
&lt;br /&gt;
# Disable any hardware you are not using in your BIOS&lt;br /&gt;
#: Example: Fingerprint Scanner&lt;br /&gt;
#: &amp;lt;code&amp;gt;898 mW    100.0%                      Device         USB device: Biometric Coprocessor (Auth)&amp;lt;/code&amp;gt;&lt;br /&gt;
# Install [http://linrunner.de/en/tlp/docs/tlp-linux-advanced-power-management.html TLP].  There is some debate on how necessary this is with more modern distributions but it will allow you to precisely configure your battery vs plugged-in CPU scaling which helps stretch your battery.&lt;br /&gt;
## Walk through the [http://linrunner.de/en/tlp/docs/tlp-configuration.html configuration guide] to take advantage of all power saving options when on battery. &lt;br /&gt;
## You may not see the CPU scaling taking hold in older distributions (add a Resource Monitor to your Panel with current cpu freq to confirm).  Sometimes you still have to set intel_pstate set unless TLP &amp;gt; 3.1.8 and Kernel 3.9+.  See [https://github.com/linrunner/TLP/issues/31 here] and [http://unix.stackexchange.com/questions/82085/scaling-issues-of-i7-3520m-with-intel-pstate-module-on-kernel-3-10-0 here].&lt;br /&gt;
##: More thorough information on the above: http://linrunner.de/en/tlp/docs/tlp-faq.html#scaling&lt;br /&gt;
##: Here is an example of forcing intel_pstate&lt;br /&gt;
##: &amp;lt;code&amp;gt;&lt;br /&gt;
##: $&amp;gt; cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_driver&lt;br /&gt;
##: acpi-cpufreq&lt;br /&gt;
##: $&amp;gt; sudo vi /etc/default/grub &lt;br /&gt;
##: // Add “intel_pstate=enable”&lt;br /&gt;
##:   GRUB_CMDLINE_LINUX_DEFAULT=&amp;quot;quiet splash intel_pstate=enable&amp;quot;&lt;br /&gt;
##: $&amp;gt; sudo update-grub; reboot&lt;br /&gt;
##: &lt;br /&gt;
##: $&amp;gt; cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_driver&lt;br /&gt;
##: intel_pstate &amp;lt;/code&amp;gt;&lt;br /&gt;
## [https://wiki.archlinux.org/index.php/Laptop_Mode_Tools Laptop Mode Tools] has been widely suggested however the author was not able to see any difference with it in place.  TLP provided a better suites of options to extend battery life.&lt;br /&gt;
# If you don't use Bluetooth regularly, [http://askubuntu.com/questions/67758/how-can-i-deactivate-bluetooth-on-system-startup turn it off at startup with rfkill]&lt;br /&gt;
# Enable the i915 Sandybridge Framebuffer Compression (confirmed 475mw savings)&lt;br /&gt;
#: &amp;lt;code&amp;gt;vi /etc/default/grub&lt;br /&gt;
#: GRUB_CMDLINE_LINUX_DEFAULT=&amp;quot;quiet splash i915.i915_enable_fbc=1&amp;quot;&lt;br /&gt;
#: &lt;br /&gt;
#: and run:&lt;br /&gt;
#: sudo update-grub&lt;br /&gt;
# Don't bother with [https://wiki.ubuntu.com/Kernel/PowerManagementALPM ALPM]&lt;br /&gt;
#: PowerTOP Testing:&lt;br /&gt;
#: OFF - 12.02 Watts on Average with Standard Deviation 0.25  &lt;br /&gt;
#: ON - 12.37 Watts on Average with Standard Deviation 0.32  &lt;br /&gt;
&lt;br /&gt;
== Other Tweaks ==&lt;br /&gt;
&lt;br /&gt;
'''Make sure zRAM is enabled (Ubuntu 13.10 and up it is on by default)'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;$&amp;gt; sudo apt-get install zram-config&lt;br /&gt;
$&amp;gt; sudo service zram-config status&lt;br /&gt;
zram-config start/running&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Repurpose the ThinkVantage Button ==&lt;br /&gt;
&lt;br /&gt;
Using Xbindkeys: https://wiki.archlinux.org/index.php/Xbindkeys&lt;br /&gt;
&lt;br /&gt;
Example to trigger hibernate (in .xbindkeysrc)&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;quot;sudo pm-hibernate&amp;quot;&lt;br /&gt;
    m:0x10 + c:156&lt;br /&gt;
    Mod2 + XF86Launch1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
[[:Category:X1|X1]][[Category:X1]]&lt;/div&gt;</summary>
		<author><name>Dalesaurus</name></author>
		
	</entry>
</feed>