Hw.sensors

hw.sensors
Original author(s)Constantine A. Murenin (2006),
Alexander Yurchenko (2003–2004)
Developer(s)The OpenBSD Project
Initial release25 April 2003; 21 years ago (2003-04-25)
Repository
Written inC
Operating systemOpenBSD, DragonFly
Typesystem monitoring
LicenceISC

The hw.sensors framework is a kernel-level hardware sensors framework originating from OpenBSD, which uses the sysctl kernel interface as the transport layer between the kernel and the userland. As of 2019, the framework is used by over a hundred device drivers in OpenBSD to export various environmental sensors, with temperature sensors being the most common type.[1][2] Consumption and monitoring of sensors is done in the userland with the help of sysctl, systat, sensorsd, OpenBSD NTP Daemon (OpenNTPD, ntpd), Simple Network Management Protocol (snmpd), ports/sysutils/symon and GKrellM.[3][4]

Drivers

In OpenBSD, the framework is integrated with Dell's ESM, Intelligent Platform Management Interface (IPMI) and I2C,[5][6] in addition to several popular Super I/O chips through lm(4).[2]

A major difference compared to other solutions like lm_sensors 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 system administrator to get the sensors going.[7][6] This is coupled with a fine-tuned ad-hoc read-only scan procedure on the I2C bus, written by Theo de Raadt in a centralised way with a cache, making it possible to leave it enabled by default at all times, unlike the competing solutions.[7][6][8]

RAID drive sensors

Support for automatic monitoring of RAID drives is also provided through the sensors framework,[5] this concept of sensors of drive type has been backported by NetBSD back into envsys in 2007.[2]

OpenNTPD timedelta sensors

OpenNTPD uses sensors of type timedelta to synchronise time.[9] These are provided by NMEA and other drivers.[10][11]

History

The framework was originally devised in 2003 by Alexander Yurchenko, when he was porting several envsys-based drivers from NetBSD. Instead of porting NetBSD's envsys, a simpler sysctl-based mechanism was developed.[2]

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 1 November 2005) to 33 in OpenBSD 3.9 (released 1 May 2006).[2]

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.[12][13]

In 2007, the framework was ported to FreeBSD as part of a Google Summer of Code grant. It was adopted by DragonFly BSD later that year.[14] The usability of the sensorsd(8), the sensor monitoring daemon, was vastly improved in 2007, partly via the same GSoC grant.[15]

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.[16] 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.[2]

The values exported by the drivers through the framework are read-only; however, an external patch exists that implements the fan control functions in both the framework, and in one of the drivers for the most popular family of Super I/O chips. This patchset was provided for both OpenBSD and DragonFly BSD.[17][1]

See also

References

  1. ^ a b Constantine A. Murenin (May 21, 2010). OpenBSD Hardware Sensors — Environmental Monitoring and Fan Control (MMath). University of Waterloo, Waterloo, Ontario, Canada: UWSpace. hdl:10012/5234. Document ID: ab71498b6b1a60ff817b29d56997a418.
  2. ^ a b c d e f Constantine A. Murenin; Raouf Boutaba (March 17, 2009). OpenBSD Hardware Sensors Framework (PDF). AsiaBSDCon 2009 Proceedings, 12–15 March 2009. Tokyo University of Science, Tokyo, Japan (published March 14, 2009). Archived (PDF) from the original on February 21, 2009. Retrieved March 4, 2019. Alt URL
  3. ^ Jeremy Andrews (June 7, 2008). "BSDCan 2008: Hardware Sensors Framework". KernelTrap. Archived from the original on December 18, 2010. Retrieved March 4, 2019.
  4. ^ "gkrellm-server-2.3.10p1 – single process stack of system monitors for GTK+2 (server)". OpenBSD ports. June 1, 2018. Retrieved March 4, 2019.
  5. ^ a b David Gwynne; Marco Peereboom (December 3, 2006). bio and sensors in OpenBSD (PDF). OpenCON 2006, 2–3 December 2006. Courtyard Venice Airport, Venice/Tessera, Italy. Retrieved March 4, 2019.
  6. ^ a b c Ingrid Marson (March 24, 2006). "OpenBSD 3.9 adds sensor framework". ZDNet. Retrieved March 4, 2019.
  7. ^ a b Manolis Tzanidakis (March 28, 2006). "Interview: Theo de Raadt of OpenBSD". Linux.com. Retrieved March 4, 2019.
  8. ^ Theo de Raadt (May 29, 2015). "/sys/dev/i2c/i2c_scan.c". Super User's BSD Cross Reference. Retrieved March 4, 2019.
  9. ^ Henning Brauer (September 3, 2016). "ntpd/sensors.c". Super User's BSD Cross Reference. Retrieved March 4, 2019.
  10. ^ Marc Balmer (March 15, 2007). Support for Radio Clocks in OpenBSD (PDF). AsiaBSDCon 2007 Proceedings, 8–11 March 2007. Tokyo, Japan (published March 10, 2007). Archived (PDF) from the original on August 27, 2008. Retrieved March 4, 2019.
  11. ^ Marc Balmer (January 26, 2019). "/sys/kern/tty_nmea.c". Super User's BSD Cross Reference. Retrieved March 4, 2019.
  12. ^ Constantine A. Murenin (2007). Generalised Interfacing with Microprocessor System Hardware Monitors. Proceedings of 2007 IEEE International Conference on Networking, Sensing and Control, 15–17 April 2007. London, United Kingdom. doi:10.1109/ICNSC.2007.372901. IEEE ICNSC 2007, pp. 901—906.
  13. ^ Constantine A. Murenin (December 30, 2006). Marco Peereboom (ed.). "New two-level sensor API". OpenBSD Journal. Retrieved March 4, 2019.
  14. ^ Constantine A. Murenin (October 14, 2007). "GSoC2007/cnst-sensors". FreeBSD. Retrieved March 4, 2019.
  15. ^ Federico Biancuzzi (November 1, 2007). "Puffy's Marathon: What's New in OpenBSD 4.2". O'Reilly Media. Archived from the original on October 13, 2011. Retrieved March 3, 2019.
  16. ^ Federico Biancuzzi (November 3, 2008). "Source Wars - Return of the Puffy: What's New in OpenBSD 4.4". O'Reilly Media. Archived from the original on May 24, 2012. Retrieved March 3, 2019.
  17. ^ Constantine A. Murenin (March 14, 2010). "Quiet computing with BSD: Fan control with sysctl hw.sensors and lm(4) on OpenBSD and DragonFly BSD". Retrieved March 4, 2019.

Read other articles:

Sumitomo Heavy Industries, Ltd.Nama asli住友重機械工業株式会社JenisPublik (K.K)Kode emitenTYO: 6302Komponen Nikkei 225IndustriPermesinanDidirikan20 November 1888; 134 tahun lalu (1888-11-20)KantorpusatThinkPark Tower, 2-1-1 Osaki, Shinagawa-ku, Tokyo, Jepang 141-6025Wilayah operasiSeluruh duniaTokohkunciShunsuke Betsukawa(Presiden dan CEO)ProdukPermesinan beratPembuatan kapalPermesinan umumPeralatan lingkunganPermesinan makananSistem kesehatanPermesinan plastikPermesinan jalan...

 

Cette chronologie est une ébauche concernant la science. Vous pouvez partager vos connaissances en l’améliorant (comment ?) selon les recommandations des projets correspondants. Chronologies Données clés 2006 2007 2008  2009  2010 2011 2012Décennies :1970 1980 1990  2000  2010 2020 2030Siècles :XIXe XXe  XXIe  XXIIe XXIIIeMillénaires :Ier IIe  IIIe  Chronologies géographiques Afrique Afrique du Sud, Algérie, Angola, Bénin...

 

2010 aviation accident Merpati Nusantara Airlines Flight 836The aircraft involved in the incidentRunway overrun/bad weatherDate13 April 2010SummaryRunway overrun caused by bad weatherSiteRendani Airport, Manokwari, Indonesia 0°52′51″S 134°02′52″E / 0.88083°S 134.04778°E / -0.88083; 134.04778AircraftAircraft typeBoeing 737-322OperatorMerpati Nusantara AirlinesIATA flight No.MZ836RegistrationPK-MDEFlight originSorong Airport, IndonesiaDestinationRendani ...

Cet article est une ébauche concernant les mathématiques. Vous pouvez partager vos connaissances en l’améliorant (comment ?) selon les recommandations des projets correspondants. En mathématiques, l’espace de de Sitter est un espace maximalement symétrique en quatre dimensions de courbure positive en signature ( − , + , + , + ) {\displaystyle (-,+,+,+)\,} . Il généralise en ce sens la 4-sphère au-delà de la géométrie euclidienne. Le nom vient de Willem de Sitter. La...

 

Sjahruddin RasulLahir(1945-08-17)17 Agustus 1945Padang, Sumatera BaratMeninggal23 Desember 2017(2017-12-23) (umur 72)Rumah Sakit Islam JakartaKebangsaanIndonesiaPekerjaanauditor, Ahli hukumTahun aktif2003-2007Dikenal atasWakil Ketua KPK Sjahruddin Rasul, S.H. (17 Agustus 1945 – 23 Desember 2017) adalah seorang auditor dan tokoh antikorupsi Indonesia. Ia memulai karier pendidikannya di Fakultas Hukum, Universitas Padjadjaran dan menyelesaikan pendidikan sarjananya pad...

 

Artikel ini tidak memiliki referensi atau sumber tepercaya sehingga isinya tidak bisa dipastikan. Tolong bantu perbaiki artikel ini dengan menambahkan referensi yang layak. Tulisan tanpa sumber dapat dipertanyakan dan dihapus sewaktu-waktu.Cari sumber: Maskara grup musik – berita · surat kabar · buku · cendekiawan · JSTOR MaskaraAsalJakartaGenrePopR&BTahun aktif2010-sekarangLabelSeven MusicAnggotaCintiaSyanaFloAdonia Maskara adalah sebuah grup...

Secondary school in Glasgow City, Scotland, UK This article needs additional citations for verification. Please help improve this article by adding citations to reliable sources. Unsourced material may be challenged and removed.Find sources: Smithycroft Secondary School – news · newspapers · books · scholar · JSTOR (November 2011) (Learn how and when to remove this template message) Smithycroft Secondary School is located in Riddrie, Glasgow, Scotland....

 

  此條目介紹的是於2018年2月在臺北市發生的一宗命案。关于臺港兩地處理殺人案及移送疑兇到臺灣的爭議,请见「陳同佳送台案」。 若非特別註明,本條目所有時間皆為東八區標準時間(UTC+8)。 潘曉穎命案位置 臺北市大同區紫園旅店日期2018年2月17日類型謀殺案、遺棄屍體受害者 潘曉穎(死亡)疑犯 陳同佳[1][2]動機情侶爭執刑事狀況 香港方面:陳同...

 

British Labour politician Catherine McKinnellMPOfficial portrait, 2017Member of Parliamentfor Newcastle upon Tyne NorthIncumbentAssumed office 6 May 2010Preceded byDoug HendersonMajority5,765 (12.3%)Chair of the Petitions CommitteeIn office29 January 2020 – 5 September 2023Preceded byHelen JonesSucceeded byCat Smith Shadow portfolios Shadow Cabinet2015–2016Attorney GeneralShadow Frontbench2023–presentSchools2013–2015Exchequer Secretary2011–2013Children and Families2010...

برج الزاوية في المدينة المحرمة ،بكين. العمارة الصينية هي نمط من العمارة التي اتخذت شكل في شرق آسيا على مدى قرون عديدة. ظلت المبادئ الهيكلية للعمارة الصينية دون تغيير إلى حد كبير، والتغييرات الرئيسية هي فقط تفاصيل الزخرفة. منذ عهد أسرة تانغ، كان للعمارة الصينية تأثير كبير ع...

 

Secretary of the League of Communists of YugoslaviaSekretar Predsjedništva Centralnog komiteta Saveza komunista Jugoslavije (Serbo-Croatian)Emblem of the LCYLongest servingStane Dolanc27 January 1972 – 15 May 1979SeatUšće Towers, BelgradeAppointerCentral CommitteeFormation4 October 1966First holderMijalko TodorovićFinal holderPetar Škundrić(acting)Abolished27 May 1990 The secretary of the Presidency of the Central Committee of the League of Communists of Yugoslavia (LCY) was the ...

 

