Can not suspend when lid closed, even if external display is connected
My laptop has Fedora 22 with Gnome 3.16.4. Normally, it will go suspend if the lid is closed. But with external display connected (via VGA), the gnome desktop is simply transferred to the external display instead when the lid is closed.
However I want my laptop to suspend even if external display is connected. Here are what I've checked and tried:
- When I open and close the lid,
systemd-logind
do record the action as I can see byjournalctl -b -u systemd-logind
.
Dec 09 08:39:39 workstation systemd-logind[980]: Lid closed.
Dec 09 08:39:47 workstation systemd-logind[980]: Lid opened.
- I've configured
/etc/systemd/logind.conf
to be the following:
[Login]
#NAutoVTs=6
#ReserveVT=6
#KillUserProcesses=no
#KillOnlyUsers=
#KillExcludeUsers=root
#InhibitDelayMaxSec=5
#HandlePowerKey=poweroff
#HandleSuspendKey=suspend
#HandleHibernateKey=hibernate
#HandleLidSwitch=suspend
HandleLidSwitchDocked=suspend
#PowerKeyIgnoreInhibited=no
#SuspendKeyIgnoreInhibited=no
#HibernateKeyIgnoreInhibited=no
#LidSwitchIgnoreInhibited=yes
#IdleAction=ignore
#IdleActionSec=30min
#RuntimeDirectorySize=10%
#RemoveIPC=yes
Specifically, I commented out HandleLidSwitchDocked=ignore
line and changed it to suspend
. And the rest of it is said (by systemd) to be default. But after reboot, it didn't work.
- My video card is "Intel Corporation Broadwell-U Integrated Graphics" (output by
lspci
). As it's not nvidia, I think it's not affected by the bug discussed in this thread?
So how to configure Fedora/Gnome to suspend even if external display is connected?
fedora gnome systemd suspend
add a comment |
My laptop has Fedora 22 with Gnome 3.16.4. Normally, it will go suspend if the lid is closed. But with external display connected (via VGA), the gnome desktop is simply transferred to the external display instead when the lid is closed.
However I want my laptop to suspend even if external display is connected. Here are what I've checked and tried:
- When I open and close the lid,
systemd-logind
do record the action as I can see byjournalctl -b -u systemd-logind
.
Dec 09 08:39:39 workstation systemd-logind[980]: Lid closed.
Dec 09 08:39:47 workstation systemd-logind[980]: Lid opened.
- I've configured
/etc/systemd/logind.conf
to be the following:
[Login]
#NAutoVTs=6
#ReserveVT=6
#KillUserProcesses=no
#KillOnlyUsers=
#KillExcludeUsers=root
#InhibitDelayMaxSec=5
#HandlePowerKey=poweroff
#HandleSuspendKey=suspend
#HandleHibernateKey=hibernate
#HandleLidSwitch=suspend
HandleLidSwitchDocked=suspend
#PowerKeyIgnoreInhibited=no
#SuspendKeyIgnoreInhibited=no
#HibernateKeyIgnoreInhibited=no
#LidSwitchIgnoreInhibited=yes
#IdleAction=ignore
#IdleActionSec=30min
#RuntimeDirectorySize=10%
#RemoveIPC=yes
Specifically, I commented out HandleLidSwitchDocked=ignore
line and changed it to suspend
. And the rest of it is said (by systemd) to be default. But after reboot, it didn't work.
- My video card is "Intel Corporation Broadwell-U Integrated Graphics" (output by
lspci
). As it's not nvidia, I think it's not affected by the bug discussed in this thread?
So how to configure Fedora/Gnome to suspend even if external display is connected?
fedora gnome systemd suspend
I would go for pressing the suspend button (I see no need to close lid, the leave it plugged in to external display). If you are still trying to do this, and have value in it, then please respond, so that others can see that you still care about an answer. If you have solved it, then it would be nice if you can document it.
– ctrl-alt-delor
Nov 5 '18 at 13:54
add a comment |
My laptop has Fedora 22 with Gnome 3.16.4. Normally, it will go suspend if the lid is closed. But with external display connected (via VGA), the gnome desktop is simply transferred to the external display instead when the lid is closed.
However I want my laptop to suspend even if external display is connected. Here are what I've checked and tried:
- When I open and close the lid,
systemd-logind
do record the action as I can see byjournalctl -b -u systemd-logind
.
Dec 09 08:39:39 workstation systemd-logind[980]: Lid closed.
Dec 09 08:39:47 workstation systemd-logind[980]: Lid opened.
- I've configured
/etc/systemd/logind.conf
to be the following:
[Login]
#NAutoVTs=6
#ReserveVT=6
#KillUserProcesses=no
#KillOnlyUsers=
#KillExcludeUsers=root
#InhibitDelayMaxSec=5
#HandlePowerKey=poweroff
#HandleSuspendKey=suspend
#HandleHibernateKey=hibernate
#HandleLidSwitch=suspend
HandleLidSwitchDocked=suspend
#PowerKeyIgnoreInhibited=no
#SuspendKeyIgnoreInhibited=no
#HibernateKeyIgnoreInhibited=no
#LidSwitchIgnoreInhibited=yes
#IdleAction=ignore
#IdleActionSec=30min
#RuntimeDirectorySize=10%
#RemoveIPC=yes
Specifically, I commented out HandleLidSwitchDocked=ignore
line and changed it to suspend
. And the rest of it is said (by systemd) to be default. But after reboot, it didn't work.
- My video card is "Intel Corporation Broadwell-U Integrated Graphics" (output by
lspci
). As it's not nvidia, I think it's not affected by the bug discussed in this thread?
So how to configure Fedora/Gnome to suspend even if external display is connected?
fedora gnome systemd suspend
My laptop has Fedora 22 with Gnome 3.16.4. Normally, it will go suspend if the lid is closed. But with external display connected (via VGA), the gnome desktop is simply transferred to the external display instead when the lid is closed.
However I want my laptop to suspend even if external display is connected. Here are what I've checked and tried:
- When I open and close the lid,
systemd-logind
do record the action as I can see byjournalctl -b -u systemd-logind
.
Dec 09 08:39:39 workstation systemd-logind[980]: Lid closed.
Dec 09 08:39:47 workstation systemd-logind[980]: Lid opened.
- I've configured
/etc/systemd/logind.conf
to be the following:
[Login]
#NAutoVTs=6
#ReserveVT=6
#KillUserProcesses=no
#KillOnlyUsers=
#KillExcludeUsers=root
#InhibitDelayMaxSec=5
#HandlePowerKey=poweroff
#HandleSuspendKey=suspend
#HandleHibernateKey=hibernate
#HandleLidSwitch=suspend
HandleLidSwitchDocked=suspend
#PowerKeyIgnoreInhibited=no
#SuspendKeyIgnoreInhibited=no
#HibernateKeyIgnoreInhibited=no
#LidSwitchIgnoreInhibited=yes
#IdleAction=ignore
#IdleActionSec=30min
#RuntimeDirectorySize=10%
#RemoveIPC=yes
Specifically, I commented out HandleLidSwitchDocked=ignore
line and changed it to suspend
. And the rest of it is said (by systemd) to be default. But after reboot, it didn't work.
- My video card is "Intel Corporation Broadwell-U Integrated Graphics" (output by
lspci
). As it's not nvidia, I think it's not affected by the bug discussed in this thread?
So how to configure Fedora/Gnome to suspend even if external display is connected?
fedora gnome systemd suspend
fedora gnome systemd suspend
edited Nov 5 '18 at 13:50
ctrl-alt-delor
10.8k41957
10.8k41957
asked Dec 9 '15 at 1:02
Naitree
3071212
3071212
I would go for pressing the suspend button (I see no need to close lid, the leave it plugged in to external display). If you are still trying to do this, and have value in it, then please respond, so that others can see that you still care about an answer. If you have solved it, then it would be nice if you can document it.
– ctrl-alt-delor
Nov 5 '18 at 13:54
add a comment |
I would go for pressing the suspend button (I see no need to close lid, the leave it plugged in to external display). If you are still trying to do this, and have value in it, then please respond, so that others can see that you still care about an answer. If you have solved it, then it would be nice if you can document it.
– ctrl-alt-delor
Nov 5 '18 at 13:54
I would go for pressing the suspend button (I see no need to close lid, the leave it plugged in to external display). If you are still trying to do this, and have value in it, then please respond, so that others can see that you still care about an answer. If you have solved it, then it would be nice if you can document it.
– ctrl-alt-delor
Nov 5 '18 at 13:54
I would go for pressing the suspend button (I see no need to close lid, the leave it plugged in to external display). If you are still trying to do this, and have value in it, then please respond, so that others can see that you still care about an answer. If you have solved it, then it would be nice if you can document it.
– ctrl-alt-delor
Nov 5 '18 at 13:54
add a comment |
1 Answer
1
active
oldest
votes
Assuming the laptop's also plugged into external power; you'd also need to explicitly add the following to /etc/systemd/logind.conf:
HandleLidSwitchExternalPower=suspend
Per man logind.conf
HandleLidSwitchExternalPower= is completely ignored by default (for backwards compatibility) — an explicit value must be set before it will be used to determine behaviour.
If the system is inserted in a docking station, or if more than one display is connected, the action specified by HandleLidSwitchDocked= occurs; if the system is on external power the action (if any) specified by HandleLidSwitchExternalPower= occurs; otherwise the HandleLidSwitch= action occurs.
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "106"
};
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: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
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%2funix.stackexchange.com%2fquestions%2f248219%2fcan-not-suspend-when-lid-closed-even-if-external-display-is-connected%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
Assuming the laptop's also plugged into external power; you'd also need to explicitly add the following to /etc/systemd/logind.conf:
HandleLidSwitchExternalPower=suspend
Per man logind.conf
HandleLidSwitchExternalPower= is completely ignored by default (for backwards compatibility) — an explicit value must be set before it will be used to determine behaviour.
If the system is inserted in a docking station, or if more than one display is connected, the action specified by HandleLidSwitchDocked= occurs; if the system is on external power the action (if any) specified by HandleLidSwitchExternalPower= occurs; otherwise the HandleLidSwitch= action occurs.
add a comment |
Assuming the laptop's also plugged into external power; you'd also need to explicitly add the following to /etc/systemd/logind.conf:
HandleLidSwitchExternalPower=suspend
Per man logind.conf
HandleLidSwitchExternalPower= is completely ignored by default (for backwards compatibility) — an explicit value must be set before it will be used to determine behaviour.
If the system is inserted in a docking station, or if more than one display is connected, the action specified by HandleLidSwitchDocked= occurs; if the system is on external power the action (if any) specified by HandleLidSwitchExternalPower= occurs; otherwise the HandleLidSwitch= action occurs.
add a comment |
Assuming the laptop's also plugged into external power; you'd also need to explicitly add the following to /etc/systemd/logind.conf:
HandleLidSwitchExternalPower=suspend
Per man logind.conf
HandleLidSwitchExternalPower= is completely ignored by default (for backwards compatibility) — an explicit value must be set before it will be used to determine behaviour.
If the system is inserted in a docking station, or if more than one display is connected, the action specified by HandleLidSwitchDocked= occurs; if the system is on external power the action (if any) specified by HandleLidSwitchExternalPower= occurs; otherwise the HandleLidSwitch= action occurs.
Assuming the laptop's also plugged into external power; you'd also need to explicitly add the following to /etc/systemd/logind.conf:
HandleLidSwitchExternalPower=suspend
Per man logind.conf
HandleLidSwitchExternalPower= is completely ignored by default (for backwards compatibility) — an explicit value must be set before it will be used to determine behaviour.
If the system is inserted in a docking station, or if more than one display is connected, the action specified by HandleLidSwitchDocked= occurs; if the system is on external power the action (if any) specified by HandleLidSwitchExternalPower= occurs; otherwise the HandleLidSwitch= action occurs.
answered Dec 19 '18 at 4:34
Joseph Tingiris
59210
59210
add a comment |
add a comment |
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- 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.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- 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%2funix.stackexchange.com%2fquestions%2f248219%2fcan-not-suspend-when-lid-closed-even-if-external-display-is-connected%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
I would go for pressing the suspend button (I see no need to close lid, the leave it plugged in to external display). If you are still trying to do this, and have value in it, then please respond, so that others can see that you still care about an answer. If you have solved it, then it would be nice if you can document it.
– ctrl-alt-delor
Nov 5 '18 at 13:54