Coder Social home page Coder Social logo

luisbocanegra / plasma-intel-gpu-monitor Goto Github PK

View Code? Open in Web Editor NEW
10.0 2.0 1.0 6.16 MB

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

Home Page: https://www.pling.com/p/2128477

License: GNU General Public License v3.0

CMake 2.85% Shell 1.16% QML 95.99%
kde performance gpu-monitoring intel-gpu kde-plasma linux-desktop plasma plasma-applet plasma6 plasmoid

plasma-intel-gpu-monitor's Introduction

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

Tooltip

tooltip

Requirements

  • intel-gpu-tools package

  • Giving intel_gpu_top the ability to use performance monitoring features using sudo setcap cap_perfmon=+ep /usr/bin/intel_gpu_top every reboot, or you can use the following Systemd Unit

  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

  • Show General usage
    • Load, Frequency, Power consumption
    • Usage per engine (Render/3D, Video & VideoEnhance, Blitter)
  • Show top clients (program names) per engine
    • Custom max clients (program names) to show in engine utilization
  • GPU selection
  • Custom icons support
  • Show current engine load
    • With badge
    • With color dot
  • Custom engine utilization threshold to update icons
  • Show intel_gpu_top isn't available or doesn't have perfmon capabilities set

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

plasma-intel-gpu-monitor's People

Contributors

luisbocanegra avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

seanec327

plasma-intel-gpu-monitor's Issues

Modify kernel.perf_event_paranoid parameter

In some distros such as Ubuntu, you have to set also the kernel.perf_event_paranoid parameter to 0 by the command sysctl or editing the sysctl.conf file; otherwise intel_gpu_tools cannot be executed with no sudo. Could you adding it to the readme file? Anyway, thanks for this work!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.