Re: suspend on lid closed doesn't work
> When I close the lid of my laptop it does appear to suspend, the monitor > goes blank and neither mouse nor keyboard respond, however after a few > seconds everything resumes and I can login. FWIW, I had a similar behavior when I was trying to change the configuration of xorg-x11-drv-nvidia-power-510.47.03-1.fc35.x86_64 greg ___ users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-le...@lists.fedoraproject.org Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure
Re: suspend on lid closed doesn't work
In my /etc/UPower/UPower.conf I have IgnoreLid=false When I close the lid of my laptop it does appear to suspend, the monitor goes blank and neither mouse nor keyboard respond, however after a few seconds everything resumes and I can login. Paolo On 3/21/22 09:35, Wolfgang Pfeiffer wrote: On Mon, Mar 21, 2022 at 12:32:14AM -0700, Samuel Sieb wrote: On 3/20/22 16:46, Wolfgang Pfeiffer wrote: On Thu, Mar 17, 2022 at 08:27:02AM -0700, Paolo Galtieri wrote: Is there any way to actually suspend a laptop when the lid is closed regardless of any external devices? Might be a result of your /etc/systemd/logind.conf Default in that file seems to be: HandleLidSwitchDocked=ignore Have you tried to set this to: HandleLidSwitchDocked=suspend After changes you may need to logout/login, or simply reboot your machine. If unsure, I'd reboot. From man logind.conf(5): "If the system is inserted in a docking station, or if more than one display is connected, the action specified by HandleLidSwitchDocked= occurs" That option doesn't make any difference. Gnome has its own inhibitor: gsd-power handle-lid-switch External monitor attached or configuration changed recently block There's no way around it. ... except one posting on the gitlab page you mentioned suggests the solution I recommended, and for Gnome, it seems ... ;) Works here still on F34, X11, i3, too: single monitor connected via HDMI to a laptop. Except I only changed logind.conf, back in 2018, nothing more, it seems. In /etc/UPower/UPower.conf tho' I have this, different from what was suggested on the gitlab page: IgnoreLid=false Just tested it again - works: closing the lid with a connected monitor switches off both; resuming switches on both without issues. Wolfgang ___ users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-le...@lists.fedoraproject.org Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure ___ users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-le...@lists.fedoraproject.org Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure
Re: suspend on lid closed doesn't work
On Mon, Mar 21, 2022 at 12:32:14AM -0700, Samuel Sieb wrote: On 3/20/22 16:46, Wolfgang Pfeiffer wrote: On Thu, Mar 17, 2022 at 08:27:02AM -0700, Paolo Galtieri wrote: Is there any way to actually suspend a laptop when the lid is closed regardless of any external devices? Might be a result of your /etc/systemd/logind.conf Default in that file seems to be: HandleLidSwitchDocked=ignore Have you tried to set this to: HandleLidSwitchDocked=suspend After changes you may need to logout/login, or simply reboot your machine. If unsure, I'd reboot. From man logind.conf(5): "If the system is inserted in a docking station, or if more than one display is connected, the action specified by HandleLidSwitchDocked= occurs" That option doesn't make any difference. Gnome has its own inhibitor: gsd-power handle-lid-switchExternal monitor attached or configuration changed recently block There's no way around it. ... except one posting on the gitlab page you mentioned suggests the solution I recommended, and for Gnome, it seems ... ;) Works here still on F34, X11, i3, too: single monitor connected via HDMI to a laptop. Except I only changed logind.conf, back in 2018, nothing more, it seems. In /etc/UPower/UPower.conf tho' I have this, different from what was suggested on the gitlab page: IgnoreLid=false Just tested it again - works: closing the lid with a connected monitor switches off both; resuming switches on both without issues. Wolfgang ___ users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-le...@lists.fedoraproject.org Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure
Re: suspend on lid closed doesn't work
On 3/20/22 16:46, Wolfgang Pfeiffer wrote: On Thu, Mar 17, 2022 at 08:27:02AM -0700, Paolo Galtieri wrote: Is there any way to actually suspend a laptop when the lid is closed regardless of any external devices? Might be a result of your /etc/systemd/logind.conf Default in that file seems to be: HandleLidSwitchDocked=ignore Have you tried to set this to: HandleLidSwitchDocked=suspend After changes you may need to logout/login, or simply reboot your machine. If unsure, I'd reboot. From man logind.conf(5): "If the system is inserted in a docking station, or if more than one display is connected, the action specified by HandleLidSwitchDocked= occurs" That option doesn't make any difference. Gnome has its own inhibitor: gsd-power handle-lid-switchExternal monitor attached or configuration changed recently block There's no way around it. ___ users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-le...@lists.fedoraproject.org Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure
Re: suspend on lid closed doesn't work
This is a known issue https://gitlab.gnome.org/GNOME/gnome-settings-daemon/-/issues/111 However it's 3 years old, and no one seems to be doing anything. I'm running MATE and this issue still applies, I wonder how many other DE's it affects. Paolo On 3/20/22 16:46, Wolfgang Pfeiffer wrote: On Thu, Mar 17, 2022 at 08:27:02AM -0700, Paolo Galtieri wrote: Is there any way to actually suspend a laptop when the lid is closed regardless of any external devices? Might be a result of your /etc/systemd/logind.conf Default in that file seems to be: HandleLidSwitchDocked=ignore Have you tried to set this to: HandleLidSwitchDocked=suspend After changes you may need to logout/login, or simply reboot your machine. If unsure, I'd reboot. From man logind.conf(5): "If the system is inserted in a docking station, or if more than one display is connected, the action specified by HandleLidSwitchDocked= occurs" Wolfgang ___ users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-le...@lists.fedoraproject.org Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure ___ users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-le...@lists.fedoraproject.org Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure
Re: suspend on lid closed doesn't work
On Thu, Mar 17, 2022 at 08:27:02AM -0700, Paolo Galtieri wrote: Is there any way to actually suspend a laptop when the lid is closed regardless of any external devices? Might be a result of your /etc/systemd/logind.conf Default in that file seems to be: HandleLidSwitchDocked=ignore Have you tried to set this to: HandleLidSwitchDocked=suspend After changes you may need to logout/login, or simply reboot your machine. If unsure, I'd reboot. From man logind.conf(5): "If the system is inserted in a docking station, or if more than one display is connected, the action specified by HandleLidSwitchDocked= occurs" Wolfgang ___ users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-le...@lists.fedoraproject.org Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure
Re: suspend on lid closed doesn't work
In my case there is an external mouse and keyboard. It's the presence of the external monitor that causes the problem. All my systems share keyboard and mouse via kvm switch. One system shares the monitor via the kvm switch (it's VGA) while the laptop in question is directly connected to the laptop via HDMI cable. Paolo On 3/17/22 11:48, Barry wrote: On 17 Mar 2022, at 15:27, Paolo Galtieri wrote: Folks, I have 2 laptops, one running F31 the other F34. When I close the lid on the F31 system it suspends as it is supposed to. I can ping the system and I get no response. On the F34 system I close the lid and the system continues running. I can still login to the system from the external monitor. The power management configuration says suspend on lid closed on both systems. I discovered that the reason it doesn't suspend on the F34 system is the external monitor. My systems share an external monitor via a kvm switch. Depending on which system the external monitor is connected to that system will not suspend on lid closure. I verified the same thing happens with the F31 system. There is nothing in the power management configuration that says anything about an external devices. My guess is that the lid closed is ignored because you can “obviously” use the system on the external display. Is there and external keyboard or Mouse connected as well? MacOS allows the system to run with the lid closed only if, power, keyboard and screen and connected. I wonder if the DE is doing the same? Barry Is there any way to actually suspend a laptop when the lid is closed regardless of any external devices? One thing I should mention is that the external monitor is directly connected to the F34 system via an HDMI cable, it's only the keyboard and mouse that go through the kvm switch. If I directly connect the monitor to the F31 system, also via HDMI, then it also fails to suspend on lid closure. Any help is appreciated. Paolo ___ users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-le...@lists.fedoraproject.org Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure ___ users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-le...@lists.fedoraproject.org Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure ___ users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-le...@lists.fedoraproject.org Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure
Re: suspend on lid closed doesn't work
I guess this bug also applies to MATE, because I don't run Gnome. I wonder how many other desktops this problem applies to. Paolo On 3/17/22 15:43, Samuel Sieb wrote: On 3/17/22 08:27, Paolo Galtieri wrote: Is there any way to actually suspend a laptop when the lid is closed regardless of any external devices? https://gitlab.gnome.org/GNOME/gnome-settings-daemon/-/issues/111 ___ users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-le...@lists.fedoraproject.org Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure ___ users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-le...@lists.fedoraproject.org Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure
Re: suspend on lid closed doesn't work
On 3/17/22 08:27, Paolo Galtieri wrote: Is there any way to actually suspend a laptop when the lid is closed regardless of any external devices? https://gitlab.gnome.org/GNOME/gnome-settings-daemon/-/issues/111 ___ users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-le...@lists.fedoraproject.org Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure
Re: suspend on lid closed doesn't work
On Thu, Mar 17, 2022 at 08:27:02AM -0700, Paolo Galtieri wrote: Folks, I have 2 laptops, one running F31 the other F34. When I close the lid on the F31 system it suspends as it is supposed to. I can ping the system and I get no response. On the F34 system I close the lid and the system continues running. I can still login to the system from the external monitor. The power management configuration says suspend on lid closed on both systems. I discovered that the reason it doesn't suspend on the F34 system is the external monitor. My systems share an external monitor via a kvm switch. Depending on which system the external monitor is connected to that system will not suspend on lid closure. I verified the same thing happens with the F31 system. There is nothing in the power management configuration that says anything about an external devices. Is there any way to actually suspend a laptop when the lid is closed regardless of any external devices? One thing I should mention is that the external monitor is directly connected to the F34 system via an HDMI cable, it's only the keyboard and mouse that go through the kvm switch. If I directly connect the monitor to the F31 system, also via HDMI, then it also fails to suspend on lid closure. Any help is appreciated. No help, but I wonder if this is a "feature". If at home I hook my laptop up to a monitor/keyboard, I don't want to keep the lid open and certainly don't want it to suspend when because the lid is closed. -- Jon H. LaBadie jo...@jgcomp.com ___ users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-le...@lists.fedoraproject.org Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure
Re: suspend on lid closed doesn't work
> On 17 Mar 2022, at 15:27, Paolo Galtieri wrote: > > Folks, > I have 2 laptops, one running F31 the other F34. When I close the lid on > the F31 system it suspends as it is supposed to. I can ping the system and I > get no response. On the F34 system I close the lid and the system continues > running. I can still login to the system from the external monitor. The > power management configuration says suspend on lid closed on both systems. I > discovered that the reason it doesn't suspend on the F34 system is the > external monitor. My systems share an external monitor via a kvm switch. > Depending on which system the external monitor is connected to that system > will not suspend on lid closure. I verified the same thing happens with the > F31 system. There is nothing in the power management configuration that says > anything about an external devices. My guess is that the lid closed is ignored because you can “obviously” use the system on the external display. Is there and external keyboard or Mouse connected as well? MacOS allows the system to run with the lid closed only if, power, keyboard and screen and connected. I wonder if the DE is doing the same? Barry > > Is there any way to actually suspend a laptop when the lid is closed > regardless of any external devices? > > One thing I should mention is that the external monitor is directly connected > to the F34 system via an HDMI cable, it's only the keyboard and mouse that go > through the kvm switch. If I directly connect the monitor to the F31 system, > also via HDMI, then it also fails to suspend on lid closure. > > Any help is appreciated. > > Paolo > ___ > users mailing list -- users@lists.fedoraproject.org > To unsubscribe send an email to users-le...@lists.fedoraproject.org > Fedora Code of Conduct: > https://docs.fedoraproject.org/en-US/project/code-of-conduct/ > List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines > List Archives: > https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org > Do not reply to spam on the list, report it: > https://pagure.io/fedora-infrastructure ___ users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-le...@lists.fedoraproject.org Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure
Re: suspend on lid closed doesn't work
On Thu, Mar 17, 2022 at 10:27 AM Paolo Galtieri wrote: > Folks, >I have 2 laptops, one running F31 the other F34. When I close the > lid on the F31 system it suspends as it is supposed to. I can ping the > system and I get no response. On the F34 system I close the lid and the > system continues running. I can still login to the system from the > external monitor. The power management configuration says suspend on > lid closed on both systems. I discovered that the reason it doesn't > suspend on the F34 system is the external monitor. My systems share an > external monitor via a kvm switch. Depending on which system the > external monitor is connected to that system will not suspend on lid > closure. I verified the same thing happens with the F31 system. There > is nothing in the power management configuration that says anything > about an external devices. > > Is there any way to actually suspend a laptop when the lid is closed > regardless of any external devices? > > One thing I should mention is that the external monitor is directly > connected to the F34 system via an HDMI cable, it's only the keyboard > and mouse that go through the kvm switch. If I directly connect the > monitor to the F31 system, also via HDMI, then it also fails to suspend > on lid closure. > > Any help is appreciated. > > Paolo > This is kind of a crude way to do this, but in my case I have mine doing something that is not normally configurable. I have rc.local enabled in systemctl, and I have these 2 lines in the file, so that the script starts on every boot up. /root/set-cpufreq-down-on-lid-close.sh & disown This is the script, it runs forever, and checks the lid state every 10 seconds and then if the state changes it turns the cpus max allowed speed to their min speed (400mhz). When the lid is opened it turns the cpus back up (3.1ghz) If I ssh/vnc into the machine when the lid is closed I run highspeed manually to bring it back up to full power (3.1ghz). You only need to replace the lowspeed command with the command to suspend the machine. The laptop hardware will take care of the lid open turning it on I think so my highspeed code section won't do anything in your case. #!/bin/bash > laststate=open > while [ true ] ; do > lidstate=`cat /proc/acpi/button/lid/LID0/state | awk '{print $2}'` > if [ "${lidstate}" == "open" ] && [ "${laststate}" == "closed" ] ; then > logger -s "at `date` lid was opened - full speed" > /usr/local/bin/highspeed > laststate=${lidstate} > grep -i mhz /proc/cpuinfo | logger -s > elif [ "${lidstate}" == "closed" ] && [ "${laststate}" == "open" ] ; then > logger -s "at `date` lid was closed - low speed" > /usr/local/bin/lowspeed > laststate=${lidstate} > grep -i mhz /proc/cpuinfo | logger -s > fi > sleep 10 > done > ___ users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-le...@lists.fedoraproject.org Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure
suspend on lid closed doesn't work
Folks, I have 2 laptops, one running F31 the other F34. When I close the lid on the F31 system it suspends as it is supposed to. I can ping the system and I get no response. On the F34 system I close the lid and the system continues running. I can still login to the system from the external monitor. The power management configuration says suspend on lid closed on both systems. I discovered that the reason it doesn't suspend on the F34 system is the external monitor. My systems share an external monitor via a kvm switch. Depending on which system the external monitor is connected to that system will not suspend on lid closure. I verified the same thing happens with the F31 system. There is nothing in the power management configuration that says anything about an external devices. Is there any way to actually suspend a laptop when the lid is closed regardless of any external devices? One thing I should mention is that the external monitor is directly connected to the F34 system via an HDMI cable, it's only the keyboard and mouse that go through the kvm switch. If I directly connect the monitor to the F31 system, also via HDMI, then it also fails to suspend on lid closure. Any help is appreciated. Paolo ___ users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-le...@lists.fedoraproject.org Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure