Hot answers tagged suspend
did you try the answer to this thread: How do I disable the blank console "screensaver" on Ubuntu Server? In short it says to add the parameter consoleblank=0 to your kernel command-line at boot-time. Hope that helps.
To a point you could control this in policykit, in /usr/share/polkit-1/actions/org.freedesktop.upower.policy and or /usr/share/polkit-1/actions/org.freedesktop.login1.policy The relevant entries would be org.freedesktop.upower.suspend & org.freedesktop.login1.suspend respectively In that case editing the line ...
This question at the Unix & Linux site documents an alternative approach using dbus messages: dbus-monitor --session "type='signal',interface='org.gnome.ScreenSaver'" | ( while true; do read X; if echo $X | grep "boolean true" &> /dev/null; then SCREEN_LOCKED; elif echo $X | grep "boolean false" &> /dev/null; then SCREEN_UNLOCKED; fi done ...
Search for Power in dash from that you can change the suspend time(suspend when inactive for) . Try the below command to suspend your pc for 1 hour, sudo rtcwake -u -s 3600 -m mem
I didn't test it, I could be missing a step. Use System Setting → Power / Brightness. Set all setting you need and as you want Create an override file from the current user settings and place it in /usr/share/glib-2.0/schemas/ echo "[org.gnome.settings-daemon.plugins.power]" > 90_mypower.gschema.override gsettings list-recursively ...
On the bottom of this answer are instructions for installing sleepd if you really insist. However that package is pretty much outdated for modern hardware. If you are going to write a program, you can consider the following sources: Devices in /dev/input/ If a user is logged in, rely on the desktop session manager. Its properties for consideration are ...
Only top voted, non community-wiki answers of a minimum length are eligible