Skip to main content

A Dell thermal management GUI to control fan speeds and monitor temperatures.

Project description

I8KGUI

GitHub Workflow Status GitHub release (latest by date)

Introduction

A Dell thermal management GUI to control fan speeds and monitor temperatures. Information is taken from dell-smm-hwmon, i8kutils, Sysfs and (SM)BIOS - created as a quick hack for my own needs (screenshots may be of an older version).

i8k bios cores turbo settings info

i8kgui uses dell-smm-hwmon, i8kutils and Sysfs to gather information such as CPU temperature and fan speeds. It also supports thermal management using (SM)BIOS modes.

Features

  • Displays CPU temperature, fan speed(s) and fan mode(s)
  • Displays the current CPU frequency
  • Displays CPU load
  • Displays individual CPU core frequencies and temperatures
  • Displays CPU Turbo information
  • Gathers metrics from the dell_smm_hwmon kernel module via Sysfs, instead of using /proc/i8k
  • Shows the currently active i8kutils configuration being used
  • Supports (SM)BIOS thermal management modes via libsmbios
  • Loads cpupower-gui (if installed) when CPU Governor is clicked
  • Option to display CPU frequency as either the highest (default) or the average value for all CPU cores
  • Adds polkit action configurations to allow users to change fan modes without a password

Installation

Automated Installation (Recommended)

This version has only been tested on Ubuntu 20.04/23.04 (it should also work on 22.04) and with a Dell laptop (XPS 7590). The installation script undertakes a system-wide installation with all optional components (i.e. cpupower-gui and undervolt). i8kgui itself is installed within a users $HOME directory. Please see below for other install options.

git clone https://github.com/razman786/i8kgui
cd i8kgui
./install_i8kgui_ubuntu.sh

Automated Installation Options

Install option i8kutils Dell BIOS fan control libsmbios cpupower-gui undervolt
-all :heavy_check_mark: :heavy_check_mark: :heavy_check_mark: :heavy_check_mark: :heavy_check_mark:
-norm :heavy_check_mark: :heavy_check_mark: :heavy_check_mark:
-min :heavy_check_mark:
-fix :heavy_check_mark: :heavy_check_mark:
-smbios :heavy_check_mark: :heavy_check_mark:
-power :heavy_check_mark: :heavy_check_mark: :heavy_check_mark: :heavy_check_mark:

See ./install_i8kgui_ubuntu.sh -h for usage information.

Manual Installation

Prerequisites

This guide has only been tested on Ubuntu 20.04/23.04 and with a Dell XPS laptop.

The dell-smm-hwmon kernel module is required for basic functionality.

i8kutils

Please install and configure i8kutils from https://github.com/vitorafsr/i8kutils. On Ubuntu the following can be run:

sudo apt install i8kutils
Dell BIOS Fan Control (optional)

Some systems require this step, while others do not. For example, a Dell XPS 7590 needs the BIOS fan control installed, but a Dell Inspiron 5575 does not.

Please install Dell BIOS Fan Control from https://github.com/TomFreudenberg/dell-bios-fan-control and install it into /usr/bin/.

If you are not sure that you have GCC installed, please run this first sudo apt install build-essentials, then:

git clone https://github.com/TomFreudenberg/dell-bios-fan-control.git
cd dell-bios-fan-control
make
sudo cp dell-bios-fan-control /usr/bin

Please install this service file from https://github.com/gilbsgilbs/dell-bios-fan-control-git/blob/master/dell-bios-fan-control.service into /etc/systemd/system/

curl -O https://raw.githubusercontent.com/gilbsgilbs/dell-bios-fan-control-git/master/dell-bios-fan-control.service
sudo cp dell-bios-fan-control.service /etc/systemd/system/
sudo systemctl enable dell-bios-fan-control.service
libsmbios (optional)

If supported by your system, libsmbios will allow BIOS thermal modes to be changed, amongst other features. On Ubuntu, please install the following package to interface with (SM)BIOS information:

sudo apt install python3-libsmbios
cpupower-gui (optional)

On Ubuntu, install the following optional package to change the CPU Governor:

sudo apt install cpupower-gui
polkit actions (optional)

The polkit action files will allow thermal controls to be changed without requiring a user password. If your installation of i8kgui is frequently asking for a password, please do the following:

Using a text editor, change the I8KGUI_THERMAL_PATH placeholder in the i8kgui/polkit_actions/ubuntu/com.ubuntu.pkexec.i8kgui_thermal_control.policy file to the correct location, i.e. /home/someuser

To manually install the polkit action files, do the following:

sudo cp i8kgui/polkit_actions/ubuntu/* /usr/share/polkit-1/actions

Please note that, the installation script by default will use the polkit action files for Ubuntu. Polkit action files for Manjaro Linux (tested with version 22.1.3) are located in i8kgui/polkit_actions/manjaro.

i8kgui Installation

Using PyPI

On Ubuntu 20.04 and 22.04 use the following:

pip3 install i8kgui --user

For Ubuntu 23.04 the command needs to be altered:

pip3 install i8kgui --user --break-system-packages
Using Git
git clone https://github.com/razman786/i8kgui

On Ubuntu 20.04 and 22.04 use the following:

pip3 install . --user

For Ubuntu 23.04 the command is as follows:

pip3 install . --user --break-system-packages
Development version
git clone https://github.com/razman786/i8kgui
git checkout development && git pull
pip3 install . --user

Uninstall i8kgui

For Ubuntu 20.04 and 22.04 use the following:

pip3 uninstall i8kgui

For Ubuntu 23.04 use the following:

pip3 uninstall i8kgui --break-system-packages

Usage

Please ensure that you have configured i8kutils before starting!

Once i8kutils is correctly configured using the /etc/i8kmon.conf file, please run the following to enable the services if they are not already running.

sudo systemctl enable dell-bios-fan-control.service; sudo systemctl enable i8kmon.service

i8kgui can be loaded by searching in Ubuntu's Show Applications icon in the application dock. Optionally, i8kgui can be loaded from a terminal by executing i8kgui.

By default, i8kgui displays i8kutils information, however it does facilitate thermal management using the (SM)BIOS. If you enable this feature typically four fan modes will be available. Please note that, using 'Quiet', or 'Cool Bottom' modes will reduce performance due to CPU power capping. Changing (SM)BIOS thermal modes may require entering a user password, if polkit actions have not been configured.

Disabling (SM)BIOS thermal management in the settings will re-enable i8kutils's management and configuration.

Personal configuration

The i8kmon_sample_conf directory contains my personal i8kmon.conf configuration file, used on a Dell XPS 7590 (Intel i7, BIOS version 1.14.1).

Undervolt is installed using the following settings to avoid thermal throttling:

undervolt -v --gpu -0 --core -121 --cache -121 --uncore -121 --analogio 0 --temp 100

Known Working Systems

Systems that have been reported to be working:

  • Dell XPS 7590, Intel i7
  • Dell Inspiron 5575, AMD Ryzen 5 - thank you @yochananmarqos

Disclaimer

Please note the author takes no responsibility for any damage that occurs from using this software and/or configurations.

Issues and requests

Please open an issue here.

Credits

Delapouite for the Computer Fan Icon (CC BY 3.0)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

i8kgui-0.8.4.tar.gz (63.8 kB view details)

Uploaded Source

Built Distribution

i8kgui-0.8.4-py3-none-any.whl (60.5 kB view details)

Uploaded Python 3

File details

Details for the file i8kgui-0.8.4.tar.gz.

File metadata

  • Download URL: i8kgui-0.8.4.tar.gz
  • Upload date:
  • Size: 63.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for i8kgui-0.8.4.tar.gz
Algorithm Hash digest
SHA256 cdc876ffa5e77305194e8bdcea371c95c66f62c6fde7c2ba6fe424b314a5718e
MD5 719db8c58e7a6de2fc098c83ec43cd64
BLAKE2b-256 f9ddcb942e5f36a9e0c33dd65661352419a1aa885e30c5359f4c18769cd5fa41

See more details on using hashes here.

File details

Details for the file i8kgui-0.8.4-py3-none-any.whl.

File metadata

  • Download URL: i8kgui-0.8.4-py3-none-any.whl
  • Upload date:
  • Size: 60.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for i8kgui-0.8.4-py3-none-any.whl
Algorithm Hash digest
SHA256 8847f43d0b85cf2efbfccbe0a8bc21886b4390701f68bedb10bde8051b1a8585
MD5 9ec86589105a371a6e7d30f61826cbeb
BLAKE2b-256 330f17e6a06dcd7ff4e5c38cc34c6c06b0fc97338d4ce92b759b8afd2875195e

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page