#fan #control #gtk #utility #linux #gui #think-pad

bin+lib tpfanctl

A nicer ThinkPad fan control app, written in Rust

1 unstable release

0.1.0 Jul 17, 2024

#2137 in Command line utilities

MPL-2.0 license

25KB
580 lines

TPFanSpeed

Just another ThinkPad fan control utility.

This one is written in Rust and GTK (no relm4, etc.).

Dependencies

  • lm_sensors (whichever package from your distribution that provides the sensors command)

the CLI

The CLI interface contains 2 binaries, tpfanctl and setfan. The help pages for these binaries are as follows:

A simple ThinkPad Fan control tool. pass `-h` for help.

Usage: tpfanctl [OPTIONS] <COMMAND>

Commands:
  temp     Print the CPU temperatures
  rpm      Print the fan's RPM
  fan      Print/Modify the fan's speed setting
  version  Print this program's version
  help     Print this message or the help of the given subcommand(s)

Options:
  -q, --quiet        do not print any information, except for errors.
      --extra-quiet  do not print anything, including errors.
  -h, --help         Print help
  -V, --version      Print version
A condensed version of the tpfanctl utility, that only sets the fan speed.

Usage: setfan <FANSPEED>

Arguments:
  <FANSPEED>  The fan speed in question

Options:
  -h, --help     Print helpA condensed version of the tpfanctl utility, that only sets the fan speed.

Usage: setfan <FANSPEED>

Arguments:
  <FANSPEED>  The fan speed in question

Options:
  -h, --help     Print help
  -V, --version  Print version
  -V, --version  Print version

Crate documentation

To be done.

the GUI

This one is still WIP. checkout the gui branch to see its development.

Dependencies

~5–13MB
~154K SLoC