public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
* Re: Battery alarm ->  was General Questions:
       [not found]     ` <4203D10A.3090306-OBnUx95tOyn10jlvfTC4gA@public.gmane.org>
@ 2005-02-04 18:14       ` Jeremy Moles
  0 siblings, 0 replies; 4+ messages in thread
From: Jeremy Moles @ 2005-02-04 18:14 UTC (permalink / raw)
  To: acpi-devel-TtF/mJH4Jtrk1uMJSBkQmQ

I'm not trying to hijack or anything, but since I posted "part" of whats
being pinged, I thought I might try and jump in on the good offers!

I have two _BPT, one per battery. This is the Method:

Method (_BTP, 1, NotSerialized) {
  SX10 ()
  SX30 (0x03)
  SX30 (0x01)
  SX32 (Arg0)
  SX11 ()
  SX12 ()
  Sleep (0xFA)
}

I have the spec PDF, I just haven't had time to really read through it.
Can anyone tell offhand what is wrong w/ mine that would cause it to not
generate noise when the battery is low? :)

I'm sure I'll get around to eventually, though. I plan on printing the
spec PDF this weekend, 4 pages per page, double sided. :)

> Rockefeller, Harry wrote:
> 
> <snip>
> 
> > 
> > My notebook, Uniwill N351S1, is - supposedly - both APM and ACPI 2.0
> > supported.  Would something as important as battery alarm simply not
> > be implemented in ACPI?
> 
> Certainly. Many manufacturers have broken ACPI implementations; as far 
> as they're concerned, if it works with Windows, then it "works". It's 
> probably the case that Windows polls the battery, rather than relying on 
> the alarm, so that broken implementations will still function.
> 
> > FWIW, /proc/acpi/battery/BAT0/info gives both design capacity warning
> > and low data.
> 
> These are fixed (non-settable) quantities, that have little to do with 
> the alarm.
> 
> > 
> > A 'grep BTP dsdt.dsl' turns up:      BTP0,     16,
> 
> But no _BTP, which means no alarm.
> 
> > 
> > Can I modify dsdt.dsl to add this ACPI function myself?
> 
> In principle, yes. If you like, I can have a look at your DSDT to see 
> how easy it would be to add in _BTP.
> 
> cheers,
> 
> Rich
> 
> 
> -------------------------------------------------------
> This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
> Tool for open source databases. Create drag-&-drop reports. Save time
> by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
> Download a FREE copy at http://www.intelliview.com/go/osdn_nl
> _______________________________________________
> Acpi-devel mailing list
> Acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
> https://lists.sourceforge.net/lists/listinfo/acpi-devel
-- 
Jeremy L. Moles
EmperorLinux
1-888-651-66
www.EmperorLinux.com
jeremy-LdSqz1EEwCk7YuNMryXyOw@public.gmane.org



-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl

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

* RE: Battery alarm ->  was General Questions:
@ 2005-02-04 19:36 Rockefeller, Harry
       [not found] ` <B774920D825C2D4880A3C1B0D6EF9418034150B4-YbQoUGCEyAW+LrQOllSzDQC/G2K4zDHf@public.gmane.org>
  0 siblings, 1 reply; 4+ messages in thread
From: Rockefeller, Harry @ 2005-02-04 19:36 UTC (permalink / raw)
  To: Acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f


> -----Original Message-----
> From: acpi-devel-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org 
> [mailto:acpi-devel-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org] On Behalf Of 
> Rich Townsend
> Sent: Friday, February 04, 2005 8:48 AM
> To: jeremy-9vekgGPT+OA7YuNMryXyOw@public.gmane.org; Acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
> Subject: Re: [ACPI] General Questions:

[snip]

> The 'alarm' feature implemented in Linux is actually mapped to the
_BTP 
> (battery trip point) of the ACPI specification. Section 10.2.2.4 of
this 
> spec indicates that a notify must be issued when the battery remaining

> capacity crosses this alarm level (either falling below or rising
above).

[snip]

> However, it only 
> works through the _BTP functionality. If this functionality is not 
> implemented in the DSDT -- or if the alarm level is set crazy low -- 
> then you lose the capability to get advanced warning of low-power 
> situations.

My DSDT used to have AML errors reported by exfldio, but with 2.6.10
kernel in FC3 not any more.  Today I've run iasl to disassemble and
reassemble dsdt.dat and no errors are reported.  Also, a simple cat of
/proc/acpi/battery/BAT0/alarm says "unsupported".
I apparently don't have the battery alarm feature.

My notebook, Uniwill N351S1, is - supposedly - both APM and ACPI 2.0
supported.  Would something as important as battery alarm simply not
be implemented in ACPI?
FWIW, /proc/acpi/battery/BAT0/info gives both design capacity warning
and low data.

A 'grep BTP dsdt.dsl' turns up:      BTP0,     16,

Can I modify dsdt.dsl to add this ACPI function myself?

Thanks.


-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl

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

* Re: Battery alarm ->  was General Questions:
       [not found] ` <B774920D825C2D4880A3C1B0D6EF9418034150B4-YbQoUGCEyAW+LrQOllSzDQC/G2K4zDHf@public.gmane.org>