This article needs additional citations for verification. Please help improve this article by adding citations to reliable sources. Unsourced material may be challenged and removed.Find sources: Embassy of Ukraine, Bern – news · newspapers · books · scholar · JSTOR (February 2021) (Learn how and when to remove this template message) Embassy of Ukraine in BernLocationBern, SwitzerlandAddressFeldeggweg 5, 3005 Bern, Switzerland[1]Coordinates46°5...

Kepulauan Ryukyu, Jepang membentuk busur kepulauan. Busur kepulauan merupakan salah satu tipe kepulauan, yang biasanya terdiri dari rantai gunung api, dengan susunan berbentuk busur, dan sejajar serta dekat dengan batas antar dua lempeng tektonik yang saling bertumbukkan. Sebagian besar busur kepulauan terbentuk sebagai satu lempeng samudra yang menujam ke lempeng lainnya, dan (di hampir semua kasus) memproduksi magma di bawah lempeng yang ditujamnya. Meskipun begitu, ini hanya terjadi pada b...

 

Bhavani MandapLocation within MaharashtraGeneral informationLocationKolhapur, Maharashtra, IndiaCoordinates16°41′42″N 74°13′27″E / 16.694871°N 74.224195°E / 16.694871; 74.224195 Bhavani Mandap is a historical building situated in the walled city center of Kolhapur in southern Maharashtra, India. It is located near the famous and mammoth Mahalaxmi Temple on the west.[1] Religious significance It is a royal palace of the Maharaja of Kolhapur. It used ...

 

Norwegian low-cost airline Norwegian Air Shuttle ASA IATA ICAO Callsign DY NOZ NORDIC Founded22 January 1993; 30 years ago (1993-01-22)AOC #NO.AOC.028 (1993–2021)NO.AOC.090 (2021)Operating bases Oslo Barcelona (seasonal base) Bergen Stavanger Trondheim Copenhagen Stockholm Helsinki Málaga Alicante Riga Frequent-flyer programNorwegian RewardSubsidiaries Norwegian Air Norway Norwegian Air Sweden Fleet size81 (including subsidiaries)Destinations105[1]Traded ...

Chinreisha鎮霊社ReligionAffiliationShintoDeityWar deadTypeImperial ShrineLocationShown within JapanGeographic coordinates35°41′36.92″N 139°44′35″E / 35.6935889°N 139.74306°E / 35.6935889; 139.74306ArchitectureFounderFujimaro TsukubaDate established1965 Glossary of Shinto Chinreisha (鎮霊社, Spirit Pacifying Shrine) is a small wooden Shinto shrine located directly south of Yasukuni Shrine's honden (main shrine) in Yasukuni Shrine precinct. It was built...

 

This article has multiple issues. Please help improve it or discuss these issues on the talk page. (Learn how and when to remove these template messages) This article needs additional citations for verification. Please help improve this article by adding citations to reliable sources. Unsourced material may be challenged and removed.Find sources: Hoodlum Thunder – news · newspapers · books · scholar · JSTOR (January 2021) (Learn how and when to remove ...

 

Protected nature reserve in Gibraltar Gibraltar Nature ReserveIUCN category V (protected landscape/seascape)View north along the spine of the Rock of Gibraltar, within the nature reserve looking towards Spain.The nature reserve is coloured in the light shaded area, facing the Alboran Sea.LocationRock of Gibraltar, Great Gibraltar Sand Dune, Windmill Hill and Europa Foreshore, British Overseas Territory of Gibraltar, United KingdomNearest cityGibraltarCoordinates36°08′43″N 05°20′3...

This article needs additional citations for verification. Please help improve this article by adding citations to reliable sources. Unsourced material may be challenged and removed.Find sources: Prism correction – news · newspapers · books · scholar · JSTOR (June 2013) (Learn how and when to remove this template message) Prism lenses (here unusually thick) are used for pre-operative prism adaptation. Eye care professionals use prism correction as a com...

 

Капская винная змея Научная классификация Домен:ЭукариотыЦарство:ЖивотныеПодцарство:ЭуметазоиБез ранга:Двусторонне-симметричныеБез ранга:ВторичноротыеТип:ХордовыеПодтип:ПозвоночныеИнфратип:ЧелюстноротыеНадкласс:ЧетвероногиеКлада:АмниотыКлада:ЗавропсидыКласс:...

 

Strategi Solo vs Squad di Free Fire: Cara Menang Mudah!