Repository navigation
Replies: 10 comments 19 replies
|
Worked flawlessly, thank you! |
|
Nice ! I think it could be built-in without any trouble. What do you think @dhh ? |
|
I'd like to have this built-in, yeah 👌 |
|
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 |
|
It works perfectly! Thank you! |
|
worked perfectly for me too!! thanks a lot ❤️ |
|
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) |
|
Did someone turned it into a pull request? |
|
I created a pull request for this feature. If anyone wants to try it and give me feedback, it's here: #4375 |

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:
All reactions