You are not logged in.
Hello
I've been searching for a while for an answer to this, your help would be much appreciated. If my machine is left at the gdm screen, it will suspend after 30 mins, which is deeply inconvenient as I connect remotely to it quite often.
I can turn off the power saving in my own account, and if I leave that account logged in then it's fine, but gdm will still suspend.
Can anybody help me out with this? I've tried a few hacky tips I've read online but had no success, and I'd rather know the 'right' way.
Thanks
Last edited by warfruit (2011-10-05 20:24:25)
Offline
I've been looking around for this also. Seems that GDM uses some defaults.
Here is a bug report for another distro stating the issue:
https://bugs.launchpad.net/ubuntu/+sour … bug/860227
I'm sure there is a gsettings command that will set sleep-inactive-ac-type 'suspend' to off. But as I am guessing you are, my computer is suspended right now and can't login to test the correct command.
If no one else posts the command, I'll do it in a couple hours when I get home.
Offline
Thanks, I appreciate the reply! I booted to runlevel 3 this morning to avoid the problem, so I can still talk to my box.. here's some keys I pulled out as root in a ssh session:
org.gnome.settings-daemon.plugins.power:
sleep-inactive-ac false
sleep-inactive-ac-timeout 0
sleep-inactive-ac-type 'suspend'
sleep-inactive-battery false
sleep-inactive-battery-timeout 1800
sleep-inactive-battery-type 'suspend'
I haven't really messed with gsettings before. Does this look okay? Or are we subject so some other issue
Thanks
Offline
I am pretty sure, the settings for root aren't what we need to look at here.
I think there is the gdm user (not sure what the login shell is for this user) but the settings need to be verified under the gdm user.
so it'll look something like this:
[root@localhost]# su - gdm
[gdm@localhost]$ gsettings set org.gnome.settings-daemon.plugins.power sleep-inactive-ac-type off
I'm not sure if it should be off/disabled. I was going to look at what it was set to under my account (I turned it off in the power settings for my account too) and set it to that value.
BTW. here is a good url fromt he wiki about gsettings: http://blog.fpmurphy.com/2011/03/custom … shell.html
Offline
Thanks for the link, I'll check that out
I had to enable the gdm account briefly to be able to su to it, but once I did I found this:
[gdm@kryten ~]$ dbus-launch gsettings range org.gnome.settings-daemon.plugins.power sleep-inactive-ac-type
enum
'blank'
'suspend'
'shutdown'
'hibernate'
'interactive'
'nothing'
So I've tried:
[gdm@kryten ~]$ dbus-launch gsettings set org.gnome.settings-daemon.plugins.power sleep-inactive-ac-type 'nothing'
I then rebooted so I'd hit runlevel 5 .. I'm now watching the clock to see what happens in 30 mins ;-)
Offline
So far so good, up 45 mins. Horray!
Thanks for your help with this one, sunckell.
Offline
How did you enable the gdm user account? "su -s /bin/bash gdm" allowed me to logon as gdm user but when I try to run "dbus-launch gsettings set org.gnome.settings-daemon.plugins.power sleep-inactive-ac-type 'nothing'" I get "unable to create '/root/.cache/dconf'; dconf will not work properly." It seems that it is looking for /var/lib/gdm/.cache/dconf folder but is using the wrong $HOME, but when I do "echo $HOME" is comes back with /var/lib/gdm.
Offline
# xhost +
# su - gdm -s /bin/bash
$ dbus-launch
Offline
Hi I am trying to achieve the same result but I also have the error, see terminal output below
[gdm@myhost sweetth]$ # xhost +
[gdm@myhost sweetth]$ # su - gdm -s /bin/bash
[gdm@myhost sweetth]$ dbus-launch
No protocol specified
DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-eZ66GG3r0c,guid=66509ecdb4a7d2be8ab9039800001448
DBUS_SESSION_BUS_PID=4417
[gdm@myhost sweetth]$ dbus-launch gsettings set org.gnome.settings-daemon.plugins.power sleep-inactive-ac-type 'nothing'
No protocol specified
** (process:4422): CRITICAL **: unable to create '/home/sweetth/.cache/dconf'; dconf will not work properly.
** (process:4422): WARNING **: GDBus.Error:org.freedesktop.DBus.Error.Spawn.ChildSignaled: Process /usr/lib/dconf/dconf-service received signal 5
Offline
First thank you adrianx for helping me, that worked.
It looks like the problems that sweetthdevil is having is that they are already logged in as gdm when they ran the commands. I became root, ran the commands given by adrianx, and then continued with the solution.
Offline
I am running the commands while connected with my regular user in gnome. Should those commands be run into the command prompt? (Using alt+f1 on the gem login screen?)
Edit: checked it and problem solved, many thanks
Last edited by sweetthdevil (2011-10-10 12:59:51)
Offline
right,
I have tried running the commands from tty1 prompt and it seems to have worked - will try it later and report.
Offline