Battery drains down even after shut down
I am using ubuntu 16.04 on my HP 15 ab522tx laptop.Even after I shut down my pc after few hours I find it discharged completely .Also,battery is quite new and was performing better in previous OS(windows 10).
I also tried various power saving workarounds but I am not able to figure out why this happens!Please explain.
Is there any solution for this!
Output of systemd-inhibit --list
:
hemant@hpnb:~$ systemd-inhibit --list
Who: NetworkManager (UID 0/root, PID 1258/NetworkManager)
What: sleep
Why: NetworkManager needs to turn off networks
Mode: delay
Who: Telepathy (UID 1000/hemant, PID 3222/mission-control)
What: shutdown:sleep
Why: Disconnecting IM accounts before suspend/shutdown...
Mode: delay
Who: Unity (UID 1000/hemant, PID 2637/compiz)
What: sleep
Why: Unity needs to lock the screen
Mode: delay
Who: hemant (UID 1000/hemant, PID 2569/unity-settings-)
What: handle-power-key:handle-suspend-key:handle-hibernate-key
Why: GNOME handling keypresses
Mode: block
Who: hemant (UID 1000/hemant, PID 2569/unity-settings-)
What: sleep
Why: GNOME needs to lock the screen
Mode: delay
5 inhibitors listed.
16.04 power-management shutdown battery
|
show 1 more comment
I am using ubuntu 16.04 on my HP 15 ab522tx laptop.Even after I shut down my pc after few hours I find it discharged completely .Also,battery is quite new and was performing better in previous OS(windows 10).
I also tried various power saving workarounds but I am not able to figure out why this happens!Please explain.
Is there any solution for this!
Output of systemd-inhibit --list
:
hemant@hpnb:~$ systemd-inhibit --list
Who: NetworkManager (UID 0/root, PID 1258/NetworkManager)
What: sleep
Why: NetworkManager needs to turn off networks
Mode: delay
Who: Telepathy (UID 1000/hemant, PID 3222/mission-control)
What: shutdown:sleep
Why: Disconnecting IM accounts before suspend/shutdown...
Mode: delay
Who: Unity (UID 1000/hemant, PID 2637/compiz)
What: sleep
Why: Unity needs to lock the screen
Mode: delay
Who: hemant (UID 1000/hemant, PID 2569/unity-settings-)
What: handle-power-key:handle-suspend-key:handle-hibernate-key
Why: GNOME handling keypresses
Mode: block
Who: hemant (UID 1000/hemant, PID 2569/unity-settings-)
What: sleep
Why: GNOME needs to lock the screen
Mode: delay
5 inhibitors listed.
16.04 power-management shutdown battery
Can you confirm that your system is shut down completely? Complete shut down can be ensured by checking if turning on again shows the boot screen and grub boot loader
– Yaksha
Nov 9 '17 at 8:44
@Yaksha I m 100% sure. :)
– Hemant Patwal
Nov 9 '17 at 9:17
Please run the following command in a terminal and edit your question with the output.
– J. Starnes
Nov 11 '17 at 20:37
2
Goodness I forgot the command.systemd-inhibit --list
will list all programs that are blocking or delaying shutdown commands.
– J. Starnes
Nov 11 '17 at 21:12
2
If your machine is actually powered off, I do not see how this can be about Ubuntu, as Ubuntu could not be running at that point. It sounds like a hardware issue. Can you remove the battery easily? If so, next time you shut down the machine, remove the battery and set it aside for a few hours. Then plug it in and see what the charge rate is. If the battery still discharged, it is a problem with the battery. If not, likely some other issue in the hardware.
– dobey
Nov 11 '17 at 21:23
|
show 1 more comment
I am using ubuntu 16.04 on my HP 15 ab522tx laptop.Even after I shut down my pc after few hours I find it discharged completely .Also,battery is quite new and was performing better in previous OS(windows 10).
I also tried various power saving workarounds but I am not able to figure out why this happens!Please explain.
Is there any solution for this!
Output of systemd-inhibit --list
:
hemant@hpnb:~$ systemd-inhibit --list
Who: NetworkManager (UID 0/root, PID 1258/NetworkManager)
What: sleep
Why: NetworkManager needs to turn off networks
Mode: delay
Who: Telepathy (UID 1000/hemant, PID 3222/mission-control)
What: shutdown:sleep
Why: Disconnecting IM accounts before suspend/shutdown...
Mode: delay
Who: Unity (UID 1000/hemant, PID 2637/compiz)
What: sleep
Why: Unity needs to lock the screen
Mode: delay
Who: hemant (UID 1000/hemant, PID 2569/unity-settings-)
What: handle-power-key:handle-suspend-key:handle-hibernate-key
Why: GNOME handling keypresses
Mode: block
Who: hemant (UID 1000/hemant, PID 2569/unity-settings-)
What: sleep
Why: GNOME needs to lock the screen
Mode: delay
5 inhibitors listed.
16.04 power-management shutdown battery
I am using ubuntu 16.04 on my HP 15 ab522tx laptop.Even after I shut down my pc after few hours I find it discharged completely .Also,battery is quite new and was performing better in previous OS(windows 10).
I also tried various power saving workarounds but I am not able to figure out why this happens!Please explain.
Is there any solution for this!
Output of systemd-inhibit --list
:
hemant@hpnb:~$ systemd-inhibit --list
Who: NetworkManager (UID 0/root, PID 1258/NetworkManager)
What: sleep
Why: NetworkManager needs to turn off networks
Mode: delay
Who: Telepathy (UID 1000/hemant, PID 3222/mission-control)
What: shutdown:sleep
Why: Disconnecting IM accounts before suspend/shutdown...
Mode: delay
Who: Unity (UID 1000/hemant, PID 2637/compiz)
What: sleep
Why: Unity needs to lock the screen
Mode: delay
Who: hemant (UID 1000/hemant, PID 2569/unity-settings-)
What: handle-power-key:handle-suspend-key:handle-hibernate-key
Why: GNOME handling keypresses
Mode: block
Who: hemant (UID 1000/hemant, PID 2569/unity-settings-)
What: sleep
Why: GNOME needs to lock the screen
Mode: delay
5 inhibitors listed.
16.04 power-management shutdown battery
16.04 power-management shutdown battery
edited Nov 12 '17 at 9:31
Hemant Patwal
asked Nov 9 '17 at 6:20
Hemant PatwalHemant Patwal
6210
6210
Can you confirm that your system is shut down completely? Complete shut down can be ensured by checking if turning on again shows the boot screen and grub boot loader
– Yaksha
Nov 9 '17 at 8:44
@Yaksha I m 100% sure. :)
– Hemant Patwal
Nov 9 '17 at 9:17
Please run the following command in a terminal and edit your question with the output.
– J. Starnes
Nov 11 '17 at 20:37
2
Goodness I forgot the command.systemd-inhibit --list
will list all programs that are blocking or delaying shutdown commands.
– J. Starnes
Nov 11 '17 at 21:12
2
If your machine is actually powered off, I do not see how this can be about Ubuntu, as Ubuntu could not be running at that point. It sounds like a hardware issue. Can you remove the battery easily? If so, next time you shut down the machine, remove the battery and set it aside for a few hours. Then plug it in and see what the charge rate is. If the battery still discharged, it is a problem with the battery. If not, likely some other issue in the hardware.
– dobey
Nov 11 '17 at 21:23
|
show 1 more comment
Can you confirm that your system is shut down completely? Complete shut down can be ensured by checking if turning on again shows the boot screen and grub boot loader
– Yaksha
Nov 9 '17 at 8:44
@Yaksha I m 100% sure. :)
– Hemant Patwal
Nov 9 '17 at 9:17
Please run the following command in a terminal and edit your question with the output.
– J. Starnes
Nov 11 '17 at 20:37
2
Goodness I forgot the command.systemd-inhibit --list
will list all programs that are blocking or delaying shutdown commands.
– J. Starnes
Nov 11 '17 at 21:12
2
If your machine is actually powered off, I do not see how this can be about Ubuntu, as Ubuntu could not be running at that point. It sounds like a hardware issue. Can you remove the battery easily? If so, next time you shut down the machine, remove the battery and set it aside for a few hours. Then plug it in and see what the charge rate is. If the battery still discharged, it is a problem with the battery. If not, likely some other issue in the hardware.
– dobey
Nov 11 '17 at 21:23
Can you confirm that your system is shut down completely? Complete shut down can be ensured by checking if turning on again shows the boot screen and grub boot loader
– Yaksha
Nov 9 '17 at 8:44
Can you confirm that your system is shut down completely? Complete shut down can be ensured by checking if turning on again shows the boot screen and grub boot loader
– Yaksha
Nov 9 '17 at 8:44
@Yaksha I m 100% sure. :)
– Hemant Patwal
Nov 9 '17 at 9:17
@Yaksha I m 100% sure. :)
– Hemant Patwal
Nov 9 '17 at 9:17
Please run the following command in a terminal and edit your question with the output.
– J. Starnes
Nov 11 '17 at 20:37
Please run the following command in a terminal and edit your question with the output.
– J. Starnes
Nov 11 '17 at 20:37
2
2
Goodness I forgot the command.
systemd-inhibit --list
will list all programs that are blocking or delaying shutdown commands.– J. Starnes
Nov 11 '17 at 21:12
Goodness I forgot the command.
systemd-inhibit --list
will list all programs that are blocking or delaying shutdown commands.– J. Starnes
Nov 11 '17 at 21:12
2
2
If your machine is actually powered off, I do not see how this can be about Ubuntu, as Ubuntu could not be running at that point. It sounds like a hardware issue. Can you remove the battery easily? If so, next time you shut down the machine, remove the battery and set it aside for a few hours. Then plug it in and see what the charge rate is. If the battery still discharged, it is a problem with the battery. If not, likely some other issue in the hardware.
– dobey
Nov 11 '17 at 21:23
If your machine is actually powered off, I do not see how this can be about Ubuntu, as Ubuntu could not be running at that point. It sounds like a hardware issue. Can you remove the battery easily? If so, next time you shut down the machine, remove the battery and set it aside for a few hours. Then plug it in and see what the charge rate is. If the battery still discharged, it is a problem with the battery. If not, likely some other issue in the hardware.
– dobey
Nov 11 '17 at 21:23
|
show 1 more comment
5 Answers
5
active
oldest
votes
Remove the battery for several hours and check if it will drain out. If the battery still charged, it should be healthy.
One possible trouble maker could be any USB port or other device that still powered while the system is shut down.
Extra powered USBs are feature for some laptops. Usually these ports are yellow colored. Port as this could be troublemaker especially if something is plugged in this port. In most cases this feature could be disabled via the BIOS settings.
Recently I've discovered that the new batteries should be charged to 100%. Unfortunately I can't find the source of this statement but this solve my problem with my new battery jump drain from ~35% to 5%.
Within Ubuntu the package tlp
(apply laptop power management settings) could be helpful. It is capable to handle the power management of the devices (USB, PCI, etc.) at kernel level.
TLP[1] brings you the benefits of advanced power management for Linux
without the need to understand every technical detail. TLP comes with
a default configuration already optimized for battery life, so you may
just install and forget it. Nevertheless TLP is highly customizable to
fulfil your specific requirements.
Please note: TLP runs on every laptop brand. Setting the battery
charge thresholds is available for IBM/Lenovo ThinkPads only.
TLP is a pure command line tool with automated background tasks. It
does not contain a GUI.
TLP[2] (TLP - Linux Advanced Power Management) is more progressive
management utility battery-for Linux, which applies different settings
automatically when you log on and every time you change the power
source, depending on your distro and hardware.
Basic usage of tlp
:
Install the package:
sudo apt update && sudo apt install tlp
.
If you are using
tp-smapi
the better way to install the package is:
sudo add-apt-repository ppa:linrunner/tlp
sudo apt-get update
sudo apt-get install tlp tlp-rdw
sudo apt-get install tp-smapi-dkms acpi-call-dkms
There are two services installed
tlp.service
andtlp-sleep.service
.Use
sudo tlp stat
to check the current settings.Use
nano /etc/default/tlp
to tweak the configuration.Use
sudo tlp start
to apply the configuration.
Another useful tool is powertop
, that is not just a monitoring tool, but has also a calibrating option: powertop -c
.
tlp powertop
IMO in nowadays systems (where is not presented a hardware ON/OFF switch like into the systems from the 80s) the operating system could play a significant role when the system is shut down. For example on my ThinkPad X230, while withintlp
the battery stop threshold is set to 80%, this stop threshold still active while the laptop is power off.
– pa4080
Nov 20 '17 at 7:11
Another 100 point bounty on this same question here: askubuntu.com/questions/1022899/…
– WinEunuuchs2Unix
Apr 12 '18 at 1:28
Thank you for this note, @WinEunuuchs2Unix.
– pa4080
Apr 12 '18 at 10:13
Just a reference to a related question: Ubuntu 18.04 battery life
– pa4080
Oct 18 '18 at 9:19
add a comment |
Trouble shooting for software problems.
Run and examine the output of 'systemd-inhibit --list' for any abnormal inhibiting programs. You can kill the listed processes to test if they are the cause. In your case none of the inhibiting processes appear to be abnormal.
Activate sendsigs
report_unkillable config option, from this answer by falconer. Repoduced here for clarity.
Open
/etc/init.d/sendsigs
in your favourite text editor, with root privileges (e.gsudo vi /etc/init.d/sendsigs
orgksu /etc/init.d/sendsigs
). Search for the line#report_unkillable
and uncomment it (i.e. remove the#
tag). Save the file.Make sure that apport is enabled: Edit the file
/etc/default/apport
so it readsenabled=1
. (If it wasenabled=0
then reboot, so apport can start.)Shutdown.
Upon the next boot
apport
should come up with a message telling you that there was some kind of problem with a program. That is the one causing the delay. And there should be a crash report in/var/crash
. (If apport doesn't report the name, then just look in the crash file, in the end of the file there will be something likeTitle: MISBEHAVING_PROGRAMNAME does not terminate at computer shutdown
)
add a comment |
I had exat same problem in my hp laptop running ubuntu ,the problem was WOL(wake on LAN) Wake on LAN is enabled by default and you cannot disable it in your BIOS/UEFI because the setting is not available. On notebooks/ultrabooks, WOL can drain/discharge your battery even your device is powered-off!
follow this page "https://andidittrich.de/2015/12/ubuntu-15-10-disable-wake-on-lan-wol-permanently.html"
1
try to include what you think is important from the link in your answer instead, as your answer will be invalid if the link goes down
– Eskander Bejaoui
May 19 '18 at 16:57
add a comment |
Solved for me (HP Spectre) by updating BIOS via Windows:
https://support.hp.com/us-en/document/c00042629
add a comment |
Are you sure your battery hasn't just begun to enter ill health. You need to charge it fully and drop test it to see if there is good current holding capacity.
remember Li-ion have a memory effect and should be charged for 24 hours from new without switching the device on. My laptop when fully charged reports theres 10 and a half hours of usage this is nearer 3 hours and it still trickle leaks when switched off so i have to plug it into the charger every time i want to boot from a long cold period.
2
Lithium Ion batteries do not have memory effect, not at this stage at least. Discharging it to low percentages does more harm than good.
– Yaksha
Nov 12 '17 at 9:39
Drop testing a battery doesn't discharge it that's not what i'm recommending. To Drop test a battery, you briefly short it out with a voltmeter across it. if the battery is in good health the volt meter's reading won't change. DO NOT short the battery for more than a couple of seconds
– rhubarbdog
Nov 13 '17 at 5:43
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f974573%2fbattery-drains-down-even-after-shut-down%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
5 Answers
5
active
oldest
votes
5 Answers
5
active
oldest
votes
active
oldest
votes
active
oldest
votes
Remove the battery for several hours and check if it will drain out. If the battery still charged, it should be healthy.
One possible trouble maker could be any USB port or other device that still powered while the system is shut down.
Extra powered USBs are feature for some laptops. Usually these ports are yellow colored. Port as this could be troublemaker especially if something is plugged in this port. In most cases this feature could be disabled via the BIOS settings.
Recently I've discovered that the new batteries should be charged to 100%. Unfortunately I can't find the source of this statement but this solve my problem with my new battery jump drain from ~35% to 5%.
Within Ubuntu the package tlp
(apply laptop power management settings) could be helpful. It is capable to handle the power management of the devices (USB, PCI, etc.) at kernel level.
TLP[1] brings you the benefits of advanced power management for Linux
without the need to understand every technical detail. TLP comes with
a default configuration already optimized for battery life, so you may
just install and forget it. Nevertheless TLP is highly customizable to
fulfil your specific requirements.
Please note: TLP runs on every laptop brand. Setting the battery
charge thresholds is available for IBM/Lenovo ThinkPads only.
TLP is a pure command line tool with automated background tasks. It
does not contain a GUI.
TLP[2] (TLP - Linux Advanced Power Management) is more progressive
management utility battery-for Linux, which applies different settings
automatically when you log on and every time you change the power
source, depending on your distro and hardware.
Basic usage of tlp
:
Install the package:
sudo apt update && sudo apt install tlp
.
If you are using
tp-smapi
the better way to install the package is:
sudo add-apt-repository ppa:linrunner/tlp
sudo apt-get update
sudo apt-get install tlp tlp-rdw
sudo apt-get install tp-smapi-dkms acpi-call-dkms
There are two services installed
tlp.service
andtlp-sleep.service
.Use
sudo tlp stat
to check the current settings.Use
nano /etc/default/tlp
to tweak the configuration.Use
sudo tlp start
to apply the configuration.
Another useful tool is powertop
, that is not just a monitoring tool, but has also a calibrating option: powertop -c
.
tlp powertop
IMO in nowadays systems (where is not presented a hardware ON/OFF switch like into the systems from the 80s) the operating system could play a significant role when the system is shut down. For example on my ThinkPad X230, while withintlp
the battery stop threshold is set to 80%, this stop threshold still active while the laptop is power off.
– pa4080
Nov 20 '17 at 7:11
Another 100 point bounty on this same question here: askubuntu.com/questions/1022899/…
– WinEunuuchs2Unix
Apr 12 '18 at 1:28
Thank you for this note, @WinEunuuchs2Unix.
– pa4080
Apr 12 '18 at 10:13
Just a reference to a related question: Ubuntu 18.04 battery life
– pa4080
Oct 18 '18 at 9:19
add a comment |
Remove the battery for several hours and check if it will drain out. If the battery still charged, it should be healthy.
One possible trouble maker could be any USB port or other device that still powered while the system is shut down.
Extra powered USBs are feature for some laptops. Usually these ports are yellow colored. Port as this could be troublemaker especially if something is plugged in this port. In most cases this feature could be disabled via the BIOS settings.
Recently I've discovered that the new batteries should be charged to 100%. Unfortunately I can't find the source of this statement but this solve my problem with my new battery jump drain from ~35% to 5%.
Within Ubuntu the package tlp
(apply laptop power management settings) could be helpful. It is capable to handle the power management of the devices (USB, PCI, etc.) at kernel level.
TLP[1] brings you the benefits of advanced power management for Linux
without the need to understand every technical detail. TLP comes with
a default configuration already optimized for battery life, so you may
just install and forget it. Nevertheless TLP is highly customizable to
fulfil your specific requirements.
Please note: TLP runs on every laptop brand. Setting the battery
charge thresholds is available for IBM/Lenovo ThinkPads only.
TLP is a pure command line tool with automated background tasks. It
does not contain a GUI.
TLP[2] (TLP - Linux Advanced Power Management) is more progressive
management utility battery-for Linux, which applies different settings
automatically when you log on and every time you change the power
source, depending on your distro and hardware.
Basic usage of tlp
:
Install the package:
sudo apt update && sudo apt install tlp
.
If you are using
tp-smapi
the better way to install the package is:
sudo add-apt-repository ppa:linrunner/tlp
sudo apt-get update
sudo apt-get install tlp tlp-rdw
sudo apt-get install tp-smapi-dkms acpi-call-dkms
There are two services installed
tlp.service
andtlp-sleep.service
.Use
sudo tlp stat
to check the current settings.Use
nano /etc/default/tlp
to tweak the configuration.Use
sudo tlp start
to apply the configuration.
Another useful tool is powertop
, that is not just a monitoring tool, but has also a calibrating option: powertop -c
.
tlp powertop
IMO in nowadays systems (where is not presented a hardware ON/OFF switch like into the systems from the 80s) the operating system could play a significant role when the system is shut down. For example on my ThinkPad X230, while withintlp
the battery stop threshold is set to 80%, this stop threshold still active while the laptop is power off.
– pa4080
Nov 20 '17 at 7:11
Another 100 point bounty on this same question here: askubuntu.com/questions/1022899/…
– WinEunuuchs2Unix
Apr 12 '18 at 1:28
Thank you for this note, @WinEunuuchs2Unix.
– pa4080
Apr 12 '18 at 10:13
Just a reference to a related question: Ubuntu 18.04 battery life
– pa4080
Oct 18 '18 at 9:19
add a comment |
Remove the battery for several hours and check if it will drain out. If the battery still charged, it should be healthy.
One possible trouble maker could be any USB port or other device that still powered while the system is shut down.
Extra powered USBs are feature for some laptops. Usually these ports are yellow colored. Port as this could be troublemaker especially if something is plugged in this port. In most cases this feature could be disabled via the BIOS settings.
Recently I've discovered that the new batteries should be charged to 100%. Unfortunately I can't find the source of this statement but this solve my problem with my new battery jump drain from ~35% to 5%.
Within Ubuntu the package tlp
(apply laptop power management settings) could be helpful. It is capable to handle the power management of the devices (USB, PCI, etc.) at kernel level.
TLP[1] brings you the benefits of advanced power management for Linux
without the need to understand every technical detail. TLP comes with
a default configuration already optimized for battery life, so you may
just install and forget it. Nevertheless TLP is highly customizable to
fulfil your specific requirements.
Please note: TLP runs on every laptop brand. Setting the battery
charge thresholds is available for IBM/Lenovo ThinkPads only.
TLP is a pure command line tool with automated background tasks. It
does not contain a GUI.
TLP[2] (TLP - Linux Advanced Power Management) is more progressive
management utility battery-for Linux, which applies different settings
automatically when you log on and every time you change the power
source, depending on your distro and hardware.
Basic usage of tlp
:
Install the package:
sudo apt update && sudo apt install tlp
.
If you are using
tp-smapi
the better way to install the package is:
sudo add-apt-repository ppa:linrunner/tlp
sudo apt-get update
sudo apt-get install tlp tlp-rdw
sudo apt-get install tp-smapi-dkms acpi-call-dkms
There are two services installed
tlp.service
andtlp-sleep.service
.Use
sudo tlp stat
to check the current settings.Use
nano /etc/default/tlp
to tweak the configuration.Use
sudo tlp start
to apply the configuration.
Another useful tool is powertop
, that is not just a monitoring tool, but has also a calibrating option: powertop -c
.
tlp powertop
Remove the battery for several hours and check if it will drain out. If the battery still charged, it should be healthy.
One possible trouble maker could be any USB port or other device that still powered while the system is shut down.
Extra powered USBs are feature for some laptops. Usually these ports are yellow colored. Port as this could be troublemaker especially if something is plugged in this port. In most cases this feature could be disabled via the BIOS settings.
Recently I've discovered that the new batteries should be charged to 100%. Unfortunately I can't find the source of this statement but this solve my problem with my new battery jump drain from ~35% to 5%.
Within Ubuntu the package tlp
(apply laptop power management settings) could be helpful. It is capable to handle the power management of the devices (USB, PCI, etc.) at kernel level.
TLP[1] brings you the benefits of advanced power management for Linux
without the need to understand every technical detail. TLP comes with
a default configuration already optimized for battery life, so you may
just install and forget it. Nevertheless TLP is highly customizable to
fulfil your specific requirements.
Please note: TLP runs on every laptop brand. Setting the battery
charge thresholds is available for IBM/Lenovo ThinkPads only.
TLP is a pure command line tool with automated background tasks. It
does not contain a GUI.
TLP[2] (TLP - Linux Advanced Power Management) is more progressive
management utility battery-for Linux, which applies different settings
automatically when you log on and every time you change the power
source, depending on your distro and hardware.
Basic usage of tlp
:
Install the package:
sudo apt update && sudo apt install tlp
.
If you are using
tp-smapi
the better way to install the package is:
sudo add-apt-repository ppa:linrunner/tlp
sudo apt-get update
sudo apt-get install tlp tlp-rdw
sudo apt-get install tp-smapi-dkms acpi-call-dkms
There are two services installed
tlp.service
andtlp-sleep.service
.Use
sudo tlp stat
to check the current settings.Use
nano /etc/default/tlp
to tweak the configuration.Use
sudo tlp start
to apply the configuration.
Another useful tool is powertop
, that is not just a monitoring tool, but has also a calibrating option: powertop -c
.
tlp powertop
edited Apr 14 '18 at 10:16
answered Nov 12 '17 at 0:26
pa4080pa4080
14.1k52667
14.1k52667
IMO in nowadays systems (where is not presented a hardware ON/OFF switch like into the systems from the 80s) the operating system could play a significant role when the system is shut down. For example on my ThinkPad X230, while withintlp
the battery stop threshold is set to 80%, this stop threshold still active while the laptop is power off.
– pa4080
Nov 20 '17 at 7:11
Another 100 point bounty on this same question here: askubuntu.com/questions/1022899/…
– WinEunuuchs2Unix
Apr 12 '18 at 1:28
Thank you for this note, @WinEunuuchs2Unix.
– pa4080
Apr 12 '18 at 10:13
Just a reference to a related question: Ubuntu 18.04 battery life
– pa4080
Oct 18 '18 at 9:19
add a comment |
IMO in nowadays systems (where is not presented a hardware ON/OFF switch like into the systems from the 80s) the operating system could play a significant role when the system is shut down. For example on my ThinkPad X230, while withintlp
the battery stop threshold is set to 80%, this stop threshold still active while the laptop is power off.
– pa4080
Nov 20 '17 at 7:11
Another 100 point bounty on this same question here: askubuntu.com/questions/1022899/…
– WinEunuuchs2Unix
Apr 12 '18 at 1:28
Thank you for this note, @WinEunuuchs2Unix.
– pa4080
Apr 12 '18 at 10:13
Just a reference to a related question: Ubuntu 18.04 battery life
– pa4080
Oct 18 '18 at 9:19
IMO in nowadays systems (where is not presented a hardware ON/OFF switch like into the systems from the 80s) the operating system could play a significant role when the system is shut down. For example on my ThinkPad X230, while within
tlp
the battery stop threshold is set to 80%, this stop threshold still active while the laptop is power off.– pa4080
Nov 20 '17 at 7:11
IMO in nowadays systems (where is not presented a hardware ON/OFF switch like into the systems from the 80s) the operating system could play a significant role when the system is shut down. For example on my ThinkPad X230, while within
tlp
the battery stop threshold is set to 80%, this stop threshold still active while the laptop is power off.– pa4080
Nov 20 '17 at 7:11
Another 100 point bounty on this same question here: askubuntu.com/questions/1022899/…
– WinEunuuchs2Unix
Apr 12 '18 at 1:28
Another 100 point bounty on this same question here: askubuntu.com/questions/1022899/…
– WinEunuuchs2Unix
Apr 12 '18 at 1:28
Thank you for this note, @WinEunuuchs2Unix.
– pa4080
Apr 12 '18 at 10:13
Thank you for this note, @WinEunuuchs2Unix.
– pa4080
Apr 12 '18 at 10:13
Just a reference to a related question: Ubuntu 18.04 battery life
– pa4080
Oct 18 '18 at 9:19
Just a reference to a related question: Ubuntu 18.04 battery life
– pa4080
Oct 18 '18 at 9:19
add a comment |
Trouble shooting for software problems.
Run and examine the output of 'systemd-inhibit --list' for any abnormal inhibiting programs. You can kill the listed processes to test if they are the cause. In your case none of the inhibiting processes appear to be abnormal.
Activate sendsigs
report_unkillable config option, from this answer by falconer. Repoduced here for clarity.
Open
/etc/init.d/sendsigs
in your favourite text editor, with root privileges (e.gsudo vi /etc/init.d/sendsigs
orgksu /etc/init.d/sendsigs
). Search for the line#report_unkillable
and uncomment it (i.e. remove the#
tag). Save the file.Make sure that apport is enabled: Edit the file
/etc/default/apport
so it readsenabled=1
. (If it wasenabled=0
then reboot, so apport can start.)Shutdown.
Upon the next boot
apport
should come up with a message telling you that there was some kind of problem with a program. That is the one causing the delay. And there should be a crash report in/var/crash
. (If apport doesn't report the name, then just look in the crash file, in the end of the file there will be something likeTitle: MISBEHAVING_PROGRAMNAME does not terminate at computer shutdown
)
add a comment |
Trouble shooting for software problems.
Run and examine the output of 'systemd-inhibit --list' for any abnormal inhibiting programs. You can kill the listed processes to test if they are the cause. In your case none of the inhibiting processes appear to be abnormal.
Activate sendsigs
report_unkillable config option, from this answer by falconer. Repoduced here for clarity.
Open
/etc/init.d/sendsigs
in your favourite text editor, with root privileges (e.gsudo vi /etc/init.d/sendsigs
orgksu /etc/init.d/sendsigs
). Search for the line#report_unkillable
and uncomment it (i.e. remove the#
tag). Save the file.Make sure that apport is enabled: Edit the file
/etc/default/apport
so it readsenabled=1
. (If it wasenabled=0
then reboot, so apport can start.)Shutdown.
Upon the next boot
apport
should come up with a message telling you that there was some kind of problem with a program. That is the one causing the delay. And there should be a crash report in/var/crash
. (If apport doesn't report the name, then just look in the crash file, in the end of the file there will be something likeTitle: MISBEHAVING_PROGRAMNAME does not terminate at computer shutdown
)
add a comment |
Trouble shooting for software problems.
Run and examine the output of 'systemd-inhibit --list' for any abnormal inhibiting programs. You can kill the listed processes to test if they are the cause. In your case none of the inhibiting processes appear to be abnormal.
Activate sendsigs
report_unkillable config option, from this answer by falconer. Repoduced here for clarity.
Open
/etc/init.d/sendsigs
in your favourite text editor, with root privileges (e.gsudo vi /etc/init.d/sendsigs
orgksu /etc/init.d/sendsigs
). Search for the line#report_unkillable
and uncomment it (i.e. remove the#
tag). Save the file.Make sure that apport is enabled: Edit the file
/etc/default/apport
so it readsenabled=1
. (If it wasenabled=0
then reboot, so apport can start.)Shutdown.
Upon the next boot
apport
should come up with a message telling you that there was some kind of problem with a program. That is the one causing the delay. And there should be a crash report in/var/crash
. (If apport doesn't report the name, then just look in the crash file, in the end of the file there will be something likeTitle: MISBEHAVING_PROGRAMNAME does not terminate at computer shutdown
)
Trouble shooting for software problems.
Run and examine the output of 'systemd-inhibit --list' for any abnormal inhibiting programs. You can kill the listed processes to test if they are the cause. In your case none of the inhibiting processes appear to be abnormal.
Activate sendsigs
report_unkillable config option, from this answer by falconer. Repoduced here for clarity.
Open
/etc/init.d/sendsigs
in your favourite text editor, with root privileges (e.gsudo vi /etc/init.d/sendsigs
orgksu /etc/init.d/sendsigs
). Search for the line#report_unkillable
and uncomment it (i.e. remove the#
tag). Save the file.Make sure that apport is enabled: Edit the file
/etc/default/apport
so it readsenabled=1
. (If it wasenabled=0
then reboot, so apport can start.)Shutdown.
Upon the next boot
apport
should come up with a message telling you that there was some kind of problem with a program. That is the one causing the delay. And there should be a crash report in/var/crash
. (If apport doesn't report the name, then just look in the crash file, in the end of the file there will be something likeTitle: MISBEHAVING_PROGRAMNAME does not terminate at computer shutdown
)
answered Nov 12 '17 at 21:44
J. StarnesJ. Starnes
1,426416
1,426416
add a comment |
add a comment |
I had exat same problem in my hp laptop running ubuntu ,the problem was WOL(wake on LAN) Wake on LAN is enabled by default and you cannot disable it in your BIOS/UEFI because the setting is not available. On notebooks/ultrabooks, WOL can drain/discharge your battery even your device is powered-off!
follow this page "https://andidittrich.de/2015/12/ubuntu-15-10-disable-wake-on-lan-wol-permanently.html"
1
try to include what you think is important from the link in your answer instead, as your answer will be invalid if the link goes down
– Eskander Bejaoui
May 19 '18 at 16:57
add a comment |
I had exat same problem in my hp laptop running ubuntu ,the problem was WOL(wake on LAN) Wake on LAN is enabled by default and you cannot disable it in your BIOS/UEFI because the setting is not available. On notebooks/ultrabooks, WOL can drain/discharge your battery even your device is powered-off!
follow this page "https://andidittrich.de/2015/12/ubuntu-15-10-disable-wake-on-lan-wol-permanently.html"
1
try to include what you think is important from the link in your answer instead, as your answer will be invalid if the link goes down
– Eskander Bejaoui
May 19 '18 at 16:57
add a comment |
I had exat same problem in my hp laptop running ubuntu ,the problem was WOL(wake on LAN) Wake on LAN is enabled by default and you cannot disable it in your BIOS/UEFI because the setting is not available. On notebooks/ultrabooks, WOL can drain/discharge your battery even your device is powered-off!
follow this page "https://andidittrich.de/2015/12/ubuntu-15-10-disable-wake-on-lan-wol-permanently.html"
I had exat same problem in my hp laptop running ubuntu ,the problem was WOL(wake on LAN) Wake on LAN is enabled by default and you cannot disable it in your BIOS/UEFI because the setting is not available. On notebooks/ultrabooks, WOL can drain/discharge your battery even your device is powered-off!
follow this page "https://andidittrich.de/2015/12/ubuntu-15-10-disable-wake-on-lan-wol-permanently.html"
answered May 19 '18 at 16:20
Harshith SHarshith S
111
111
1
try to include what you think is important from the link in your answer instead, as your answer will be invalid if the link goes down
– Eskander Bejaoui
May 19 '18 at 16:57
add a comment |
1
try to include what you think is important from the link in your answer instead, as your answer will be invalid if the link goes down
– Eskander Bejaoui
May 19 '18 at 16:57
1
1
try to include what you think is important from the link in your answer instead, as your answer will be invalid if the link goes down
– Eskander Bejaoui
May 19 '18 at 16:57
try to include what you think is important from the link in your answer instead, as your answer will be invalid if the link goes down
– Eskander Bejaoui
May 19 '18 at 16:57
add a comment |
Solved for me (HP Spectre) by updating BIOS via Windows:
https://support.hp.com/us-en/document/c00042629
add a comment |
Solved for me (HP Spectre) by updating BIOS via Windows:
https://support.hp.com/us-en/document/c00042629
add a comment |
Solved for me (HP Spectre) by updating BIOS via Windows:
https://support.hp.com/us-en/document/c00042629
Solved for me (HP Spectre) by updating BIOS via Windows:
https://support.hp.com/us-en/document/c00042629
answered 6 mins ago
MOMERMOMER
11
11
add a comment |
add a comment |
Are you sure your battery hasn't just begun to enter ill health. You need to charge it fully and drop test it to see if there is good current holding capacity.
remember Li-ion have a memory effect and should be charged for 24 hours from new without switching the device on. My laptop when fully charged reports theres 10 and a half hours of usage this is nearer 3 hours and it still trickle leaks when switched off so i have to plug it into the charger every time i want to boot from a long cold period.
2
Lithium Ion batteries do not have memory effect, not at this stage at least. Discharging it to low percentages does more harm than good.
– Yaksha
Nov 12 '17 at 9:39
Drop testing a battery doesn't discharge it that's not what i'm recommending. To Drop test a battery, you briefly short it out with a voltmeter across it. if the battery is in good health the volt meter's reading won't change. DO NOT short the battery for more than a couple of seconds
– rhubarbdog
Nov 13 '17 at 5:43
add a comment |
Are you sure your battery hasn't just begun to enter ill health. You need to charge it fully and drop test it to see if there is good current holding capacity.
remember Li-ion have a memory effect and should be charged for 24 hours from new without switching the device on. My laptop when fully charged reports theres 10 and a half hours of usage this is nearer 3 hours and it still trickle leaks when switched off so i have to plug it into the charger every time i want to boot from a long cold period.
2
Lithium Ion batteries do not have memory effect, not at this stage at least. Discharging it to low percentages does more harm than good.
– Yaksha
Nov 12 '17 at 9:39
Drop testing a battery doesn't discharge it that's not what i'm recommending. To Drop test a battery, you briefly short it out with a voltmeter across it. if the battery is in good health the volt meter's reading won't change. DO NOT short the battery for more than a couple of seconds
– rhubarbdog
Nov 13 '17 at 5:43
add a comment |
Are you sure your battery hasn't just begun to enter ill health. You need to charge it fully and drop test it to see if there is good current holding capacity.
remember Li-ion have a memory effect and should be charged for 24 hours from new without switching the device on. My laptop when fully charged reports theres 10 and a half hours of usage this is nearer 3 hours and it still trickle leaks when switched off so i have to plug it into the charger every time i want to boot from a long cold period.
Are you sure your battery hasn't just begun to enter ill health. You need to charge it fully and drop test it to see if there is good current holding capacity.
remember Li-ion have a memory effect and should be charged for 24 hours from new without switching the device on. My laptop when fully charged reports theres 10 and a half hours of usage this is nearer 3 hours and it still trickle leaks when switched off so i have to plug it into the charger every time i want to boot from a long cold period.
answered Nov 12 '17 at 4:52
rhubarbdogrhubarbdog
20717
20717
2
Lithium Ion batteries do not have memory effect, not at this stage at least. Discharging it to low percentages does more harm than good.
– Yaksha
Nov 12 '17 at 9:39
Drop testing a battery doesn't discharge it that's not what i'm recommending. To Drop test a battery, you briefly short it out with a voltmeter across it. if the battery is in good health the volt meter's reading won't change. DO NOT short the battery for more than a couple of seconds
– rhubarbdog
Nov 13 '17 at 5:43
add a comment |
2
Lithium Ion batteries do not have memory effect, not at this stage at least. Discharging it to low percentages does more harm than good.
– Yaksha
Nov 12 '17 at 9:39
Drop testing a battery doesn't discharge it that's not what i'm recommending. To Drop test a battery, you briefly short it out with a voltmeter across it. if the battery is in good health the volt meter's reading won't change. DO NOT short the battery for more than a couple of seconds
– rhubarbdog
Nov 13 '17 at 5:43
2
2
Lithium Ion batteries do not have memory effect, not at this stage at least. Discharging it to low percentages does more harm than good.
– Yaksha
Nov 12 '17 at 9:39
Lithium Ion batteries do not have memory effect, not at this stage at least. Discharging it to low percentages does more harm than good.
– Yaksha
Nov 12 '17 at 9:39
Drop testing a battery doesn't discharge it that's not what i'm recommending. To Drop test a battery, you briefly short it out with a voltmeter across it. if the battery is in good health the volt meter's reading won't change. DO NOT short the battery for more than a couple of seconds
– rhubarbdog
Nov 13 '17 at 5:43
Drop testing a battery doesn't discharge it that's not what i'm recommending. To Drop test a battery, you briefly short it out with a voltmeter across it. if the battery is in good health the volt meter's reading won't change. DO NOT short the battery for more than a couple of seconds
– rhubarbdog
Nov 13 '17 at 5:43
add a comment |
Thanks for contributing an answer to Ask Ubuntu!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f974573%2fbattery-drains-down-even-after-shut-down%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Can you confirm that your system is shut down completely? Complete shut down can be ensured by checking if turning on again shows the boot screen and grub boot loader
– Yaksha
Nov 9 '17 at 8:44
@Yaksha I m 100% sure. :)
– Hemant Patwal
Nov 9 '17 at 9:17
Please run the following command in a terminal and edit your question with the output.
– J. Starnes
Nov 11 '17 at 20:37
2
Goodness I forgot the command.
systemd-inhibit --list
will list all programs that are blocking or delaying shutdown commands.– J. Starnes
Nov 11 '17 at 21:12
2
If your machine is actually powered off, I do not see how this can be about Ubuntu, as Ubuntu could not be running at that point. It sounds like a hardware issue. Can you remove the battery easily? If so, next time you shut down the machine, remove the battery and set it aside for a few hours. Then plug it in and see what the charge rate is. If the battery still discharged, it is a problem with the battery. If not, likely some other issue in the hardware.
– dobey
Nov 11 '17 at 21:23