Skip to content

Instantly share code, notes, and snippets.

@jkraemer
Created July 14, 2013 19:15
Show Gist options
  • Save jkraemer/5995430 to your computer and use it in GitHub Desktop.
Save jkraemer/5995430 to your computer and use it in GitHub Desktop.
Linux on Lenovo X230 field notes
/etc/rc.local
# reduce swapping to a minimum
echo 0 > /proc/sys/vm/swappiness
/etc/fstab
use "noatime,nodiratime,discard" mount options for SSD
use tmpfs for tmp and friends:
tmpfs /tmp tmpfs defaults,noatime,mode=1777 0 0
tmpfs /var/spool 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
/etc/default/grub
# fine grained brightness control,
# deadline IO scheduler for better SSD performance
GRUB_CMDLINE_LINUX_DEFAULT="quiet acpi_backlight=vendor elevator=deadline"
Enable ultranav scrolling (hold middle button and move the trackpoint):
/usr/share/X11/xorg.conf.d/20-thinkpad-trackpoint.conf
Section "InputClass"
Identifier "ThinkPad TrackPoint"
MatchProduct "TPPS/2 IBM TrackPoint"
MatchDevicePath "/dev/input/event*"
Option "EmulateWheel" "true"
Option "EmulateWheelButton" "2"
Option "XAxisMapping" "6 7"
Option "YAxisMapping" "5 4"
EndSection
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment