public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
From: Bernard Blackham <bernard-4vSAtV5O1nc0n/F98K4Iww@public.gmane.org>
To: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
Subject: Re: Re: what is the worst laptop atm?
Date: Mon, 3 Jan 2005 21:44:45 +0800	[thread overview]
Message-ID: <20050103134445.GH4468@blackham.com.au> (raw)
In-Reply-To: <20050103133138.GO19199-kk6yZipjEM5g9hUCZPvPmw@public.gmane.org>

On Mon, Jan 03, 2005 at 02:31:38PM +0100, Bruno Ducrot wrote:
> > > Actually, I've been told that ACER is payed by Microsoft for not
> > > helping Linux support. Yes, it's hearsay but it sounded reliable to me
> > > at the time.
> > 
> > I do not think above is true. Acer wants to have their batteries
> > working in linux, they just do not want to hack their BIOSen.

Not wanting to add FUD, but mere fact here - I have an Acer
TravelMate 4052. Here is an excerpt from my original DSDT. Pay
careful attention to ECDY.

--snip--
Name(ECDY, 0x3)

[...]

Scope(\_SB_) {
    Device(PCI0) {
        Method(_INI) {
           If(LEqual(SCMP(\_OS_, "Microsoft Windows"), Zero)) {
               [...]
               Store(0x0, ECDY)
           }

    [... snip ...]

    Method(_BST) {
        Store("==Main Battery Status _BST==", Debug)
        If(LGreater(ECDY, 0x0)) {
            Decrement(ECDY)
            Notify(\_SB_.PCI0.LPC0.BAT1, 0x81)
        }
        If(LAnd(ECOK(), LEqual(ECDY, 0x0))) {
            [ ... main battery info function ... ]
--snip--

In non-ASL terms, ECDY is a counter that is initialised to 3. If the
OS starts with "Microsoft Windows", it is set to 0 instead. And the
DSDT will refuse to return the battery state the first n times,
where n is the value of ECDY.

This was quite an issue for me, as the daemon which hibernates my
laptop when the battery is low would hibernate the machine
immediately upon booting.

Is there a good reason why a DSDT should not return a battery status
the first 3 times to OS's other than Microsoft Windows? Maybe there
is, but fixing that "feature" hasn't broken anything yet for me. I'd
be interested to know if there might be a good reason though.

Full DSDT at http://dagobah.ucc.asn.au/things/tm4052.html if anybody
is interested.

Bernard.

-- 
 Bernard Blackham <bernard at blackham dot com dot au>


-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt

  parent reply	other threads:[~2005-01-03 13:44 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-12-27 16:52 what is the worst laptop atm? Bruno Ducrot
     [not found] ` <20041227165207.GB9606-kk6yZipjEM5g9hUCZPvPmw@public.gmane.org>
2004-12-27 17:00   ` Jeroen Wijnhout
     [not found]     ` <200412271800.31064.wijnhout-FT9nftu9LUxX9el/+yt6TA@public.gmane.org>
2004-12-27 17:12       ` Bruno Ducrot
     [not found]         ` <20041227171202.GC9606-kk6yZipjEM5g9hUCZPvPmw@public.gmane.org>
2004-12-27 19:50           ` Johan Vromans
2004-12-27 21:34           ` Jeroen Wijnhout
2004-12-28 10:35           ` Pedro Venda
2005-01-01 17:33           ` Pavel Machek
     [not found]             ` <20050101173359.GA2630-I/5MKhXcvmPrBKCeMvbIDA@public.gmane.org>
2005-01-03 16:10               ` Bruno Ducrot
     [not found]                 ` <20050103161033.GT19199-kk6yZipjEM5g9hUCZPvPmw@public.gmane.org>
2005-01-03 16:28                   ` Pavel Machek
     [not found]                     ` <20050103162857.GE5302-I/5MKhXcvmPrBKCeMvbIDA@public.gmane.org>
2005-01-03 16:59                       ` Bruno Ducrot
2005-01-04 19:10           ` Zdzisław A. Kaleta
     [not found]             ` <200501042010.36874.sanskryt-FWhLrETftxM@public.gmane.org>
2005-01-04 19:33               ` Norbert Preining
     [not found]                 ` <20050104193314.GA25653-DqSSrKF0TaySnEC3TeqHn5dqbFPxfnh/@public.gmane.org>
2005-01-04 20:57                   ` Zdzisław A. Kaleta
2004-12-27 20:10   ` Sergio Monteiro Basto
2004-12-27 20:12   ` Pedro Venda
     [not found]     ` <41D06CA6.30607-aHmAgkVUFT6Joy8PIJZ9VA@public.gmane.org>
2004-12-28 10:30       ` Bruno Ducrot
     [not found]         ` <20041228103019.GD9606-kk6yZipjEM5g9hUCZPvPmw@public.gmane.org>
2004-12-28 15:51           ` Johan Vromans
     [not found]             ` <m2is6mzaip.fsf-KjnUIgV0B0bak1Ioo/c9IoRWq/SkRNHw@public.gmane.org>
2004-12-28 16:54               ` Pedro Venda
2005-01-01 17:36               ` Pavel Machek
     [not found]                 ` <20050101173611.GB2630-I/5MKhXcvmPrBKCeMvbIDA@public.gmane.org>
2005-01-03 13:31                   ` Bruno Ducrot
     [not found]                     ` <20050103133138.GO19199-kk6yZipjEM5g9hUCZPvPmw@public.gmane.org>
2005-01-03 13:44                       ` Bernard Blackham [this message]
     [not found]                         ` <20050103134445.GH4468-4vSAtV5O1nc0n/F98K4Iww@public.gmane.org>
2005-01-03 14:55                           ` Bruno Ducrot
     [not found]                             ` <20050103145517.GR19199-kk6yZipjEM5g9hUCZPvPmw@public.gmane.org>
2005-01-04  2:37                               ` Bernard Blackham
2005-01-04 10:28                               ` Johan Vromans
2004-12-28  2:06   ` ultrakorne
2005-01-02  5:45   ` Nigel Cunningham

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20050103134445.GH4468@blackham.com.au \
    --to=bernard-4vsatv5o1nc0n/f98k4iww@public.gmane.org \
    --cc=acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox