A command-line tool and optional GUI to adjust fan speed on Dell G15 series of laptops.
This tool lets you modify the fan status on Dell G15 series of laptops using ACPI commands. G-Mode is a toggle between Game Shift and Balanced mode, as documented in the ArchWiki.
| Model | Status |
|---|---|
| G15-5535 (AMD) | Works-Tested |
| G15-5530 (Intel) | Works-Tested |
| G15-5525 (AMD) | Works-Archwiki |
| G15-5520 (Intel) | Works-Archwiki |
| G15-5511 (Intel) | Works-Tested |
Note for Intel Users:
If you encounter issues, you may need to edit g15-fan-cli.py with a text editor and replace all instances of AMW3 with AMWW.
- Command-Line Interface: Control fan modes directly from your terminal.
- Optional GUI Dashboard: A graphical interface to monitor system stats (CPU Temp, RAM, Fan RPM, Battery Health) and control fan modes with a single click.
acpi_calloracpi_call-dkmskernel module- Python 3
python3-pexpectpkexecfor root privileges (can be replaced withsudoif running from a terminal)- bash shell
python3-pyqt6python3-psutil
On Debian/Ubuntu and derivatives:
sudo apt update
sudo apt install acpi-call-dkms python3-pexpect python3-pyqt6 python3-psutilOn Arch Linux and derivatives:
sudo pacman -Syu acpi_call python-pexpect python-pyqt6 python-psutil- Clone this repository or download the
g15-fan-cli.pyfile. - Move it to
~/.local/binor another directory in yourPATH. - Make it executable:
chmod +x ~/.local/bin/g15-fan-cli.py - Run the following command:
Replace
g15-fan-cli.py <mode>
<mode>with one of the following options:b: Balanced modep: Performance modeq: Quiet modeg: G-Mode (toggles between Game Shift and Balanced)h: Help menu
- Ensure all dependencies (CLI and GUI) are installed.
- Place both
g15-fan-cli.pyandg15-gui.pyin the same directory (e.g.,~/.local/bin). - Make the GUI script executable:
chmod +x ~/.local/bin/g15-gui.py - Launch the GUI by running:
g15-gui.py
You can bind the GUI or a CLI command to a keyboard shortcut for quick access.
- Go to
Settings -> Keyboard -> View and Customize Shortcuts -> Custom Shortcuts. - Click
Add Shortcut. - Name:
Dell G15 Control - Command:
/home/your-username/.local/bin/g15-gui.py(to launch the GUI) OR/home/your-username/.local/bin/g15-fan-cli.py g(to toggle G-Mode). - Shortcut: Set your desired key combination (e.g.,
F9orSuper+F).
- The Game Shift ACPI commands were taken from the ArchWiki page for Dell G15 5525.
- The rest of the ACPI commands were extracted from the Dell-G15-Controller GitHub repository.