{"id":26355,"date":"2022-12-07T16:55:11","date_gmt":"2022-12-07T15:55:11","guid":{"rendered":"https:\/\/ekiwi-blog.de\/?p=26355"},"modified":"2022-12-11T16:14:34","modified_gmt":"2022-12-11T15:14:34","slug":"opensuse-as-server-hard-disk-does-not-go-into-standby","status":"publish","type":"post","link":"https:\/\/ekiwi-blog.de\/en\/26355\/opensuse-as-server-hard-disk-does-not-go-into-standby\/","title":{"rendered":"openSuse as server: Hard disk does not go into standby"},"content":{"rendered":"<p>Activate hard disk standby in Linux.<\/p>\n<p><!--more--><\/p>\n<p>My new server is running Linux, more specifically openSuse. After setting it up, I noticed that the hard disk does not go into standby, but runs through. This can save a few watts, which makes sense given today&#8217;s electricity prices.<\/p>\n<p><iframe loading=\"lazy\" width=\"560\" height=\"315\" src=\"https:\/\/www.youtube.com\/embed\/9mLYywdFAdo\" title=\"YouTube video player\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen><\/iframe><\/p>\n<h2>Installation of tlp<\/h2>\n<p>First we install the package &#8220;tlp&#8221;. This package implements different power-saving settings for the computer. Among others, also for hard disks and drives.<\/p>\n<pre>\r\nsudo zypper in tlp\r\n<\/pre>\n<p>Then we edit the following file:<\/p>\n<pre>\r\n\/etc\/tlp.conf\r\n<\/pre>\n<p>First we activate the functions by commenting the following line (i.e. remove the # at the beginning)<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/ekiwi-blog.de\/wp-content\/uploads\/2022\/12\/standby_1.png\" alt=\"\" width=\"400\" height=\"132\" class=\"aligncenter size-full wp-image-26350\" srcset=\"https:\/\/ekiwi-blog.de\/wp-content\/uploads\/2022\/12\/standby_1.png 400w, https:\/\/ekiwi-blog.de\/wp-content\/uploads\/2022\/12\/standby_1-300x99.png 300w\" sizes=\"auto, (max-width: 400px) 100vw, 400px\" \/><\/p>\n<p>We find the hard disk settings at DISK_DEVICES. We also comment on these. If necessary, we enter our hard disks here. Several disks or device names are separated with spaces.<\/p>\n<p>The actual setting is made in the next step, where values from 1 to 255 can be entered. I use 128 here, which switches the unit off after 10 minutes of inactivity. The values are set for battery and current. Here, too, the devices or the setting are separated with spaces.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/ekiwi-blog.de\/wp-content\/uploads\/2022\/12\/standby_2.png\" alt=\"\" width=\"800\" height=\"340\" class=\"aligncenter size-full wp-image-26352\" srcset=\"https:\/\/ekiwi-blog.de\/wp-content\/uploads\/2022\/12\/standby_2.png 800w, https:\/\/ekiwi-blog.de\/wp-content\/uploads\/2022\/12\/standby_2-300x128.png 300w, https:\/\/ekiwi-blog.de\/wp-content\/uploads\/2022\/12\/standby_2-768x326.png 768w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/p>\n<p>An explanation for different values <a href=\"https:\/\/linrunner.de\/tlp\/settings\/disks.html\" target=\"_blank\" rel=\"noopener\">can be found here<\/a>.<\/p>\n<p>Then we have to activate &#8220;tlp&#8221; as a system service and start it.<\/p>\n<pre>\r\nsudo systemctl enable tlp\r\nsudo systemctl start tlp\r\n<\/pre>\n<p>Done! The hard disk should now be retired. We can query the current status with the following command:<\/p>\n<pre>\r\nhdparm -C \/dev\/sda\r\n<\/pre>\n\n<div class=\"aawp\">\n\n            \n            \n<div class=\"aawp-product aawp-product--horizontal aawp-product--bestseller aawp-product--ribbon\"  data-aawp-product-asin=\"3367110698\" data-aawp-product-id=\"111497\" data-aawp-tracking-id=\"ekiwide0b-21\" data-aawp-product-title=\"Linux  30 Jahre das umfassende Handbuch von Michael Kofler F\u00fcr alle aktuellen Distributionen  Desktop und Server  F\u00fcr Einsteiger und Profis\">\n\n    <span class=\"aawp-product__ribbon aawp-product__ribbon--bestseller\">Bestseller No. 1<\/span>\n    <div class=\"aawp-product__thumb\">\n        <a class=\"aawp-product__image-link\"\n           href=\"https:\/\/www.amazon.de\/dp\/3367110698?tag=ekiwide0b-21&linkCode=ogi&th=1&psc=1&keywords=linux%20buch\" title=\"Linux: 30 Jahre das umfassende Handbuch von Michael Kofler. F\u00fcr alle...\" rel=\"nofollow noopener sponsored\" target=\"_blank\">\n            <img decoding=\"async\" class=\"aawp-product__image\" src=\"https:\/\/m.media-amazon.com\/images\/I\/516AQUteh4L._SL160_.jpg\" alt=\"Linux: 30 Jahre das umfassende Handbuch von Michael Kofler. F\u00fcr alle...\"  \/>\n        <\/a>\n\n            <\/div>\n\n    <div class=\"aawp-product__content\">\n        <a class=\"aawp-product__title\" href=\"https:\/\/www.amazon.de\/dp\/3367110698?tag=ekiwide0b-21&linkCode=ogi&th=1&psc=1&keywords=linux%20buch\" title=\"Linux: 30 Jahre das umfassende Handbuch von Michael Kofler. F\u00fcr alle...\" rel=\"nofollow noopener sponsored\" target=\"_blank\">\n            Linux: 30 Jahre das umfassende Handbuch von Michael Kofler. F\u00fcr alle...        <\/a>\n        <div class=\"aawp-product__description\">\n                    <\/div>\n    <\/div>\n\n    <div class=\"aawp-product__footer\">\n\n        <div class=\"aawp-product__pricing\">\n            \n                            <span class=\"aawp-product__price aawp-product__price--current\">49,90 EUR<\/span>\n            \n            <a href=\"https:\/\/www.amazon.de\/gp\/prime\/?tag=ekiwide0b-21\" title=\"Amazon Prime\" rel=\"nofollow noopener sponsored\" target=\"_blank\" class=\"aawp-check-prime\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ekiwi-blog.de\/wp-content\/plugins\/aawp\/assets\/img\/icon-check-prime.svg\" height=\"16\" width=\"55\" alt=\"Amazon Prime\" \/><\/a>        <\/div>\n\n                <a class=\"aawp-button aawp-button--buy aawp-button--icon aawp-button--icon-black\" href=\"https:\/\/www.amazon.de\/dp\/3367110698?tag=ekiwide0b-21&#038;linkCode=ogi&#038;th=1&#038;psc=1&#038;keywords=linux%20buch\" title=\"Buy on Amazon\" target=\"_blank\" rel=\"nofollow noopener sponsored\">Buy on Amazon<\/a>\n            <\/div>\n\n<\/div>\n\n            \n            \n<div class=\"aawp-product aawp-product--horizontal aawp-product--bestseller aawp-product--ribbon\"  data-aawp-product-asin=\"3367100935\" data-aawp-product-id=\"111388\" data-aawp-tracking-id=\"ekiwide0b-21\" data-aawp-product-title=\"Einstieg in Linux Mint 22  Ohne Vorwissen direkt durchstarten und die Linux-Welt entdecken\">\n\n    <span class=\"aawp-product__ribbon aawp-product__ribbon--bestseller\">Bestseller No. 2<\/span>\n    <div class=\"aawp-product__thumb\">\n        <a class=\"aawp-product__image-link\"\n           href=\"https:\/\/www.amazon.de\/dp\/3367100935?tag=ekiwide0b-21&linkCode=ogi&th=1&psc=1&keywords=linux%20buch\" title=\"Einstieg in Linux Mint 22: Ohne Vorwissen direkt durchstarten und die...\" rel=\"nofollow noopener sponsored\" target=\"_blank\">\n            <img decoding=\"async\" class=\"aawp-product__image\" src=\"https:\/\/m.media-amazon.com\/images\/I\/41QsN6n-8mL._SL160_.jpg\" alt=\"Einstieg in Linux Mint 22: Ohne Vorwissen direkt durchstarten und die...\"  \/>\n        <\/a>\n\n            <\/div>\n\n    <div class=\"aawp-product__content\">\n        <a class=\"aawp-product__title\" href=\"https:\/\/www.amazon.de\/dp\/3367100935?tag=ekiwide0b-21&linkCode=ogi&th=1&psc=1&keywords=linux%20buch\" title=\"Einstieg in Linux Mint 22: Ohne Vorwissen direkt durchstarten und die...\" rel=\"nofollow noopener sponsored\" target=\"_blank\">\n            Einstieg in Linux Mint 22: Ohne Vorwissen direkt durchstarten und die...        <\/a>\n        <div class=\"aawp-product__description\">\n                    <\/div>\n    <\/div>\n\n    <div class=\"aawp-product__footer\">\n\n        <div class=\"aawp-product__pricing\">\n            \n                            <span class=\"aawp-product__price aawp-product__price--current\">29,90 EUR<\/span>\n            \n            <a href=\"https:\/\/www.amazon.de\/gp\/prime\/?tag=ekiwide0b-21\" title=\"Amazon Prime\" rel=\"nofollow noopener sponsored\" target=\"_blank\" class=\"aawp-check-prime\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ekiwi-blog.de\/wp-content\/plugins\/aawp\/assets\/img\/icon-check-prime.svg\" height=\"16\" width=\"55\" alt=\"Amazon Prime\" \/><\/a>        <\/div>\n\n                <a class=\"aawp-button aawp-button--buy aawp-button--icon aawp-button--icon-black\" href=\"https:\/\/www.amazon.de\/dp\/3367100935?tag=ekiwide0b-21&#038;linkCode=ogi&#038;th=1&#038;psc=1&#038;keywords=linux%20buch\" title=\"Buy on Amazon\" target=\"_blank\" rel=\"nofollow noopener sponsored\">Buy on Amazon<\/a>\n            <\/div>\n\n<\/div>\n\n            \n            \n<div class=\"aawp-product aawp-product--horizontal aawp-product--ribbon aawp-product--sale aawp-product--bestseller\"  data-aawp-product-asin=\"1718500408\" data-aawp-product-id=\"109944\" data-aawp-tracking-id=\"ekiwide0b-21\" data-aawp-product-title=\"How Linux Works 3rd Edition  What Every Superuser Should Know\">\n\n    <span class=\"aawp-product__ribbon aawp-product__ribbon--sale\">Sale<\/span><span class=\"aawp-product__ribbon aawp-product__ribbon--bestseller\">Bestseller No. 3<\/span>\n    <div class=\"aawp-product__thumb\">\n        <a class=\"aawp-product__image-link\"\n           href=\"https:\/\/www.amazon.de\/dp\/1718500408?tag=ekiwide0b-21&linkCode=ogi&th=1&psc=1&keywords=linux%20buch\" title=\"How Linux Works, 3rd Edition: What Every Superuser Should Know\" rel=\"nofollow noopener sponsored\" target=\"_blank\">\n            <img decoding=\"async\" class=\"aawp-product__image\" src=\"https:\/\/m.media-amazon.com\/images\/I\/41WZgvNyIvL._SL160_.jpg\" alt=\"How Linux Works, 3rd Edition: What Every Superuser Should Know\"  \/>\n        <\/a>\n\n            <\/div>\n\n    <div class=\"aawp-product__content\">\n        <a class=\"aawp-product__title\" href=\"https:\/\/www.amazon.de\/dp\/1718500408?tag=ekiwide0b-21&linkCode=ogi&th=1&psc=1&keywords=linux%20buch\" title=\"How Linux Works, 3rd Edition: What Every Superuser Should Know\" rel=\"nofollow noopener sponsored\" target=\"_blank\">\n            How Linux Works, 3rd Edition: What Every Superuser Should Know        <\/a>\n        <div class=\"aawp-product__description\">\n                    <\/div>\n    <\/div>\n\n    <div class=\"aawp-product__footer\">\n\n        <div class=\"aawp-product__pricing\">\n                                                        \n                            <span class=\"aawp-product__price aawp-product__price--current\">38,83 EUR<\/span>\n            \n            <a href=\"https:\/\/www.amazon.de\/gp\/prime\/?tag=ekiwide0b-21\" title=\"Amazon Prime\" rel=\"nofollow noopener sponsored\" target=\"_blank\" class=\"aawp-check-prime\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ekiwi-blog.de\/wp-content\/plugins\/aawp\/assets\/img\/icon-check-prime.svg\" height=\"16\" width=\"55\" alt=\"Amazon Prime\" \/><\/a>        <\/div>\n\n                <a class=\"aawp-button aawp-button--buy aawp-button--icon aawp-button--icon-black\" href=\"https:\/\/www.amazon.de\/dp\/1718500408?tag=ekiwide0b-21&#038;linkCode=ogi&#038;th=1&#038;psc=1&#038;keywords=linux%20buch\" title=\"Buy on Amazon\" target=\"_blank\" rel=\"nofollow noopener sponsored\">Buy on Amazon<\/a>\n            <\/div>\n\n<\/div>\n\n    \n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Activate hard disk standby in Linux.<\/p>\n","protected":false},"author":1,"featured_media":18426,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1555],"tags":[1682,1889],"class_list":["post-26355","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-software-en","tag-linux-en","tag-opensuse-en"],"_links":{"self":[{"href":"https:\/\/ekiwi-blog.de\/en\/wp-json\/wp\/v2\/posts\/26355","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ekiwi-blog.de\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ekiwi-blog.de\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ekiwi-blog.de\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ekiwi-blog.de\/en\/wp-json\/wp\/v2\/comments?post=26355"}],"version-history":[{"count":0,"href":"https:\/\/ekiwi-blog.de\/en\/wp-json\/wp\/v2\/posts\/26355\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ekiwi-blog.de\/en\/wp-json\/wp\/v2\/media\/18426"}],"wp:attachment":[{"href":"https:\/\/ekiwi-blog.de\/en\/wp-json\/wp\/v2\/media?parent=26355"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ekiwi-blog.de\/en\/wp-json\/wp\/v2\/categories?post=26355"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ekiwi-blog.de\/en\/wp-json\/wp\/v2\/tags?post=26355"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}