htop icon indicating copy to clipboard operation
htop copied to clipboard

Support Tctl temps in AMD CPUs without Tccd temps

Open drunk-moe opened this issue 3 months ago • 5 comments

Hello - this is more of a feature request.

Unfortunately, I noticed when checking htop I was not getting the temps from the CPU exposed. Poking around, I realized my laptop only shows Tctl temps. It appears that if a bit isn't set to say Tccd data is valid, hwmon ignores it (relevant code]

Is there any way to add a check for this? I noticed two places in the code that reference k10 so I'm not sure what all would need to be changed, but it looks like this may be the place

Either way, it's nothing urgent. It would be nice to see my CPU temps in htop so I don't have to use something like watch.

Thanks!

drunk-moe avatar Sep 30 '25 22:09 drunk-moe

Can I work on this?

Watrdguy avatar Oct 04 '25 13:10 Watrdguy

You can see the temperature by adding it from display option in Setup(F2), it still won't give temperature for each core but show Tctl value for every core.

Unfortunately, I noticed when checking htop I was not getting the temps from the CPU exposed. Poking around, I realized my laptop only shows Tctl temps. It appears that if a bit isn't set to say Tccd data is valid, hwmon ignores it

If temperature for each core is needed(Tccd), different driver than k10temp is needed.

Either way, it's nothing urgent. It would be nice to see my CPU temps in htop so I don't have to use something like watch.

Watrdguy avatar Oct 05 '25 15:10 Watrdguy

Can I work on this?

Sure. Go on ahead.

BenBE avatar Oct 06 '25 07:10 BenBE

You can see the temperature by adding it from display option in Setup(F2), it still won't give temperature for each core but show Tctl value for every core.

Unfortunately, I noticed when checking htop I was not getting the temps from the CPU exposed. Poking around, I realized my laptop only shows Tctl temps. It appears that if a bit isn't set to say Tccd data is valid, hwmon ignores ithoul

If temperature for each core is needed(Tccd), different driver than k10temp is needed.

Either way, it's nothing urgent. It would be nice to see my CPU temps in htop so I don't have to use something like watch.

This issue should be closed

Watrdguy avatar Oct 09 '25 18:10 Watrdguy

You can see the temperature by adding it from display option in Setup(F2), it still won't give temperature for each core but show Tctl value for every core.

Unfortunately, I noticed when checking htop I was not getting the temps from the CPU exposed. Poking around, I realized my laptop only shows Tctl temps. It appears that if a bit isn't set to say Tccd data is valid, hwmon ignores ithoul

If temperature for each core is needed(Tccd), different driver than k10temp is needed.

Either way, it's nothing urgent. It would be nice to see my CPU temps in htop so I don't have to use something like watch.

This issue should be closed

Unfortunately, I think there may be a misunderstanding (apologies for not responding sooner, I've been a bit tied up.).

I have 2 computers that use k10temp. One is a desktop that uses a common AMD CPU, the other is my laptop that uses a Ryzen Pro SKU.

Here's my desktop's sensors output:

k10temp-pci-00c3
Adapter: PCI adapter
Tctl:         +34.2°C  
Tccd1:        +34.2°C 

Tccd1 (Thermal Core Complex Die 1) is the temp used by htop (linked in the above code). It is not a per core temp but a temp for one or more Core Complex Dies. This value is discarded by k10temp if a bit-check fails.

My laptop, for example, only returns the Tctl (Thermal Control - used for fans/cooling and what not):

k10temp-pci-00c3
Adapter: PCI adapter
Tctl:         +45.5°C  

Indeed, if I enable CPU temps in htop, I get "N/A" on every column on my laptop while my desktop returns the Tccd1 temp on every core (which is to be expected). I'm reporting that there should maybe be a fallback to grab Tctl temps if Tccd temps are unavailble.

If this is a no fix/there isn't enough bandwidth, I completely understand. I can always just use watch & grep to check the temps. I did want to raise this issue though because it would be nice to have.

drunk-moe avatar Oct 10 '25 07:10 drunk-moe