
Plasma 5 Monitoring driver gpu intel nvidia prime
Source (link to git-repo or to original if based on someone elses unmodified work): Add the source-code for this project on opencode.net
This is a simple widget that shows the status of your video graphics card using the "prime-select" command and lets you switch between your Nvidia card and your intel video card. Also, it give you the option to see what version of Nvidia drivers you have and a quick short-cut to open nvidia-settings.
For this widget work like a charm, you need to have installed "zenity" and "libnotify-tools" (This is required if you want to be able to switch video cards) and you need to have the Nvidia drivers installed and the switch "prime-select nvidia" and "prime-select intel" working properly.
You can customize the names and models of the video cards in settings.
This widget works on dark and light themes.
Version 0.2 1 month ago
Version 0.2 is now much simpler, you can change the size of the icon in the taskbar and it doesn't need the zenity dependency.
Version 0.2 1 month ago
Version 0.2 is now much simpler, you can change the size of the icon in the taskbar and it doesn't need the zenity dependency.
franciscot
1 month ago
Report
jfespinal
1 month ago
The true is that I am very new making applets for kde, and I don’t know how to put it on the system tray. I was having trouble with the logout command that I used and I don’t know a command that make a kde logout for sure every time that the user runs it, but with the feedback of the users I can make better updates.
I know that I made just intel and nvidia cards I made this because this is my configuration but other users may have ati cards, the command will be prime-select ati? I don’t know, maybe you could help to make better updates.
I am glad that this applet helps so many users because I started this for my self and I saw that I could share it here!
Report
franciscot
1 month ago
You can use this command to start the logout: qdbus org.kde.ksmserver / KSMServer logout 1 3 3
Or logout without confirmation: qdbus org.kde.ksmserver / KSMServer logout 0 3 3 (careful!)
You can get the profiles with the 'prime-select query' command. In my case they are "intel" "ondemand" (hybrid) and "nvidia"
Sorry not to be of more help, I am an amateur programmer.
Report
franciscot
1 month ago
Report
jfespinal
26 days ago
this is what I get with prime-select:
nvidia: use the NVIDIA proprietary driver
intel: use the Intel card with the "modesetting" driver
PRIME Render Offload possible with >= 435.xx NVIDIA driver with prime-select service DISABLED
intel2: use the Intel card with the "intel" Open Source driver (xf86-video-intel)
PRIME Render Offload possible with >= 435.xx NVIDIA driver with prime-select service DISABLED
unset: disable effects of this script and let Xorg decide what driver to use
get-current: display driver currently configured
log-view: view logfile
log-clean: clean logfile
I was trying with the pkexec, there is not information how to put a plasmoid on the system tray and the commands you wrote for logout are not working for me.
Report
franciscot
26 days ago
And I think the keyboard indicator is a good example too. In my system is in /usr/share/plasma/plasmoids/org.kde.plasma.keyboardindicator/
Report
driglu4it
5 months ago
Report
jfespinal
5 months ago
Report