{"id":296,"date":"2012-11-06T11:13:05","date_gmt":"2012-11-06T11:13:05","guid":{"rendered":"http:\/\/www.jontrinder.com\/blog\/?p=296"},"modified":"2012-11-06T15:49:11","modified_gmt":"2012-11-06T15:49:11","slug":"rpi-autologin-auto-start-an-application-disable-screen-blanking","status":"publish","type":"post","link":"https:\/\/www.jontrinder.com\/blog\/?p=296","title":{"rendered":"RPi, AutoLogin, Auto start an application, Disable Screen blanking."},"content":{"rendered":"<p>These notes are for use when  it is required that a device automatically starts, runs an x-session and then runs a  particular task.<br \/>\nFor example an information display. In those situations it may also be required that the screen does not blank.<br \/>\n<strong>Auto Login<\/strong><\/p>\n<p>Notes from\u00a0<a href=\"http:\/\/elinux.org\/RPi_Debian_Auto_Login\">http:\/\/elinux.org\/RPi_Debian_Auto_Login<\/a><\/p>\n<p>sudo nano \/etc\/rc.local<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nsu whateverusername -c startx\r\n<\/pre>\n<p><strong>Stop the screen saver<\/strong><\/p>\n<p>Notes from\u00a0<a href=\"http:\/\/raspberrypi.stackexchange.com\/questions\/752\/how-do-i-prevent-the-screen-from-going-blank\" rel=\"nofollow\">http:\/\/raspberrypi.stackexchange.com\/questions\/752\/how-do-i-prevent-the-screen-from-going-blank<\/a><\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\ninstall xset apt-get install x11-xserver-utils\r\n<\/pre>\n<p>open or create ~\/.xinitrc<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n\r\nxset s off # don't activate screensaver\r\nxset -dpms # disable DPMS (Energy Star) features.\r\nxset s noblank # don't blank the video device\r\n\r\nexec \/etc\/alternatives\/x-session-manager # start lxde\r\n\r\n<\/pre>\n<p><strong>Auto run<\/strong><\/p>\n<p>Notes from\u00a0<a href=\"http:\/\/blog.flowbuzz.com\/2012\/07\/raspberry-pi-and-autostart.html\">http:\/\/blog.flowbuzz.com\/2012\/07\/raspberry-pi-and-autostart.html<\/a><\/p>\n<p>cd ~\/.config<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nmkdir autostart\r\n<\/pre>\n<p>then creat file called .desktop<\/p>\n<p>format of contents is<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n&#x5B;Desktop Entry]\r\nType=Application\r\nExec=\/filetorun\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>These notes are for use when it is required that a device automatically starts, runs an x-session and then runs a particular task. For example an information display. In those situations it may also be required that the screen does &hellip; <a href=\"https:\/\/www.jontrinder.com\/blog\/?p=296\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[79,39,1],"tags":[],"class_list":["post-296","post","type-post","status-publish","format-standard","hentry","category-linux","category-raspberry-pi","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/www.jontrinder.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/296","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.jontrinder.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.jontrinder.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.jontrinder.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.jontrinder.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=296"}],"version-history":[{"count":14,"href":"https:\/\/www.jontrinder.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/296\/revisions"}],"predecessor-version":[{"id":309,"href":"https:\/\/www.jontrinder.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/296\/revisions\/309"}],"wp:attachment":[{"href":"https:\/\/www.jontrinder.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=296"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.jontrinder.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=296"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.jontrinder.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=296"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}