Play music even if the computer is closed












0















My problem is very simple : with my previous laptop I was able to play music even if the laptop was closed. Now I changed and everytime I'm closing it, the music turn off few seconds after. It is possible to fix it ?
I tried to go to "Brightness and Lock" but nothing I tried work.
Many thanks in advance !



Edit : I tried HandleLidSwitch=ignore, IgnoreLid=true, dconf and it didn't work. Also I tried the Power setting but I don't have any lid option on it :
enter image description here










share|improve this question

























  • Perhaps this might be helpful: askubuntu.com/questions/15520/…

    – Rohn Adams
    Aug 30 '16 at 21:50











  • Thanks, I did try it, I'll restart my computer and tell you if it did work !

    – Nicolas Hemelsoet
    Aug 30 '16 at 22:06











  • It did not work for me, but I did install dconf and finally it worked. Thanks again !

    – Nicolas Hemelsoet
    Aug 31 '16 at 8:49
















0















My problem is very simple : with my previous laptop I was able to play music even if the laptop was closed. Now I changed and everytime I'm closing it, the music turn off few seconds after. It is possible to fix it ?
I tried to go to "Brightness and Lock" but nothing I tried work.
Many thanks in advance !



Edit : I tried HandleLidSwitch=ignore, IgnoreLid=true, dconf and it didn't work. Also I tried the Power setting but I don't have any lid option on it :
enter image description here










share|improve this question

























  • Perhaps this might be helpful: askubuntu.com/questions/15520/…

    – Rohn Adams
    Aug 30 '16 at 21:50











  • Thanks, I did try it, I'll restart my computer and tell you if it did work !

    – Nicolas Hemelsoet
    Aug 30 '16 at 22:06











  • It did not work for me, but I did install dconf and finally it worked. Thanks again !

    – Nicolas Hemelsoet
    Aug 31 '16 at 8:49














0












0








0


0






My problem is very simple : with my previous laptop I was able to play music even if the laptop was closed. Now I changed and everytime I'm closing it, the music turn off few seconds after. It is possible to fix it ?
I tried to go to "Brightness and Lock" but nothing I tried work.
Many thanks in advance !



Edit : I tried HandleLidSwitch=ignore, IgnoreLid=true, dconf and it didn't work. Also I tried the Power setting but I don't have any lid option on it :
enter image description here










share|improve this question
















My problem is very simple : with my previous laptop I was able to play music even if the laptop was closed. Now I changed and everytime I'm closing it, the music turn off few seconds after. It is possible to fix it ?
I tried to go to "Brightness and Lock" but nothing I tried work.
Many thanks in advance !



Edit : I tried HandleLidSwitch=ignore, IgnoreLid=true, dconf and it didn't work. Also I tried the Power setting but I don't have any lid option on it :
enter image description here







lock-screen






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Aug 31 '16 at 6:14







Nicolas Hemelsoet

















asked Aug 30 '16 at 21:48









Nicolas HemelsoetNicolas Hemelsoet

1012




1012













  • Perhaps this might be helpful: askubuntu.com/questions/15520/…

    – Rohn Adams
    Aug 30 '16 at 21:50











  • Thanks, I did try it, I'll restart my computer and tell you if it did work !

    – Nicolas Hemelsoet
    Aug 30 '16 at 22:06











  • It did not work for me, but I did install dconf and finally it worked. Thanks again !

    – Nicolas Hemelsoet
    Aug 31 '16 at 8:49



















  • Perhaps this might be helpful: askubuntu.com/questions/15520/…

    – Rohn Adams
    Aug 30 '16 at 21:50











  • Thanks, I did try it, I'll restart my computer and tell you if it did work !

    – Nicolas Hemelsoet
    Aug 30 '16 at 22:06











  • It did not work for me, but I did install dconf and finally it worked. Thanks again !

    – Nicolas Hemelsoet
    Aug 31 '16 at 8:49

















Perhaps this might be helpful: askubuntu.com/questions/15520/…

– Rohn Adams
Aug 30 '16 at 21:50





Perhaps this might be helpful: askubuntu.com/questions/15520/…

