public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
* can't read battery, dsdt bugged?
@ 2004-11-23 15:53 ultrakorne
       [not found] ` <41A35CE6.90803-XtQPfPCVGG7srOwW+9ziJQ@public.gmane.org>
  0 siblings, 1 reply; 4+ messages in thread
From: ultrakorne @ 2004-11-23 15:53 UTC (permalink / raw)
  To: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f

Hi, i have a acer laptop (travelmate 4501LCi) and i have installed 
ubuntu warty 4.10 (kernel 2.6.8.1)
the battery applet didnt works... this because /proc/acpi/battery/ is empty!
ps -e | grep acpi
     5 ?        00:00:00 kacpid
  3977 ?        00:00:00 acpid

so i disassembled my dsdt to see if i get compiling errors.. i only get 
3 warnings. here comes the first question, i got only warning no 
errors.. so my dsdt is ok or the cause i cant read my battery is those 3 
warnings?

i tryed to fix this out, i fix the first, but not the last 2.

first warning:
dsdt.dsl   245:     Method (_WAK, 1, NotSerialized)
Warning  2026 -                ^ Reserved method must return a value (_WAK)

i fix this adding this line at the end of the involved method
Return(Package(0x02){0x00, 0x00})
just before the last }

the others to warning are on the same line:
dsdt.dsl  4508:                         Method (_STA, 0, NotSerialized)
Warning  2019 -                                    ^ Not all control 
paths return a value (_STA)

dsdt.dsl  4508:                         Method (_STA, 0, NotSerialized)
Warning  2026 -                                    ^ Reserved method 
must return a value (_STA)

this is a big if statment with an else Return (0x08)

i just remove the last else return and i left only the return...

now compiling error are 0. are those fixes correct?
and the most important thing, could those warnings be my problem... if 
not what should i check?



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2004-11-23 18:11 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-11-23 15:53 can't read battery, dsdt bugged? ultrakorne
     [not found] ` <41A35CE6.90803-XtQPfPCVGG7srOwW+9ziJQ@public.gmane.org>
2004-11-23 16:06   ` Pedro Venda
     [not found]     ` <41A36560.90701@paranoici.org>
     [not found]       ` <41A36560.90701-XtQPfPCVGG7srOwW+9ziJQ@public.gmane.org>
2004-11-23 16:52         ` Pedro Venda
     [not found]           ` <41A3709F.7020404@paranoici.org>
     [not found]             ` <41A3709F.7020404-XtQPfPCVGG7srOwW+9ziJQ@public.gmane.org>
2004-11-23 18:11               ` Pedro Venda

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox