After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 586444 - no suspend when idle
no suspend when idle
Status: RESOLVED FIXED
Product: gnome-power-manager
Classification: Deprecated
Component: gnome-power-manager
2.26.x
Other All
: Normal normal
: ---
Assigned To: GNOME Power Manager Maintainer(s)
GNOME Power Manager Maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2009-06-20 01:38 UTC by Ulf Winkelvos
Modified: 2009-10-13 02:29 UTC
See Also:
GNOME target: ---
GNOME version: 2.25/2.26


Attachments
g-p-m --verbose log (29.31 KB, text/plain)
2009-06-20 01:42 UTC, Ulf Winkelvos
  Details
g-pm-m hack to disable session idle check. (468 bytes, patch)
2009-06-20 01:43 UTC, Ulf Winkelvos
none Details | Review
g-p-m --verbose, when hack is enabled (19.03 KB, text/plain)
2009-06-20 01:43 UTC, Ulf Winkelvos
  Details
my gconf values. (2.21 KB, text/plain)
2009-06-20 01:44 UTC, Ulf Winkelvos
  Details

Description Ulf Winkelvos 2009-06-20 01:38:43 UTC
Please describe the problem:
I can suspend from the applet menu. It does hibernate on critical bat level, but it does not suspend on idle, regardless what timeout values I set in screensaver and gnome-power-manager. Display sleep seems to work though. First I thought, this might be only an issue on my particular notebook, as I could not find anything on google about this, but it is the same behavior on my freshly installed desktop system.
This bug occures in all versions from 2.26.0 to 2.27.2 (git master), but is not present in 2.24.x

OS:
Arch64
Hardware:
Notebook: HP Pavilion dv3550eg (centrino2 - Nvidia 9300M GS)
Desktop: GB AMD 790XT, Phenom 720, Nvidia GTX 260

Steps to reproduce:
1. set idle timeout to 1 mins in gnome-screensaver-preferences
2. set sleep timeout to 2 mins in gnome-power-manager-preferences
3. wait 3+ minutes


Actual results:
nothing

Expected results:
system should suspend

Does this happen every time?
yes

Other information:
I tried to debug this issue, but failed bigtime in this whole gnome - C stuff. The attached patch simply disables the session idle check and forces the pc to sleep regardless if the session idle time can be determined. I think this might be some kind of policy error, but i don't see any warnings abot that.
Comment 1 Ulf Winkelvos 2009-06-20 01:42:32 UTC
Created attachment 137049 [details]
g-p-m --verbose log
Comment 2 Ulf Winkelvos 2009-06-20 01:43:10 UTC
Created attachment 137050 [details] [review]
g-pm-m hack to disable session idle check.
Comment 3 Ulf Winkelvos 2009-06-20 01:43:52 UTC
Created attachment 137051 [details]
g-p-m --verbose, when hack is enabled
Comment 4 Ulf Winkelvos 2009-06-20 01:44:55 UTC
Created attachment 137052 [details]
my gconf values.
Comment 5 Ulf Winkelvos 2009-06-24 21:51:45 UTC
I tested fedora-core 11 live x64 which uses g-p-m 2.26.2 and is does not suspend on idle either.
Comment 6 Zsolt Barat 2009-07-05 14:57:42 UTC
i can confirm this.
i have many dbus-rejection-errors in my logs. may be this is related:
Jul  5 16:32:57 lisabook dbus-daemon: Rejected send message, 1 matched rules; type="method_call", sender=":1.13" (uid=104 pid=3830 comm="gnome-power-manager ") interface="org.freedesktop.Hal.Manager" member="FindDeviceByCapability" error name="(unset)" requested_reply=0 destination="org.freedesktop.Hal" (uid=0 pid=3606 comm="/usr/sbin/hald --use-syslog --verbose=no "))
Jul  5 16:32:57 lisabook dbus-daemon: Rejected send message, 1 matched rules; type="method_call", sender=":1.13" (uid=104 pid=3830 comm="gnome-power-manager ") interface="org.freedesktop.Hal.Manager" member="FindDeviceByCapability" error name="(unset)" requested_reply=0 destination="org.freedesktop.Hal" (uid=0 pid=3606 comm="/usr/sbin/hald --use-syslog --verbose=no "))
Jul  5 16:32:57 lisabook dbus-daemon: Rejected send message, 1 matched rules; type="method_call", sender=":1.13" (uid=104 pid=3830 comm="gnome-power-manager ") interface="org.freedesktop.Hal.Device" member="GetPropertyString" error name="(unset)" requested_reply=0 destination=":1.0" (uid=0 pid=3606 comm="/usr/sbin/hald --use-syslog --verbose=no "))
Jul  5 16:32:57 lisabook dbus-daemon: Rejected send message, 1 matched rules; type="method_call", sender=":1.16" (uid=104 pid=3838 comm="/usr/bin/gnome-power-manager ") interface="org.freedesktop.Hal.Manager" member="FindDeviceByCapability" error name="(unset)" requested_reply=0 destination="org.freedesktop.Hal" (uid=0 pid=3606 comm="/usr/sbin/hald --use-syslog --verbose=no "))
Jul  5 16:32:57 lisabook dbus-daemon: Rejected send message, 1 matched rules; type="method_call", sender=":1.16" (uid=104 pid=3838 comm="/usr/bin/gnome-power-manager ") interface="org.freedesktop.Hal.Manager" member="FindDeviceByCapability" error name="(unset)" requested_reply=0 destination="org.freedesktop.Hal" (uid=0 pid=3606 comm="/usr/sbin/hald --use-syslog --verbose=no "))
Jul  5 16:32:57 lisabook dbus-daemon: Rejected send message, 1 matched rules; type="method_call", sender=":1.16" (uid=104 pid=3838 comm="/usr/bin/gnome-power-manager ") interface="org.freedesktop.Hal.Device" member="GetPropertyString" error name="(unset)" requested_reply=0 destination=":1.0" (uid=0 pid=3606 comm="/usr/sbin/hald --use-syslog --verbose=no "))
Jul  5 16:32:57 lisabook dbus-daemon: Rejected send message, 1 matched rules; type="method_call", sender=":1.16" (uid=104 pid=3838 comm="/usr/bin/gnome-power-manager ") interface="org.freedesktop.Hal.Manager" member="FindDeviceByCapability" error name="(unset)" requested_reply=0 destination="org.freedesktop.Hal" (uid=0 pid=3606 comm="/usr/sbin/hald --use-syslog --verbose=no "))
Jul  5 16:32:57 lisabook dbus-daemon: Rejected send message, 1 matched rules; type="method_call", sender=":1.13" (uid=104 pid=3830 comm="gnome-power-manager ") interface="org.freedesktop.Hal.Manager" member="FindDeviceByCapability" error name="(unset)" requested_reply=0 destination="org.freedesktop.Hal" (uid=0 pid=3606 comm="/usr/sbin/hald --use-syslog --verbose=no "))
Jul  5 16:32:57 lisabook dbus-daemon: Rejected send message, 1 matched rules; type="method_call", sender=":1.13" (uid=104 pid=3830 comm="gnome-power-manager ") interface="org.freedesktop.Hal.Manager" member="FindDeviceByCapability" error name="(unset)" requested_reply=0 destination="org.freedesktop.Hal" (uid=0 pid=3606 comm="/usr/sbin/hald --use-syslog --verbose=no "))
Jul  5 16:32:57 lisabook dbus-daemon: Rejected send message, 1 matched rules; type="method_call", sender=":1.16" (uid=104 pid=3838 comm="/usr/bin/gnome-power-manager ") interface="org.freedesktop.Hal.Manager" member="FindDeviceByCapability" error name="(unset)" requested_reply=0 destination="org.freedesktop.Hal" (uid=0 pid=3606 comm="/usr/sbin/hald --use-syslog --verbose=no "))

I also have disabled gnome-screen-saver. Mean it is installed but to activate a screensaver on idle is disabled in its settings.
Comment 7 Zsolt Barat 2009-07-06 00:03:24 UTC
i digged a bit into this. it seems indeed that "is_idle" isn't issued from gnome-session. someone should monitor the dbus-messages which are going over.
with the hack setting is_idle always to TRUE gnome-manager suspends happily.
there are other weird things going up when it wakes up, but thats another story.
i'm trying this with:
gnome-power-manager 2.27.1
gnome-session 2.26.1-r1
hal 0.5.12_rc1-r6

on gentoo
uname -a:
Linux lisabook 2.6.30-gentoo-r2 #3 SMP Sat Jul 4 23:56:27 CEST 2009 x86_64 Intel(R) Core(TM)2 CPU T7400 @ 2.16GHz GenuineIntel GNU/Linux
Comment 8 asiminski 2009-08-14 07:23:32 UTC
hello, 

same problem on Fedora 11. I can suspend the computer from the applet menu, but it does not do it by itself regardless what timeouts I set in gnome power manager

uname -a : 
Linux localhost.localdomain 2.6.29.6-217.2.3.fc11.x86_64 #1 SMP Wed Jul 29 16:02:42 EDT 2009 x86_64 x86_64 x86_64 GNU/Linux

gnome-power-manager.x86_64            2.26.3-1.fc11
gnome-session.x86_64                  2.26.2-1.fc11
gnome-session-xsession.x86_64         2.26.2-1.fc11
hal.x86_64                            0.5.12-26.20090226git.fc11

Comment 9 Richard Hughes 2009-08-14 08:16:38 UTC
See https://bugzilla.redhat.com/show_bug.cgi?id=501601
Comment 10 Ulf Winkelvos 2009-08-14 16:21:22 UTC
I realy wonder if this suspend problem is restricted too few people and all the others do have suspend on idle, but problems with dpms.
Comment 11 Jan de Groot 2009-08-14 16:28:39 UTC
I recompiled xorg-server on archlinux with the fix Richard posted on his blog, so the sudden screen blanks should be fixed. I don't know if this has anything to do with this problem, but it might be related.
Our distribution doesn't carry the latest version of gnome-power-manager yet, so that could also improve things here.
Comment 12 asiminski 2009-08-22 12:29:27 UTC
upgraded package gnome-power-manager.x86_64 to version 2.26.4-1.fc11
The suspend problem seems to be solved.

still have the blanking problem tho. I am gonnna test bug https://bugzilla.redhat.com/show_bug.cgi?id=501601
Comment 13 Ulf Winkelvos 2009-10-13 02:29:33 UTC
The no-suspend-problem is definitly solved with 2.28 and Xorg-server 1.6.3.901.