RSS Feed

Linux shutdown battery draining problem solved


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,

cat /sys/class/net/eth0/device/power/wakeup

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

About Allen Choong

A cognitive science student, a programmer, a philosopher, a Catholic.

6 responses »

  1. Thanks, it works

    Reply
  2. Reblogged this on HOBALL 筆記簿 and commented:
    Great Share!!

    Reply
  3. Great Share! Thank you!

    Reply
  4. Great post, quite helpful

    Reply
  5. Thanks! Very helpfull.

    Reply

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: