Ubuntu won't suspend automatically any more
In the last few months, Ubuntu (12.04) has stopped sleeping automatically. I would like to restore this behaviour. I've gone to System Settings > Power, and verified (and toggled) "suspend on inactive for" to 5 minutes (for both battery and "when plugged in"), but the system stays awake.
Also, I've tried used code similar to
$ gsettings set org.gnome.
$ gsettings set org.gnome.
to set the timeout values. I've also verified these values in dconf Editor. Previously, I could set this quite low to make my computer sleep quickly, but now it no longer works either.
I'm not sure if this is relevant, but under old versions of Ubuntu, if I wanted my computer to never suspend (via the CLI), I would also set
$ gsettings set org.gnome.
At some point, this seemed to have been depreciated (and now gives me the error "No such key 'sleep-
I'm also not sure if this is relevant, but I uninstalled gnome-screensaver, and installed xscreensaver ages ago. As mentioned, automatic sleep worked fine a month ago, when I had this same configuration. In any case, I tried killing xscreensaver and re-installing gnome-screensaver, but this did not help.
To test if the dconf power plugin was working, I tried playing around with other settings in the schema. Idle-dim-time and idle-dim-ac work as expected. However, setting sleep-display-ac to 5 seconds has no effect. xscreensaver can trigger though, so I suspect there is not some program preventing the detection of idle behaviour, but rather a problem with the gnome-suspend daemon.
I've also tried creating a new user account, then logging out of the main account and into the new account. I've tried modifying the timeouts via dconf, but get the same results as above (i.e. it doesn't work, nor does sleep-display-ac, but idle-dim-time and idle-dim-ac work). Also, the depreciated sleep-display-ac key is not visible, so I think that this is probably unrelated.
I also attempted to restart and log into the new account immediately, just in case my main account was "poisoning" the system. Automatic suspend still fails, but oddly enough, sleep-display-ac now works, and respects the values that I put in it.
I've also noticed some trouble with DPMS. I'm not sure if this is related, but I'll put the information here, just in case. Using xscreensaver, I set Power Management to enabled, with standby and suspend timeouts to 10 minutes. I've verified these settings in ~/.xscreensaver and xset q. However, the screen blanks after about 30 seconds. If I turn off DPMS (either via xscreensaver GUI or modifying ~/.xscreensaver), it won't blank at all, so I know that DPMS is partially reading the xscreensaver settings.
Question information
- Language:
- English Edit question
- Status:
- Solved
- Assignee:
- No assignee Edit question
- Solved by:
- Sparhawk
- Solved:
- Last query:
- Last reply: