battery optimization

This commit is contained in:
2025-05-17 16:05:22 +02:00
parent 4096d75cb1
commit d94152b1ef
3 changed files with 110 additions and 15 deletions

View File

@ -26,7 +26,7 @@ ln -s ~/dotfiles/.conf/environment.d ~/.config/environment.d
# Hyperland stuff
# uwsm needed for launching hypr on boot
pacman -S uwsm hyprland xdg-desktop-portal-hyprland hyprpaper
pacman -S uwsm hyprland xdg-desktop-portal-hyprland hyprpaper qt5-wayland
# Basic essentials
pacman -S waybar dunst libnotify wofi pipewire brightnessctl man-db man-pages
@ -36,7 +36,7 @@ pacman -S yazi ffmpeg poppler fd p7zip
# Other software
# Use amdctl for undervolting
pacman -S btop ripgrep bat neovim nano grim slurp dust fastfetch imv wl-clipboard amdctl
pacman -S stress btop ripgrep bat neovim nano grim slurp dust fastfetch imv wl-clipboard amdctl
# Bash prompt bar
pacman -S starship
@ -57,6 +57,17 @@ pacman -S networkmanager wpa_supplicant
# Launch directly into hyprlock and skipping login
echo '[Service]\nExecStart=\nExecStart=-/sbin/agetty --noreset --noclear --autologin alex %I $TERM' | sudo tee /etc/systemd/system/getty@tty1.service.d/override.conf > /dev/null && sudo systemctl enable getty@tty1
# Battery optimization
# https://github.com/AdnanHodzic/auto-cpufreq?tab=readme-ov-file#installing-auto-cpufreq
git clone https://github.com/AdnanHodzic/auto-cpufreq.git
cd auto-cpufreq && sudo ./auto-cpufreq-installer
sudo auto-cpufreq --install
sudo auto-cpufreq --update
sudo auto-cpufreq --stats
# https://wiki.archlinux.org/title/Framework_Laptop_13#Battery_control
yay -S fw-ectool-git
ectool chargecontrol normal 80 80
###################################################################
# MANUAL CONFIGURATION REQUIRED
###################################################################
@ -67,3 +78,7 @@ echo '[Service]\nExecStart=\nExecStart=-/sbin/agetty --noreset --noclear --autol
pacman -S cava bluez-utils bluez pipewire-pulse ttf-jetbrains-mono-nerd wireplumber
yay -S rofi-lbonn-wayland-git bluetui
systemctl enable --now bluetooth.service
# Battery optimization:
sudo pacman -S tlp