[GNOME] Disable automatic hibernation

Alexander88207

Aspiring Daemon

Reaction score: 427
Messages: 647

I have seen that the GNOME desktop try's to go into hibernation after a small AFK time.
The problem is that i comeback with a frozen system and i dont need hibernation either.

Unfortunately this is can not be disabled in the gnome-control-center.

I have used gsettings directly instead to disable hibernation in GNOME.

For AC powered devices (PC, etc..): gsettings set org.gnome.settings-daemon.plugins.power sleep-inactive-ac-timeout '0'
For Battery powered devices (Laptops, Notebooks etc..): gsettings set org.gnome.settings-daemon.plugins.power sleep-inactive-battery-timeout '0'
 

Vull

Aspiring Daemon

Reaction score: 372
Messages: 646

These commands don't work on my system, I guess because I have MATE desktop instead of GNOME. Luckily for me, the MATE control center does allow setting "Put computer to sleep when inactive for:" to "Never".
A few years ago I was able to use polkit-1 settings to disable suspend, but that soon stopped working, and it still doesn't work. I had the "crash-after-suspend" bug on my old HP laptop, and it about drove me crazy. I can't disable suspend on this laptop either, but at least this one can handle it, and doesn't crash afterwards.
 

Spity

Member

Reaction score: 4
Messages: 48

I have seen that the GNOME desktop try's to go into hibernation after a small AFK time.
The problem is that i comeback with a frozen system and i dont need hibernation either.

Unfortunately this is can not be disabled in the gnome-control-center.

I have used gsettings directly instead to disable hibernation in GNOME.

For AC powered devices (PC, etc..): gsettings set org.gnome.settings-daemon.plugins.power sleep-inactive-ac-timeout '0'
For Battery powered devices (Laptops, Notebooks etc..): gsettings set org.gnome.settings-daemon.plugins.power sleep-inactive-battery-timeout '0'

I had the same problem and it was fixed by changing gdm to sddm. I think removing it disables hibernation. Now, after a long time of inactivity I can wake up my system again without problem.
 
OP
Alexander88207

Alexander88207

Aspiring Daemon

Reaction score: 427
Messages: 647

I had the same problem and it was fixed by changing gdm to sddm. I think removing it disables hibernation. Now, after a long time of inactivity I can wake up my system again without problem.

I prefer a lite system and try to use the things that are installed with it as much as possible, including gdm. I would consider it a workaround rather than a fix. My goal was not to use the suspend properly i only wanted to turn it off.

Thank you for your suggestion anyway.
 

Robert Kopp

Member


Messages: 21

I prefer a lite system and try to use the things that are installed with it as much as possible, including gdm. I would consider it a workaround rather than a fix. My goal was not to use the suspend properly i only wanted to turn it off.

Thank you for your suggestion anyway.
I have been using Gnome on a desktop system. Although suspend is not needed, it happens automatically after a few minutes of inactivity, and because of the hardware the computer does not resume. I want to disable it. I tried service gdm disable, which delayed automatic suspend, but did not disable it completely. I have also used xfce, which does not suspend, but it doesn't have the features I want. So if anyone following this thread knows how to disable Gnome on FreeBSD 13, I shall be quite receptive to their advice.
 
OP
Alexander88207

Alexander88207

Aspiring Daemon

Reaction score: 427
Messages: 647

I have been using Gnome on a desktop system. Although suspend is not needed, it happens automatically after a few minutes of inactivity, and because of the hardware the computer does not resume. I want to disable it. I tried service gdm disable, which delayed automatic suspend, but did not disable it completely. I have also used xfce, which does not suspend, but it doesn't have the features I want. So if anyone following this thread knows how to disable Gnome on FreeBSD 13, I shall be quite receptive to their advice.

The gesettings way dont work?
 

DesktopVotary

New Member

Reaction score: 2
Messages: 9

I’ve been struggling with the same issue and set the same gsettings to no avail. Those gsettings changes should work. After perusing the internet for an answer I thing I’ve found it… unfortunately, it’s not a fix but should be the reason why the stubborn issue persists. Apparently, GNOME suspends after 20 minutes of inactivity in order to comply with EU power regulations.
I’m in the US so it’s more irritating to me the gsettings Alexander88207 has cited don’t work due to government regulations mandated across the Atlantic ocean.
I don’t mind the 20 minute inactivity suspend by default but please give us users agency over our own power management.

Had to install XFCE in order to perform remote backups using Duplicity. GNOME kept suspending my backup due to keyboard/mouse inactivity :mad:
 
Top