A Quick Fix to Improve the Battery Life of Your AMD Framework 13

By

As you probably know, I have been fairly clear that the Framework laptops I have had on my hands tend to have poor sleep performance (losing 10 to 20% of battery overnight). I guess you can live with that, but it’s far from optimal. Turns out that it’s very likely a hardware issue with some wireless chipsets not turning off properly and causing the computer to wake up from sleep unstead of being able to minimize its power footprint properly.

There is a simple fix you can apply to help with this situation, at least for the AMD Framework 13. It involves creating a very simple systemd service that will turn off the wireless connecctions when entering the sleep mode.

In the terminal (use vim or something else), you can create such a service (use the name that you want).

sudo vim /etc/systemd/system/preparesleep.service

And then you can simply paste this configuration:

[Unit]
Description=Disable wifi and bluetooth before suspend
Before=sleep.target

[Service]
Type=oneshot

ExecStart=/usr/sbin/rfkill block all
ExecStop=/usr/sbin/rfkill unblock all

[Install]
WantedBy=sleep.target

Don’t forget to enable this systemd service afterwards, of course.

In my experience, this massively reduces the power consumption of the AMD Framework 13 hardware when left overnight, with just a few percents lost from one day to the next.