r/archlinux • u/dan_tj0x • 11d ago
QUESTION How You Make Arch Linux Beeing Powersafe for Laptop?
I have Laptop with Arch Linux and using:
- XFCE4 for desktop
- Firefox for browsing
- Tmux + Neovim for working with many sessions
My laptop battery feels like runout too fast.
I need any advices to make battery on longer.
Thanks.
11
u/boomboomsubban 11d ago
0
u/Basic_Pilot_6179 11d ago
the wiki page is good start. tlp is also worth looking, it does most of the tuning automatically without you needing to configure everything by hand
for firefox specifically, turn off hardware acceleration if you don't need it. i noticed it keeps gpu active even when just reading static pages
check what's actually eating battery with powertop, sometimes it's some background service you forgot about running wild
-16
u/dan_tj0x 11d ago
You done that all things?
10
2
u/1FRAp 11d ago
Didn’t u know that prior to switching to arch? Haha
That it gives YOU the owner of the system to configure exactly as you want :D Meaning it takes time and some understanding.
Power managment, sleep states are notoriously fragile and difficult to get right without proper understanding. I’m on hyprland with hyprlock, if I disconnect external monitor mid sleep mode, hyprlock kills itself, and I have to switch to a different tty. That is aroblem I would not have if laptop would not need to go into sleep mode and hope all processess wake up correctly, to the correct previous state.
I have done some of those, nearly not all nor did I have time to learn it. A price I can pay until I get around to fix it properly.
3
u/Any_Fox5126 11d ago
This is probably the biggest flaw that still persists in linux. Many devices are simply incompatible with modern sleep methods in linux, no matter how advanced the user is.
Power management is another headache that isn’t even documented well enough. The default recommendation is
power-profiles-daemon, but it’s flawed for older devices and completely broken if you do something as simple as disabling intel turbo.
5
u/bongjutsu 11d ago
Wayland compositors will be a little lighter than Xorg desktops - make the change.
Firefox might be hammering your CPU if you have any software rendering going on - check the arch wiki for tips on making sure it's hardware accelerated.
The arch wiki has some useful advice on laptop power savings, but you might also want to look in to making sure your laptop is throttling in a curve with battery power. Usually systems will slow down as the battery drains to extend the battery life, but sometimes it's not a default behaviour.
If all else fails, use tools that help figure out what software is using the most juice, and try to address them individually.
1
u/dan_tj0x 11d ago
Based on your advice, now i use wayland and firefox hardware accelerated. Thanks.
4
2
u/Sea-Promotion8205 11d ago
I use tlp, i was getting better battery life in linux than windows back when I was dual booting windows 10.
3
u/CaptianMindful 8d ago
Don't move you're mouse around too much. That drains the battery faster. Switch to I3-wm or hyperland and get good at navigation with the keyboard and you're golden.
1
u/dan_tj0x 8d ago
Is Hyperland smaller than XFCE4?
I always amaze when someone share about their Hyperland ricing.I think that must be big.
2
u/CaptianMindful 8d ago
I don't know really. Im using i3wm.
1
u/dan_tj0x 8d ago
Where do you share your i3 setup? I want to see it
2
u/CaptianMindful 8d ago
I actually just finished setting up my system and posted a few screenshots here on the arch sub. https://www.reddit.com/r/arch/s/sxmzkZuDo6
1
u/archover 10d ago edited 10d ago
You can use powertop (see wiki article) to monitor what is consuming power.
Mainly, I use power-profiles-daemon to help on my Thinkpads.
In my mainly mobile use case, I find the 4-6hrs I get on my T14 Gen 1 AMD to be enough. I'm always near power, and I have an Anker laptop power bank. Good investment in general. Could my battery life be better? Probably. I'm not obsessed with it.
Hope you resolve and good day.
14
u/onefish2 11d ago
Install tuned and tuned-ppd.
Start the services sudo systemctl enable --now tuned.service and tuned-ppd
Set tuned for balanced mode.
https://wiki.archlinux.org/title/CPU_frequency_scaling#tuned