Skip to content

Latest commit

 

History

History
91 lines (65 loc) · 2.38 KB

notes.md

File metadata and controls

91 lines (65 loc) · 2.38 KB

Configuration Notes

These are some notes detailing the configuration of my Arch Linux system, just in case I forget and need to reinstall.

Thinkpad E440 specific notes

Blinking power light on resume

fix by running # echo '0 on' > /proc/acpi/ibm/led.

To automate using systemd put the following in /usr/lib/systemd/system-sleep/led-fix.sh and make it executable

 #!/bin/bash
 case $1/$2 in
     pre/*) 
         exit 0;;
     post/*)
         echo '0 on' > /proc/acpi/ibm/led;;
 esac

Hibernation problems

For some reason hibernation on newer kernels is very unreliable. LTS kernel works. Possible solution: use shutdown mode instead of platform mode (does not always work??).

To make systemd use a specific mode for hibernate put

[Sleep]
HibernateMode=<mode>

in /etc/systemd/sleep.conf.

General notes

Power saving

  • tlp
  • powertop
  • boot options

Improve performance

Don't use swap:

To measure boot time:

systemd-analyze
systemd-analyze blame
systemd-analyze critical-chain

Optimize initrd:

See this, or just use faster compression algorithms. lz4 is much better than gzip, cat is even faster.

Security

Fancy login screen on tty

See this wiki page and this forum post.

Miscellaneous

Pacman:

Add ILoveCandy to /etc/pacman.conf

Sudo:

Add Defaults insults to /etc/sudoers.

Shell:

Use zsh instead of bash. Enable completions and spell-corrections.

Programs used

  • zsh (the shell that I use)
    • zsh-completions
    • zsh-syntax-highlighting
  • pacaur (AUR helper, much better than yaourt)
  • pacmatic (pacman wrapper to avoid problems)
  • cava (music visualizer)
  • rtv (terminal reddit viewer)
  • compton (a display compositor)
  • i3-gaps (window manager)
    • i3status
    • i3blocks (more customizable than i3status)
    • rofi (more features than dmenu)
    • j4-dmenu-desktop (looks for .desktop files)
    • i3lock + xss-lock (screen locker, automatically lock on suspend)
    • i3style (easy theme switching)
  • mutt (best email client)
    • urlview (launch url's in browser)
    • sidebar patch (easy folder switching)