apm - battery indicator in linux
I am working on a module where in I have to read the power value (battery status) and pass the value to Gui. The linux box is using APM and typically if "cat /proc/apm" is used, then it should give all the info but in my case it is not happening. I also tried to open the driver and do ioctl to read the power value using C code but I am getting power value as '0'. There is no problem with the driver and when I do "top" I can see a PID with kapmd using the CPU resources.
Any suggestions regarding this?