Suspend on lid close
Suspend on lid close
Hey, folks, I'm hoping someone here can help me out.
I have a laptop that has been messed up for a while, and I just got it repaired. I was using as basically a desktop, external monitor, mouse, keyboard. I just got it repaired and would like to use it as a laptop again. My problem is that something like 2 years ago, I edited some setting so that I could close the lid of the laptop and it wouldn't suspend, but I can't remember how I did it, and now it won't suspend when I close it, which is less than convenient for use as a laptop.
I googled, but it's not in GNOME tweaks anymore, and I'm not sure how to do any of the stuff I see people posting about terminal commands. I can follow instructions for command line stuff, but I sort of need it spelled out for me from step 1.
Any help is really appreciated. Thanks in advance!
Can you run these commands and paste the output here?
If I'm reading it right, it's saying it should be working?
/usr/lib/systemd/logind.confcody@fedora:$ systemd-analyze cat-config systemd/logind.conf | grsystemd-analyze cat-config systemd/logind.conf | grep -i lid #HandleLidSwitch=suspend #HandleLidSwitchExternalPower=suspend #HandleLidSwitchDocked=ignore #LidSwitchIgnoreInhibited=yes cody@fedora:~$ grep -i lid /etc/UPower/UPower.conf
Do we ignore the lid state
Some laptops are broken. The lid state is either inverted, or stuck
IgnoreLid=false
If any value is invalid, or not in descending order, the defaults
If any value is invalid, or not in descending order, the defaults
cody@fedora:~$
Apparently # makes a line huge? All the huge lines are preceded by a #
at the beginning of a line followed by a space is markdown for a H1 format. That's why it gets huge. You can escape this formatting with
I think so, but I might be overlooking something.
As macniel said, a line starts with "#" is converted to a heading. To post preformatted lines such as the log or source code, you can use "fenced code block". For example,
becomes