User:Whnr

From ArchWiki

I am using this page to keep track of "stuff". I'm new with Arch. My Lenovo ThinkPad X1 Carbon (Gen 6) just arrived. Time to move away from MacOS once and for all (initial idea mainly because of the new Apple keyboards).

Installation

  • Followed mainly https://gist.github.com/heppu/6e58b7a174803bc4c43da99642b6094b
  • packages for the start: pacman -S vim tmux dialog wpa_supplicant git and many more…
  • install gnome and gnome-extras, then systemctl enable gdm.service
  • enable tlp.service
  • Allow wheel group as sudoers by uncommenting the correct line with visudot
  • S3 sleep works with the firmware 1.30 and higher.
  • Energy consumption
    • Measured with custom script. Basically determining idle power consumption at different screen brightnesses
    • Enabled tlp.service and tlp-sleep.service => seldom problems with trackpoint and touchpad after waking up
  • SSD: TRIM is disencouraged for NVMe SSDs by Intel says: https://wiki.archlinux.org/index.php/Solid_State_Drive/NVMe#Discards
  • Making the system a bit more secure
    • Set a proper root password
    • Change default umask to 077
  • Enable ntp time synchronization:timedatectl set-ntp true
  • Use ZSH and oh-my-zsh
  • Undervolting
  • Created a nice.dotfiles repo and started configuring vim tmux zsh
  • Printing withcups
    • Add yourself to the sys group
    • Use gutenprint drivers
    • Add printer through the web interface

Fiwrmware updates

Can be done through fwupd

System restore snapshots

Setting up system snapshots that can be restored if e.g. an update fails

  • Goal: Create an automatic or manual snapshot that can be restored if needed
  • Creation:
    • Create a backup of the boot folder, as it is not covered by the lvm =>cd /boot =>sudo tar -uvf boot-snap.tar.gz *
    • The root file system snapshot should be created during boot to keep the consistency of the file system
    • Add a loader configuration with the kernel parameter with the systemd target
  • Restore:
    • Check if the boot partition has changed:cd /boot =>sudo tar --compare boot-snap.tar.gz => If yes recreate the old state by extracting files
    • sudo lvconvert --merge /dev/vg0/root-snap => Will automatically merge the snapshot back at the next reboot => This does hang at some point (FIXME), a reboot works.
  • Or remove:sudo lvremove /dev/vg0/root-swap

Service files

Are in .dotfiles/systemd

ToDo / Wishlist

  • Stability testing
    • systester-cli -gausslg 16M -threads 8 -bench -turns 50 -log (first try with -120mv ran for 1 minute before crashing)
    • Settled to -100mv on CPU (as -110 had 3 errors after 60 Minutes), -110 on GPU => No graphic failiures with unigine-haven and systester at the same time
  • Changing the thermal paste?