If you're experiencing extremely slow charging speeds on your Ubuntu installation on MacBook Air 2017, where the battery barely goes beyond 4% an hour, this article aims to help you troubleshoot and solve the issue.
Checking the Hardware
The first step is to ensure that the hardware is functioning correctly. Perform a basic hardware check by:
- Checking the charging cable and adapter for any signs of damage.
- Testing the charging cable and adapter on another device to rule out any issues with the hardware itself.
- Updating the BIOS and SMC firmware on your MacBook Air 2017.
Configuring Power Management Settings
Incorrect power management settings can lead to slow charging. To configure power management settings:
-
Open the Terminal by pressing
Ctrl + Alt + T. -
Type
sudo gedit /etc/default/gruband press Enter. -
Locate the line that starts with
GRUB_CMDLINE_LINUX_DEFAULTand addi915.i915_enable_rc6=1to it. Save and close the file. -
Run
sudo update-grubto apply the changes.
Checking the Power Supply
The power supply may not be delivering the required power to the laptop. To check the power supply:
-
Use the
acpicommand in the Terminal to check the battery and power supply status. -
Check the system logs for any power-related issues using the
journalctlcommand.
Updating the Kernel
An outdated kernel can cause slow charging. To update the kernel:
-
Open the Terminal and type
sudo apt update. -
Type
sudo apt upgrade linux-image-genericand press Enter.
Installing Additional Drivers
Installing additional drivers can help improve charging performance. To install additional drivers:
-
Install the
intel-microcodepackage by typingsudo apt install intel-microcodein the Terminal. -
Install the
linux-firmwarepackage by typingsudo apt install linux-firmwarein the Terminal.
If you've followed the steps outlined above and are still experiencing slow charging speeds on your Ubuntu installation on MacBook Air 2017, consider consulting a professional for further assistance.