My HP laptop always has a shutdown problem. This problem affected the hibernation. That is, after I shutdown in Linux, my laptop battery will keep draining, and the battery is still warm after shutting down.
To solve this problem untechnically, there are two ways. Never shutdown, but restart. Because I have dual boot, there is a grub menu when startup the computer. So, during the grub menu, press the power button, this will shutdown the computer without battery draining.
However, sometimes the shutdown is accidentally selected. In this case, even boot into Windows and shutdown does not solve the problem. To solve this problem, when the laptop is shutdown, make sure the AC adapter is unplugged. Then, remove the battery and place it back. Then the battery will not drain.
This problem can be significantly noticed with a USB cooler. Because if the cooler is plugged in, after shutting down the laptop, and if the AC adapter is also plugged off, then the cooler will still running. But once we plug in AC adapter (with electricity), the cooler will stopped. So, the only solution is remove the battery and place it back when the electricity is off.
I still can tolerate with the problem with the first solution (power off in grub menu). However, I cannot tolerate with the problem in hibernation. This is because if hibernation, the battery is still draining, and there is no grub menu as restart. So, I found the best solution.
Actually, this is the problem due to Wake-on-LAN. To solve this, we need to turn off this feature of the laptop. To turn off, some said can be done in BIOS. But my case cannot. So, to solve it, need to install “ethtool“. Then check whether Wake-on-LAN is enabled or not,
If it is “enabled” and you have the same problem, try to turn it off.
sudo ethtool -s eth0 wol d
Yes, now I solved this problem. I am using Arch Linux, so, I added the following statement to /etc/rc.local
/usr/sbin/ethtool -s eth0 wol d