Some toshiba notebooks wont recognize battery state <SOLVED>

Write tutorials here
There are more tutorials here http://community.linuxmint.com/tutorial/welcome
Forum rules
Do not start a support topic here please. Before you post please read this

Some toshiba notebooks wont recognize battery state <SOLVED>

Postby jeroseijas on Fri Jun 01, 2012 9:44 am

In some Toshiba notebook models, like mines (Toshiba Satellite L645-SP4135L) Linux doesn't recognize the battery. I will try to make it easy so the kernel gets the data from the battery state

There are two ways to solve this issue, modify some parameters and recompile the kernel ore solve it via grub without the need to recompile anything. I'm going to focus on the second option so, if I update my kernel, I don't have to recompile it again.

First I have to see if the kernel really doesn't detect my battery by running in terminal  cat/proc/acpi/battery/BAT1/* 

mukenio@notebook:~$ cat/proc/acpi/battery/BAT1/
cat /proc/acpi/battery/BAT1/*
present: no
present: no
present: no

mukenio@notebook:~$ dmesg | grep batt
[ 1.370268] ACPI: Battery Slot [BAT1] (battery absent)



Here we see that the kernel doesn't recognize it, so, from here, the only thing we need is the terminal open. 

Obtain the DSDT (Differentiated System Description Table) by running 

$sudo cat /sys/firmware/acpi/tables/DSDT > DSDT.dat


(The DSDT is one of the tables where OS can obtain data from the hardware) 

 Now we dissemble it by the command

$sudo iasl -d DSDT.dat


(if the command fails, you need to install iasl package)

 Edit the file that has been generated from the step below,  
Don't try to edit it with gedit or kate, it can give you some troubles
I recommend vi or nano

$sudo nano DSDT.dsl


and replace

OperationRegion (EMEM, SystemMemory, 0xFF808001, 0xFF) 

with 

OperationRegion (EMEM, EmbeddedControl, 0×00, 0xFF) 

IMPORTANT: do not copy / paste this string... write it, if you copy/paste it, it wont work.

(In nano you can find the string by pressing Ctrl-W) 

Save changes and exit. (Ctrl-O in nano to save, Ctrl-X exits) 


 Generate the file DSDT.aml by running

$sudo iasl -tc DSDT.dsl


Copy these las file to the directory /boot 

sudo cp DSDT.aml /boot



 Download http://dl.dropbox.com/u/155504/toshiba%20linux%20solucion/01_acpi and give permissions to execute and copy it to  /etc/grub.d/ 

Supposing that the download was made to the user directory, the command goes like this: 

$chmod +x 01_acpi ; sudo cp 01_acpi /etc/grub.d



 Re-generate the grub by running: 

sudo update-grub2


Now, by restarting and login in, you should see the batter icon

If it doesn't, run

cat /proc/acpi/battery/BAT1/* 


And see if you get anything like these: 

$cat /proc/acpi/battery/BAT1/*
alarm: unsupported
present: yes
design capacity: 4500 mAh
last full capacity: 2389 mAh
battery technology: rechargeable
design voltage: 10825 mV
design capacity warning: 300 mAh
design capacity low: 200 mAh
cycle count: 0
capacity granularity 1: 32 mAh
capacity granularity 2: 32 mAh
model number: PA3817U-1BRS
serial number:
battery type: LION
OEM info: SANYO
present: yes
capacity state: ok
charging state: discharging
present rate: 1820 mA
remaining capacity: 132 mAh
present voltage: 10701 mV

If you don't get this, repeat the steps.

Sorry for my English... is not my mother language, I hope it helps you.

Original document: http://heraldolinux.blogspot.com.ar/201 ... ia-no.html by mukenio

Translated by jeroseijas
jeroseijas
Level 1
Level 1
 
Posts: 3
Joined: Fri Jun 01, 2012 9:10 am

Linux Mint is funded by ads and donations.
 

Re: Some toshiba notebooks wont recognize battery state <SOL

Postby jazz.h on Mon Aug 06, 2012 4:07 am

Hi jeroseijas!
Nice post, very helpful.
I'm also stuck with Toshiba Satellite L750 (Intel i3) in Mint 13 Cinnamon.
Battery absent, no battery indicator present, although suspend works, after awakening battery monitor icon is shown with "0 remaining 24%). When on AC power, battery indicator is correct.
I tried your solution but I got a lot of errors after compiling "sudo iasl -d DSDT.dat", so I stopped there.
Did you find some other solution in the meantime?
jazz.h
Level 4
Level 4
 
Posts: 243
Joined: Sat Jun 18, 2011 7:13 am

Re: Some toshiba notebooks wont recognize battery state <SOL

Postby jbohr on Thu Sep 27, 2012 5:24 am

Thank you so much for taking the time to document this! This problem has been bugging me for quite some time now and my computer would power off without notice sometimes in the middle of my work. I created this account on this forum just to say thank you. FYI to readers, to get the battery icon to show up after performing these steps I had to go into system settings -> power and set the option to always display battery status when battery is present.
jbohr
Level 1
Level 1
 
Posts: 1
Joined: Thu Sep 27, 2012 5:21 am

Re: Some toshiba notebooks wont recognize battery state <SOL

Postby jeroseijas on Thu Sep 27, 2012 9:20 pm

jazz.h wrote:Hi jeroseijas!
Nice post, very helpful.
I'm also stuck with Toshiba Satellite L750 (Intel i3) in Mint 13 Cinnamon.
Battery absent, no battery indicator present, although suspend works, after awakening battery monitor icon is shown with "0 remaining 24%). When on AC power, battery indicator is correct.
I tried your solution but I got a lot of errors after compiling "sudo iasl -d DSDT.dat", so I stopped there.
Did you find some other solution in the meantime?


Did you get the file DSDT.dat? Some errors in this step are normal.. remember to edit it with vi and not to copy and paste...
jeroseijas
Level 1
Level 1
 
Posts: 3
Joined: Fri Jun 01, 2012 9:10 am

Re: Some toshiba notebooks wont recognize battery state <SOL

Postby jeroseijas on Thu Sep 27, 2012 9:23 pm

jbohr wrote:Thank you so much for taking the time to document this! This problem has been bugging me for quite some time now and my computer would power off without notice sometimes in the middle of my work. I created this account on this forum just to say thank you. FYI to readers, to get the battery icon to show up after performing these steps I had to go into system settings -> power and set the option to always display battery status when battery is present.


You are welcome!! its very nice to get this kind of comments and know i could help someone! that problem was driving me crazy until i find the solution
jeroseijas
Level 1
Level 1
 
Posts: 3
Joined: Fri Jun 01, 2012 9:10 am

Re: Some toshiba notebooks wont recognize battery state <SOL

Postby kamachi on Wed Dec 05, 2012 11:28 am

Thanks a lot! Works sucessfully on Toshiba Satellite L655-5144 and Linux Mint 14 Cinamon.
kamachi
Level 1
Level 1
 
Posts: 1
Joined: Wed Dec 05, 2012 11:11 am

Re: Some toshiba notebooks wont recognize battery state <SOL

Postby oso14 on Tue Mar 19, 2013 11:15 pm

jeroseijas wrote:
jazz.h wrote:Hi jeroseijas!
Nice post, very helpful.
I'm also stuck with Toshiba Satellite L750 (Intel i3) in Mint 13 Cinnamon.
Battery absent, no battery indicator present, although suspend works, after awakening battery monitor icon is shown with "0 remaining 24%). When on AC power, battery indicator is correct.
I tried your solution but I got a lot of errors after compiling "sudo iasl -d DSDT.dat", so I stopped there.
Did you find some other solution in the meantime?


Did you get the file DSDT.dat? Some errors in this step are normal.. remember to edit it with vi and not to copy and paste...


i have the same problem, the only diference that i have with the main post is:

dmesg | grep batt
[ 0.903901] ACPI: Deprecated procfs I/F for battery is loaded, please retry with CONFIG_ACPI_PROCFS_POWER cleared
[ 0.903910] ACPI: Battery Slot [BAT1] (battery absent)
[ 0.903927] ACPI: Battery Slot [BAT1] (battery absent)

i follow all the steps and then when i put: sudo iasl -tc DSDT.dsl
ASL Input: DSDT.dsl - 13006 lines, 476660 bytes, 5461 keywords
Compilation complete. 2 Errors, 3 Warnings, 32 Remarks, 7 Optimizations

how can i solve it?
oso14
Level 1
Level 1
 
Posts: 1
Joined: Tue Mar 19, 2013 11:06 pm

Re: Some toshiba notebooks wont recognize battery state <SOL

Postby kendalljenner84 on Wed May 15, 2013 5:59 am

I think there is problem technology you can consult with customer care executive of Toshiba and telling about this problem to him.
kendalljenner84
Level 1
Level 1
 
Posts: 1
Joined: Wed May 15, 2013 1:58 am

Re: Some toshiba notebooks wont recognize battery state <SOL

Postby metaluy on Thu Jul 18, 2013 11:09 am

Hi! It worked like a charm on my Toshiba L645 with Mint 14 Nadia and kernel 3.5.0.17-generic.
Thank you very much for you help!
metaluy
Level 1
Level 1
 
Posts: 1
Joined: Thu Jul 18, 2013 11:05 am

Re: Some toshiba notebooks wont recognize battery state <SOL

Postby rob#! on Tue Oct 15, 2013 10:56 pm

oso14 wrote:
i have the same problem, the only diference that i have with the main post is:

dmesg | grep batt
[ 0.903901] ACPI: Deprecated procfs I/F for battery is loaded, please retry with CONFIG_ACPI_PROCFS_POWER cleared
[ 0.903910] ACPI: Battery Slot [BAT1] (battery absent)
[ 0.903927] ACPI: Battery Slot [BAT1] (battery absent)

i follow all the steps and then when i put: sudo iasl -tc DSDT.dsl
ASL Input: DSDT.dsl - 13006 lines, 476660 bytes, 5461 keywords
Compilation complete. 2 Errors, 3 Warnings, 32 Remarks, 7 Optimizations

how can i solve it?


I had the same exact issue.

Fix :

open DSDT.dsl file and go to the line where iasl indicated the error. In my case I go to lines 2656 and 2663.

iasl is complaining about the “Length” line “0×00000000″. This is wrong. Look at the “Range Minimum” and “Range Maximum”. Open up your Kcalc or whatever you Gnome people use and change it to Numeral System Mode. Make sure HEX is selected and now we subtract the minimun range from the maximun range and then we add 1. Since the minimum range is 0 (And you can’t subtract 0) I will input FEAFFFFF and then add 1 which gives me FEB00000 (Don’t get confused, I’m simply omitting “0x”, the calculator doesn’t need this). I change 0×00000000 to 0xFEB00000 by Length. So now it looks like this:

0×00000000, // Granularity
0×00000000, // Range Minimum
0xFEAFFFFF, // Range Maximum
0×00000000, // Translation Offset
0xFEB00000, // Length

Line 2663 changed to

0×00000000, // Granularity
0xFED40000, // Range Minimum
0xFED44FFF, // Range Maximum
0×00000000, // Translation Offset
0×00005000, // Length

compile again.

Here is the link to the original answer:http://techinterplay.com/fix-toshiba-battery-issue-linux.html

Hope that helps!
rob#!
Level 1
Level 1
 
Posts: 1
Joined: Tue Oct 15, 2013 10:50 pm

Re: Some toshiba notebooks wont recognize battery state <SOL

Postby cforput1 on Wed Nov 13, 2013 11:01 am

I was excited when I ran acoss this thread but quickly got shot down. When I run the command "cat /proc/acpi/battery/BAT1/*" I get an error stating "No such file or directory" so I'm at a loss of what to do next. Should I just manually create the folder?

Help Please!
cforput1
Level 1
Level 1
 
Posts: 16
Joined: Wed Jul 04, 2012 10:19 am

Re: Some toshiba notebooks wont recognize battery state <SOL

Postby stanrock on Wed Nov 27, 2013 10:56 pm

You are a genius! It worked great.

I did get some errors when I compiled the file, and it makes me a little nervious when I put it in the /boot directory, but it worked fine. Now I have a battery indicator, life is good!
stanrock
Level 1
Level 1
 
Posts: 1
Joined: Wed Nov 27, 2013 10:50 pm

Linux Mint is funded by ads and donations.
 

Return to Tutorials

Who is online

Users browsing this forum: Google Adsense [Bot] and 11 guests