– Rohn Adams
Aug 30 '16 at 21:50













Thanks, I did try it, I'll restart my computer and tell you if it did work !

– Nicolas Hemelsoet
Aug 30 '16 at 22:06





Thanks, I did try it, I'll restart my computer and tell you if it did work !

– Nicolas Hemelsoet
Aug 30 '16 at 22:06













It did not work for me, but I did install dconf and finally it worked. Thanks again !

– Nicolas Hemelsoet
Aug 31 '16 at 8:49





It did not work for me, but I did install dconf and finally it worked. Thanks again !

– Nicolas Hemelsoet
Aug 31 '16 at 8:49










2 Answers
2






active

oldest

votes


















0














The comment to your question has a link recommending using systemd's #HandleLidSwitch=suspend feature. However on my system (Ubuntu 16.04) this feature was disabled by the # at the beginning of the line. Ubuntu was handling Lid Close operations directly and circumventing systemd.



When you went into "Settings" you went to the "Brightness & Lock" screen but if you go to the "Power" screen instead you will see this:



Power do nothing on lid close



As in the screen above, set When the lid is closed to Do Nothing and that is exactly what Ubuntu does when you close the lid, ie your music continues playing as desired.






share|improve this answer
























  • Thanks for your answer ! I tried HandleLidSwitch=ignore, IgnoreLid=true and it didn't work. I'm also on 16.04. My power setting is less complete than yours and I don't have the lid option (I edited my question). Also dconf didn't work. If you have any other ideas ... ^^

    – Nicolas Hemelsoet
    Aug 31 '16 at 6:13











  • @N.H. You can answer your own question if you found a solution.

    – mchid
    Aug 25 '17 at 2:24



















0














You can achieve it by installing gnome-tweak-tool.
Once installed just go to power and turn off suspend when laptop lid is closed.






