How do I disable screen blanking on Raspberry Pi












1















I am running Raspbian, and I am using this as a display device for a TV in a retail centre. I run Chromium on startup with this line in .profile:



xinit /usr/bin/chromium --kiosk --incognito www.mysite.com


...however none of the solutions to disable screen blanking seem to work (although they do work if I am in the Raspbian GUI). It is quite important (as you can imagine) that the display screen does not go blank.



Does anyone have any solutions to this?



I have tried the following:



setting the xinitrc file as in this example https://raspberrypi.stackexchange.com/questions/2059/disable-screen-blanking-in-x-windows-on-raspbian



setting exec /usr/bin/X -s 0 dpms -nolisten tcp "$@" in xserverrc



setting blank timeouts in /etc/kbd/config



setting /etc/lightdm/lightdm.conf with the following line: xserver-command=X -s 0 dpms



non of the above have worked



I have noticed a possible solution which entails installing xscreensaver then disabling it but I do not know how to make it run on startup.










share|improve this question

























  • ... Which solutions?

    – Ignacio Vazquez-Abrams
    Aug 16 '13 at 10:32











  • You can probably edit your answer to include everything you have missed)

    – Journeyman Geek
    Aug 16 '13 at 10:48











  • ok, question edited

    – coolblue2000
    Aug 16 '13 at 10:51











  • Check this answer

    – VL-80
    Aug 16 '13 at 15:51











  • @Nikolay, that answer does not work either.....

    – coolblue2000
    Aug 25 '13 at 9:18
















1















I am running Raspbian, and I am using this as a display device for a TV in a retail centre. I run Chromium on startup with this line in .profile:



xinit /usr/bin/chromium --kiosk --incognito www.mysite.com


...however none of the solutions to disable screen blanking seem to work (although they do work if I am in the Raspbian GUI). It is quite important (as you can imagine) that the display screen does not go blank.



Does anyone have any solutions to this?



I have tried the following:



setting the xinitrc file as in this example https://raspberrypi.stackexchange.com/questions/2059/disable-screen-blanking-in-x-windows-on-raspbian



setting exec /usr/bin/X -s 0 dpms -nolisten tcp "$@" in xserverrc



setting blank timeouts in /etc/kbd/config



setting /etc/lightdm/lightdm.conf with the following line: xserver-command=X -s 0 dpms



non of the above have worked



I have noticed a possible solution which entails installing xscreensaver then disabling it but I do not know how to make it run on startup.










share|improve this question

























  • ... Which solutions?

    – Ignacio Vazquez-Abrams
    Aug 16 '13 at 10:32











  • You can probably edit your answer to include everything you have missed)

    – Journeyman Geek
    Aug 16 '13 at 10:48











  • ok, question edited

    – coolblue2000
    Aug 16 '13 at 10:51











  • Check this answer

    – VL-80
    Aug 16 '13 at 15:51











  • @Nikolay, that answer does not work either.....

    – coolblue2000
    Aug 25 '13 at 9:18














1












1








1


1






I am running Raspbian, and I am using this as a display device for a TV in a retail centre. I run Chromium on startup with this line in .profile:



xinit /usr/bin/chromium --kiosk --incognito www.mysite.com


...however none of the solutions to disable screen blanking seem to work (although they do work if I am in the Raspbian GUI). It is quite important (as you can imagine) that the display screen does not go blank.



Does anyone have any solutions to this?



I have tried the following:



setting the xinitrc file as in this example https://raspberrypi.stackexchange.com/questions/2059/disable-screen-blanking-in-x-windows-on-raspbian



setting exec /usr/bin/X -s 0 dpms -nolisten tcp "$@" in xserverrc



setting blank timeouts in /etc/kbd/config



setting /etc/lightdm/lightdm.conf with the following line: xserver-command=X -s 0 dpms



non of the above have worked



I have noticed a possible solution which entails installing xscreensaver then disabling it but I do not know how to make it run on startup.










share|improve this question
















I am running Raspbian, and I am using this as a display device for a TV in a retail centre. I run Chromium on startup with this line in .profile:



xinit /usr/bin/chromium --kiosk --incognito www.mysite.com


...however none of the solutions to disable screen blanking seem to work (although they do work if I am in the Raspbian GUI). It is quite important (as you can imagine) that the display screen does not go blank.



Does anyone have any solutions to this?



I have tried the following:



setting the xinitrc file as in this example https://raspberrypi.stackexchange.com/questions/2059/disable-screen-blanking-in-x-windows-on-raspbian



setting exec /usr/bin/X -s 0 dpms -nolisten tcp "$@" in xserverrc



setting blank timeouts in /etc/kbd/config



setting /etc/lightdm/lightdm.conf with the following line: xserver-command=X -s 0 dpms



non of the above have worked



I have noticed a possible solution which entails installing xscreensaver then disabling it but I do not know how to make it run on startup.







raspberry-pi chromium






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Apr 13 '17 at 12:56









Community

1




1










asked Aug 16 '13 at 10:07









coolblue2000coolblue2000

2272718




