Play music even if the computer is closed
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 :

lock-screen
add a comment |
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 :

lock-screen
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
add a comment |
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 :

lock-screen
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 :

lock-screen
lock-screen
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
add a comment |
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
add a comment |
2 Answers
2
active
oldest
votes
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:

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.
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
add a comment |
You can achieve it by installing gnome-tweak-tool.
Once installed just go to power and turn off suspend when laptop lid is closed.
add a comment |
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
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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:

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.
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
add a comment |
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:

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.
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
add a comment |
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:

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.
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:

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.
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
add a comment |
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
add a comment |
You can achieve it by installing gnome-tweak-tool.
Once installed just go to power and turn off suspend when laptop lid is closed.
add a comment |
You can achieve it by installing gnome-tweak-tool.
Once installed just go to power and turn off suspend when laptop lid is closed.
add a comment |
You can achieve it by installing gnome-tweak-tool.
Once installed just go to power and turn off suspend when laptop lid is closed.
You can achieve it by installing gnome-tweak-tool.
Once installed just go to power and turn off suspend when laptop lid is closed.
answered Feb 7 at 16:48
Just FunJust Fun
1
1
add a comment |
add a comment |
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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

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