Specialized tool for AMD-primary + NVIDIA-secondary hybrid GPU systems
This script provides a Zenity-based GUI to manage OpenCL configurations on hybrid GPU systems with AMD as the primary GPU and NVIDIA as the secondary GPU. It's ideal for content creators and professionals who need to switch between GPU configurations for different workloads.
- Hybrid GPU Management:
- Specifically designed for AMD-primary + NVIDIA-secondary setups
- Switch between NVIDIA-only, AMD-only, or both GPUs
- DaVinci Resolve Fix:
- Resolves library conflicts in hybrid setups
- Nouveau Control:
- Blacklist/whitelist open-source NVIDIA driver
- System Monitoring:
- Integrated nvtop GPU monitoring
- System info display (lspci + driver versions)
- Configuration Persistence:
- Remembers last used configuration
- Designed specifically for AMD-primary + NVIDIA-secondary configurations
- Not recommended for NVIDIA-primary setups
- Always back up important data before use
- Review code if you have security concerns
- Licensed under GNU GPL v3.0 or later
- Trademarks: NVIDIA, AMD, and DaVinci Resolve are trademarks of their respective owners
- This project is not affiliated with or endorsed by any hardware manufacturer
# Core dependencies
sudo apt install zenity
# Recommended for full functionality
sudo apt install nvtop pciutils kmod policykit-1Run from desktop session:
opencl-switcher- OPENCL_CUDA - NVIDIA only (ideal for Resolve)
- OPENCL_AMD - AMD only (optimized for gaming)
- OPENCL_BOTH - Enable both GPUs
- NOUVEAU_BLACKLIST - Disable Nouveau driver
- NOUVEAU_WHITELIST - Re-enable Nouveau
- DAVINCI_FIX - Apply Resolve compatibility fix
- NVTOP - Launch GPU monitoring tool
- INFO - Show system GPU/driver info
- REBOOT - Apply changes
- EXIT - Close application
graph LR
A[OPENCL_CUDA] --> B[DAVINCI_FIX] --> C[RESTART]
graph LR
D[OPENCL_AMD] --> E[Launch Game]
graph LR
F[OPENCL_BOTH] --> G[NVTOP Monitor] --> H[Run Application]
- AMD GPU connected to primary display output
- NVIDIA GPU used for compute/rendering only
- Script modifies:
- OpenCL vendor files:
/etc/OpenCL/vendors - Nouveau config:
/etc/modprobe.d/blacklist-nouveau.conf
- OpenCL vendor files:
- Configuration:
~/.config/opencl-switcher.conf - Log File:
/tmp/opencl-switcher-gui.log - DaVinci Fix: Moves libraries in
/opt/resolve/libstooldlibs/
| Issue | Solution |
|---|---|
| Display not working after changes | Use console: sudo opencl-switcher --nouveau-whitelist |
| Resolve still crashing | Apply both OPENCL_CUDA and DAVINCI_FIX |
| AMD GPU not detected | Try OPENCL_BOTH mode + install mesa-opencl-icd |
- License: GNU GPL v3.0
- Credits:
- TechMimic YouTube for DaVinci fix concept
- Open Source community for continuous improvements
- Disclaimer: Use at your own risk. Not responsible for system damage.
- Troubleshooting: Check
/tmp/opencl-switcher-gui.log - Issues: GitHub issues with system details
- Contributions: PRs welcome under GPLv3+
Designed specifically for AMD-primary + NVIDIA-secondary hybrid systems