2272718













  • ... Which solutions?

    – Ignacio Vazquez-Abrams
    Aug 16 '13 at 10:32











  • You can probably edit your answer to include everything you have missed)

    – Journeyman Geek
    Aug 16 '13 at 10:48











  • ok, question edited

    – coolblue2000
    Aug 16 '13 at 10:51











  • Check this answer

    – VL-80
    Aug 16 '13 at 15:51











  • @Nikolay, that answer does not work either.....

    – coolblue2000
    Aug 25 '13 at 9:18



















  • ... Which solutions?

    – Ignacio Vazquez-Abrams
    Aug 16 '13 at 10:32











  • You can probably edit your answer to include everything you have missed)

    – Journeyman Geek
    Aug 16 '13 at 10:48











  • ok, question edited

    – coolblue2000
    Aug 16 '13 at 10:51











  • Check this answer

    – VL-80
    Aug 16 '13 at 15:51











  • @Nikolay, that answer does not work either.....

    – coolblue2000
    Aug 25 '13 at 9:18

















... Which solutions?

– Ignacio Vazquez-Abrams
Aug 16 '13 at 10:32





... Which solutions?

– Ignacio Vazquez-Abrams
Aug 16 '13 at 10:32













You can probably edit your answer to include everything you have missed)

– Journeyman Geek
Aug 16 '13 at 10:48





You can probably edit your answer to include everything you have missed)

– Journeyman Geek
Aug 16 '13 at 10:48













ok, question edited

– coolblue2000
Aug 16 '13 at 10:51





ok, question edited

– coolblue2000
Aug 16 '13 at 10:51













Check this answer

– VL-80
Aug 16 '13 at 15:51





Check this answer

– VL-80
Aug 16 '13 at 15:51













@Nikolay, that answer does not work either.....

– coolblue2000
Aug 25 '13 at 9:18





@Nikolay, that answer does not work either.....

– coolblue2000
Aug 25 '13 at 9:18










2 Answers
2






active

oldest

votes


















0














You can try this solution.
comment this line:



@xscreensaver -no-splash


And add following lines:



@xset s off
@xset -dpms
@xset s noblank





share|improve this answer
























  • Adding the above xset lines to /etc/xdg/lxsession/LXDE/autostart has worked for me in the past. I've not had to use the xscreensaver line.

    – joat
    Jan 22 '14 at 11:49



















0














All that is needed to stop the screen from going blank system wide is in /root/cmdline.txt. Add:



`consoleblank=0`


after console=tty1 and reboot.






share|improve this answer


























    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "3"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f632675%2fhow-do-i-disable-screen-blanking-on-raspberry-pi%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    You can try this solution.
    comment this line:



    @xscreensaver -no-splash


    And add following lines:



    @xset s off
    @xset -dpms
    @xset s noblank





    share|improve this answer
























    • Adding the above xset lines to /etc/xdg/lxsession/LXDE/autostart has worked for me in the past. I've not had to use the xscreensaver line.

      – joat
      Jan 22 '14 at 11:49
















    0














    You can try this solution.
    comment this line:



    @xscreensaver -no-splash


    And add following lines:



    @xset s off
    @xset -dpms
    @xset s noblank





    share|improve this answer
























    • Adding the above xset lines to /etc/xdg/lxsession/LXDE/autostart has worked for me in the past. I've not had to use the xscreensaver line.

      – joat
      Jan 22 '14 at 11:49














    0












    0








    0







    You can try this solution.
    comment this line:



    @xscreensaver -no-splash


    And add following lines:



    @xset s off
    @xset -dpms
    @xset s noblank





    share|improve this answer













    You can try this solution.
    comment this line:



    @xscreensaver -no-splash


    And add following lines:



    @xset s off
    @xset -dpms
    @xset s noblank






    share|improve this answer












    share|improve this answer



    share|improve this answer










    answered Jan 22 '14 at 10:00









    kit.yangkit.yang

    101




    101













    • Adding the above xset lines to /etc/xdg/lxsession/LXDE/autostart has worked for me in the past. I've not had to use the xscreensaver line.

      – joat
      Jan 22 '14 at 11:49



















    • Adding the above xset lines to /etc/xdg/lxsession/LXDE/autostart has worked for me in the past. I've not had to use the xscreensaver line.

      – joat
      Jan 22 '14 at 11:49

















    Adding the above xset lines to /etc/xdg/lxsession/LXDE/autostart has worked for me in the past. I've not had to use the xscreensaver line.

    – joat
    Jan 22 '14 at 11:49





    Adding the above xset lines to /etc/xdg/lxsession/LXDE/autostart has worked for me in the past. I've not had to use the xscreensaver line.

    – joat
    Jan 22 '14 at 11:49













    0














    All that is needed to stop the screen from going blank system wide is in /root/cmdline.txt. Add:



    `consoleblank=0`


    after console=tty1 and reboot.






    share|improve this answer






























      0














      All that is needed to stop the screen from going blank system wide is in /root/cmdline.txt. Add:



      `consoleblank=0`


      after console=tty1 and reboot.






      share|improve this answer




























        0












        0








        0







        All that is needed to stop the screen from going blank system wide is in /root/cmdline.txt. Add:



        `consoleblank=0`


        after console=tty1 and reboot.






        share|improve this answer















        All that is needed to stop the screen from going blank system wide is in /root/cmdline.txt. Add:



        `consoleblank=0`


        after console=tty1 and reboot.







        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited Apr 8 '16 at 10:05









        techraf

        4,107111730




        4,107111730










        answered Apr 4 '16 at 20:39









        Jess SavoryJess Savory

        1




        1






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Super User!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f632675%2fhow-do-i-disable-screen-blanking-on-raspberry-pi%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            flock() on closed filehandle LOCK_FILE at /usr/bin/apt-mirror

            Mangá

            Eduardo VII do Reino Unido