I have a Samsung Galaxy Book 4 with NixOS 24.11 installed.
The charging port is USB-C. I cannot figure out why, but the charging is very slow when the computer is turned on.
Indeed, charging when the computer is turned off is fast, and draws about 40W from the power supply. However, plugging the charger while the computer is turned on slows the charging at a maximum of a 10W draw, but overall the computer discharges while plugged in (since it uses more than 10W of power when in use).
Interestingly enough, if I plug in the computer while its off, THEN turn the computer on, then the charging is fine, as long as I do not disconnect the cable…
I do not have the technical knowledge, but it looks like charging can be managed both by the hardware and the OS, and the hardware manages it fine while the OS clearly doesn’t.
For information, I boot with the following kernelParams :
boot.kernelParams = [
''acpi_osi=!''
''acpi_osi="Windows 2022"'' # fixes charging on Archlinux, maybe here too?
"mem_sleep_default=s2idle" # should fix sleeping crashing the computer
"snd-intel-dspcfg.dsp_driver=1"
];
That used to fix the charging issue on ArchLinux, but it doesn’t seem to fix it on nixOS…
I also have TLP enabled :
services.tlp = {
enable = true;
};
Do you have any idea how to fix that problem? It’s a real pain to shut down the computer each time I wanna charge…
I can send other logs if needed.
Update : It looks like these kernel parameters didn’t change a thing.
Here’s the output of the command with them if needed : https://0x0.st/8ZwD.txt
From what I barely understood, if these modules aren’t available then the charging will be handled “as if” the computer was turned off, which in my case worked.
I have no idea however if I might encounter later issue with this configuration… maybe you know?