Last active
February 19, 2017 03:58
-
-
Save hendra-herviawan/9777412 to your computer and use it in GitHub Desktop.
Archlinux on X220i
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
rc.local
swapoff -a
mkdir /tmp/chrome
mkdir /tmp/firefox
mkdir /tmp/putrakopo
mount -t tmpfs -o size=256M,mode=0744 tmpfs /tmp/chrome/
chmod 777 /tmp/chrome/ -R
chmod 777 /tmp/firefox/ -R
chmod 777 /tmp/putrakopo/ -R
tlp bat
exit 0
/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
Spining Down Hard Drive
http://www.larkinweb.co.uk/computing/spinning_down_hard_drives_in_linux.html
VM Writeback Timeout
*http://askubuntu.com/questions/184367/what-should-vm-writeback-timeout-be-set-to-for-a-laptop