You are not logged in.

#1 2015-04-08 12:11:22

giuseppe
Member
From: Bari, Italy
Registered: 2013-06-17
Posts: 11
Website

Suspending on battery only when I close the lid.

Hi,
I'm running Arch with GNOME on my netbook.
When I close the lid my pc suspends, that is fine on battery.

Is there a way to disable this behaviour when the power plug is connected?

I'm quite sure this option is present in KDE4 systemsettings, and in older GNOME versions too there was the key "lid-close-ac-action" which could be set to "blank" but it doesn't exists anymore.

So is there a way to achieve this?

Last edited by giuseppe (2015-04-08 12:42:50)

Offline

#2 2015-04-08 12:28:42

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,480
Website

Re: Suspending on battery only when I close the lid.

I don't know how to set up the GNOME power management, but one necessary step would be to stop systemd-logind from suspending on lid close as that is what controls it by default.  Read `man logind.conf` and edit /etc/systemd/logind.conf


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#3 2015-04-08 12:41:35

giuseppe
Member
From: Bari, Italy
Registered: 2013-06-17
Posts: 11
Website

Re: Suspending on battery only when I close the lid.

That is the easy part ;P

Offline

Board footer

Powered by FluxBB