# Detailed battery information
upower -i /org/freedesktop/UPower/devices/battery_BAT0
# TLP battery status and thresholds
sudo tlp-stat -b
# ACPI information (temperature, cooling)
acpi -V
# Set full charge mode (useful before travel)
sudo tlp setcharge 5 100 BAT0
# Return to battery-preserving thresholds
sudo tlp setcharge 60 80 BAT0
These commands are temporary. After reboot, your NixOS configuration thresholds (60-80) will be restored.
Our configuration (services.tlp.settings
) manages several power aspects:
- Battery Thresholds (60-80%): Extends battery lifespan by preventing full charges and deep discharges
- CPU Management: Performance on AC, power saving on battery
- Disk & PCIe: Balanced power/performance settings
- WiFi & USB: Power saving features with longer timeouts on AC
- USB Device Exceptions: Prevents power management for specific USB devices (keyboard, mouse) to ensure responsiveness
- Low Battery: 15%
- Critical: 10%
- Emergency Action (Hibernate): 5%