Replies: 7 comments 16 replies
-
|
Worked flawlessly, thank you! |
Beta Was this translation helpful? Give feedback.
-
|
Nice ! I think it could be built-in without any trouble. What do you think @dhh ? |
Beta Was this translation helpful? Give feedback.
-
|
I'd like to have this built-in, yeah 👌 |
Beta Was this translation helpful? Give feedback.
-
|
On this topic, is it possible to somehow limit the charge on AC to 80% so we save some battery health somehow? Its one of the few things im missing with Omarchy/Arch right now |
Beta Was this translation helpful? Give feedback.
-
|
It works perfectly! Thank you! |
Beta Was this translation helpful? Give feedback.
-
|
worked perfectly for me too!! thanks a lot ❤️ |
Beta Was this translation helpful? Give feedback.
-
|
Excellent, worked great! Depending on your hardware and BIOS (thank you HP /s), you may not have a "performance" mode, or you may have different modes available. Running which you can drop into your auto-switch script as above (I used "balanced" for AC power) |
Beta Was this translation helpful? Give feedback.

Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
This guide explains how to configure your Arch Linux laptop to automatically switch power profiles (via
power-profiles-daemon) depending on whether your charger is connected or not.performancepower-saversystemd) and hotplug (viaudev)✅ Requirements
power-profiles-daemoninstalled (pacman -S power-profiles-daemon)🔎 Step 1. Identify Your AC Adapter Name
Run:
Typical output:
or
AC,ACAD,AC0, etc).Remember yours, you’ll need it in the udev rule.
📝 Step 2. Create the Auto-Switch Script
Save as
/usr/local/bin/power-profile-auto.sh:Make executable:
⚙️ Step 3. Create a Udev Rule
Create
/etc/udev/rules.d/99-power-profile.rules:Reload rules:
You can test events with:
🖥 Step 4. Create a Systemd Service (Boot-time)
Create
/etc/systemd/system/power-profile-auto.service:Enable it:
sudo systemctl enable power-profile-auto.service🚀 Done!
Now your laptop will:
Beta Was this translation helpful? Give feedback.
All reactions