Re: Re: Smart Battery System driver

Rich Townsend
2005-01-18T01:36:41Z

Pedro Venda wrote:

> The report:
>
> I've tried to load the module and it still has the mutual-exclusion
> problem with
> the acpi AC and battery drivers. How can that be fixed?
>
> With AC built-in the kernel, the module segfaults on insmod...

Not surprised, there's probably all manner of crap that happens when one
tries to mkdir /proc/acpi/ac_adapter more than once.

But I'm not sure why this is happening with the revised version of the
code (20050116); this version contains #ifndef directives to prevent the
legacy interfaces being compiled in if they are already in the kernel.
Are you sure your kernel configuration matches your currently-running
kernel?

> After removing the AC driver, it loads fine and reports good results.
> Appearently looks nice. Tried with and without battery. Both SBSEL, SBC
> and SB0
> values make sense.

Excellent!

>
> Don't know if it's still relevant, but here's a link for my version of the
> smartbattery.c userspace program. just "make" and test it. needs the
> i2c-dev and
> i2c-acpi-ec drivers.
>
> http://arrakis.dhis.org/linux/smartbattery/smartbattery-20050117.tar.gz

Thanks for the pointer, I'll try this out!

cheers,

Rich

-------------------------------------------------------
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