Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S266130AbUALM77 (ORCPT ); Mon, 12 Jan 2004 07:59:59 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S266138AbUALM77 (ORCPT ); Mon, 12 Jan 2004 07:59:59 -0500 Received: from kluizenaar.xs4all.nl ([213.84.184.247]:7755 "EHLO samwel.tk") by vger.kernel.org with ESMTP id S266130AbUALM76 (ORCPT ); Mon, 12 Jan 2004 07:59:58 -0500 Message-ID: <40029A44.4030406@samwel.tk> Date: Mon, 12 Jan 2004 13:59:48 +0100 From: Bart Samwel User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.6b) Gecko/20031205 Thunderbird/0.4 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Dax Kelson CC: Jan De Luyck , linux-kernel@vger.kernel.org, Kiko Piris , Bartek Kania , Simon Mackinlay Subject: Re: [PATCH] Laptop-mode v7 for linux 2.6.1 References: <3FFFD61C.7070706@samwel.tk> <200401121045.56749.lkml@kcore.org> <40026FEC.4040707@samwel.tk> <1073911834.2892.0.camel@mentor.gurulabs.com> In-Reply-To: <1073911834.2892.0.camel@mentor.gurulabs.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1115 Lines: 24 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/