luisbocanegra / plasma-intel-gpu-monitor

KDE Plasma Widget that displays Intel GPU usage including wether or not video acceleration is being used.
https://www.pling.com/p/2128477
GNU General Public License v3.0
16 stars 1 forks source link
gpu-monitoring intel-gpu kde kde-plasma linux-desktop performance plasma plasma-applet plasma6 plasmoid video-acceleration

Intel GPU Monitor plasmoid

Plasma Widget that displays Intel GPU usage including wether or not video acceleration is being used

Screenshots

expanded

More Settings ![tooltip](screenshots/settings.png) Tooltip ![tooltip](screenshots/tooltip.png)

Requirements

  1. Create /etc/systemd/system/setcap_intel_gpu_top.service with 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
  2. Start & enable the service

    sudo systemctl enable --now setcap_intel_gpu_top.service
  3. In systems such as Ubuntu, performance events monitoring are disabled by default. For intel_gpu_top to work without root you need to set /proc/sys/kernel/perf_event_paranoid to 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.conf with the following content

      kernel.perf_event_paranoid = 2

    Finally, run intel_gpu_top to verify it works

Current & planned features

Installing

Manual install

[!IMPORTANT] The main branch was updated to support Plasma 6, to install from source in plasma 5 run git checkout kf5 before the install script.

  1. Install these dependencies (please let me know if I missed or added something unnecessary)

    cmake extra-cmake-modules libplasma intel-gpu-tools
  2. Run ./install.sh

Resources

Credits