This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Smart Battery System Help

Hello, I am currently putting together my first smart battery system for a linux machine and am having trouble properly recognizing whether my battery is charging or discharging. My goal is to have my program recognize the battery status and alert the user if the device becomes unplugged. My smart battery system is connected to my mother board through SMBus 1.1 and all sample code I have tried simply does not produce what I want.

So I would like to know what the easiest way to recognize charge state would be? I have seen some people suggest checking the CHARGER_MODE bit in BatteryMode(). How can I check that?

Thanks.