All of lore.kernel.org
 help / color / mirror / Atom feed
From: Adam Nielsen <a.nielsen@shikadi.net>
To: lm-sensors@vger.kernel.org
Subject: [lm-sensors] How do you make lm_sensors see a hwmon device?
Date: Sun, 11 Oct 2009 13:44:43 +0000	[thread overview]
Message-ID: <4AD1E14B.90604@shikadi.net> (raw)

Hi all,

I've written a driver for a USB device that has a number of sensors on it
(it's a PC power supply with a USB cable for voltage/current monitoring) and
the device appears in the hwmon class.

Unfortunately I can't figure out how to make lm_sensors "see" it (when I run
"sensors" it isn't displayed, and programs like gkrellm that use lm_sensors
don't see the device or its sensors.)  The files all seem to be in the same
place as other devices which work, and I'm running a fairly recent version of
lm_sensors (3.0.3.)

Any ideas how to make my device appear to lm_sensors?

$ ls /sys/class/hwmon/hwmon[45]/device/name
-r--r--r-- 1 root root 4.0K 2009-10-11 22:55 /sys/class/hwmon/hwmon4/device/name
-r--r--r-- 1 root root 4.0K 2009-10-11 23:24 /sys/class/hwmon/hwmon5/device/name

$ cat /sys/class/hwmon/hwmon[45]/device/name
coretemp
odin

$ cat /sys/class/hwmon/hwmon[45]/device/temp1_input
50000
39000

Many thanks,
Adam.

_______________________________________________
lm-sensors mailing list
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

             reply	other threads:[~2009-10-11 13:44 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-11 13:44 Adam Nielsen [this message]
2009-10-11 14:24 ` [lm-sensors] How do you make lm_sensors see a hwmon device? Jean Delvare
2009-10-11 18:13 ` Jean Delvare
2009-10-11 22:32 ` Adam Nielsen
2009-10-12 12:12 ` Jean Delvare
2009-10-12 12:49 ` Adam Nielsen
2009-10-12 13:36 ` Jean Delvare
2009-10-12 14:06 ` Adam Nielsen
2009-10-18 12:07 ` Jean Delvare
2009-10-18 21:25 ` Adam Nielsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4AD1E14B.90604@shikadi.net \
    --to=a.nielsen@shikadi.net \
    --cc=lm-sensors@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.