Prime Render Switch and Status Original

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

1
6.4
Available as/for: -
Description:

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.
Last changelog:

Version 0.2 3 months 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.

10

franciscot

2 months ago

10 Very good applet. I've changed kdesu for pkexec. and Intel for ondemand in my case. What do you think about to use the applet in the system tray? I think it's a good option. Anyway, thank you for your work!

Report

C

jfespinal

2 months ago

Hello franciscot,
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

10

franciscot

2 months ago

I think it's better to use pkexec than kdesu. I dont know how the system tray works, I have never found information about it.
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

10

franciscot

2 months ago

Sorry, you can get profiles just with "prime-select"

Report

C

jfespinal

2 months ago

Hi fransiscot,
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

10

franciscot

2 months ago

An example of plasmoid on system tray: https://forum.kde.org/viewtopic.php?f=305&t=142838#p383893

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

10

driglu4it

6 months ago

10 Good work!

Report

C

jfespinal

6 months ago

Thank you very much!

Report

Version 0.2 3 months 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.

12345678910
2
product-maker franciscot Feb 06 2021 10 the best
Very good applet. I've changed kdesu for pkexec. and Intel for ondemand in my case. What do you think about to use the applet in the system tray? I think it's a good option. Anyway, thank you for your work!
product-maker driglu4it Sep 24 2020 10 the best
Good work!
Be the first to comment
romenskiy2012
Sep 25 2020
File (click to download) Version Description Devices Downloads Date Filesize DL OCS-Install MD5SUM
*Needs pling-store or ocs-url to install things
Pling
0 Affiliates
Details
license
Creative Commons 0 (Public Domain)
version
0.1
updated Jan 13 2021
added Sep 24 2020
downloads 24h
13
mediaviews 24h 0
pageviews 24h 10