LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 10-23-2012, 05:46 AM   #1
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,352

Rep: Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331
Battery Charging


I am having weirdness from my battery charging. I had blamed hardware but I was wondering if linux could be responsible.
/sys/class/power_supply/C1ED/status shows one of
* Charging
* Discharging
* Unknown (= Discharging). This one worries me.

The battery is rarely charged, so I have no battery life. If it has a charge, the system elects to discharge the battery instead of using the plugged in mains supply. It has shut down over low battery with the power supply plugged in :-/.
If I unplug the battery, leave it a few seconds, and replace it, a charge starts. On suspend/hibernate, even if I have a charging light, the battery never fills. But if I switch off, I can charge it fully. And immediately I turn on, the system drains it again unless I take the battery out.

What control has linux over this? Anything I can check?
 
Old 10-23-2012, 08:56 PM   #2
rc nai
Member
 
Registered: Jun 2008
Distribution: Slackware 13.37,14
Posts: 88

Rep: Reputation: 21
What kind of computer do you have?

Maybe you have a faulty DSDT file? I don't know much about it, but I know that it has something to do with the power management system. I know it's not exactly the same as yours, but in my case, I had to compile a kernel with a custom DSDT file in order for my laptop to recognize the battery power state. This has some info on the DSDT:
https://lesswatts.org/projects/acpi/overridingDSDT.php

You will need the program acpica from slackbuilds. Then copy the DSDT file from /sys/firmware/acpi/tables/ into your desktop and disassemble it with:
Code:
iasl -d DSDT.dat
and recompile it to see if you get any errors. You can google the errors:
Code:
iasl -tc DSDT.dsl
Once you get the errors fixed, save it and recompile it again. Then you'll have to compile a kernel and make that kernel use that DSDT file.
 
Old 10-24-2012, 04:57 AM   #3
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,352

Original Poster
Rep: Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331
The DSDT is in the BIOS, and has just been updated to a 2011 version. It's a 2007/2008 laptop, and the dsdt worked for years. I nearly went at it when I bought the box, but it was just configuration. Windows uses the same dsdt, and the problem isn't serious enough for me to try a 'kill or cure' approach like recompiling the dsdt.
 
Old 10-30-2012, 04:41 AM   #4
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,352

Original Poster
Rep: Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331
Solved this. The @#&$£! box _is_not_charging_ while off, on suspend, or hibernate. Hardware fault. Unplugging the battery and putting it back gives me a 'charging' light - but it's not charging. Linux isn't involved.
 
  


Reply



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
Battery Charging Problem Tosh12 Linux - Newbie 5 09-08-2012 03:37 AM
Battery not charging... tenfoot Linux - Laptop and Netbook 5 02-04-2012 03:15 PM
How to Stop battery charging manually? marco18 Linux - Laptop and Netbook 9 11-16-2010 09:56 PM
Laptop Battery gets heated during charging in Fedora, not in Windows ankitm111 Linux - Laptop and Netbook 2 08-23-2009 02:24 PM
laptop battery not recognised or charging - but is being discharged andrew375 General 1 07-07-2008 09:35 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook

All times are GMT -5. The time now is 08:24 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration