Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
acpi and batterystatus
View unanswered posts
View posts from last 24 hours

Goto page 1, 2  Next  
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
kupo
n00b
n00b


Joined: 04 Dec 2004
Posts: 54

PostPosted: Sat Dec 04, 2004 8:28 am    Post subject: acpi and batterystatus Reply with quote

I have a problem on my laptop. It seems that my /proc/acpi/battry and ac_adapter is empty
My laptop is an Acer Travelmate 2301 LCi

Is there any workaround?
Back to top
View user's profile Send private message
desertstalker
Apprentice
Apprentice


Joined: 18 Sep 2004
Posts: 209

PostPosted: Sat Dec 04, 2004 8:58 am    Post subject: Reply with quote

There may be a problem with the DSDT provided by the laptops bios. There is a howto on how to use a patched DSDT on these forums https://forums.gentoo.org/viewtopic.php?t=122145.

Otherwise you may not have compiled or loaded the batters modules of the kernel ACPI.

Hope this helps
Back to top
View user's profile Send private message
kupo
n00b
n00b


Joined: 04 Dec 2004
Posts: 54

PostPosted: Sat Dec 04, 2004 9:01 am    Post subject: Reply with quote

Yeah, I did try that howto... however I'm not great with hacking the code :cry:

But I give it a try again
Back to top
View user's profile Send private message
kupo
n00b
n00b


Joined: 04 Dec 2004
Posts: 54

PostPosted: Sat Dec 04, 2004 9:15 am    Post subject: Reply with quote

I think I did it now... must have to reboot to see if... :wink:
Back to top
View user's profile Send private message
desertstalker
Apprentice
Apprentice


Joined: 18 Sep 2004
Posts: 209

PostPosted: Sat Dec 04, 2004 10:01 am    Post subject: Reply with quote

good luck

did you check to see if there is an already fixed DSDT on acpi.sourceforge.net
Back to top
View user's profile Send private message
kupo
n00b
n00b


Joined: 04 Dec 2004
Posts: 54

PostPosted: Sat Dec 04, 2004 10:10 am    Post subject: Reply with quote

yup, and now as I understand it's not DSDT that's messing with me, it's ECDT.
so I guess I just have to wait for a patch :o
Back to top
View user's profile Send private message
kupo
n00b
n00b


Joined: 04 Dec 2004
Posts: 54

PostPosted: Sat Dec 04, 2004 7:59 pm    Post subject: Reply with quote

man it's annoying not to se how much battery that's left :|
Back to top
View user's profile Send private message
kupo
n00b
n00b


Joined: 04 Dec 2004
Posts: 54

PostPosted: Sun Dec 05, 2004 5:30 pm    Post subject: Reply with quote

So... this is the output of: dmesg | grep -i acpi

as you may see I have done the patchthingy as described in this thread https://forums.gentoo.org/viewtopic.php?t=122145

Code:

 BIOS-e820: 000000000eee0000 - 000000000eeec000 (ACPI data)
 BIOS-e820: 000000000eeec000 - 000000000ef00000 (ACPI NVS)
ACPI: RSDP (v000 ACER                                  ) @ 0x000f62e0
ACPI: RSDT (v001 ACER   Kestrel  0x20020803  LTP 0x00000000) @ 0x0eee7c68
ACPI: FADT (v001 ACER   Kestrel  0x20020803 PTL  0x00000050) @ 0x0eeebf2c
ACPI: HPET (v001 ACER   Kestrel  0x20020803 PTL  0x00000000) @ 0x0eeebfa0
ACPI: BOOT (v001 ACER   Kestrel  0x20020803  LTP 0x00000001) @ 0x0eeebfd8
ACPI: DSDT (v001 ACER   Kestrel  0x20020803 MSFT 0x0100000e) @ 0x00000000
Kernel command line: root=/dev/hda5 vga=791 acpi=noirq acpi_os_name="Microsoft W                   indows XP"
ACPI: Overriding _OS definition Microsoft Windows XP
ACPI: Looking for DSDT in initrd... found (at offset 0x00).
    ACPI-0291: *** Info: Table [DSDT] replaced by host OS
ACPI: IRQ9 SCI: Edge set to Level Trigger.
ACPI: Subsystem revision 20040816
ACPI: Interpreter enabled
ACPI: Using PIC for interrupt routing
ACPI: PCI Root Bridge [PCI0] (00:00)
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0._PRT]
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.PCIB._PRT]
ACPI: Embedded Controller [EC0] (gpe 29)
ACPI: Power Resource [PFN0] (off)
ACPI: Power Resource [PFN1] (off)
ACPI: Power Button (FF) [PWRF]
ACPI: Lid Switch [LID]
ACPI: Sleep Button (CM) [SLPB]
ACPI: Fan [FAN0] (off)
ACPI: Fan [FAN1] (off)
ACPI: Processor [CPU0] (supports C1 C2 C3, 8 throttling states)
ACPI: Thermal Zone [THRM] (52 C)
ACPI wakeup devices:
ACPI: (supports S0 S3 S4 S5)


I guess this means that ECDT is missing..?
Back to top
View user's profile Send private message
Clansman
Tux's lil' helper
Tux's lil' helper


Joined: 10 Jan 2004
Posts: 140

PostPosted: Sun Dec 05, 2004 7:30 pm    Post subject: Re: acpi and batterystatus Reply with quote

kupo wrote:
I have a problem on my laptop. It seems that my /proc/acpi/battry and ac_adapter is empty
My laptop is an Acer Travelmate 2301 LCi

Is there any workaround?


sorry for the bad news, but i think you have a smart battery.
known smartbattery acer models:
Travelmate 4001 LMi/WLMi (mine)
Travelmate 4002 LMi/WLMi
Travelmate 8005LMi
Travelmate 4501WCi
some Travelmate 292 (Extensa 2920)
Extensa 3001

now probably travelmate 2301 LCi.

the problem with the smart battery is that there is NO linux support for it. so you will be left with no AC or battery information for some time.

i'm still to find out a method for people to diagnose the presence smartbatteries.

yes, the DSDT has some warnings that can be fixed but won't make it work if you have a smartbattery.

[]
_________________
http://www.pjvenda.org
Back to top
View user's profile Send private message
kupo
n00b
n00b


Joined: 04 Dec 2004
Posts: 54

PostPosted: Sun Dec 05, 2004 7:46 pm    Post subject: Reply with quote

d*mn. :(

I hope they'll come with support soon. It's so annoying :/

Oh well, thanks for the info Clansman
Back to top
View user's profile Send private message
Clansman
Tux's lil' helper
Tux's lil' helper


Joined: 10 Jan 2004
Posts: 140

PostPosted: Sun Dec 05, 2004 7:50 pm    Post subject: Reply with quote

kupo wrote:
d*mn. :(

I hope they'll come with support soon. It's so annoying :/

Oh well, thanks for the info Clansman


don't hold your breath. there isn't many people willing to write such and those who are (like me) don't have the time or the knowledge/experience to do so.l

the acpi mailing list has little activity on this subject, but some people there are working on it.

[]
_________________
http://www.pjvenda.org
Back to top
View user's profile Send private message
kupo
n00b
n00b


Joined: 04 Dec 2004
Posts: 54

PostPosted: Sun Dec 05, 2004 7:52 pm    Post subject: Reply with quote

Clansman wrote:
kupo wrote:
d*mn. :(

I hope they'll come with support soon. It's so annoying :/

Oh well, thanks for the info Clansman


don't hold your breath. there isn't many people willing to write such and those who are (like me) don't have the time or the knowledge/experience to do so.l

the acpi mailing list has little activity on this subject, but some people there are working on it.

[]


oh. okey...

well, I join the list and see how it goes :roll:
Back to top
View user's profile Send private message
Necro
n00b
n00b


Joined: 25 Jul 2004
Posts: 19

PostPosted: Thu Dec 09, 2004 1:32 pm    Post subject: Reply with quote

does anybody have any news regarding this subject?
I also have a smart battery (acer travelmater 2302LC)
Back to top
View user's profile Send private message
Clansman
Tux's lil' helper
Tux's lil' helper


Joined: 10 Jan 2004
Posts: 140

PostPosted: Thu Dec 09, 2004 2:14 pm    Post subject: Reply with quote

no.

the drivers are being built on a spare-time basis.

as far as i know there is no useful work yet, except for documentation research.

[]
_________________
http://www.pjvenda.org
Back to top
View user's profile Send private message
Chewieip
Tux's lil' helper
Tux's lil' helper


Joined: 16 Jul 2004
Posts: 79
Location: Girona, Spain

PostPosted: Wed Jan 12, 2005 2:15 pm    Post subject: Reply with quote

I've been looking for ACPI battery support for my ACER TRAVELMATE 4002 LMI and finally I found this post.

What's the diference between SmartBattery and normal Batteries? How can I compute remaining time of my battery? I've noticed that with windows it can work 4 hours more or less at minimus. But if I don't know how long battery left the computer will halt with any notice?

I'm really annoyed.
_________________
El único caso en que P= NP es cuando N = 1.
Back to top
View user's profile Send private message
Clansman
Tux's lil' helper
Tux's lil' helper


Joined: 10 Jan 2004
Posts: 140

PostPosted: Wed Jan 12, 2005 4:21 pm    Post subject: Reply with quote

Chewieip wrote:
I've been looking for ACPI battery support for my ACER TRAVELMATE 4002 LMI and finally I found this post.

What's the diference between SmartBattery and normal Batteries? How can I compute remaining time of my battery? I've noticed that with windows it can work 4 hours more or less at minimus. But if I don't know how long battery left the computer will halt with any notice?


the smartbattery system is a structured and modular system for battery management. It supports more than one charger, more than one battery and works standalone. You can communicate with it's several components and control their functioning, but if you leave it alone, it will work without any direct or indirect OS or user influence.

basically it's a well built battery system. unfortunately it isn't a standard. Don't know if it's a question of time or not. the fact is that smartbatteries are rare.

If you don't have a smartbattery driver, there is no way to compute it's battery remaining charge, thus you'll have to wait (hopefully not for long) for a driver that reads your smartbattery settings and information.

[]
_________________
http://www.pjvenda.org
Back to top
View user's profile Send private message
Clansman
Tux's lil' helper
Tux's lil' helper


Joined: 10 Jan 2004
Posts: 140

PostPosted: Wed Jan 19, 2005 2:09 pm    Post subject: newsflash! Reply with quote

hi everyone,

smartbattery test drivers are already written (not by me) and things are looking good. they still need time to mature before thinking of inclusion on the main kernel.

Stay tuned. I'll post download links soon for people to try it out.

[]
_________________
http://www.pjvenda.org
Back to top
View user's profile Send private message
Chewieip
Tux's lil' helper
Tux's lil' helper


Joined: 16 Jul 2004
Posts: 79
Location: Girona, Spain

PostPosted: Wed Jan 19, 2005 2:41 pm    Post subject: Reply with quote

I've followed all notice from acpi-digest and I'm trying to patch my kernel. But I received always the same message:

Code:
/bin/sh: line 1: /home/chewie/acpi/acpi_sbs-20050118/.tmp_versions/i2c-acpi-ec.mod: Permiso denegado
/bin/sh: line 1: /home/chewie/acpi/acpi_sbs-20050118/.tmp_versions/acpi-sbs.mod: Permiso denegado
*** Warning: "i2c_del_adapter" [/home/chewie/acpi/acpi_sbs-20050118/i2c-acpi-ec.ko] undefined!
*** Warning: "i2c_add_adapter" [/home/chewie/acpi/acpi_sbs-20050118/i2c-acpi-ec.ko] undefined!
*** Warning: "acpi_ec_read" [/home/chewie/acpi/acpi_sbs-20050118/i2c-acpi-ec.ko] undefined!
*** Warning: "acpi_ec_write" [/home/chewie/acpi/acpi_sbs-20050118/i2c-acpi-ec.ko] undefined!


I've read to include EXPORT_FILE(acpi_ec_read) in the drivers/acpi/acpi-ec.c but it doesn't works. Do you have the same problem? How do you solve it?
_________________
El único caso en que P= NP es cuando N = 1.
Back to top
View user's profile Send private message
Clansman
Tux's lil' helper
Tux's lil' helper


Joined: 10 Jan 2004
Posts: 140

PostPosted: Wed Jan 19, 2005 3:35 pm    Post subject: Reply with quote

here's the link for the most recent build

http://shayol.bartol.udel.edu/~rhdt/download/acpi_sbs-20050119.tar.gz

this is not for unexperienced users. documentation is not abundant.
one needs to patch the kernel just to export some symbols in drivers/acpi/ec.c and then just

modprobe i2c-dev
insmod i2c-acpi-ec.ko
insmod acpi-sbs.ko

and /proc/acpi/sbs appears with relevant information. also /proc/acpi/battery and /proc/acpi/ac_adapter appear as legacy proc files.

[]
_________________
http://www.pjvenda.org
Back to top
View user's profile Send private message
Clansman
Tux's lil' helper
Tux's lil' helper


Joined: 10 Jan 2004
Posts: 140

PostPosted: Wed Jan 19, 2005 4:38 pm    Post subject: Reply with quote

Chewieip wrote:
I've followed all notice from acpi-digest and I'm trying to patch my kernel. But I received always the same message:

Code:
/bin/sh: line 1: /home/chewie/acpi/acpi_sbs-20050118/.tmp_versions/i2c-acpi-ec.mod: Permiso denegado
/bin/sh: line 1: /home/chewie/acpi/acpi_sbs-20050118/.tmp_versions/acpi-sbs.mod: Permiso denegado
*** Warning: "i2c_del_adapter" [/home/chewie/acpi/acpi_sbs-20050118/i2c-acpi-ec.ko] undefined!
*** Warning: "i2c_add_adapter" [/home/chewie/acpi/acpi_sbs-20050118/i2c-acpi-ec.ko] undefined!
*** Warning: "acpi_ec_read" [/home/chewie/acpi/acpi_sbs-20050118/i2c-acpi-ec.ko] undefined!
*** Warning: "acpi_ec_write" [/home/chewie/acpi/acpi_sbs-20050118/i2c-acpi-ec.ko] undefined!


I've read to include EXPORT_FILE(acpi_ec_read) in the drivers/acpi/acpi-ec.c but it doesn't works. Do you have the same problem? How do you solve it?


please describe your exact steps. error messages don't mean much without context

[]
_________________
http://www.pjvenda.org
Back to top
View user's profile Send private message
Chewieip
Tux's lil' helper
Tux's lil' helper


Joined: 16 Jul 2004
Posts: 79
Location: Girona, Spain

PostPosted: Wed Jan 19, 2005 4:57 pm    Post subject: Reply with quote

that errors appears when I do the make from the files from the tar archive. I've patched the kernel with the diff file and when I do the make this warning appears. If I run the make install and the
Code:
 modprobe i2c-acpi-ec
doesn't work and returns that message:

[code]
FATAL: Error inserting i2c_acpi_ec (/lib/modules/2.6.10-gentoo-r4/i2c/i2c-acpi-ec.ko): Invalid module format
[code]

Anyone knows what could it be?[/code]
_________________
El único caso en que P= NP es cuando N = 1.
Back to top
View user's profile Send private message
Necro
n00b
n00b


Joined: 25 Jul 2004
Posts: 19

PostPosted: Thu Jan 20, 2005 3:24 pm    Post subject: Reply with quote

make and make install worked perfectly here
probing the i2c-acpi-ec module gave an error (the same one as described in the previous reply)
dmesg showed:
Code:
i2c_acpi_ec: Unknown symbol i2c_del_adapter
i2c_acpi_ec: Unknown symbol i2c_add_adapter
i2c_acpi_ec: Unknown symbol acpi_ec_write
i2c_acpi_ec: Unknown symbol acpi_ec_read


so the firts problem i came across was that i didnt have the i2c-core and i2c-dev module compiled in my kernel (be sure to compile them as modules)

Code:
Device Drivers --->
      I2C support --->
          <M> I2C Support
             <M> I2C Device Interface


then i modprobed i2c-dev and now dmesg only shows the last 2 errors
Code:
i2c_acpi_ec: Unknown symbol acpi_ec_write
i2c_acpi_ec: Unknown symbol acpi_ec_read


so modprobing i2c-acpi-ec still doesnt work
the next thing i tried was reinserting the module
Code:
# insmod i2c-acpi-ec.ko
insmod: error instering 'i2c-acpi-ec.ko' : -1 Unknown symbol in module

and dmesg shows this agin:
Code:
i2c_acpi_ec: Unknown symbol acpi_ec_write
i2c_acpi_ec: Unknown symbol acpi_ec_read

so that didnt work at all :p

modprobing the acpi-sbs module works fine though
Back to top
View user's profile Send private message
Necro
n00b
n00b


Joined: 25 Jul 2004
Posts: 19

PostPosted: Thu Jan 20, 2005 4:22 pm    Post subject: Reply with quote

ow my god, i got it working now :D

this is what i did:

1) download the source from http://shayol.bartol.udel.edu/~rhdt/download/acpi_sbs-20050119.tar.gz

2) Patch the kernel
Code:
# cd /usr/src/linux
# patch -d1 < [PATH_TO_SOURCE]/acpi-ec-2.6.10.diff


3) Enabeling I2C support (be sure to compile as a module)
Code:
Device Drivers --->
      I2C support --->
          <M> I2C Support
             <M> I2C Device Interface

