Pinebook pro installation Part two
This is a collection of tips and tricks for setting up a laptop with Arch Linux. This continues the basic installation of part1. The natural place to start is with the general recommendations from the arch wiki.
Encrypted user SD’s
This encrypts the content of a filesystem, which is mounted on logging into the user.
- Set up an encrypted filesystem on the SD (see part 1 for a btrfs setup)
- Add the following line to
<volume user="username" fstype="crypt" path="/dev/device" mountpoint="~" options="crypto_name=volume_name,allow_discard,fstype=btrfs,compress-force=zlib,noatime,lazytime,discard=async" />to
- Set up
/usr/share/doc/zram-generator/zram-generator.conf.exampleto your likings
- Move this to
A secondary swap file could be created, but the system is likely too slow to be useful once it’s swapping to disk.
Sleep by default is broken on the pinebook pro. Only the suspend state
freeze is supported, and can be set in
The trackpad on the pinebook pro is known to drift and be in general clunky an awkward. This resource contains a lot of useful information on this. The most useful trick, which makes the trackpad usable to me is adding the
light from the arch repo, one can control the screen brightness using e.g.
light -A 5. This requires a
udev modification, see the Arch wiki for the exact rule to add.
Alacritty won’t start by default, since it requires an
opengl version greater than delivered by the driver. Adding
.pam_environment enables experimental
gl3 support to the graphics driver.