plasma-intel-gpu-monitor
plasma-intel-gpu-monitor copied to clipboard
KDE Plasma Widget that displays Intel GPU usage including wether or not video acceleration is being used.
Intel GPU Monitor
Plasma Widget that displays Intel GPU usage including wether or not video acceleration is being used
Screenshots

Settings

Tooltip

Requirements
-
intel-gpu-tools package
-
Giving
intel_gpu_topthe ability to use performance monitoring features usingsudo setcap cap_perfmon=+ep /usr/bin/intel_gpu_topevery reboot, or you can use the following Systemd Unit
-
Create
/etc/systemd/system/setcap_intel_gpu_top.servicewith the following:[Unit] Description=Set intel_gpu_top perfmon capabilities After=graphical.target [Service] ExecStart=/sbin/setcap cap_perfmon=+ep /usr/bin/intel_gpu_top Type=oneshot RemainAfterExit=yes [Install] WantedBy=graphical.target -
Start & enable the service
sudo systemctl enable --now setcap_intel_gpu_top.service -
In systems such as Ubuntu, performance events monitoring are disabled by default. For
intel_gpu_topto work without root you need to set/proc/sys/kernel/perf_event_paranoidto 2. Otherwise you may get an error like this:$ intel_gpu_top Failed to initialize PMU! (Permission denied) ...To solve this, lower the paranoid level to 2 by running
sudo sysctl kernel.perf_event_paranoid=2-
To make it permanent create the file
/etc/sysctl.d/99-sysctl-paranoid.confwith the following contentkernel.perf_event_paranoid = 2
Finally, run
intel_gpu_topto verify it works -
Current & planned features
[!IMPORTANT] Depending on the GPU model, some features may not be available, unsupported features will show a -1 value in the widget view. I will hide them in a later version.
- [x] Show General usage
- [x] Load, Frequency, Power consumption
- [x] Usage per engine (
Render/3D,Video & VideoEnhance,Blitter)
- [x] Show top clients (program names) per engine
- [x] Custom max clients (program names) to show in engine utilization
- [x] GPU selection
- [ ] Custom icons support
- [x] Show current engine load
- [x] With badge or text
- [x] With color dot
- [x] Custom engine utilization threshold to update icons
- [x] Show intel_gpu_top isn't available or doesn't have perfmon capabilities set
Installing
KDE Store
- Right click on the Panel/Desktop > Add or manage widgets > Add new... > Download new...
- Search for "Intel GPU Monitor", install and add it to your Panel/Desktop.
- Install from KDE Store or use
Get new widgets..
Manual install
[!IMPORTANT] The
mainbranch was updated to support Plasma 6, to install from source in plasma 5 rungit checkout kf5before the install script.
-
Install these dependencies (please let me know if I missed or added something unnecessary)
cmake extra-cmake-modules libplasma intel-gpu-tools -
Run
./install.sh
Support the development
-
If you like the project please consider donating/sponsoring this and my other open source work
-
Rate/review in the KDE Store
Resources
- IGT GPU Tools
- Perf events and tool security — The Linux Kernel documentation
- capabilities(7) - overview of Linux capabilities — Linux manual page
- setcap(8) - set file capabilities — Linux manual page
- No API/user accessible sysfs files to get GPU stats - drm/intel/issues
Credits
- Google LLC. / Pictogrammers for the panel icons