You are not logged in.

#1 2011-12-23 19:22:45

peoro
Member
Registered: 2007-06-10
Posts: 67

Disable GDM auto-suspension

After a few minutes my computer was idle on GDM3, it suspended on its own.
I believe it's GDM's fault.

How can I disable it?
Already disabled gnome3's auto-suspension for my user from "System Settings > Power", but it looks like it didn't affect GDM behaviour.

Offline

#2 2011-12-23 19:49:45

peoro
Member
Registered: 2007-06-10
Posts: 67

Re: Disable GDM auto-suspension

After some more searching, found htis thread: https://bbs.archlinux.org/viewtopic.php?id=127740

Couldn't find it earlier, sorry.

Offline

#3 2011-12-23 20:35:54

headkase
Member
Registered: 2011-12-06
Posts: 1,977

Re: Disable GDM auto-suspension

Using your favorite text editor as root, open:

/usr/share/polkit-1/actions/org.freedesktop.upower.policy

In this file you will find some xml, the sections you are looking for are:

<action id="org.freedesktop.upower.suspend">

and

<action id="org.freedesktop.upower.hibernate">

Within both of these there is an element called <defaults>, in the <defaults> element for both there is an element called <allow_active>. Between <allow_active>yes</allow_active> change the "yes" to "no" without quotes for both.

Save the changes and reboot.

Suspend and hibernate are now not available.

As a bonus the GNOME 3 user menu (top-right corner) will now have a "Power Off" option instead of a "Suspend" one as it's default.

Offline

#4 2011-12-23 23:10:00

eldragon
Member
From: Buenos Aires
Registered: 2008-11-18
Posts: 1,029

Re: Disable GDM auto-suspension

what ive done: disable gnome-settings-daemon power pluggin from dconf (for the gdm user)

this link
https://wiki.archlinux.org/index.php/Gnome#Login_screen

and dconf-editor:

navigate to org/gnome/settings-daemon/plugins/power and disable it.

Last edited by eldragon (2011-12-23 23:10:50)

Offline

Board footer

Powered by FluxBB