mikaku / Monitorix

Monitorix is a free, open source, lightweight system monitoring tool.
https://www.monitorix.org
GNU General Public License v2.0
1.12k stars 167 forks source link

GPU temperature of non-nvidia cards #8

Closed DerFlob closed 11 years ago

DerFlob commented 11 years ago

The temperature sensor of my ati graphics card can be displayed by lm_sensors. Unfortunately, monitorix doesn't allow to set the gpu-keys to anything different than nvidia. For an older version I quickly hacked something together by basically copying the logic for the cpu-keys and adopting it for the gpu, which worked perfectly. It would be nice, if that would be a feature that is in monitorix by default.

mikaku commented 11 years ago

Yes, gpu[n] keys only support Nvidia cards. This is because I use the command nvidia-smi to get the temperatures, and I don't know a similar tool for ATI cards.

I didn't know that temperatures of modern ATI cards could be seen from the sensors command. Could you please paste its current output?

Many thanks.

DerFlob commented 11 years ago

I don't know how many ATI cards support it. I have an HD6870. sensors output for the card is:

radeon-pci-0100
Adapter: PCI adapter
temp1:        +41.5°C 
mikaku commented 11 years ago

Hmm, that output will complicate things since it's not a one linear result and even the field name could change in other mother base.

I've found that official ATI drivers (Catalyst) comes with a simple way to get temperatures (and even for health and usage data). That would be the best procedure since I could adapt Monitorix to get ATI temperatures in the same way it is working now for Nvidia cards.

Please, run the command aticonfig --odgt and let me know the results. Thanks.

DerFlob commented 11 years ago

I use the open source drivers, not the official Catalyst. So, there is no such command.

mikaku commented 11 years ago

The open source drivers doesn't provide such information. In order to use the gpu[n] key, you should use the official drivers (being Nvidia the only supported right now).

ATI cards could be also supported as long as someone using such cards can give more feedback. So, I'm afraid you'll have to wait. Thanks.

burp commented 11 years ago

The output format is:

% aticonfig --odgt
Default Adapter - ATI Radeon HD 5800 Series Sensor 0: Temperature - 49.50 C

% aticonfig --odgt | grep Sensor | awk '{print $5}' 49.50

for multiple cards you can specifiy --adapter=0, --adapter=1, etc.

mikaku commented 11 years ago

This is great, can you confirm the output of the following command, please:

aticonfig --odgt --adapter=0
burp commented 11 years ago
% aticonfig --odgt --adapter=0

Adapter 0 - ATI Radeon HD 5800 Series  
            Sensor 0: Temperature - 42.50 C
mikaku commented 11 years ago

Thank you very much, I'll include support for ATI cards in the lm_sensors graph, so the keys gpu0...gpu8 will accept either nvidia and ati values.

Let me know your name and email address if you want to appear in the credits of Changes file.

burp commented 11 years ago

No problem, and no need to mention me in the credits. I basically did nothing ;) Just looking forward to monitor my ati gpu temperature.

Regards, Tobias

On Fri, Apr 05, 2013 at 03:53:02AM -0700, Jordi Sanfeliu wrote:

Thank you very much, I'll include support for ATI cards in the lm_sensors graph, so the keys gpu0...gpu8 will accept either nvidia and ati values.

Let me know your name and email address if you want to appear in the credits of Changes file.


Reply to this email directly or view it on GitHub: https://github.com/mikaku/Monitorix/issues/8#issuecomment-15949677

mikaku commented 11 years ago

Ok, done. This will be available in the next Monitorix version. Many thanks.