#StackBounty: #18.04 #suspend #power-management #hibernate Prevent sleep/suspend when not logged in to a specific account

Bounty: 50

We have a shared office desktop running Ubuntu 18.04 where several jobs (via ssh and screen) often run for weeks on multiple accounts. When logged into an account, sleep/suspend is deactivated through:

  1. Power settings in main System Setting
  2. Using gnome-tweak-tool, setting “Suspend when laptop lid is closed” to off.

This works fine as long as a user with these power settings is always directly logged into the machine (i.e., physically, not via ssh).

The problem is when no user is currently logged in directly i.e., when the machine is at the main login screen (like on boot up). There does not appear to be a way to set sleep/suspend settings when not logged into a specific account. So, if the machine remains on this screen, it eventually sleeps, suspending all the running jobs.

As I mentioned, things work fine as long as some user is logged in. However, this has been viewed as a security risk. So we’d like to find a better system-wide solution.

I should mention that we have another office desktop running Ubuntu 16.04 which does not have this problem.

Get this bounty!!!

#StackBounty: #18.04 #shortcut-keys #power-management How to disable sleep / suspend / hibernate HP keyboard buttons for Ubuntu 18.04?

Bounty: 100

Already tried all solutions from: How do I disable the sleep button on my keyboard?

gsettings set org.gnome.settings-daemon.plugins.power button-suspend "nothing"
gsettings set org.gnome.settings-daemon.plugins.power button-sleep "nothing"
gsettings set org.gnome.settings-daemon.plugins.power button-hibernate "nothing"

and I have now with dconf-tools:

enter image description here

In my case HP Hewlett Packard WZ972AA ABA Classic Keyboard:

enter image description here

This “Moon” button still working.. Any another ideas?

Get this bounty!!!

#StackBounty: #arch-linux #gnome #power-management “Dim screen when inactive” purpose?

Bounty: 50

In gnome-control-center’s power saving settings there are amongst others:

  • a “Dim screen when inactive” toggle
  • a “Blank screen” drop-down list

However “Dim screen when inactive” does nothing. As long as “Blank screen” isn’t “Never” the screen will dim whatever the toggle state.

Conversely setting it to “Never” will always prevent dimming.

What is “Dim screen when inactive” toggle supposed to set?

Get this bounty!!!