also, make sure you have disabled acpi battery and acpi ac adapter support in your kernel
they can be found in 'Power Management ---> ACPI ( ... ) ---> '

4) Compiling the kernel and booting into the new kernel (example shows a 2.6 kernel)
Code:
# make && make modules_install
# mount /boot
# cp System.map /boot/.... (whatever the system.map name is in your /boot)
# cp arch/i386/boot/bzImage /boot/.... (whatever the kernel image is in you /boot)
# umount /boot
# reboot


5) modprobing all the right modules
Code:
# modprobe i2c-dev
# modprobe i2c-acpi-ec
# modprobe acpi-sbs


6) enjoy :D

congratz to all who helped develop this, realy nice work :wink:
Back to top
View user's profile Send private message
Chewieip
Tux's lil' helper
Tux's lil' helper


Joined: 16 Jul 2004
Posts: 79
Location: Girona, Spain

PostPosted: Thu Jan 20, 2005 9:17 pm    Post subject: Reply with quote

Thank you all have done that driver! It works correctly now. It only rests to look for the throtle of my cpu.
_________________
El único caso en que P= NP es cuando N = 1.
Back to top
View user's profile Send private message
Skyhawk
n00b
n00b


Joined: 24 Jan 2005
Posts: 4
Location: The Netherlands

PostPosted: Thu Feb 03, 2005 11:28 am    Post subject: Reply with quote

Quote:
# patch -d1 < [PATH_TO_SOURCE]/acpi-ec-2.6.10.diff


I did this with the p1 option, because d1 give me an error. (not a directory)
Quote:
# patch -p1 < [PATH_TO_SOURCE]/acpi-ec-2.6.10.diff
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum