{"id":708,"date":"2012-10-23T19:26:33","date_gmt":"2012-10-23T19:26:33","guid":{"rendered":"https:\/\/raspberry-projects.com\/pi\/?p=708"},"modified":"2020-10-07T09:17:17","modified_gmt":"2020-10-07T09:17:17","slug":"screensaver","status":"publish","type":"post","link":"https:\/\/raspberry-projects.com\/pi\/pi-operating-systems\/raspbian\/screensaver","title":{"rendered":"Screensaver"},"content":{"rendered":"\n<h4 class=\"wp-block-heading\">Turning off the screen saver &#8211; Easy way<\/h4>\n\n\n\n<p>An easy way to achieve this is to install xscreensaver then configure it to disable (its also the Raspberry Pi <a href=\"https:\/\/www.raspberrypi.org\/documentation\/configuration\/screensaver.md\" target=\"_blank\" rel=\"noreferrer noopener\">recommended way<\/a>)<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt-get install xscreensaver<\/code><\/pre>\n\n\n\n<p>Then in the GUI go to Preferences >\u00a0Screensaver\u00a0> Display Modes > Select disable screen saver from the dropdown.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Turning off the console screen saver &#8211; Raspbian Buster<\/h4>\n\n\n\n<p>Ciew the current setting in seconds:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>cat \/sys\/module\/kernel\/parameters\/consoleblank<\/code><\/pre>\n\n\n\n<p>To disable the screensaver:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo nano \/boot\/cmdline.txt<\/code><\/pre>\n\n\n\n<p>Add the following line to the file:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>consoleblank=0<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">Turning off the screen saver &#8211; Raspbian Jesse<\/h4>\n\n\n\n<h5 class=\"wp-block-heading\">Edit the autostart&nbsp;file<\/h5>\n\n\n\n<p>For the&nbsp;standard Pi user:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo nano \/home\/pi\/.config\/lxsession\/LXDE-pi\/autostart<\/code><\/pre>\n\n\n\n<p>For the&nbsp;root&nbsp;Pi user (if running the GUI with &#8220;sudo startx&#8221; for instance when running apps that access the IO pins):<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo nano \/root\/.config\/lxsession\/LXDE-pi\/autostart<\/code><\/pre>\n\n\n\n<p>If the above doesn&#8217;t work, then there is not a per user file so edit the global one:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo nano \/etc\/xdg\/lxsession\/LXDE-pi\/autostart<\/code><\/pre>\n\n\n\n<p><span style=\"color: #d3d3d3;\"><em>The above has changed in&nbsp;that really annoying way that happens all to often with Linux versions,&nbsp;but seems to be the current file&nbsp;that needs to be edited.&nbsp; It used to be these but they no longer seem to work with the latest version&nbsp;of raspbian:<\/em><\/span><\/p>\n\n\n\n<p><span style=\"color: #d3d3d3;\"><em>sudo nano \/etc\/xdg\/lxsession\/LXDE\/autostart<br>sudo nano \/etc\/xdg\/lxsession\/LXDE-pi\/autostart<\/em><\/span><\/p>\n\n\n\n<p>Comment out the screensaver line, e.g.:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>@lxpanel --profile LXDE-pi\n@pcmanfm --desktop --profile LXDE-pi\n#@xscreensaver -no-splash\n@sh ${HOME}\/.config\/lxsession\/LXDE-pi\/autokey.sh<\/code><\/pre>\n\n\n\n<p>Then add these lines:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>#Disable screensaver:\n@xset s noblank \n@xset s off \n@xset -dpms<\/code><\/pre>\n\n\n\n<p>Press CTRL+X to save and exit.<\/p>\n\n\n\n<h5 class=\"wp-block-heading\">Now edit&nbsp;config<\/h5>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo nano \/etc\/kbd\/config<\/code><\/pre>\n\n\n\n<p>Find the following lines and set the values accordingly:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>BLANK_TIME=0\nBLANK_DPMS=off\nPOWERDOWN_TIME=0<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Turning off the screen saver &#8211; Easy way An easy way to achieve this is to install xscreensaver then configure it to disable (its also the Raspberry Pi recommended way) Then in the GUI go to Preferences >\u00a0Screensaver\u00a0> Display Modes > Select disable screen saver from the dropdown. Turning off the console screen saver &#8211; [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11],"tags":[],"class_list":["post-708","post","type-post","status-publish","format-standard","hentry","category-raspbian"],"_links":{"self":[{"href":"https:\/\/raspberry-projects.com\/pi\/wp-json\/wp\/v2\/posts\/708","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/raspberry-projects.com\/pi\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/raspberry-projects.com\/pi\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/raspberry-projects.com\/pi\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/raspberry-projects.com\/pi\/wp-json\/wp\/v2\/comments?post=708"}],"version-history":[{"count":21,"href":"https:\/\/raspberry-projects.com\/pi\/wp-json\/wp\/v2\/posts\/708\/revisions"}],"predecessor-version":[{"id":3447,"href":"https:\/\/raspberry-projects.com\/pi\/wp-json\/wp\/v2\/posts\/708\/revisions\/3447"}],"wp:attachment":[{"href":"https:\/\/raspberry-projects.com\/pi\/wp-json\/wp\/v2\/media?parent=708"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/raspberry-projects.com\/pi\/wp-json\/wp\/v2\/categories?post=708"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/raspberry-projects.com\/pi\/wp-json\/wp\/v2\/tags?post=708"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}