this post was submitted on 24 Aug 2024
10 points (100.0% liked)

Fedora Linux

1797 readers
1 users here now

All about Fedora Linux

founded 5 years ago
MODERATORS
 

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!

you are viewing a single comment's thread
view the rest of the comments
[–] dharmacurious 1 points 3 months ago* (last edited 3 months ago) (2 children)

If I'm reading it right, it's saying it should be working?

/usr/lib/systemd/logind.conf~cody@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 #

[–] DmMacniel@feddit.org 3 points 3 months ago (1 children)

# 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 \

[–] dharmacurious 1 points 3 months ago
[–] nmtake@lemm.ee 2 points 3 months ago (1 children)

If I'm reading it right, it's saying it should be working?

I think so, but I might be overlooking something.

Apparently # makes a line huge? All the huge lines are preceded by a #

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,

```
foo
#bar
baz
```

becomes

foo
#bar
baz
[–] dharmacurious 1 points 3 months ago (1 children)

Thanks for teaching me something! :)

Any idea what to do about the lid close issues with that output? I'm stumped, but I'm stumped easily, so I'm not sure how dead-endy this is haha

[–] nmtake@lemm.ee 2 points 3 months ago (1 children)

It's not a dead end :) Can you

  1. make sure "systemctl suspend" suspends your machine to check suspend work
  2. Run "gnome-tweaks" and there's no suspend inhibitor in the "Startup Applications"
  3. post the output of "systemd-inhibit | less" to know who inhibit the suspend
  4. post the output of "gsettings list-recursively | grep -i 'lid\|suspend'"

(Please remove enclosing double quotes when you try them.)

[–] dharmacurious 1 points 2 months ago (1 children)

I really appreciate your help, but I had to do a fresh install of Fedora last night. It was having major issues after I updated to 40. I hadn't used the laptop in nearly 2 years, and I think it just messed up when I updated it. It is working perfectly now, though!

My main issue now is that I got nextcloud through hertzner to back up everything before I reinstalled, and I accidently rented a server on there in addition to the storage share, and I'm not sure how to give it back 😭

[–] nmtake@lemm.ee 2 points 2 months ago (1 children)

Oh it was hard. FYI Fedora supports a major version for a year. To upgrade from non-supported old version, additional steps may be required:

I hope you could solve the new issue too.

[–] dharmacurious 2 points 2 months ago

Yeah, that's what I get for not reading well enough and just busting my way through like a bull in a china shop. Lol. Lesson learned, though.

I really appreciate all your help. Honestly, it's one of the best things about switching to Linux, since I have, any time I've had any issue, even minor stuff, people have jumped on the chance to help me learn and fix it. It's been amazing. And then switching to Lemmy has just made that experience even better