Raspberry Pi 5 sometimes fails to detect that a non-official USB-C power supply can deliver 5 A. In many cases it will only draw around 3 A, which can cause warnings, throttling (reduced performance), or even instability under load.
I have encountered many issues related to this message. It almost always appears when using a non-official Raspberry Pi 5 power supply, even if the label says it provides 5 V and 5 A. In many cases, power spikes trigger the warning. The Raspberry Pi 5 and the official power supply also use a negotiation process during boot that allows the Pi to recognize the official adapter.
Open the EEPROM configuration:
sudo rpi-eeprom-config --edit
Add at the end of the file:
PSU_MAX_CURRENT=5000
Save and reboot:
sudo reboot
Edit the boot configuration file (Pi 5 uses /boot/firmware/config.txt:
/boot/firmware/config.txt
sudo nano /boot/firmware/config.txt
In the [all] section at the end of the file, add:
usb_max_current_enable=1
Check if the values have been applied (if vcgencmd is installed):
vcgencmd get_config int | grep -E 'PSU_MAX_CURRENT|usb_max_current_enable'
Also check the kernel log for undervoltage or throttling messages:
dmesg | grep -i -E 'voltage|under|throttle'
Note: These steps target Raspberry Pi 5 specifically. Older models behave differently and may use other configuration paths.