{"id":169,"date":"2013-12-08T14:27:14","date_gmt":"2013-12-08T13:27:14","guid":{"rendered":"http:\/\/www.graverini.net\/elena\/?page_id=169"},"modified":"2016-08-02T11:08:51","modified_gmt":"2016-08-02T09:08:51","slug":"install-hardware-sensors","status":"publish","type":"page","link":"http:\/\/www.graverini.net\/elena\/computing\/linux\/install-hardware-sensors\/","title":{"rendered":"Install hardware sensors"},"content":{"rendered":"<p><code>sudo apt-get install lm-sensors<\/code><\/p>\n<p>Create and run this script:<\/p>\n<p><code>gedit mkdev.sh<\/code><\/p>\n<p>Enter:<\/p>\n<pre lang=\"bash\">\r\n#!\/bin\/bash\r\n# Here you can set several defaults.\r\n# The number of devices to create (max: 256)\r\nNUMBER=32\r\n# The owner and group of the devices\r\nOUSER=root\r\nOGROUP=root\r\n# The mode of the devices\r\nMODE=600\r\n# This script doesn't need to be run if devfs is used\r\nif [ -r \/proc\/mounts ] ; then\r\nif grep -q \"\/dev devfs\" \/proc\/mounts ; then\r\necho \"You do not need to run this script as your system uses devfs.\"\r\nexit;\r\nfi\r\nfi\r\ni=0;\r\nwhile [ $i -lt $NUMBER ] ; do\r\necho \/dev\/i2c-$i\r\nmknod -m $MODE \/dev\/i2c-$i c 89 $i || exit\r\nchown \"$OUSER:$OGROUP\" \/dev\/i2c-$i || exit\r\ni=$[$i + 1]\r\ndone\r\n#end of file<\/pre>\n<p>Save and exit.<\/p>\n<p><code>chmod 755 mkdev.sh &amp;&amp; sudo .\/mkdev.sh<\/code><br \/>\n<code>sudo sensors-detect<\/code><\/p>\n<p>Answer &#8220;yes&#8221; to every &#8220;yes\/no&#8221; question. At the end, take note of the list of modules that need to be loaded, and answer &#8220;no&#8221; to the automatic installation of those.<\/p>\n<p><code>sudo gedit \/etc\/modules<\/code><\/p>\n<p>Add the list of modules in the reverse order. For every module added:<\/p>\n<p><code>sudo modprobe module<\/code><\/p>\n<p>Then:<\/p>\n<p><code>sudo depmod -a<\/code><\/p>\n<p>To execute them:<\/p>\n<p><code>sensors<\/code><\/p>\n<p>(Source: <a href=\"http:\/\/ubuntuforums.org\/showthread.php?t=2780\" target='blank'>http:\/\/ubuntuforums.org\/showthread.php?t=2780<\/a>)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>sudo apt-get install lm-sensors Create and run this script: gedit mkdev.sh Enter: #!\/bin\/bash # Here you can set several defaults. # The number of devices to create (max: 256) NUMBER=32 # The owner and group of the devices OUSER=root OGROUP=root&hellip; <\/p>\n","protected":false},"author":1,"featured_media":0,"parent":97,"menu_order":0,"comment_status":"closed","ping_status":"open","template":"","meta":{"_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v22.6 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Install hardware sensors - Elena Graverini<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.graverini.net\/elena\/computing\/linux\/install-hardware-sensors\/\" \/>\n<meta property=\"og:locale\" content=\"en_GB\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Install hardware sensors - Elena Graverini\" \/>\n<meta property=\"og:description\" content=\"sudo apt-get install lm-sensors Create and run this script: gedit mkdev.sh Enter: #!\/bin\/bash # Here you can set several defaults. # The number of devices to create (max: 256) NUMBER=32 # The owner and group of the devices OUSER=root OGROUP=root&hellip;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.graverini.net\/elena\/computing\/linux\/install-hardware-sensors\/\" \/>\n<meta property=\"og:site_name\" content=\"Elena Graverini\" \/>\n<meta property=\"article:modified_time\" content=\"2016-08-02T09:08:51+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/www.graverini.net\/elena\/wp-content\/uploads\/2013\/12\/Penguins.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1024\" \/>\n\t<meta property=\"og:image:height\" content=\"768\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"twitter:label1\" content=\"Estimated reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.graverini.net\/elena\/computing\/linux\/install-hardware-sensors\/\",\"url\":\"https:\/\/www.graverini.net\/elena\/computing\/linux\/install-hardware-sensors\/\",\"name\":\"Install hardware sensors - Elena Graverini\",\"isPartOf\":{\"@id\":\"https:\/\/www.graverini.net\/elena\/#website\"},\"datePublished\":\"2013-12-08T13:27:14+00:00\",\"dateModified\":\"2016-08-02T09:08:51+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.graverini.net\/elena\/computing\/linux\/install-hardware-sensors\/#breadcrumb\"},\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.graverini.net\/elena\/computing\/linux\/install-hardware-sensors\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.graverini.net\/elena\/computing\/linux\/install-hardware-sensors\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.graverini.net\/elena\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Computing\",\"item\":\"http:\/\/www.graverini.net\/elena\/computing\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Linux Ubuntu\/Mint\",\"item\":\"http:\/\/www.graverini.net\/elena\/computing\/linux\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Install hardware sensors\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.graverini.net\/elena\/#website\",\"url\":\"https:\/\/www.graverini.net\/elena\/\",\"name\":\"Elena Graverini\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.graverini.net\/elena\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-GB\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Install hardware sensors - Elena Graverini","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.graverini.net\/elena\/computing\/linux\/install-hardware-sensors\/","og_locale":"en_GB","og_type":"article","og_title":"Install hardware sensors - Elena Graverini","og_description":"sudo apt-get install lm-sensors Create and run this script: gedit mkdev.sh Enter: #!\/bin\/bash # Here you can set several defaults. # The number of devices to create (max: 256) NUMBER=32 # The owner and group of the devices OUSER=root OGROUP=root&hellip;","og_url":"https:\/\/www.graverini.net\/elena\/computing\/linux\/install-hardware-sensors\/","og_site_name":"Elena Graverini","article_modified_time":"2016-08-02T09:08:51+00:00","og_image":[{"width":1024,"height":768,"url":"http:\/\/www.graverini.net\/elena\/wp-content\/uploads\/2013\/12\/Penguins.jpg","type":"image\/jpeg"}],"twitter_misc":{"Estimated reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.graverini.net\/elena\/computing\/linux\/install-hardware-sensors\/","url":"https:\/\/www.graverini.net\/elena\/computing\/linux\/install-hardware-sensors\/","name":"Install hardware sensors - Elena Graverini","isPartOf":{"@id":"https:\/\/www.graverini.net\/elena\/#website"},"datePublished":"2013-12-08T13:27:14+00:00","dateModified":"2016-08-02T09:08:51+00:00","breadcrumb":{"@id":"https:\/\/www.graverini.net\/elena\/computing\/linux\/install-hardware-sensors\/#breadcrumb"},"inLanguage":"en-GB","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.graverini.net\/elena\/computing\/linux\/install-hardware-sensors\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.graverini.net\/elena\/computing\/linux\/install-hardware-sensors\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.graverini.net\/elena\/"},{"@type":"ListItem","position":2,"name":"Computing","item":"http:\/\/www.graverini.net\/elena\/computing\/"},{"@type":"ListItem","position":3,"name":"Linux Ubuntu\/Mint","item":"http:\/\/www.graverini.net\/elena\/computing\/linux\/"},{"@type":"ListItem","position":4,"name":"Install hardware sensors"}]},{"@type":"WebSite","@id":"https:\/\/www.graverini.net\/elena\/#website","url":"https:\/\/www.graverini.net\/elena\/","name":"Elena Graverini","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.graverini.net\/elena\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-GB"}]}},"_links":{"self":[{"href":"http:\/\/www.graverini.net\/elena\/wp-json\/wp\/v2\/pages\/169"}],"collection":[{"href":"http:\/\/www.graverini.net\/elena\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"http:\/\/www.graverini.net\/elena\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"http:\/\/www.graverini.net\/elena\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.graverini.net\/elena\/wp-json\/wp\/v2\/comments?post=169"}],"version-history":[{"count":9,"href":"http:\/\/www.graverini.net\/elena\/wp-json\/wp\/v2\/pages\/169\/revisions"}],"predecessor-version":[{"id":551,"href":"http:\/\/www.graverini.net\/elena\/wp-json\/wp\/v2\/pages\/169\/revisions\/551"}],"up":[{"embeddable":true,"href":"http:\/\/www.graverini.net\/elena\/wp-json\/wp\/v2\/pages\/97"}],"wp:attachment":[{"href":"http:\/\/www.graverini.net\/elena\/wp-json\/wp\/v2\/media?parent=169"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}