Computer Randomly suspending

I could use help with my desktop randomly suspending.

Would syslog help?

Could you please be more precise with what "random" means in this case - does it include for example "when you're running a terminal script" and suddenly it suspends or is it "sometimes when I don't look at the screen for a few moments but from time to time" - just so we can narrow down is it a power supply sort of thing or a settings thing since some settings internally that were checked and should be undone

1 Like

I have not noticed it occuring while in a terminal.

This may be related.

I live in a rental home which the landowner made by himself.

Including the electrical work also. There are not enough breakers to run
3 space heaters.

There is no central heat.

I have figured out how to live safely in the home.

I hope I have answered your questions.

Ok, have you tried to see what settings do you have in GUI options - maybe under "System menu" --> "Preferences" --> "Hardware" --> "Power Management"

There you may find maybe a place that says "when x happens suspend" or something like that so see if it does anything if you select/deselect options you've got there in "Power management" GUI options

Also maybe this thread helps as well:
https://www.reddit.com/r/techtalktutorials/comments/1gl6p53/how_to_disable_sleep_mode_in_ubuntu_24041_lts/

2 Likes

I did not find anything.

On another subject, I have files disappear in one directory.

I restored from a backup on a 2nd drive.

Would it help if I gave all the files the immutable attribute?

2 Likes

While setting files to immutable helps prevent further loss, you should first find out why the files are disappearing

I would suggest you to first try and find the "root" (pun intended) of a problem haha - that way you will maybe patch other stuff up and prevent other potentially bigger failures later down the line - that is just my take on it since I really am not any tech wizard, just a casual Linux user

Here are some interesting links to read about why files may be missing:

1 Like

That is a pay site.

I have been trying to find out the why.

Look at my posts.

Well ok this one is a free option:

It also seems to be most popular and there are community guides on how to use it
Here is a ten minute video that explains in short everything about it as well

1 Like

What is the output of:

dconf dump / | grep -i 'suspend|sleep'

?

2 Likes

There is no output. I click it and it returns to the cursor.

1 Like

Thanks.

No, I am going back to rsync.

I never had any problems with it.

2 Likes

Sorry, forgot an escape character: try dconf dump / | grep 'suspend\|sleep'.

3 Likes

Also, the output of gsettings list-recursively | grep 'suspend\|sleep' might help.

2 Likes

(post deleted by author)

dconf dump / | grep 'suspend|sleep'
action='systemctl suspend'
name='suspend computer'
button-lid-ac='suspend'
button-suspend='suspend'
sleep-computer-ac=600
sleep-display-ac=300