mirror of
https://github.com/tiyn/wiki.git
synced 2025-10-09 09:27:53 +02:00
58 lines
1.8 KiB
Markdown
58 lines
1.8 KiB
Markdown
# 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
|
|
```
|
|
|
|
Alternatively `acpi` can be used to achieve the same.
|
|
For this run the following command.
|
|
|
|
```sh
|
|
acpi -b
|
|
```
|
|
|
|
## Power Management
|
|
|
|
Tools, programs and guides to manage the power usage and improve battery life are described in the
|
|
[power management entry](/wiki/linux/power_management.md).
|
|
|
|
## (Liquid) Coolers
|
|
|
|
The viewing of temperatures of coolers aswell as the selection of RGB-settings can be achieved by
|
|
using [liquidctl](https://github.com/liquidctl/liquidctl).
|
|
|
|
## Temperature
|
|
|
|
To check the temperature the command `sensors` can be used which (on most distributions) is a part
|
|
of the `lm_sensors` package.
|
|
It will then display all the available temperature sensors available aswell as many other sensors
|
|
like the RPM for fans.
|
|
|
|
## ThinkPad TrackPoint
|
|
|
|
This section is based on a
|
|
[Reddit comment by zedbraxmen](https://www.reddit.com/r/thinkpad/comments/wjb8qz/configuring_trackpoint_in_wayland/).
|
|
|
|
The sensitivity and speed of the classic trackpoint on ThinkPads can be changed using UDEV rules.
|
|
The following lines are an example for a potential file `.rules` located at `/etc/udev/rules.d/`.
|
|
It could look something like the following.
|
|
The values for sensitivity and speed could be adjusted.
|
|
|
|
```txt
|
|
ACTION=="add",
|
|
SUBSYSTEM=="input",
|
|
ATTR{name}=="TPPS/2 IBM TrackPoint",
|
|
ATTR{device/sensitivity}="275",
|
|
ATTR{device/speed}="215",
|
|
```
|