Download raw body.
upd(4): add more sensors (load, power..)
On Thu, Nov 21, 2024 at 06:07:46PM +0100, Landry Breuil wrote:
> Le Thu, Nov 21, 2024 at 06:03:43PM +0100, Walter Alejandro Iglesias a écrit :
> > Hi Stuart,
> >
> > On Thu, Nov 21, 2024 at 01:53:20PM +0000, Stuart Henderson wrote:
> > > On 2024/11/19 10:51, Stuart Henderson wrote:
> > > > The unit for apparent power should be VA, not W.
> > >
> > > *untested* diff adding this. also adds some printers for SENSOR_ENERGY
> > > which were missed when adding it previously.
> >
> > After applying this diff this happened:
> >
> > $ sysctl hw.sensors
> > sysctl: sensors dev 0: Cannot allocate memory
> >
> > Besides sensorsd(8), which I have in use, timed out on boot.
>
> have you rebuilt/reinstalled kernel, sensord and sysctl and rebooted ?
> those need to be in sync.
Ah, silly me! I had just rebuilt and reinstalled the kernel. But now
when I try to compile sensorsd and sysctl I get the same error in both:
---------------------------------------------------------------------------------
/usr/src/usr.sbin/sensorsd$ make
cc -O2 -pipe -Wall -Werror-implicit-function-declaration -MD -MP -c sensorsd.c
sensorsd.c:714:7: error: use of undeclared identifier 'SENSOR_VOLTAMPS'
case SENSOR_VOLTAMPS:
^
1 error generated.
*** Error 1 in /usr/src/usr.sbin/sensorsd (<sys.mk>:87 'sensorsd.o')
--------------------------------------------------------------------------------
/usr/src/sbin/sysctl$ make
cc -O2 -pipe -Werror-implicit-function-declaration -MD -MP -D_LIBKVM -c sysctl.c
sysctl.c:2835:8: error: use of undeclared identifier 'SENSOR_VOLTAMPS'
case SENSOR_VOLTAMPS:
^
1 error generated.
*** Error 1 in /usr/src/sbin/sysctl (<sys.mk>:87 'sysctl.o')
------------------------------------------------------------------------
>
> Landry
>
--
Walter
upd(4): add more sensors (load, power..)