From 033ad68dfbb941543b1c661beb7ebaaad871fee3 Mon Sep 17 00:00:00 2001 From: tiyn Date: Thu, 27 Feb 2025 04:47:54 +0100 Subject: [PATCH] linux: added hardware entry --- wiki/linux/hardware.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 wiki/linux/hardware.md diff --git a/wiki/linux/hardware.md b/wiki/linux/hardware.md new file mode 100644 index 0000000..6216478 --- /dev/null +++ b/wiki/linux/hardware.md @@ -0,0 +1,15 @@ +# Hardware + +This entry focusses on various hardware components of a desktop PC or a laptop. + +## Battery + +The battery of a notebook can be inspected by using the `upower` command. +To use it the tool needs to be installed. +In most [Linux](/wiki/linux.md) distributions this is bundled in a package of the same name. +A usage example is shown in the following command. +It will show the state, voltage, percentage and many other information about a given battery. + +```sh +upower -i /org/freedesktop/UPower/devices/battery_BAT0 +```