You are not logged in.

#1 2019-04-13 22:20:39

dove
Member
Registered: 2016-03-21
Posts: 57

(solved)Conky GPU print out problem

As you can see GPU temp is printed X2
Screenshot_2019-04-13_14-23-31.th.png

This a old conky that has always looked good on other machines. It conky 1.9 with Head_on_a_Stick's repo. This is the code

GPU Temp:${alignr}${execi 60 nvidia-settings -query GPUCoreTemp | perl -ne 'print $1 if /GPUCoreTemp.*?: (\d+)./;'}°C

The problem is probably GLX Version: 4.6.0 NVIDIA 418.56 fault and can not be fixed but if anyone can think of anything?

Last edited by dove (2019-07-01 20:49:15)

Offline

#2 2019-04-13 22:58:31

damo
....moderator....
Registered: 2015-08-20
Posts: 5,172

Re: (solved)Conky GPU print out problem

If you can't find a solution using nvidia-settings, then nvidia-smi works for me

nvidia-smi --query-gpu=temperature.gpu --format=csv,noheader

Be Excellent to Each Other...

FORUM RULES and posting guidelines «» Help page for forum post formatting
Artwork on DeviantArt  «» BunsenLabs on DeviantArt

Online

#3 2019-04-13 23:29:42

dove
Member
Registered: 2016-03-21
Posts: 57

Re: (solved)Conky GPU print out problem

damo wrote:

If you can't find a solution using nvidia-settings, then nvidia-smi works for me

nvidia-smi --query-gpu=temperature.gpu --format=csv,noheader

Is there a trick to get this code to work because it just prints out on the conky?

Offline

#4 2019-04-14 00:04:38

damo
....moderator....
Registered: 2015-08-20
Posts: 5,172

Re: (solved)Conky GPU print out problem

dove wrote:
damo wrote:

If you can't find a solution using nvidia-settings, then nvidia-smi works for me

nvidia-smi --query-gpu=temperature.gpu --format=csv,noheader

Is there a trick to get this code to work because it just prints out on the conky?

Presumably you want it to print on the conky? I would use commands in a script and echo lines to the conky

TEMP=${nvidia-smi --query-gpu=temperature.gpu --format=csv,noheader}

echo "\${goto xxx}"$TEMP"°C"

NB My conkys use lua to display the values, and this code snippet is off the top of my head. The "$" needs to be escaped.


Be Excellent to Each Other...

FORUM RULES and posting guidelines «» Help page for forum post formatting
Artwork on DeviantArt  «» BunsenLabs on DeviantArt

Online

#5 2019-04-14 07:30:05

damo
....moderator....
Registered: 2015-08-20
Posts: 5,172

Re: (solved)Conky GPU print out problem

Is there a reason that the conky built-in ${nvidia gputemp} isn't working for you?


Be Excellent to Each Other...

FORUM RULES and posting guidelines «» Help page for forum post formatting
Artwork on DeviantArt  «» BunsenLabs on DeviantArt

Online

#6 2019-04-14 23:12:28

dove
Member
Registered: 2016-03-21
Posts: 57

Re: (solved)Conky GPU print out problem

damo wrote:

Is there a reason that the conky built-in ${nvidia gputemp} isn't working for you?

I just get the code printed in conky not the tem.

Offline

#7 2019-07-01 18:35:32

dove
Member
Registered: 2016-03-21
Posts: 57

Re: (solved)Conky GPU print out problem

I found some code to fix problem

${execi 60 nvidia-settings -query [gpu:0]/GPUCoreTemp -t}°C

Offline

Board footer

Powered by FluxBB