* kernel modules
@ 2023-02-23 22:30 mike mccool
2023-02-24 5:57 ` Jonas Malaco
0 siblings, 1 reply; 2+ messages in thread
From: mike mccool @ 2023-02-23 22:30 UTC (permalink / raw)
To: lm-sensors
hello,
i am using lm-sensors/sensors on an AMD AM4 motherboard w/ 5700G APU
and ubuntu 22.04
i added kernel module 'drivetemp' to get temp data from the 10 SATA
drives on this box. i would like to filter-out(ignore) the drivetemp
output from /usr/bin/sensors but cannot. the keyword 'chip' does not
work so 'ignore' statements have no effect.
please add a new keyword, eg, 'module', so that it would be possible
to craft filters like this:
module "drivetemp-scsi-0-*"
ignore temp1
or
module "k10temp-pci-00c3"
ignore Tctl
or
module "nvme-pci-2600"
ignore Sensor 1
ignore Sensor 2
regards
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: kernel modules
2023-02-23 22:30 kernel modules mike mccool
@ 2023-02-24 5:57 ` Jonas Malaco
0 siblings, 0 replies; 2+ messages in thread
From: Jonas Malaco @ 2023-02-24 5:57 UTC (permalink / raw)
To: lm-sensors
Hi Mike,
On Thu, Feb 23, 2023 at 10:30:24PM +0000, mike mccool wrote:
> hello,
>
> i am using lm-sensors/sensors on an AMD AM4 motherboard w/ 5700G APU
> and ubuntu 22.04
>
> i added kernel module 'drivetemp' to get temp data from the 10 SATA
> drives on this box. i would like to filter-out(ignore) the drivetemp
> output from /usr/bin/sensors but cannot. the keyword 'chip' does not
> work so 'ignore' statements have no effect.
>
> please add a new keyword, eg, 'module', so that it would be possible
> to craft filters like this:
>
> module "drivetemp-scsi-0-*"
> ignore temp1
>
> or
>
> module "k10temp-pci-00c3"
> ignore Tctl
>
> or
>
> module "nvme-pci-2600"
> ignore Sensor 1
> ignore Sensor 2
>
> regards
Is the error you're seeing "Undeclared bus id referenced"?
If that's the case, there are a couple of issues already open on GitHub
for that problem:
- <https://github.com/lm-sensors/lm-sensors/issues/230>
- <https://github.com/lm-sensors/lm-sensors/issues/369>
and I have a patch that addresses it:
- <https://github.com/lm-sensors/lm-sensors/pull/371.patch>
Please let me know if you give it a try.
Alternatively, either:
chip drivetemp-scsi-*-*
ignore temp1
or:
chip drivetemp-*
ignore temp1
might work even without the patch. And they should be enough since you
don't actually need to identify each drive individually.
Finally, yet another alternative is to not load (or build) the drivetemp
driver.
Jonas
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-02-24 5:57 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-02-23 22:30 kernel modules mike mccool
2023-02-24 5:57 ` Jonas Malaco
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox