Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is it possible to plug off the laptop by a command from the laptop, rather than by removing the adapter from power source?

I am on Windows Seven, but I will also welcome any note regarding the existence of such command for some version of Linux.

My laptop is hp g71.

share|improve this question

migrated from Sep 14 '11 at 5:27

This question came from our site for professional and enthusiast programmers.

closed as off topic by Sven, Wesley, Ward, Chopper3 Sep 14 '11 at 5:51

Questions on Server Fault are expected to relate to server, networking, or related infrastructure administration within the scope defined by the community. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about reopening questions here.If this question can be reworded to fit the rules in the help center, please edit the question.

This doesn't seem to be possible.
Look at the following question How can I programmatically stop a notebook battery from charging

One more thing to notice is that the battery charging is independent of OS and also happens when the System is Powered Off. Thus if there be any setting of kind it would need to be done in firmware or via a proprietary software from the laptop vendor which changes the firmware entries.

I also have an HP Laptop and haven't seen any such utility on the HP Software downloads page.

share|improve this answer
Looks like I misunderstood I should remove my answer then. – Jesus Ramos Sep 14 '11 at 5:20

Not the answer you're looking for? Browse other questions tagged or ask your own question.