lkml.org 
[lkml]   [2004]   [Jan]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] Laptop-mode v7 for linux 2.6.1
Dax Kelson wrote:
>>>There seems to be a typo in the battery.sh script. It
>>>reads /proc/acpi/ac_adapter/AC/state to determine the AC Adaptor state, but
>>>this is in the ACAD directory instead of the AC directory.
>>
>>Hmmm, Dax says it works for him, and I don't have an ac_adapter on my
>>machine because I don't own a laptop. Dax, is this a typo or is it
>>actually called AC on your machine?
>
> On my Dell Inspiron 4150 it is called AC not ACAD.

Hmmmm. Does anybody have any idea why these names differ? Googling for
acpi/ac_adapter gives me hits on a number of different programs that
check for ac_adapter/*/state. I've seen AC, ACAD, 0 and 1 for names, so
they're really pretty variable. So, a wildcard seems appropriate. Dax,
if you agree, would you test + send in a patch to correct this? I can't
do it myself because I can't test it. TIA!

-- Bart
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 14:00    [W:0.050 / U:0.088 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site