Ubuntu – Find the power supply hardware information for a PC using Ubuntu’s command-line

command linehardwarepower-management

Is there a tool to print the power supply information, such as brand/model name and maximum (supported) output voltage? I need to add a second GPU and I would like to make sure it does support the extra voltage.

P.s: I already installed a secondary GPU when I had the access and I rushed outside the server room. When I later checked, the second GPU was not recognized (now that I don't have the access anymore!! :P) I wanted to make sure if the problem was the lack of power voltage as the GPU was working on another machine and is not faulty.

Currently, I don't have physical access to the PC currently (ssh only).

I have tried to see other posts, also the other exisiting tools, i.e., sudo dmidecode -t 39, sensors, and ipmitool, but none of them show the information I'm looking for.

Best Answer

To find the power supply information, use following command:

sudo dmidecode --type 39

The below command outputs a lot status and statistical information about the battery. The /org/... path can be found with the command upower -e (--enumerate).

upower -i /org/freedesktop/UPower/devices/battery_BAT0

The one I use mostly is this one :

sudo apt-get install lm-sensors
sudo sensors-detect 

Choose YES to all.

sudo service kmod start

Use :

sensors

or

watch sensors