User:Louson

From ArchWiki
Jump to navigation Jump to search

Install

Mainline

Performances

Laptop specific

Hibernation

Enable hibernation

Hibernation

  • Create swap
  • Initramfs : add resume in /etc/mkinitcpio.conf and reload it with $ mkinicpio -P.
  • Command line : add resume=UUID=<UUID> to the comandline in grub.

Automatic hibernation

Low battery

Laptop#Hibernate_on_low_battery_level, in case you have UDEV battery events.

/etc/udev/rules.d/99-lowbat.rules
# Suspend the system when battery level drops to 5% or lower
SUBSYSTEM=="power_supply", ATTR{status}=="Discharging", ATTR{capacity}=="[0-5]", RUN+="/usr/bin/systemctl hibernate"
After a delay

Active automatic suspend in /etc/systemd/logind.conf:

HandlePowerKey=suspend-then-hibernate
HandleLidSwitch=suspend-then-hibernate

Change delay in /etc/systemd/sleep.conf:

HibernateDelaySec=45min

Post-install

Blue light filter

Start redshift as user:

$ systemctl --user enable --now redshift-gtk.service

Bluetooth

Using pulseaudio

$ pulseaudio --start
$ pavucontrol

i3 volume bindings : Install pa-vol.sh in /usr/local/bin : https://github.com/Louson/pa-vol

bindsym XF86AudioRaiseVolume exec "pa-vol.sh plus"
bindsym XF86AudioLowerVolume exec "pa-vol.sh minus"
bindsym XF86AudioMute exec "pa-vol.sh mute"

ldconfig does not load /usr/local/lib

Enable /usr/local/lib in ldconfig:

/etc/ld.so.conf.d/usrlocal.conf
/usr/local/lib

And restart the systemd service ldconfig.service.

Probe

Install hw-probeAUR and run :

$ sudo -E hw-probe -all -upload
Results
Machine Date
Asus zenbook 2020-09-29

Rip CD

Ripit

https://musicbrainz.org/doc/MusicBrainz_Enabled_Applications ripit + musicbrainz ripit --mb

ABCDE

 $ abcde

Beets

Nice util for tagging

 $ beet import <dir>

Copies the music to the configured directory.

Add a DiscId

picard + https://musicbrainz.org/doc/How_to_Add_Disc_IDs

Create a builder with systemd-nspawn

Wiki page: Systemd-nspawn

Get an archived version

If you need an ancient version, you can look in the archives.

Download a tarball of the latest or an archive.

And extract to specific directory

Configure pacman

Change /etc/pacman.d/mirrorlist to allow a mirror. For an archived version, change it with the following content:

##                                                                              
## Arch Linux repository mirrorlist                                             
## Generated on 2042-01-01                                                      
##
Server=https://archive.archlinux.org/repos/<yyyy>/<mm>/<dd>/$repo/os/$arch

Log in with systemd-nspawn. To log on a i686 archi, prefix the command with linux32 or add the option --personality=x86.

$ sudo systemd-nspawn -D <rootfs dir>

Install the keys :

# pacman-key --init
# pacman-key --populate archlinux
# pacman-key --refresh-keys

Update with

# pacman -Syyuu

Install base packages :

# pacman -S base base-devel


Follow installation guide after chroot

https://wiki.archlinux.org/index.php/Installation_guide#Time_zone

Synchronization

Syncthing

http://localhost:8384