Possible Duplicate:
How to check battery status using terminal?
I want to find out whether my laptop is plugged in to AC power or not using the command line. How can I do this?
I want to find out whether my laptop is plugged in to AC power or not using the command line. How can I do this? |
||||
|
|
This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
|
Run the following command in a terminal for getting detailed info:
If you just want the state do:
|
||||
|
|
|
Install acpi, then use E.g.
will show the information such as below and will update every 5 seconds.
Question is why would someone do this? Well, I have a laptop with broken LCD screen that I am now using as my bittorrent box. |
||||
|
|
|
||||
|