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 _at_ vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
References:
- [PATCH] Laptop-mode v7 for linux 2.6.1Bart Samwel
- Re: [PATCH] Laptop-mode v7 for linux 2.6.1Jan De Luyck
- Re: [PATCH] Laptop-mode v7 for linux 2.6.1Bart Samwel
- Re: [PATCH] Laptop-mode v7 for linux 2.6.1Dax Kelson
- Prev by Date: Re: 2.4.24 SMP lockups
- Next by Date: Re: [PATCH] Laptop-mode v7 for linux 2.6.1
- Previous by thread: Re: [PATCH] Laptop-mode v7 for linux 2.6.1
- Next by thread: Re: [PATCH] Laptop-mode v7 for linux 2.6.1
- Indexes:[Main][Thread]