Setting vrm with 'sensors -s' is broken (w/ Linux 2.6.x)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi...

The problem is in the last 8 lines of lib/proc.c:

> /* give up, use old name (probably won't work though...) */
> /* known to be the same:
>         "alarms", "beep_enable", "vrm", "fan%d_div"
> */
>         strcpy(sysname, name);
>         *sysmag = (feature->scaling==0?0:3);
>         return 0;
> }

Oops, feature->scaling for VRM is 1!  That explains why 'sensors -s'
tries to write "9000" to vrm instead of "90" under Linux 2.6.x.

Anyone know what that '==0?0:3' qualification is *supposed* to do?

Regards,

-- 
Mark M. Hoffman
mhoffman at lightlink.com



[Index of Archives]     [Linux Kernel]     [Linux Hardware Monitoring]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux