power management policy Gnome 3.18

asked 2016-04-18 20:15:01 -0500

galan gravatar image

updated 2016-04-19 15:57:12 -0500

First, I searched for a solution before I posted and didn't find anything that quite fit. Second, I am aware of logind.conf and upower.conf (along with the dconf keys for the power plugin).

I would like to be able to configure the power management such that: 1)when on ac power: closing the lid simply turns off the screen, and
2)when on battery: closing the lid causes the system to enter hybrid-suspend

This problem is way too simple for it to not be something I can simply configure.

edit retag flag offensive close merge delete

Comments

Have a look at dconf (or dconf-editor if you prefer a GUI). Under /org/gnome/settings-daemon/plugins/power you should find some setting for that.

genodeftest gravatar imagegenodeftest ( 2016-04-19 04:33:47 -0500 )edit

I mentioned in the preface to my question that I'd already looked in gsettings. Here's the list: idle-brightness power-button-action priority idle-dim sleep-inactive-ac-type sleep-inactive-battery-timeout sleep-inactive-battery-type sleep-inactive-ac-timeout ambient-enabled active

The problem with those is the state is only based on active/inactive and activity timeout. It doesn't offer any help if it doesn't contain state info of both the lid and power state.

galan gravatar imagegalan ( 2016-04-19 13:53:01 -0500 )edit

What is the problem? Your question does not well describe it, IMHO. What is supposed to be behind When on:?

florian gravatar imageflorian ( 2016-04-19 15:28:05 -0500 )edit

I hope this makes the problem clearer.

galan gravatar imagegalan ( 2016-04-19 15:58:25 -0500 )edit
1

Yes, it does!

So, how about:

org.gnome.settings-daemon.plugins.power sleep-inactive-ac-type  == nothing
org.gnome.settings-daemon.plugins.power sleep-inactive-battery-type == suspend

?!

(description of that key: The type of sleeping that should be performed when the computer is inactive.)

florian gravatar imageflorian ( 2016-04-19 20:12:00 -0500 )edit