USB-C charging not working

Hello, I recently realized that my laptop is no longer charging via USB-C. Seems that everything else is working properly though, even data on those USB-C ports seems to be working fine.

lsmod | grep typec fails, so somehow the kernel doesn’t have it enabled anymore? Any help is appreciated.

NixOS 25.05 (Warbler) x86_64
Linux 6.13.6
AMD Ryzen 7 PRO 5850U

Hello can you please post more info’s regarding your hardware.
Which Laptop are you using, which charger. Also can you post your config?
Also make sure that:

  1. Did you try to change usb-c port (if exist)?
  2. Did you try to change the charger?
  3. If you can start the laptop, check in the BIOS if anything is configured to not.
  4. also look in your Bios and see if charging is recognized there?
  5. Check the values of:
  • /sys/class/power_supply/BAT0/charge_stop_threshold
  • /sys/class/power_supply/BAT0/charge_start_threshold
  • /sys/class/power_supply/BAT0/charge_behaviour

If you are not using the original charger make sure it can deliver enough power. Many laptops (including mine) can only be charged with 65 Watts and nothing less.
If you have the possibility of charging your laptop with a jack and not over usb-c try this.

I messaged the support for this machine (it’s an HP Dev One) and followed these instructions to fix it:

Let's first try a hard reset, sometimes the PD chip can get into a latch up state.

1. Turn off the computer.
2. Disconnect the AC adapter.
3. Disconnect all nonessential peripheral devices, such as printers, scanners, external hard drives, and USB flash drives.
4. With the AC adapter unplugged, press and hold the power button for approximately 15 seconds.
5. Reconnect the AC adapter, and then turn on the computer.
1 Like