Skip to content

Instantly share code, notes, and snippets.

@hendra-herviawan
Last active February 19, 2017 03:58
Show Gist options
  • Save hendra-herviawan/9777412 to your computer and use it in GitHub Desktop.
Save hendra-herviawan/9777412 to your computer and use it in GitHub Desktop.
Archlinux on X220i
ZRAM
Type (use copy/paste):
sudo apt-get purge zram-config
Press Enter. Type your password when prompted; your password will remain entirely invisible, not even dots will show, this is normal.
b. Reboot your computer.
c. Now check whether the removal has succeeded, with the following terminal command:
cat /proc/swaps
Press Enter.
If all has gone well, you should receive no report anymore about one or more /dev/zram "partitions".
Reference :
http://www.phoronix.com/scan.php?page=news_item&px=MTM1NjQ
https://sites.google.com/site/easylinuxtipsproject/speed
1. http://www.joeyconway.com/blog/2011/09/11/ubuntu-ssd-move-chrome-cache-to-ram/
2. http://web.archive.org/web/20090227063418/http://www.ubuntu-eee.com/wiki/index.php5?title=How_to:_Reduce_Disk_Writes_to_Prolong_the_Life_of_your_Flash_Drive
3. http://askubuntu.com/questions/1400/how-do-i-optimize-the-os-for-ssds
4. http://stevehanov.ca/blog/index.php?id=48
Installing TLP
sudo pacman -S tlp tlp-rdw tp_smapi acpi_call acpid ethtool iw lsb-release smartmontools tp_smapi
Reference :
https://wiki.archlinux.org/index.php/TLP
https://wiki.archlinux.org/index.php/Tp_smapi
------
i also found adding the following to my rc.local helped with a few powertop tunables (now they ALL read "good" every time!)
sleep 1
# Power aware CPU scheduler
echo 1 > /sys/devices/system/cpu/sched_mc_power_savings
# Audio codec power management
echo 1 > /sys/module/snd_hda_intel/parameters/power_save
# VM writeback timeout
echo 1500 > /proc/sys/vm/dirty_writeback_centisecs
----------
General Reference :
http://www.williambrownstreet.net/blog/2011/11/battery-life-on-thinkpad-x220-i7-running-ubuntu-11-10/
http://abuseit.pl/Docs/HOWTO_Lenovo_X220_Linux_configuration.txt - Ubuntu
http://www.thinkwiki.org/wiki/Category:X220
@hendra-herviawan
Copy link
Author

/etc/fstab

'#Uncomment these after all server based applications installed - eg. apache
tmpfs /tmp tmpfs defaults,noatime,mode=1777 0 0
tmpfs /var/tmp tmpfs defaults,noatime,mode=1777 0 0
tmpfs /var/log tmpfs defaults,noatime,mode=0755 0 0
tmpfs /var/log/apt tmpfs defaults,noatime 0 0
none /var/cache aufs dirs=/tmp:/var/cache=ro 0 0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment