I am trying to configure the “low level” power settings on my SLES12 SP2 system under gnome (such as /lock/blank_screen). From what I have found on gnome, there should be options to enter “complex” mode for gnome power management, but the gconf keys (e.g., /apps/gnome-power-manager/lock/use_screensaver_settings) are not listed under the gconf editor.
Hi
gconf is dead… it’s now dconf, gsettings and dconf-editor if you want a GUI… I’m sure there is also some systemd (logind) involved as well.
gsettings list-schemas |grep power
org.gnome.power-manager
org.gnome.settings-daemon.plugins.power
gsettings list-keys org.gnome.settings-daemon.plugins.power
Then there is cpupower as well…
[QUOTE=malcolmlewis;36373]Hi
gconf is dead… it’s now dconf, gsettings and dconf-editor if you want a GUI… I’m sure there is also some systemd (logind) involved as well.
gsettings list-schemas |grep power
org.gnome.power-manager
org.gnome.settings-daemon.plugins.power
gsettings list-keys org.gnome.settings-daemon.plugins.power
Then there is cpupower as well…[/QUOTE]
There are no settings in dconf either. Either the settings were not installed when SLES was installed or I need to generate the dconf db file by hand. Without knowing what needs to go into the file, I can’t generate the file. What would be nice would be a list of the possible contents of the file, but I have not been able to find anything (e.g., something similar to the info on how to turn off the user list for the login screen - https://www.novell.com/support/kb/doc.php?id=7016691 or https://forums.opensuse.org/showthread.php/513681-Remove-configure-userlist-on-Login-Screen)
-L
Hi
For the user list and to disable, you need to create a 01-login-screen
file and update dconf;
vi /etc/dconf/db/gdm.d/01-login-screen
[org/gnome/login-screen]
# Do not show the user list
disable-user-list=true
dconf update
So, screen lock password required is in System Settings → Privacy
For screen blank, that is in power settings ‘sleep-inactive…’ for ac
and battery.
eg;
gsettings get org.gnome.settings-daemon.plugins.power sleep-inactive-ac-timeout
gsettings get org.gnome.settings-daemon.plugins.power idle-dim
The other place is tweak tool as well.
I would have thought, since it’s a server that any power management
would be off?
Then if you don’t want things to happen if the power button is pressed
etc, these settings are in /etc/systemd/logind.conf.
–
Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
openSUSE Leap 42.1|GNOME 3.16.2|4.1.36-44-default
If you find this post helpful and are logged into the web interface,
please show your appreciation and click on the star below… Thanks!
I am somewhat new with gnome - I have been using KDE on my older SLES/SLED systems. I was hoping for a list of settings and how to get to them to tweak both my server and desktop systems. I would like to set a time for blanking the screen (or involking the screen saver) along with requiring a password to get out of the screen saver, a setting for turning off the screen, and what to do when the battery goes critical for a local UPS. The settings that I have found in the various configuration GUIs seems sparse compared to KDE.
Is there a lise of things to “get” with gsettings?
-L
Hi
If you fire up dconf-editor, everything is there, when you click on an entry it will show the corresponding gsetting schema and the key to use for set or get…
OK;
- To turn the screen shade (Screen Lock so needs a password, this is on by default) on/of is under the System Settings → Privacy.
- To lock the screen on the fly, in the upside down triangle (Top Right AKA System Settings), hit the padlock, or press Super+L (Look under System Settings Keyboard Shortcuts for all the others or to customize).
- Set the timeout for a blank screen is under Systems Settings → Power.
- There are also some settings for power under Tweak Tool - Power (But laptop related?)
- Then there is /etc/systemd/logind.conf file and it’s associated man page command man 5 logind.conf for all the settings and options. For example I don’t want my laptops to do anything when the lid is closed, so I change the default from #HandleLidSwitch=suspend HandleLidSwitch=ignore (note removed the #)
AFAIK, the tool you use for the UPS management should determine this? What model UPS, does it show up under system settings or YaST?
Hi
As an aside, have you heard about SUSE Package Hub? https://packagehub.suse.com/ If you keep an eye on http://download.opensuse.org/repositories/openSUSE:/Backports:/SLE-12-SP2/standard/ plasma5 should turn up (not well populated at present for SLE 12 SP2).
[QUOTE=malcolmlewis;36413]Hi
As an aside, have you heard about SUSE Package Hub? https://packagehub.suse.com/ If you keep an eye on http://download.opensuse.org/repositories/openSUSE:/Backports:/SLE-12-SP2/standard/ plasma5 should turn up (not well populated at present for SLE 12 SP2).[/QUOTE]
Yes, I am waiting for the Package Hub to have KDE for SLE12 available. My one problem (and I posed a question to the blog post on the Package Hub and KDE) is that my systems are on a network not connected to the Internet and I need to find a way to get the packages from Package Hub to my network sort of like smt-mirror…
-L
Hi
Use something like rsync to download locally then use YaST add on
creator to create an iso for local deployment that all the machines can
connect to internally. Or plug the USB device into a machine etc.
Have a look here;
http://download.opensuse.org/repositories/openSUSE:/Backports:/SLE-12-SP2/standard/openSUSE:Backports:SLE-12-SP2.repo.mirrorlist
and compare here for the mirrors with rsync;
http://mirrors.opensuse.org/
–
Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
openSUSE Leap 42.1|GNOME 3.16.2|4.1.36-44-default
If you find this post helpful and are logged into the web interface,
please show your appreciation and click on the star below… Thanks!
[QUOTE=malcolmlewis;36412]Hi
If you fire up dconf-editor, everything is there, when you click on an entry it will show the corresponding gsetting schema and the key to use for set or get…
OK;
- To turn the screen shade (Screen Lock so needs a password, this is on by default) on/of is under the System Settings → Privacy.
- To lock the screen on the fly, in the upside down triangle (Top Right AKA System Settings), hit the padlock, or press Super+L (Look under System Settings Keyboard Shortcuts for all the others or to customize).
- Set the timeout for a blank screen is under Systems Settings → Power.
- There are also some settings for power under Tweak Tool - Power (But laptop related?)
- Then there is /etc/systemd/logind.conf file and it’s associated man page command man 5 logind.conf for all the settings and options. For example I don’t want my laptops to do anything when the lid is closed, so I change the default from #HandleLidSwitch=suspend HandleLidSwitch=ignore (note removed the #)
AFAIK, the tool you use for the UPS management should determine this? What model UPS, does it show up under system settings or YaST?[/QUOTE]
I have found those settings before, but I was hoping to be able to set the times for the screen saver and screen off timeout to something other than the options on the drop down menus (i.e., similar to being able to set the require password timeout in the dconf editor). Is there a file (or files) somewhere where the System Settings configuration are stored and can be modified outside the GUI?
I’ll try to download the Package Hub repository for KDE this weekend and, if that works, then I’ll go back to using KDE in place of gnome on my SLE12 systems.
-L
Please read:
https://help.gnome.org/admin/system-admin-guide/stable/dconf-lockdown.html.en
https://help.gnome.org/admin/system-admin-guide/stable/dconf-keyfiles.html.en
https://help.gnome.org/admin/system-admin-guide/stable/dconf-profiles.html.en
how to lock down specific settings in GNOME3. Dconf-editor helps to find out the correct lock down settings and values.
Set DCONF_PROFILE for normal user in /etc/profile.local:
# more /etc/profile.local |grep -i DCONF_PROFILE
export DCONF_PROFILE=user
Some examples of dconf keyfiles entries:
# screensaver
[org/gnome/desktop/screensaver]
lock-delay=300
lock-enabled=true
# GDM
[org/gnome/login-screen]
disable-user-list=false
# Power-Einstellungen
[org/gnome/settings-daemon/plugins/power]
button-hibernate='hibernate'
button-power='suspend'
button-sleep='hibernate'
button-suspend='hibernate'
critical-battery-action='hibernate'
power-button-action='nothing'
sleep-inactive-ac-timeout=2700
sleep-inactive-ac-type='suspend'
sleep-inactive-battery-timeout=1800
sleep-inactive-battery-type='suspend'
time-action=180
time-critical=300
time-low=600
use-time-for-policy=true
Thanks for the information and links
To maximize battery life time, you should hold the charge level of your Lithium-ion battery between 40 and 60 %. A battery charge level of < 30 % or > 80 % reduce battery life.
This is possible under SLE 12:
dconf keyfile:
[org/gnome/settings-daemon/plugins/power]
critical-battery-action='hibernate'
use-time-for-policy=false
/etc/UPower/UPower.conf
[CODE]UsePercentageForPolicy=true
PercentageLow=55
PercentageCritical=50
PercentageAction=40
[/CODE]
UPower need Polkit rights for hibernation:
https://en.wikipedia.org/wiki/Polkit
/etc/polkit-default-privs.local
org.freedesktop.upower.hibernate yes:yes:yes
[CODE]# su