<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.thinkwiki.org/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Dalesaurus</id>
	<title>ThinkWiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://www.thinkwiki.org/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Dalesaurus"/>
	<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/wiki/Special:Contributions/Dalesaurus"/>
	<updated>2026-05-16T23:42:20Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.31.12</generator>
	<entry>
		<id>https://www.thinkwiki.org/w/index.php?title=X1_Linux_Tweaks&amp;diff=56137</id>
		<title>X1 Linux Tweaks</title>
		<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/w/index.php?title=X1_Linux_Tweaks&amp;diff=56137"/>
		<updated>2015-01-16T18:00:20Z</updated>

		<summary type="html">&lt;p&gt;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...'&lt;/p&gt;
&lt;hr /&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>