py3status: sysdata module doesn't properly read k10temp sensor

Offending line is here:

m = re.search("(Core 0|CPU Temp).+\+(.+).+\(.+", sensors)

This won’t pick anything up from the output of k10-temp, which looks something like this on my machine:

k10temp-pci-00c3
Adapter: PCI adapter
temp1:        +48.0°C  (high = +70.0°C)

Given that this is the default sensor for AMD CPUs, not picking this up seems a bit amiss. Indeed, on my machine, I have to run a custom script to parse sensors output myself. I would understand that defaulting to this behaviour if a zone is not provided is fine, but I provided the zone using the zone argument, and it still didn’t help.

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 16 (9 by maintainers)

Most upvoted comments

@lasers Yeah, I get the reasoning there. I’ve done sensors-detect, but a second go of it probably wouldn’t hurt.

EDIT: Just ran it, and it detected nothing. Helpful.

EDIT 2: Yeah, mission accomplished. Thank you for your help, @lasers! Hope your patch gets merged.