LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook
User Name
Password
Linux - Laptop and Netbook Having a problem installing or configuring Linux on your laptop? Need help running Linux on your netbook? This forum is for you. This forum is for any topics relating to Linux and either traditional laptops or netbooks (such as the Asus EEE PC, Everex CloudBook or MSI Wind).

Notices

Reply
 
Search this Thread
Old 09-25-2012, 09:23 PM   #1
larophel
LQ Newbie
 
Registered: Sep 2012
Posts: 7

Rep: Reputation: Disabled
Battery Drains while Off (ACPI-related)


I got a new laptop a while ago, and have been having the issue that the battery drains while the laptop is off.
By "off", I mean a full shutdown (e.g. shutdown -h now).
Over an eight hour off-period, the battery discharges around 15-20%.

This seems to be a Linux / ACPI-specific issue, because it does not happen if I shutdown the laptop from Windows.
It also does not happen if I boot Linux with the "acpi=off" kernel parameter, and then perform a shutdown.
I have tried various things to solve this, but have been unsuccessful:

1. Replace the battery.
2. Upgrade from kernel 3.2.12 gentoo sources to 3.4.9 vanilla sources.
3. Disable all power / wakeup related features in the laptop's BIOS.
4. Disable wake-on-lan using the command "ethtool -s eth0 wol d". Even though wake-on-lan has been disabled in the BIOS, "ethtool" shows it as on after every reboot.
5. Disable all wake-up actions in /proc/acpi/wakeup.
6. Disable bluetooth using "echo 1 > /sys/devices/LNXSYSTM:00/device:00/TOS6208:00/rfkill/rfkill1/state".
7. Disable the wlan adapter using the FN+F8 hotkey.

Here's my kernel .config: http://pastebin.com/NRzK85bp
Here's my dmesg output: http://pastebin.com/BW4fE4tG

I can't think of anything else to try, but I also want to avoid using the "acpi=off" parameter, because then various programs don't work.
I would appreciate any help / hints.
 
Old 09-26-2012, 09:20 AM   #2
larophel
LQ Newbie
 
Registered: Sep 2012
Posts: 7

Original Poster
Rep: Reputation: Disabled
Yesterday, I downloaded an Ubuntu live-CD and shutdown my computer from there.
No battery discharge overnight, so I am even more convinced that this is a wrong setting / wrong driver on my system.
I just don't know which one...
 
Old 09-28-2012, 11:26 AM   #3
gradinaruvasile
Member
 
Registered: Apr 2010
Location: Cluj, Romania
Distribution: Debian Testing
Posts: 507

Rep: Reputation: 102Reputation: 102
Does your laptop really power off?
I have a Dell D630 with Debian on it and sometimes when i issue a shutdown, the system doesnt really stops (hdd powers off and all, but the fan sometimes remains on, th epower led too). It does stop if i press the power button for a few seconds.
 
Old 09-28-2012, 11:59 AM   #4
larophel
LQ Newbie
 
Registered: Sep 2012
Posts: 7

Original Poster
Rep: Reputation: Disabled
The (power) leds do go off.
I am not sure about the fan, I will check it.
 
Old 09-29-2012, 02:52 PM   #5
business_kid
Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware & Android
Posts: 6,127

Rep: Reputation: 526Reputation: 526Reputation: 526Reputation: 526Reputation: 526Reputation: 526
Go through the power off settings.

Hibernate should lie idle and consume no power, although anything in usb sockets may consume power.
Suspend does use a little power and the usb comment also applies
If you have it set to 'wake on' something, it has to monitor that, obviously. That's a bios setting usually, so disable wake on anything.

Also see http://www.lesswatts.org
 
Old 09-29-2012, 04:38 PM   #6
rokytnji
Senior Member
 
Registered: Mar 2008
Location: Waaaaay out West Texas
Distribution: AntiX 13 , Various Puppys (MacPup,Slack0),MX-14
Posts: 2,433
Blog Entries: 16

Rep: Reputation: 768Reputation: 768Reputation: 768Reputation: 768Reputation: 768Reputation: 768Reputation: 768
Quote:
although anything in usb sockets may consume power.
My eeepc's and Acer Aspire One does what businesskid is suggesting to look at. They drain power from the battery to like plug in a phone charger to usb. It is considered a feature.

