Knowledge

hw.sensors

Source 📝

408: 104: 380:
As of 1 November 2008, the total number of drivers stood at 68 in OpenBSD 4.4; growing by 7 drivers in a 6-month release cycle. This rate of growth, of one new driver per month on average, has been common throughout the history of the framework since OpenBSD 3.9.
349:
As of 23 December 2006, the framework was used by 44 devices drivers. At this time, a patchset was committed converting a simple one-level addressing scheme into a more stable multi-layer addressing.
338:
Framework use by the device drivers rose sharply with the release of OpenBSD 3.9. Then, in only 6 months, the number of individual drivers using the framework rose from 9 in OpenBSD 3.8 (released
252:
is simplicity and a works-by-default approach in the drivers, which don't need or support any configurability; no installation or configuration actions are required by the
936: 1519: 528: 1120: 499: 226: 268:
in a centralised way with a cache, making it possible to leave it enabled by default at all times, unlike the competing solutions.
817:. Proceedings of 2007 IEEE International Conference on Networking, Sensing and Control, 15–17 April 2007. London, United Kingdom. 1679: 312: 744: 413: 1305: 1539: 1401: 1110: 498:. AsiaBSDCon 2009 Proceedings, 12–15 March 2009. Tokyo University of Science, Tokyo, Japan (published March 14, 2009). 206: 1052: 193:
sensors being the most common type. Consumption and monitoring of sensors is done in the userland with the help of
140: 1684: 1445: 944: 71: 891: 1336: 709: 764: 683: 538: 1087: 968:"Quiet computing with BSD: Fan control with sysctl hw.sensors and lm(4) on OpenBSD and DragonFly BSD" 170: 788: 1024: 625: 117: 1017: 992: 490: 80: 1361: 1298: 1082: 915: 837: 323:
The framework was originally devised in 2003 by Alexander Yurchenko, when he was porting several
1674: 1534: 1529: 1406: 735: 456: 1659: 1622: 1393: 1045: 654: 384:
The values exported by the drivers through the framework are read-only; however, an external
358: 1507: 1492: 1433: 1217: 515: 389: 253: 1549: 392:
functions in both the framework, and in one of the drivers for the most popular family of
103: 8: 1497: 1450: 743:. AsiaBSDCon 2007 Proceedings, 8–11 March 2007. Tokyo, Japan (published March 10, 2007). 1349: 1342: 1291: 1256: 374: 561:"gkrellm-server-2.3.10p1 – single process stack of system monitors for GTK+2 (server)" 940: 895: 385: 1669: 1664: 1511: 1480: 1323: 1140: 1038: 818: 592: 460: 152: 124: 1413: 600:. OpenCON 2006, 2–3 December 2006. Courtyard Venice Airport, Venice/Tessera, Italy 284:
drives is also provided through the sensors framework, this concept of sensors of
1272: 865: 842: 560: 1638: 1470: 1418: 1125: 145: 822: 1653: 1559: 1423: 1331: 1314: 1235: 1175: 679: 565: 362: 265: 186: 133: 1617: 1485: 1374: 1240: 198: 1460: 1389: 190: 157: 1283: 1544: 533: 421: 249: 182: 39: 27: 1030: 464: 396:
chips. This patchset was provided for both OpenBSD and DragonFly BSD.
1165: 1160: 658: 393: 234: 815:
Generalised Interfacing with Microprocessor System Hardware Monitors
1554: 1212: 1155: 1150: 1145: 1130: 836:
Constantine A. Murenin (December 30, 2006). Marco Peereboom (ed.).
488: 452:
OpenBSD Hardware Sensors — Environmental Monitoring and Fan Control
426: 304: 202: 181:
kernel interface as the transport layer between the kernel and the
1600: 1475: 1438: 1379: 1170: 1077: 1062: 967: 869: 354: 210: 174: 129: 45: 1605: 1595: 1590: 1580: 1575: 1465: 1369: 1180: 1135: 1105: 899: 377:, was vastly improved in 2007, partly via the same GSoC grant. 332: 328: 324: 289: 257: 194: 178: 937:"Source Wars - Return of the Puffy: What's New in OpenBSD 4.4" 367: 1585: 1428: 1197: 1192: 629: 256:
to get the sensors going. This is coupled with a fine-tuned
1524: 1455: 1207: 1202: 1115: 590: 281: 222: 916:"Puffy's Marathon: What's New in OpenBSD 4.2 - ONLamp.com" 450: 343: 339: 261: 230: 189:
in OpenBSD to export various environmental sensors, with
489:
Constantine A. Murenin; Raouf Boutaba (March 17, 2009).
239: 965: 863: 835: 812: 448: 185:. As of 2019, the framework is used by over a hundred 403: 248:
A major difference compared to other solutions like
173:-level hardware sensors framework originating from 934: 889: 652: 591:David Gwynne; Marco Peereboom (December 3, 2006). 1651: 467:. Document ID: ab71498b6b1a60ff817b29d56997a418. 331:. Instead of porting NetBSD's envsys, a simpler 707: 526: 1299: 1046: 892:"Puffy's Marathon: What's New in OpenBSD 4.2" 678: 623: 295: 288:type has been backported by NetBSD back into 221:In OpenBSD, the framework is integrated with 864:Constantine A. Murenin (October 14, 2007). 786: 762: 733: 586: 584: 520: 311:to synchronise time. These are provided by 1306: 1292: 1053: 1039: 829: 102: 1313: 966:Constantine A. Murenin (March 14, 2010). 928: 883: 727: 648: 646: 619: 617: 615: 529:"BSDCan 2008: Hardware Sensors Framework" 484: 482: 480: 478: 476: 474: 227:Intelligent Platform Management Interface 581: 1060: 935:Federico Biancuzzi (November 3, 2008). 890:Federico Biancuzzi (November 1, 2007). 672: 449:Constantine A. Murenin (May 21, 2010). 444: 442: 1652: 959: 806: 643: 612: 553: 505:from the original on February 21, 2009 471: 459:, Waterloo, Ontario, Canada: UWSpace. 365:later that year. The usability of the 1287: 1034: 655:"Interview: Theo de Raadt of OpenBSD" 653:Manolis Tzanidakis (March 28, 2006). 353:In 2007, the framework was ported to 271: 16:Hardware monitoring sensors framework 857: 780: 765:"Supporting Radio Clocks in OpenBSD" 750:from the original on August 27, 2008 708:Henning Brauer (September 3, 2016). 439: 414:Free and open-source software portal 280:Support for automatic monitoring of 737:Support for Radio Clocks in OpenBSD 701: 626:"OpenBSD 3.9 adds sensor framework" 13: 763:Marc Balmer (September 16, 2007). 492:OpenBSD Hardware Sensors Framework 209:(snmpd), ports/sysutils/symon and 207:Simple Network Management Protocol 14: 1696: 1025:asiabsdcon2009-sensors-slides.pdf 985: 342:) to 33 in OpenBSD 3.9 (released 233:, in addition to several popular 1018:asiabsdcon2009-sensors-paper.pdf 793:Super User's BSD Cross Reference 787:Marc Balmer (January 26, 2019). 714:Super User's BSD Cross Reference 688:Super User's BSD Cross Reference 624:Ingrid Marson (March 24, 2006). 406: 335:-based mechanism was developed. 260:read-only scan procedure on the 201:, sensorsd, OpenBSD NTP Daemon ( 825:. IEEE ICNSC 2007, pp. 901—906. 813:Constantine A. Murenin (2007). 527:Jeremy Andrews (June 7, 2008). 34:Alexander Yurchenko (2003–2004) 1680:Software using the ISC license 734:Marc Balmer (March 15, 2007). 32:Constantine A. Murenin (2006), 1: 432: 7: 1337:Light Weight Kernel Threads 399: 388:exists that implements the 10: 1701: 838:"New two-level sensor API" 594:bio and sensors in OpenBSD 318: 216: 1631: 1568: 1506: 1388: 1360: 1322: 1265: 1249: 1228: 1098: 1070: 823:10.1109/ICNSC.2007.372901 684:"/sys/dev/i2c/i2c_scan.c" 361:grant. It was adopted by 151: 139: 123: 113: 70: 52: 38: 26: 373:, the sensor monitoring 1362:OS-level virtualisation 866:"GSoC2007/cnst-sensors" 789:"/sys/kern/tty_nmea.c" 457:University of Waterloo 58:; 21 years ago 1685:System administration 359:Google Summer of Code 307:uses sensors of type 541:on December 18, 2010 327:-based drivers from 254:system administrator 902:on October 13, 2011 315:and other drivers. 23: 1350:Kernel Normal Form 1343:serializing tokens 1257:OpenBSD Foundation 56:25 April 2003 28:Original author(s) 21: 1647: 1646: 1281: 1280: 1088:security features 177:, which uses the 163: 162: 146:system monitoring 1692: 1324:Operating system 1308: 1301: 1294: 1285: 1284: 1099:Related projects 1071:Operating system 1055: 1048: 1041: 1032: 1031: 1027: 1020: 1013: 1010: 1008: 1006: 1004: 1002: 1000: 998: 996: 994: 979: 978: 976: 974: 963: 957: 956: 954: 952: 943:. Archived from 932: 926: 923: 911: 909: 907: 898:. Archived from 887: 881: 880: 878: 876: 861: 855: 854: 852: 850: 833: 827: 826: 810: 804: 803: 801: 799: 784: 778: 775: 769: 759: 757: 755: 749: 742: 731: 725: 724: 722: 720: 710:"ntpd/sensors.c" 705: 699: 698: 696: 694: 682:(May 29, 2015). 676: 670: 669: 667: 665: 650: 641: 640: 638: 636: 621: 610: 609: 607: 605: 599: 588: 579: 578: 576: 574: 557: 551: 550: 548: 546: 537:. Archived from 524: 518: 514: 512: 510: 504: 497: 486: 469: 468: 446: 416: 411: 410: 409: 372: 370: 345: 341: 310: 299: 287: 275: 264:bus, written by 244: 242: 125:Operating system 106: 101: 98: 96: 94: 92: 90: 88: 86: 84: 82: 66: 64: 59: 24: 20: 1700: 1699: 1695: 1694: 1693: 1691: 1690: 1689: 1650: 1649: 1648: 1643: 1627: 1564: 1502: 1384: 1356: 1318: 1312: 1282: 1277: 1273:OpenBSD Journal 1261: 1245: 1224: 1094: 1083:version history 1066: 1059: 1023: 1016: 991: 988: 983: 982: 972: 970: 964: 960: 950: 948: 947:on May 24, 2012 933: 929: 914: 905: 903: 888: 884: 874: 872: 862: 858: 848: 846: 843:OpenBSD Journal 834: 830: 811: 807: 797: 795: 785: 781: 767: 753: 751: 747: 740: 732: 728: 718: 716: 706: 702: 692: 690: 677: 673: 663: 661: 651: 644: 634: 632: 622: 613: 603: 601: 597: 589: 582: 572: 570: 559: 558: 554: 544: 542: 525: 521: 508: 506: 502: 495: 487: 472: 447: 440: 435: 412: 407: 405: 402: 368: 366: 340:1 November 2005 321: 308: 302: 297: 285: 278: 273: 240: 238: 219: 169:framework is a 109: 79: 62: 60: 57: 53:Initial release 33: 17: 12: 11: 5: 1698: 1688: 1687: 1682: 1677: 1672: 1667: 1662: 1645: 1644: 1642: 1641: 1639:Matthew Dillon 1635: 1633: 1629: 1628: 1626: 1625: 1620: 1615: 1614: 1613: 1603: 1598: 1593: 1588: 1583: 1578: 1572: 1570: 1566: 1565: 1563: 1562: 1557: 1552: 1547: 1542: 1537: 1532: 1527: 1522: 1520:802.11 drivers 1516: 1514: 1504: 1503: 1501: 1500: 1495: 1490: 1489: 1488: 1478: 1473: 1468: 1463: 1458: 1453: 1448: 1443: 1442: 1441: 1431: 1426: 1421: 1416: 1411: 1410: 1409: 1398: 1396: 1386: 1385: 1383: 1382: 1377: 1372: 1366: 1364: 1358: 1357: 1355: 1354: 1353: 1352: 1347: 1346: 1345: 1328: 1326: 1320: 1319: 1311: 1310: 1303: 1296: 1288: 1279: 1278: 1276: 1275: 1269: 1267: 1263: 1262: 1260: 1259: 1253: 1251: 1247: 1246: 1244: 1243: 1238: 1232: 1230: 1226: 1225: 1223: 1222: 1221: 1220: 1210: 1205: 1200: 1195: 1190: 1185: 1184: 1183: 1173: 1168: 1163: 1158: 1153: 1148: 1143: 1138: 1133: 1128: 1123: 1118: 1113: 1108: 1102: 1100: 1096: 1095: 1093: 1092: 1091: 1090: 1085: 1074: 1072: 1068: 1067: 1058: 1057: 1050: 1043: 1035: 1029: 1028: 1021: 1014: 987: 986:External links 984: 981: 980: 958: 941:O'Reilly Media 927: 925: 924: 896:O'Reilly Media 882: 856: 828: 805: 779: 777: 776: 726: 700: 671: 642: 611: 580: 569:. June 1, 2018 552: 519: 470: 437: 436: 434: 431: 430: 429: 424: 418: 417: 401: 398: 320: 317: 301: 294: 277: 270: 237:chips through 218: 215: 187:device drivers 161: 160: 155: 149: 148: 143: 137: 136: 127: 121: 120: 115: 111: 110: 108: 107: 76: 74: 68: 67: 54: 50: 49: 42: 36: 35: 30: 15: 9: 6: 4: 3: 2: 1697: 1686: 1683: 1681: 1678: 1676: 1675:DragonFly BSD 1673: 1671: 1668: 1666: 1663: 1661: 1658: 1657: 1655: 1640: 1637: 1636: 1634: 1630: 1624: 1621: 1619: 1616: 1612: 1609: 1608: 1607: 1604: 1602: 1599: 1597: 1594: 1592: 1589: 1587: 1584: 1582: 1579: 1577: 1574: 1573: 1571: 1567: 1561: 1558: 1556: 1553: 1551: 1548: 1546: 1543: 1541: 1538: 1536: 1533: 1531: 1528: 1526: 1523: 1521: 1518: 1517: 1515: 1513: 1509: 1505: 1499: 1496: 1494: 1491: 1487: 1484: 1483: 1482: 1479: 1477: 1474: 1472: 1469: 1467: 1464: 1462: 1459: 1457: 1454: 1452: 1449: 1447: 1444: 1440: 1437: 1436: 1435: 1432: 1430: 1427: 1425: 1422: 1420: 1417: 1415: 1412: 1408: 1405: 1404: 1403: 1400: 1399: 1397: 1395: 1391: 1387: 1381: 1378: 1376: 1373: 1371: 1368: 1367: 1365: 1363: 1359: 1351: 1348: 1344: 1340: 1339: 1338: 1335: 1334: 1333: 1332:DragonFly BSD 1330: 1329: 1327: 1325: 1321: 1316: 1315:DragonFly BSD 1309: 1304: 1302: 1297: 1295: 1290: 1289: 1286: 1274: 1271: 1270: 1268: 1264: 1258: 1255: 1254: 1252: 1250:Organizations 1248: 1242: 1239: 1237: 1236:Theo de Raadt 1234: 1233: 1231: 1227: 1219: 1216: 1215: 1214: 1211: 1209: 1206: 1204: 1201: 1199: 1196: 1194: 1191: 1189: 1186: 1182: 1179: 1178: 1177: 1174: 1172: 1169: 1167: 1164: 1162: 1159: 1157: 1154: 1152: 1149: 1147: 1144: 1142: 1139: 1137: 1134: 1132: 1129: 1127: 1124: 1122: 1119: 1117: 1114: 1112: 1109: 1107: 1104: 1103: 1101: 1097: 1089: 1086: 1084: 1081: 1080: 1079: 1076: 1075: 1073: 1069: 1064: 1056: 1051: 1049: 1044: 1042: 1037: 1036: 1033: 1026: 1022: 1019: 1015: 1012: 990: 989: 969: 962: 946: 942: 938: 931: 921: 917: 913: 912: 901: 897: 893: 886: 871: 867: 860: 845: 844: 839: 832: 824: 820: 816: 809: 794: 790: 783: 773: 766: 761: 760: 746: 739: 738: 730: 715: 711: 704: 689: 685: 681: 680:Theo de Raadt 675: 660: 656: 649: 647: 631: 627: 620: 618: 616: 596: 595: 587: 585: 568: 567: 566:OpenBSD ports 562: 556: 540: 536: 535: 530: 523: 517: 501: 494: 493: 485: 483: 481: 479: 477: 475: 466: 462: 458: 454: 453: 445: 443: 438: 428: 425: 423: 420: 419: 415: 404: 397: 395: 391: 387: 382: 378: 376: 371: 364: 363:DragonFly BSD 360: 357:as part of a 356: 351: 347: 336: 334: 330: 326: 316: 314: 306: 293: 291: 283: 269: 267: 266:Theo de Raadt 263: 259: 255: 251: 246: 243: 236: 232: 228: 224: 214: 212: 208: 204: 200: 196: 192: 188: 184: 180: 176: 172: 168: 159: 156: 154: 150: 147: 144: 142: 138: 135: 131: 128: 126: 122: 119: 116: 112: 105: 100: 78: 77: 75: 73: 69: 55: 51: 47: 43: 41: 37: 31: 29: 25: 19: 1660:BSD software 1610: 1486:soft updates 1390:File systems 1266:Publications 1241:Niels Provos 1187: 971:. Retrieved 961: 949:. Retrieved 945:the original 930: 919: 904:. Retrieved 900:the original 885: 873:. Retrieved 859: 847:. Retrieved 841: 831: 814: 808: 796:. Retrieved 792: 782: 771: 752:. Retrieved 736: 729: 717:. Retrieved 713: 703: 691:. Retrieved 687: 674: 662:. Retrieved 633:. Retrieved 602:. Retrieved 593: 571:. Retrieved 564: 555: 543:. Retrieved 539:the original 532: 522: 507:. Retrieved 491: 451: 383: 379: 352: 348: 337: 322: 303: 279: 247: 220: 166: 164: 40:Developer(s) 18: 390:fan control 369:sensorsd(8) 229:(IPMI) and 191:temperature 1654:Categories 1611:hw.sensors 1569:Subsystems 1512:networking 534:KernelTrap 465:10012/5234 433:References 422:lm_sensors 344:1 May 2006 250:lm_sensors 167:hw.sensors 114:Written in 72:Repository 63:2003-04-25 22:hw.sensors 1530:Bluetooth 1508:Firewalls 1424:disklabel 1166:OpenSMTPD 1161:OpenOSPFD 659:Linux.com 455:(MMath). 394:Super I/O 309:timedelta 298:timedelta 296:OpenNTPD 292:in 2007. 235:Super I/O 205:, ntpd), 134:DragonFly 1555:netgraph 1213:Xenocara 1156:OpenNTPD 1151:OpenIKED 1146:OpenBGPD 1131:LibreSSL 1009:/sensors 999:/cgi-bin 995:.openbsd 973:March 4, 951:March 3, 920:Undeadly 906:March 3, 875:March 4, 849:March 4, 798:March 4, 754:March 4, 745:Archived 719:March 4, 693:March 4, 664:March 4, 635:March 4, 604:March 4, 573:March 4, 545:March 4, 509:March 4, 500:Archived 427:SpeedFan 400:See also 305:OpenNTPD 225:'s ESM, 203:OpenNTPD 183:userland 97:/sensors 87:/cgi-bin 83:.openbsd 1670:FreeBSD 1665:OpenBSD 1601:OpenPAM 1439:HAMMER2 1394:storage 1380:vkernel 1317:Project 1188:sensors 1171:OpenSSH 1078:OpenBSD 1065:Project 1063:OpenBSD 1001:/cvsweb 870:FreeBSD 772:OpenBSD 516:Alt URL 355:FreeBSD 319:History 300:sensors 276:sensors 217:Drivers 211:GKrellM 175:OpenBSD 153:Licence 130:OpenBSD 89:/cvsweb 61: ( 48:Project 46:OpenBSD 1632:People 1618:systat 1606:sysctl 1596:moused 1591:kqueue 1581:DPorts 1576:busdma 1466:procfs 1434:HAMMER 1414:autofs 1370:chroot 1229:People 1181:pfsync 1136:mandoc 993:cvsweb 375:daemon 333:sysctl 329:NetBSD 325:envsys 290:envsys 258:ad-hoc 199:systat 195:sysctl 179:sysctl 171:kernel 81:cvsweb 1623:SMBus 1586:ioctl 1493:Vinum 1476:tmpfs 1471:PUFFS 1429:fdisk 1419:devfs 1341:LWKT 1198:spamd 1193:sndio 1121:httpd 768:(PDF) 748:(PDF) 741:(PDF) 630:ZDNet 598:(PDF) 503:(PDF) 496:(PDF) 386:patch 286:drive 274:drive 272:RAID 241:lm(4) 1550:NDIS 1545:ipfw 1540:CARP 1525:ALTQ 1461:NVMe 1456:NTFS 1446:LVM2 1402:AHCI 1375:jail 1208:tmux 1203:sudo 1116:doas 1111:CARP 1061:The 1007:/sys 1005:/sys 1003:/src 997:.org 975:2019 953:2019 908:2019 877:2019 851:2019 800:2019 756:2019 721:2019 695:2019 666:2019 637:2019 606:2019 575:2019 547:2019 511:2019 313:NMEA 282:RAID 223:Dell 165:The 141:Type 95:/sys 93:/sys 91:/src 85:.org 44:The 1535:BPF 1498:VFS 1481:UFS 1451:NFS 1407:NCQ 1218:cwm 1126:fdm 1106:bio 819:doi 461:hdl 346:). 158:ISC 1656:: 1560:PF 1510:, 1392:, 1176:PF 1141:mg 1011:.h 939:. 918:. 894:. 868:. 840:. 791:. 770:. 712:. 686:. 657:. 645:^ 628:. 614:^ 583:^ 563:. 531:. 473:^ 441:^ 262:IC 245:. 231:IC 213:. 197:, 132:, 99:.h 1307:e 1300:t 1293:v 1054:e 1047:t 1040:v 977:. 955:. 922:. 910:. 879:. 853:. 821:: 802:. 774:. 758:. 723:. 697:. 668:. 639:. 608:. 577:. 549:. 513:. 463:: 118:C 65:)

Index

Original author(s)
Developer(s)
OpenBSD
Repository
cvsweb.openbsd.org/cgi-bin/cvsweb/src/sys/sys/sensors.h
Edit this at Wikidata
C
Operating system
OpenBSD
DragonFly
Type
system monitoring
Licence
ISC
kernel
OpenBSD
sysctl
userland
device drivers
temperature
sysctl
systat
OpenNTPD
Simple Network Management Protocol
GKrellM
Dell
Intelligent Platform Management Interface
IC
Super I/O
lm(4)

Text is available under the Creative Commons Attribution-ShareAlike License. Additional terms may apply.