A comprehensive GUI tool for managing NVIDIA GPU settings on Linux, specifically designed for Arch-based systems like CachyOS.
The NVIDIA GPU Control Panel provides a user-friendly interface for managing GPU settings that are typically configured via command-line tools. It addresses common needs such as preventing GPU downclocking during gaming, managing power consumption, controlling fan speeds, and creating performance profiles for different use cases.
This application solves the problem of manually configuring NVIDIA GPU settings through command-line tools. It provides:
- Clock Management: Lock GPU core clock speeds to prevent downclocking during gaming or demanding workloads
- Power Control: Adjust power limits to balance performance and power consumption
- Fan Control: Manually control fan speeds for optimal cooling (requires Coolbits)
- Profile Management: Save and quickly switch between different GPU configurations
- Multi-GPU Support: Manage multiple NVIDIA GPUs independently
- Settings Persistence: Automatically restore your preferred settings after reboot
Use this tool when you need to:
- Prevent GPU clock drops during gaming
- Optimize power consumption for your workload
- Control fan speeds manually for quieter or cooler operation
- Quickly switch between performance profiles (gaming, quiet, mining, etc.)
- Manage multiple NVIDIA GPUs with different settings
Set minimum and maximum GPU core clock speeds (210-3200 MHz) to lock the GPU to a specific performance range. This prevents the GPU from downclocking, providing consistent performance during gaming or other demanding applications.
- Core clock management with validation against GPU capabilities
- Memory clock offset adjustment (-2000 to +2000 MHz)
- Clock lock/unlock functionality
- Real-time clock speed monitoring
- Per-GPU clock settings
Control GPU power consumption to balance performance and power draw. Useful for reducing heat output, power bills, or optimizing for specific workloads.
- Power limit control (100-600W, automatically adjusted to GPU capabilities)
- Persistence mode toggle (keeps GPU initialized for faster response)
- Performance mode selection (Adaptive, Maximum Performance, Auto)
- Real-time power draw monitoring
- Temperature monitoring with visual warnings
Manually control GPU fan speeds for optimal cooling or quieter operation. Requires Coolbits to be enabled in your X configuration.
- Manual fan speed control (0-100%)
- Automatic fan control mode (GPU default)
- Coolbits detection and status display
- Real-time fan speed monitoring
- Safety warnings for low fan speeds
Real-time monitoring of GPU statistics to help you understand current GPU state and make informed decisions about settings.
- Current clock speeds (graphics and memory)
- Temperature display with color-coded warnings
- Power draw and power limit
- GPU and memory utilization (0-100%)
- Performance state information (P0-P12)
- Detailed monitoring tab with full nvidia-smi output
- Auto-refresh capability (2-second intervals)
Quick profiles for common use cases, plus the ability to save and load custom profiles.
Quick Profiles:
- Gaming: Maximum performance (2400-2850 MHz, 450W)
- Balanced: Default adaptive clocking for general use
- Quiet: Low power for silent operation (210-1500 MHz, 250W)
- Mining: Optimized for cryptocurrency mining workloads
Custom Profiles: Save your own configurations and load them with a single click or keyboard shortcut.
- Keyboard Shortcuts: Quick access to common functions
- Comprehensive Tooltips: Detailed help text on all controls
- Visual Feedback: Color-coded indicators for temperature, fan speed, and performance
- System Tray Integration: Minimize to tray, quick access from system tray
- Settings Persistence: Automatic saving of settings per-GPU across reboots
- Multi-GPU Support: Switch between GPUs with a dropdown selector
- Systemd Service: Optional autostart service for settings restoration
- Desktop Entry: Integration with application menus (KDE Plasma, GNOME, etc.)
- Help System: Built-in help dialog with shortcuts and tips
- Operating System: Linux (Arch-based recommended, but works on any Linux with NVIDIA drivers)
- GPU: NVIDIA GPU with proprietary drivers installed
- Python: Version 3.6 or higher
The following packages are required:
| Package | Purpose | Arch Package |
|---|---|---|
| PyQt6 | GUI framework | python-pyqt6 |
| Polkit | Privilege escalation | polkit |
| nvidia-utils | Provides nvidia-smi command | nvidia-utils |
| nvidia-settings | Advanced GPU control features | nvidia-settings |
Optional Dependencies:
nvidia-dkms- For kernel module support (DKMS variant)
Before installation, verify your system meets the requirements:
# Check NVIDIA drivers
nvidia-smi
# Check Python version
python3 --version # Should be 3.6 or higher
# Check PyQt6 availability
python3 -c "import PyQt6" # Should not errorThis method creates a proper Arch Linux package that can be managed with pacman.
# Clone the repository
git clone https://github.com/RitzDaCat/nvidia-control-gui.git
cd nvidia-control-gui
# Build and install
makepkg -si
# Or using Makefile
make installBenefits: Package is tracked by pacman, easy to update or remove, dependencies handled automatically.
Quick installation script for manual setup.
chmod +x install.sh
./install.shThe script will:
- Check system requirements
- Install dependencies via pacman
- Set up application files
- Create desktop entry
- Optionally configure autostart
Benefits: Simple, interactive, creates uninstaller script.
Once published to AUR:
yay -S nvidia-control-gui
# or
paru -S nvidia-control-guiSee INSTALL.md for detailed installation instructions, troubleshooting, and post-installation setup.
sudo pacman -R nvidia-control-guiThis removes all installed files except user configuration files in ~/.config/nvidia-control/.
# Use the uninstaller script
chmod +x uninstall.sh
./uninstall.sh
# Or use the installed uninstaller
nvidia-control-uninstallThe uninstaller will ask if you want to remove configuration files.
The application can be started in three ways:
- Terminal: Run
nvidia-control-guifrom the command line - Application Menu: Look for "NVIDIA GPU Control" in your desktop environment's application menu
- System Tray: If running, double-click the tray icon to show/hide the window
Keyboard shortcuts provide quick access to common functions:
| Shortcut | Action |
|---|---|
F5 |
Refresh GPU information |
Ctrl+L |
Apply clock lock settings |
Ctrl+R |
Reset clocks to default |
Ctrl+S |
Save current settings as profile |
Ctrl+O |
Load saved profile |
Ctrl+1 |
Switch to Clock Control tab |
Ctrl+2 |
Switch to Power Management tab |
Ctrl+3 |
Switch to Fan Control tab |
Ctrl+4 |
Switch to Profiles tab |
Ctrl+5 |
Switch to Monitoring tab |
F1 |
Show help dialog |
Problem: GPU downclocks during gaming, causing inconsistent performance.
Solution: Lock the GPU to a specific clock range.
- Go to the Clock Control tab
- Set your desired minimum clock (recommended: 2400+ MHz for RTX 4090)
- Set your desired maximum clock (typically 2850 MHz)
- Click Apply Clock Settings (or press
Ctrl+L)
The GPU will now maintain clocks within this range, preventing downclocking. Use Reset to Default (or Ctrl+R) to remove the lock.
Problem: GPU consumes too much power or generates too much heat.
Solution: Lower the power limit.
- Go to the Power Management tab
- Adjust the power limit slider to a lower value (e.g., 300W instead of 450W)
- Click Apply Power Limit
This caps maximum power consumption, reducing heat output and power draw. Monitor temperatures to ensure adequate cooling.
Problem: GPU fan is too loud or not cooling adequately.
Solution: Manual fan control (requires Coolbits setup).
- First, enable Coolbits in your X configuration (see Coolbits Setup)
- Restart X server or reboot
- Go to the Fan Control tab
- Select Manual Fan Control
- Adjust the fan speed slider (recommended: 30-70% for balance)
- Click Apply Fan Speed
Warning: Very low fan speeds (<20%) may cause overheating. Monitor temperatures carefully.
Problem: Need to quickly switch between different GPU configurations for different use cases.
Solution: Use profiles.
Quick Profiles:
- Select a profile from the Profiles tab
- Click the profile button (Gaming, Balanced, Quiet, or Mining)
- Confirm the application
Custom Profiles:
- Configure your desired settings (clocks, power, performance mode)
- Go to Profiles tab
- Click Save Current Settings (or press
Ctrl+S) - To load later, click Load Saved Profile (or press
Ctrl+O)
Problem: System has multiple NVIDIA GPUs that need different settings.
Solution: Use the GPU selector.
- The GPU selector dropdown appears automatically when multiple GPUs are detected
- Select the GPU you want to configure from the dropdown in the header
- Configure settings independently for each GPU
- Settings are automatically saved per-GPU (
settings_gpu0.json,settings_gpu1.json, etc.)
Problem: Settings are lost after reboot.
Solution: Enable settings restoration.
- Go to Settings menu → Restore All Settings on Startup
- Check the option to enable automatic restoration
- Your settings will be restored automatically on next startup
Alternatively, generate a systemd service file:
- Go to Settings menu → Generate Systemd Service
- Follow the instructions to install and enable the service
Coolbits is required for fan control and some advanced features. It's an X configuration option that enables additional GPU control capabilities.
Without Coolbits, the NVIDIA driver restricts certain operations for safety. Enabling Coolbits allows:
- Manual fan control
- Power limit adjustment (on some systems)
- Advanced overclocking features
-
Create X11 config directory (if it doesn't exist):
sudo mkdir -p /etc/X11/xorg.conf.d
-
Create or edit the NVIDIA config file:
sudo nano /etc/X11/xorg.conf.d/20-nvidia.conf
-
Add the following configuration:
Section "Device" Identifier "NVIDIA Card" Driver "nvidia" Option "Coolbits" "4" EndSection
-
Restart X server or reboot:
- Restart your display manager (e.g.,
sudo systemctl restart sddm) - Or simply reboot:
sudo reboot
- Restart your display manager (e.g.,
Different Coolbits values enable different features:
4: Manual fan control8: Power limit adjustment12: Fan control + Power limit28: Full overclocking support (fan, power, voltage, clock offsets)
Recommendation: Start with 4 for fan control. Increase if you need additional features.
After enabling Coolbits and restarting, check the Fan Control tab in the application. The Coolbits status should show "Enabled" in green.
Symptoms: Operations fail with "Command Failed" error messages.
Possible Causes and Solutions:
-
Missing root privileges:
- Ensure
polkitis installed:pacman -Q polkit - Verify
pkexecis available:which pkexec - You may need to enter your password when prompted
- Ensure
-
NVIDIA drivers not installed:
- Install drivers:
sudo pacman -S nvidia nvidia-utils - Verify:
nvidia-smishould work
- Install drivers:
-
Missing nvidia-settings:
- Install:
sudo pacman -S nvidia-settings - Required for fan control and memory offset
- Install:
Symptoms: Application shows "GPU: Detecting..." or no GPU information.
Possible Causes and Solutions:
-
NVIDIA drivers not loaded:
# Check if drivers are loaded lsmod | grep nvidia # If not, install and load drivers sudo pacman -S nvidia nvidia-utils sudo modprobe nvidia
-
Driver version incompatible:
# Check driver version nvidia-smi --query-gpu=driver_version --format=csv # Update if needed sudo pacman -Syu nvidia nvidia-utils
-
GPU not visible to system:
# List all GPUs nvidia-smi --list-gpus # If empty, check hardware connection
Symptoms: Clock lock settings don't seem to take effect.
Possible Causes and Solutions:
-
Clock values out of GPU range:
- Check GPU's supported clock range
- Try more conservative values
- Some GPUs have hardware limitations
-
Thermal throttling:
- Monitor temperature (should be <80°C)
- Ensure adequate cooling
- GPU may downclock if overheating
-
Power limit too low:
- Increase power limit to allow higher clocks
- Check if power limit is sufficient for desired clocks
Symptoms: Manual fan control doesn't work or shows errors.
Possible Causes and Solutions:
-
Coolbits not enabled:
- Verify Coolbits is enabled in X config
- Restart X server or reboot after enabling
- Check Coolbits status in the Fan Control tab
-
GPU doesn't support manual fan control:
- Some GPUs have locked fan control
- Check GPU documentation
- Use automatic mode instead
-
nvidia-settings not installed:
- Install:
sudo pacman -S nvidia-settings - Required for fan control
- Install:
Symptoms: Application doesn't launch or crashes immediately.
Possible Causes and Solutions:
-
Python version too old:
python3 --version # Should be 3.6 or higher -
PyQt6 not installed:
python3 -c "import PyQt6" # Should not error sudo pacman -S python-pyqt6
-
Missing dependencies:
# Check all dependencies pacman -Q python python-pyqt6 polkit nvidia-utils nvidia-settings -
Check error messages:
- Run from terminal:
nvidia-control-gui - Read error output for specific issues
- Run from terminal:
Symptoms: Application doesn't show in application launcher.
Solution:
-
Update desktop database:
sudo update-desktop-database
-
Rebuild KDE menu cache:
# For KDE 5 kbuildsycoca5 --noincremental # For KDE 6 kbuildsycoca6 --noincremental
-
Restart Plasma:
kquitapp5 plasmashell && kstart5 plasmashell -
Or use the provided script:
./fix-kde-menu.sh
Problem: RTX 4090 experiences aggressive downclocking.
Solution:
- Set minimum clock to 2400+ MHz to prevent aggressive downclocking
- Ensure power limit is set appropriately (450W recommended)
- Monitor thermal conditions - GPU may downclock due to temperature
- Use "Prefer Maximum Performance" mode for consistent clocks
- Consider enabling persistence mode for faster response
Reference for where files are installed and stored:
| Component | Location |
|---|---|
| Application | /opt/nvidia-control/nvidia_control_gui.py |
| Wrapper Script | /usr/bin/nvidia-control-gui |
| Desktop Entry | /usr/share/applications/nvidia-control.desktop |
| Systemd Service | /usr/lib/systemd/user/nvidia-control.service |
| User Config Directory | ~/.config/nvidia-control/ |
| Settings (per GPU) | ~/.config/nvidia-control/settings_gpu*.json |
| Clock Locks (per GPU) | ~/.config/nvidia-control/clock_lock_status_gpu*.txt |
This application includes security measures to protect against common vulnerabilities:
- Input Validation: All user inputs are validated before use
- Path Validation: File paths are validated to prevent directory traversal attacks
- JSON Validation: JSON structures are validated before parsing
- File Size Limits: Limits prevent denial-of-service attacks via large files
- Atomic Operations: File writes use atomic operations to prevent corruption
- Command Whitelist: Only allowed commands (nvidia-smi, nvidia-settings) can be executed
- GPU ID Validation: GPU IDs are validated before use in commands
For details on security implementation, see the code documentation.
Contributions are welcome. Please see CONTRIBUTING.md for guidelines.
# Clone repository
git clone https://github.com/RitzDaCat/nvidia-control-gui.git
cd nvidia-control-gui
# Install dependencies
sudo pacman -S python python-pyqt6 polkit nvidia-utils nvidia-settings
# Run directly
python3 nvidia_control_gui.py- Follow PEP 8 for Python code
- Use type hints where appropriate
- Add docstrings to all public methods
- Test changes thoroughly before submitting
This project is licensed under the GPL3 License - see the LICENSE file for details.
Important Warnings:
- Incorrect clock or voltage settings can cause system instability
- Excessive overclocking may damage your GPU
- Always monitor temperatures when adjusting settings
- Use profiles as a starting point and adjust carefully
- Very low fan speeds may cause overheating - use with caution
- The application includes safety checks, but use at your own risk
Additional documentation is available:
- INSTALL.md - Detailed installation guide
- docs/PACKAGING.md - Arch Linux packaging guide
- docs/AUR-SUBMISSION.md - AUR submission guide
- CHANGELOG.md - Version history and changes
- CONTRIBUTING.md - Contribution guidelines
- Built with PyQt6
- Uses
nvidia-smiandnvidia-settingsfor GPU control - Designed for Arch Linux and CachyOS
- Created for the Linux gaming and power user community