@ 2005-02-04 19:46   ` Rich Townsend
       [not found]     ` <4203D10A.3090306-OBnUx95tOyn10jlvfTC4gA@public.gmane.org>
  0 siblings, 1 reply; 4+ messages in thread
From: Rich Townsend @ 2005-02-04 19:46 UTC (permalink / raw)
  To: Rockefeller, Harry, Acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f

Rockefeller, Harry wrote:

<snip>

> 
> My notebook, Uniwill N351S1, is - supposedly - both APM and ACPI 2.0
> supported.  Would something as important as battery alarm simply not
> be implemented in ACPI?

Certainly. Many manufacturers have broken ACPI implementations; as far 
as they're concerned, if it works with Windows, then it "works". It's 
probably the case that Windows polls the battery, rather than relying on 
the alarm, so that broken implementations will still function.

> FWIW, /proc/acpi/battery/BAT0/info gives both design capacity warning
> and low data.

These are fixed (non-settable) quantities, that have little to do with 
the alarm.

> 
> A 'grep BTP dsdt.dsl' turns up:      BTP0,     16,

But no _BTP, which means no alarm.

> 
> Can I modify dsdt.dsl to add this ACPI function myself?

In principle, yes. If you like, I can have a look at your DSDT to see 
how easy it would be to add in _BTP.

cheers,

Rich


-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl

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

* RE: Battery alarm ->  was General Questions:
@ 2005-02-04 20:20 Rockefeller, Harry
  0 siblings, 0 replies; 4+ messages in thread
From: Rockefeller, Harry @ 2005-02-04 20:20 UTC (permalink / raw)
  To: acpi-devel-TtF/mJH4Jtrk1uMJSBkQmQ

We all need a good laugh once in a while.
Just in case the humor is missed ...

[Grin] and another [Grin]

> -----Original Message-----
> From: acpi-devel-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org 
> [mailto:acpi-devel-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org] On Behalf Of 
> Jeremy Moles
> Sent: Friday, February 04, 2005 12:14 PM
> To: acpi-devel-TtF/mJH4Jtrk1uMJSBkQmQ@public.gmane.org
> Subject: Re: [ACPI] Battery alarm -> was General Questions:
> 
> I'm not trying to hijack or anything, but since I posted 
> "part" of whats
> being pinged, I thought I might try and jump in on the good offers!
> 
> I have two _BPT, one per battery. This is the Method:
> 
> Method (_BTP, 1, NotSerialized) {
>   SX10 ()
>   SX30 (0x03)
>   SX30 (0x01)
>   SX32 (Arg0)
>   SX11 ()
>   SX12 ()
>   Sleep (0xFA)
> }
> 
> I have the spec PDF, I just haven't had time to really read 
> through it.
> Can anyone tell offhand what is wrong w/ mine that would 
> cause it to not
> generate noise when the battery is low? :)
> 
> I'm sure I'll get around to eventually, though. I plan on printing the
> spec PDF this weekend, 4 pages per page, double sided. :)
> 
> > Rockefeller, Harry wrote:
> > 
> > <snip>
> > 
> > > 
> > > My notebook, Uniwill N351S1, is - supposedly - both APM 
> and ACPI 2.0
> > > supported.  Would something as important as battery alarm 
> simply not
> > > be implemented in ACPI?
> > 
> > Certainly. Many manufacturers have broken ACPI 
> implementations; as far 
> > as they're concerned, if it works with Windows, then it 
> "works". It's 
> > probably the case that Windows polls the battery, rather 
> than relying on 
> > the alarm, so that broken implementations will still function.
> > 
> > > FWIW, /proc/acpi/battery/BAT0/info gives both design 
> capacity warning
> > > and low data.
> > 
> > These are fixed (non-settable) quantities, that have little 
> to do with 
> > the alarm.
> > 
> > > 
> > > A 'grep BTP dsdt.dsl' turns up:      BTP0,     16,
> > 
> > But no _BTP, which means no alarm.
> > 
> > > 
> > > Can I modify dsdt.dsl to add this ACPI function myself?
> > 
> > In principle, yes. If you like, I can have a look at your 
> DSDT to see 
> > how easy it would be to add in _BTP.
> > 
> > cheers,
> > 
> > Rich

[snip]
 
> Jeremy L. Moles
> EmperorLinux
> 1-888-651-66
> www.EmperorLinux.com
> jeremy-LdSqz1EEwCk7YuNMryXyOw@public.gmane.org

[snip]

Go ahead and help Jeremy, his job may depend on it. ;-)


-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl

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

end of thread, other threads:[~2005-02-04 20:20 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-02-04 19:36 Battery alarm -> was General Questions: Rockefeller, Harry
     [not found] ` <B774920D825C2D4880A3C1B0D6EF9418034150B4-YbQoUGCEyAW+LrQOllSzDQC/G2K4zDHf@public.gmane.org>
2005-02-04 19:46   ` Rich Townsend
     [not found]     ` <4203D10A.3090306-OBnUx95tOyn10jlvfTC4gA@public.gmane.org>
2005-02-04 18:14       ` Jeremy Moles
  -- strict thread matches above, loose matches on Subject: below --
2005-02-04 20:20 Rockefeller, Harry

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