share|improve this answer
























    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "89"
    };
    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%2faskubuntu.com%2fquestions%2f818860%2fplay-music-even-if-the-computer-is-closed%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














    The comment to your question has a link recommending using systemd's #HandleLidSwitch=suspend feature. However on my system (Ubuntu 16.04) this feature was disabled by the # at the beginning of the line. Ubuntu was handling Lid Close operations directly and circumventing systemd.



    When you went into "Settings" you went to the "Brightness & Lock" screen but if you go to the "Power" screen instead you will see this:



    Power do nothing on lid close



    As in the screen above, set When the lid is closed to Do Nothing and that is exactly what Ubuntu does when you close the lid, ie your music continues playing as desired.






    share|improve this answer
























    • Thanks for your answer ! I tried HandleLidSwitch=ignore, IgnoreLid=true and it didn't work. I'm also on 16.04. My power setting is less complete than yours and I don't have the lid option (I edited my question). Also dconf didn't work. If you have any other ideas ... ^^

      – Nicolas Hemelsoet
      Aug 31 '16 at 6:13











    • @N.H. You can answer your own question if you found a solution.

      – mchid
      Aug 25 '17 at 2:24
















    0














    The comment to your question has a link recommending using systemd's #HandleLidSwitch=suspend feature. However on my system (Ubuntu 16.04) this feature was disabled by the # at the beginning of the line. Ubuntu was handling Lid Close operations directly and circumventing systemd.



    When you went into "Settings" you went to the "Brightness & Lock" screen but if you go to the "Power" screen instead you will see this:



    Power do nothing on lid close



    As in the screen above, set When the lid is closed to Do Nothing and that is exactly what Ubuntu does when you close the lid, ie your music continues playing as desired.






    share|improve this answer
























    • Thanks for your answer ! I tried HandleLidSwitch=ignore, IgnoreLid=true and it didn't work. I'm also on 16.04. My power setting is less complete than yours and I don't have the lid option (I edited my question). Also dconf didn't work. If you have any other ideas ... ^^

      – Nicolas Hemelsoet
      Aug 31 '16 at 6:13











    • @N.H. You can answer your own question if you found a solution.

      – mchid
      Aug 25 '17 at 2:24














    0












    0








    0







    The comment to your question has a link recommending using systemd's #HandleLidSwitch=suspend feature. However on my system (Ubuntu 16.04) this feature was disabled by the # at the beginning of the line. Ubuntu was handling Lid Close operations directly and circumventing systemd.



    When you went into "Settings" you went to the "Brightness & Lock" screen but if you go to the "Power" screen instead you will see this:



    Power do nothing on lid close



    As in the screen above, set When the lid is closed to Do Nothing and that is exactly what Ubuntu does when you close the lid, ie your music continues playing as desired.






    share|improve this answer













    The comment to your question has a link recommending using systemd's #HandleLidSwitch=suspend feature. However on my system (Ubuntu 16.04) this feature was disabled by the # at the beginning of the line. Ubuntu was handling Lid Close operations directly and circumventing systemd.



    When you went into "Settings" you went to the "Brightness & Lock" screen but if you go to the "Power" screen instead you will see this:



    Power do nothing on lid close



    As in the screen above, set When the lid is closed to Do Nothing and that is exactly what Ubuntu does when you close the lid, ie your music continues playing as desired.







    share|improve this answer












    share|improve this answer



    share|improve this answer










    answered Aug 31 '16 at 1:22









    WinEunuuchs2UnixWinEunuuchs2Unix

    47.2k1190183




    47.2k1190183













    • Thanks for your answer ! I tried HandleLidSwitch=ignore, IgnoreLid=true and it didn't work. I'm also on 16.04. My power setting is less complete than yours and I don't have the lid option (I edited my question). Also dconf didn't work. If you have any other ideas ... ^^

      – Nicolas Hemelsoet
      Aug 31 '16 at 6:13











    • @N.H. You can answer your own question if you found a solution.

      – mchid
      Aug 25 '17 at 2:24



















    • Thanks for your answer ! I tried HandleLidSwitch=ignore, IgnoreLid=true and it didn't work. I'm also on 16.04. My power setting is less complete than yours and I don't have the lid option (I edited my question). Also dconf didn't work. If you have any other ideas ... ^^

      – Nicolas Hemelsoet
      Aug 31 '16 at 6:13











    • @N.H. You can answer your own question if you found a solution.

      – mchid
      Aug 25 '17 at 2:24

















    Thanks for your answer ! I tried HandleLidSwitch=ignore, IgnoreLid=true and it didn't work. I'm also on 16.04. My power setting is less complete than yours and I don't have the lid option (I edited my question). Also dconf didn't work. If you have any other ideas ... ^^

    – Nicolas Hemelsoet
    Aug 31 '16 at 6:13





    Thanks for your answer ! I tried HandleLidSwitch=ignore, IgnoreLid=true and it didn't work. I'm also on 16.04. My power setting is less complete than yours and I don't have the lid option (I edited my question). Also dconf didn't work. If you have any other ideas ... ^^

    – Nicolas Hemelsoet
    Aug 31 '16 at 6:13













    @N.H. You can answer your own question if you found a solution.

    – mchid
    Aug 25 '17 at 2:24





    @N.H. You can answer your own question if you found a solution.

    – mchid
    Aug 25 '17 at 2:24













    0














    You can achieve it by installing gnome-tweak-tool.
    Once installed just go to power and turn off suspend when laptop lid is closed.






    share|improve this answer




























      0














      You can achieve it by installing gnome-tweak-tool.
      Once installed just go to power and turn off suspend when laptop lid is closed.






      share|improve this answer


























        0












        0








        0







        You can achieve it by installing gnome-tweak-tool.
        Once installed just go to power and turn off suspend when laptop lid is closed.






        share|improve this answer













        You can achieve it by installing gnome-tweak-tool.
        Once installed just go to power and turn off suspend when laptop lid is closed.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Feb 7 at 16:48









        Just FunJust Fun

        1




        1






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Ask Ubuntu!


            • 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%2faskubuntu.com%2fquestions%2f818860%2fplay-music-even-if-the-computer-is-closed%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

            Questions related to Moebius Transform of Characteristic Function of the Primes

            List of scandals in India

            Can not write log (Is /dev/pts mounted?) - openpty in Ubuntu-on-Windows?