Hi there,I replaced my former code with the implementation of libacpi, which takes the same steps (reads some files, splits lines by spaces, converts values) for me. I also cleaned up the APM code so that both ways (APM and ACPI) call a seperate function to return the status from the current percentage of battery level
As I'm not yet an etoile-developer I attach the changed code here for you to review. If there are no blatant mistakes, I can commit it to the trunk.
For this code to compile/link I installed libacpi/libacpi-dev (or the equivalent package on other linux Distributions, I' m using Debian right now) and added -lacpi to the SystemConfig Makefile.
Concerning the mentioned problem of the location of acpi information: Iibacpi hardcodes the location /proc/acpi and uses that. Maybe one has to override that behaviour when using customized kernels. If anyone is having problems with that behaviour, please tell me.
best regards, Lennart Melzer Am 24.02.2008 um 12:00 schrieb [EMAIL PROTECTED]:
Re: [Etoile-dev] Linux ACPI SCPower and PowerMenulet
SCPower_Linux.m
Description: Binary data
_______________________________________________ Etoile-dev mailing list [email protected] https://mail.gna.org/listinfo/etoile-dev
