Can somebody please help me with the c code for monitoring System power,that is how to check if a pc or laptop is running on power or battery
mukorera
16
Newbie Poster
Recommended Answers
Jump to PostI don't know about Windows (or Mac OS...), but if the machine is running Linux, there should be something in /proc that can help you. On my laptop (running Arch Linux) the files
state
andinfo
in/proc/acpi/battery/BAT1
had pretty much all the information about the battery, including whether or …
All 3 Replies
Reply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.