# SLES12 SP2 Power Management

**URL:** <https://forums.suse.com/t/sles12-sp2-power-management/29312>\
**Category:** SLES Configure-Administer\
**Created:** [February 1, 2017, 9:57pm UTC](https://forums.suse.com/t/sles12-sp2-power-management/29312 "2017-02-01T21:57:17Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![LarryResch](https://avatars.discourse-cdn.com/v4/letter/l/eb8c5e/32.png) [@LarryResch](https://forums.suse.com/u/LarryResch)\
**Post date:** [February 1, 2017, 9:57pm UTC](https://forums.suse.com/t/sles12-sp2-power-management/29312/1 "2017-02-01T21:57:17Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![malcolmlewis](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/malcolmlewis/32/11375_2.png) [@malcolmlewis](https://forums.suse.com/u/malcolmlewis)\
**Post date:** [February 1, 2017, 10:21pm UTC](https://forums.suse.com/t/sles12-sp2-power-management/29312/2 "2017-02-01T22:21:27Z")

</div>

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.

```auto
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…

---

<div class="post-metadata">

**Author:** ![LarryResch](https://avatars.discourse-cdn.com/v4/letter/l/eb8c5e/32.png) [@LarryResch](https://forums.suse.com/u/LarryResch)\
**Post date:** [February 2, 2017, 4:56pm UTC](https://forums.suse.com/t/sles12-sp2-power-management/29312/3 "2017-02-02T16:56:14Z")

</div>

[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.

```auto
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](https://www.novell.com/support/kb/doc.php?id=7016691) or [https://forums.opensuse.org/showthread.php/513681-Remove-configure-userlist-on-Login-Screen](https://forums.opensuse.org/showthread.php/513681-Remove-configure-userlist-on-Login-Screen))

-L

---

<div class="post-metadata">

**Author:** ![malcolmlewis](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/malcolmlewis/32/11375_2.png) [@malcolmlewis](https://forums.suse.com/u/malcolmlewis)\
**Post date:** [February 2, 2017, 8:23pm UTC](https://forums.suse.com/t/sles12-sp2-power-management/29312/4 "2017-02-02T20:23:19Z")

</div>

> [@](#):
>
> On Thu 02 Feb 2017 03:04:01 PM CST, LarryResch wrote:
> 
> malcolmlewis;36373 Wrote:[color=blue]
> 
> > 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.[color=green]
> > 
> > > [/color][/color]  
> > > Code:  
> > > --------------------[color=blue][color=green]  
> > > [/color]  
> > > gsettings list-schemas |grep power  
> > > org.gnome.power-manager  
> > > org.gnome.settings-daemon.plugins.power
> > 
> > gsettings list-keys org.gnome.settings-daemon.plugins.power  
> > [/color]  
> > --------------------[color=blue][color=green]
> > 
> > > [/color]
> > 
> > Then there is cpupower as well…[/color]
> 
> 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](https://www.novell.com/support/kb/doc.php?id=7016691) or  
> [https://forums.opensuse.org/showthread.php/513681-Remove-configure-userlist-on-Login-Screen](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;

```auto
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;

```auto
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!

---

<div class="post-metadata">

**Author:** ![LarryResch](https://avatars.discourse-cdn.com/v4/letter/l/eb8c5e/32.png) [@LarryResch](https://forums.suse.com/u/LarryResch)\
**Post date:** [February 6, 2017, 10:37pm UTC](https://forums.suse.com/t/sles12-sp2-power-management/29312/5 "2017-02-06T22:37:03Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![malcolmlewis](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/malcolmlewis/32/11375_2.png) [@malcolmlewis](https://forums.suse.com/u/malcolmlewis)\
**Post date:** [February 7, 2017, 2:14am UTC](https://forums.suse.com/t/sles12-sp2-power-management/29312/6 "2017-02-07T02:14:32Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![malcolmlewis](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/malcolmlewis/32/11375_2.png) [@malcolmlewis](https://forums.suse.com/u/malcolmlewis)\
**Post date:** [February 7, 2017, 2:19am UTC](https://forums.suse.com/t/sles12-sp2-power-management/29312/7 "2017-02-07T02:19:54Z")

</div>

Hi  
As an aside, have you heard about SUSE Package Hub? [https://packagehub.suse.com/](https://packagehub.suse.com/) If you keep an eye on [http://download.opensuse.org/repositories/openSUSE:/Backports:/SLE-12-SP2/standard/](http://download.opensuse.org/repositories/openSUSE:/Backports:/SLE-12-SP2/standard/) plasma5 should turn up (not well populated at present for SLE 12 SP2).

---

<div class="post-metadata">

**Author:** ![LarryResch](https://avatars.discourse-cdn.com/v4/letter/l/eb8c5e/32.png) [@LarryResch](https://forums.suse.com/u/LarryResch)\
**Post date:** [February 7, 2017, 6:33pm UTC](https://forums.suse.com/t/sles12-sp2-power-management/29312/8 "2017-02-07T18:33:09Z")

</div>

[QUOTE=malcolmlewis;36413]Hi  
As an aside, have you heard about SUSE Package Hub? [https://packagehub.suse.com/](https://packagehub.suse.com/) If you keep an eye on [http://download.opensuse.org/repositories/openSUSE:/Backports:/SLE-12-SP2/standard/](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

---

<div class="post-metadata">

**Author:** ![malcolmlewis](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/malcolmlewis/32/11375_2.png) [@malcolmlewis](https://forums.suse.com/u/malcolmlewis)\
**Post date:** [February 7, 2017, 6:55pm UTC](https://forums.suse.com/t/sles12-sp2-power-management/29312/9 "2017-02-07T18:55:45Z")

</div>

> [@](#):
>
> On Tue 07 Feb 2017 04:34:01 PM CST, LarryResch wrote:
> 
> malcolmlewis;36413 Wrote:[color=blue]
> 
> > Hi  
> > As an aside, have you heard about SUSE Package Hub?  
> > [https://packagehub.suse.com/](https://packagehub.suse.com/) If you keep an eye on  
> > [http://download.opensuse.org/repositories/openSUSE:/Backports:/SLE-12-SP2/standard/](http://download.opensuse.org/repositories/openSUSE:/Backports:/SLE-12-SP2/standard/)  
> > plasma5 should turn up (not well populated at present for SLE 12  
> > SP2).[/color]
> 
> 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](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/](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!

---

<div class="post-metadata">

**Author:** ![LarryResch](https://avatars.discourse-cdn.com/v4/letter/l/eb8c5e/32.png) [@LarryResch](https://forums.suse.com/u/LarryResch)\
**Post date:** [February 9, 2017, 4:48pm UTC](https://forums.suse.com/t/sles12-sp2-power-management/29312/10 "2017-02-09T16:48:25Z")

</div>

[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

---

<div class="post-metadata">

**Author:** ![Andreas1](https://avatars.discourse-cdn.com/v4/letter/a/d26b3c/32.png) [@Andreas1](https://forums.suse.com/u/Andreas1)\
**Post date:** [February 10, 2017, 2:41pm UTC](https://forums.suse.com/t/sles12-sp2-power-management/29312/11 "2017-02-10T14:41:39Z")

</div>

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-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-keyfiles.html.en)

[https://help.gnome.org/admin/system-admin-guide/stable/dconf-profiles.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`

---

<div class="post-metadata">

**Author:** ![Andreas1](https://avatars.discourse-cdn.com/v4/letter/a/d26b3c/32.png) [@Andreas1](https://forums.suse.com/u/Andreas1)\
**Post date:** [February 10, 2017, 3:15pm UTC](https://forums.suse.com/t/sles12-sp2-power-management/29312/12 "2017-02-10T15:15:01Z")

</div>

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
`

---

<div class="post-metadata">

**Author:** ![LarryResch](https://avatars.discourse-cdn.com/v4/letter/l/eb8c5e/32.png) [@LarryResch](https://forums.suse.com/u/LarryResch)\
**Post date:** [February 11, 2017, 4:13pm UTC](https://forums.suse.com/t/sles12-sp2-power-management/29312/13 "2017-02-11T16:13:46Z")

</div>

Thanks for the information and links

---

<div class="post-metadata">

**Author:** ![Andreas1](https://avatars.discourse-cdn.com/v4/letter/a/d26b3c/32.png) [@Andreas1](https://forums.suse.com/u/Andreas1)\
**Post date:** [June 2, 2018, 12:56pm UTC](https://forums.suse.com/t/sles12-sp2-power-management/29312/14 "2018-06-02T12:56:35Z")

</div>

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](https://en.wikipedia.org/wiki/Polkit)

/etc/polkit-default-privs.local

```auto
org.freedesktop.upower.hibernate yes:yes:yes
```

[CODE]# su

# rm -f /var/lib/polkit/\* && set\_polkit\_default\_privs[/CODE]

[https://www.suse.com/documentation/sled-12/book\_security/data/sec\_security\_policykit\_change\_defaults.html](https://www.suse.com/documentation/sled-12/book_security/data/sec_security_policykit_change_defaults.html)