These netbooks may be older than your laptop though. I just pull the battery after shutdown when put those netbooks away for the day.

Edit: I don't know enough about acpi kernel configs or Gentoo to help though on what to edit in kernel config in Gentoo to kill usb power after shutdown.

Last edited by rokytnji; 09-29-2012 at 04:43 PM.
 
Old 09-30-2012, 10:48 AM   #7
larophel
LQ Newbie
 
Registered: Sep 2012
Posts: 7

Original Poster
Rep: Reputation: Disabled
> Go through the power off settings.

Could you provide some more details? Which power off settings?

> Hibernate should lie idle and consume no power, although anything in usb sockets may consume power.
> Suspend does use a little power and the usb comment also applies

I am not suspending nor hibernating my computer, I am shutting it down (shutdown -h now).

> If you have it set to 'wake on' something, it has to monitor that, obviously. That's a bios setting usually, so disable wake on anything.

See points 3. and 4. of my OP.
 
Old 10-08-2012, 07:24 PM   #8
larophel
LQ Newbie
 
Registered: Sep 2012
Posts: 7

Original Poster
Rep: Reputation: Disabled
The issue does not seem to be kernel-related, after all.
I installed Ubuntu on a different disk, and compiled the 3.4.9 kernel there, using the same kernel config as on Gentoo.
The battery still does not discharge over night when shut down from Ubuntu.

Does anybody have any idea what else could cause this issue?
Are there any Ubuntu-specific ACPI configs somewhere?
 
Old 10-26-2012, 04:22 PM   #9
agentsteel
Member
 
Registered: Oct 2012
Location: France
Distribution: Debian / Fedora / Ubuntu / OpenBSD
Posts: 46

Rep: Reputation: Disabled
Hi there,

It seems the "battery draining while off" problem is quite common among Linux laptop users.

I have it on my HP Pavilion DM1 3130 (running Arch), now I need to try with Ubuntu to see if it does the same!

Thanks for the info, maybe we will discover the cause of this bug...
 
Old 10-26-2012, 04:51 PM   #10
larophel
LQ Newbie
 
Registered: Sep 2012
Posts: 7

Original Poster
Rep: Reputation: Disabled
In the meantime, I have gathered some more information.
As I did not manage to reproduce the issue in Ubuntu, I started suspecting some software being the culprit.

So, I started Gentoo and used the "interactive startup" feature to stop all init scripts from running.
When I did not allow any of the init scripts to start, my battery did not drain over night!

To pin-point the cause, I have been repeating that process, but allowing one init script every night.
Thus, I have noticed that most likely the "udev" init script and / or software is to blame for the battery drain.
Tonight, I will run one last test, by enabling the "udev" init script.
If tonight my battery drains, then that should be the proof that "udev" causes the battery drain.

Of course, that will still not explain why the battery drains, but at least I will be one step closer to solving this problem
 
1 members found this post helpful.
Old 11-16-2012, 11:10 AM   #11
larophel
LQ Newbie
 
Registered: Sep 2012
Posts: 7

Original Poster
Rep: Reputation: Disabled
I finally found the cause of the issue: the command "hwclock --systohc --local" causes the battery to drain when the laptop is off.
This command is executed by the /etc/init.d/hwclock script.
If I set clock_hctosys="NO" in /etc/conf.d/hwclock, that command does not get executed anymore, and the battery does not drain.
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Fluxbox Drains Battery gamewolf Slackware 12 08-31-2011 07:29 AM
Battery drains much faster under Linux PlantPerson Linux - Laptop and Netbook 7 09-03-2006 08:04 AM
Do I have ACPI or a dead battery? jwconnell Linux - Laptop and Netbook 5 08-06-2006 03:48 PM
laptop battery drains even when unit is turned off d1l2w3 Linux - Laptop and Netbook 3 05-20-2004 11:57 AM
ACPI + battery augamecock Linux - Laptop and Netbook 2 04-05-2004 06:42 AM


All times are GMT -5. The time now is 11:17 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration