Skip to content

Instantly share code, notes, and snippets.

View AndrewGMorgan's full-sized avatar

Andrew G. Morgan AndrewGMorgan

View GitHub Profile
@AndrewGMorgan
AndrewGMorgan / gist:5b365c1c92a086dd391d828e218c4a4e
Created February 17, 2024 22:01
Stopping my upgraded Fedora box from suspending after 15 minutes
# After upgrading to Fedora 38, my desktop started to suspend after 15 minutes. This made ssh-ing from my laptop annoying.
# Here is how I addressed it:
$ sudo -u gdm dbus-run-session gsettings list-recursively org.gnome.settings-daemon.plugins.power | grep sleep
org.gnome.settings-daemon.plugins.power sleep-inactive-ac-timeout 900
org.gnome.settings-daemon.plugins.power sleep-inactive-ac-type 'suspend'
org.gnome.settings-daemon.plugins.power sleep-inactive-battery-timeout 900
org.gnome.settings-daemon.plugins.power sleep-inactive-battery-type 'suspend'
$ sudo -u gdm dbus-run-session gsettings set org.gnome.settings-daemon.plugins.power sleep-inactive-ac-timeout 0
$ docker build -f Dockerfile .
Sending build context to Docker daemon 23.55kB
Step 1/7 : FROM buildpack-deps:bullseye-scm
---> 24d8bfbc3d97
Step 2/7 : RUN apt update && apt install -y --no-install-recommends g++ gcc libc6-dev make wget && ldd --version
---> Running in 75da9ea78547
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
Get:1 http://deb.debian.org/debian bullseye InRelease [116 kB]