FS#15038 - [gnome-power-manager] no suspend when idle

Attached to Project: Arch Linux
Opened by Ulf Winkelvos (uwinkelvos) - Wednesday, 10 June 2009, 02:30 GMT
Last edited by Jan de Groot (JGC) - Friday, 04 September 2009, 20:23 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Jan de Groot (JGC)
Architecture x86_64
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description:
I got a problem with gnome-power-manager 2.26.1-2. I can suspend from the applet menu. It does hibernate on critical bat level, but i 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.

Additional info:
* package version(s)
2.24.4-1: does work
2.26.1-2: does NOT work
2.26.2 (adapted PKGBUILD): does NOT work
2.27.1 (adapted PKGBUILD): does NOT work

* config and/or log files etc.
g-p-m --verbose logs attached
hack to force sleep attached
g-p-m (patched version) --verbose logs attached


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

Steps to reproduce:
- set idle timeout to 1 mins in gnome-screensaver-preferences
- set sleep timeout to 2 mins in gnome-power-manager-preferences
- wait (for nthing happening)

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.
This task depends upon

Closed by  Jan de Groot (JGC)
Friday, 04 September 2009, 20:23 GMT
Reason for closing:  Fixed
Additional comments about closing:  This should be fixed with the latest version of xorg-server.
Comment by Jan de Groot (JGC) - Wednesday, 10 June 2009, 06:54 GMT
- unknown key /apps/gnome-power-manager/timeout/sleep_computer_ac

This is in your logs. Did the gconf schemas for gnome-power-manager register correctly? We have an open bug for gconf about gconftool-2 that segfaults when used with non-C or non-UTF8 locales.
Comment by João Vieira (Vieira) - Wednesday, 10 June 2009, 11:06 GMT
@JGC Any idea when you can make 2.27 available? It appears to fix a lot of bugs and annoyances people are having with 2.26.x.
Comment by Jan de Groot (JGC) - Wednesday, 10 June 2009, 11:21 GMT
2.27 is alpha/beta quality, which will get stable in september. I won't update to that release. A lot of these fixes have been backported to the 2.26 branch. We're still one version behind on that, so updating will fix quite some issues.
Comment by Ulf Winkelvos (uwinkelvos) - Wednesday, 10 June 2009, 18:42 GMT
JGC, I think they registered couurctly, as i
Comment by Ulf Winkelvos (uwinkelvos) - Wednesday, 10 June 2009, 18:51 GMT
[remember: attach a file is an other button as Add comment :)]
the key seems to be registered as i can see it in gconf-editor and it the timeout i set is respected, when i apply my hack. I attached the log file, the gconf values and the hacked gpm-idle.c. As you can see in the log, the pc suspends after 5 minutes, when i set the timeout to 6 mins and the idle timeout to 1 min.
Comment by Jan de Groot (JGC) - Saturday, 13 June 2009, 13:22 GMT
please try gnome-power-manager 2.26.2.
Comment by Ulf Winkelvos (uwinkelvos) - Saturday, 13 June 2009, 20:05 GMT
did not change anything. But i found this in the 2.27.1 changelogs:

commit d5d78515f7d59da54056124d835223f1b625abc4
Author: Richard Hughes <richard@hughsie.com>
Date: 2009-05-29

Go back to the original IDLETIME code to fix backlight bugs

The new IDLETIME code from gnome-session is very buggy, and the
old code
was much easier to understand. This should fix random DPMS off
blanking
and the fade-up-down-up on session resume.

M src/egg-idletime.c
M src/egg-idletime.h
M src/gpm-idle.c
M src/gpm-idle.h
M src/gpm-self-test.c

But even with this changes my problem is not fixed. (as mentioned i treid 2.27.1 and devkit-power 008 before.)

offtopic:
when i got it right, --enable-legacy-buttons should not be necssary anymore with devkit-power 008.
Comment by Jan de Groot (JGC) - Saturday, 13 June 2009, 20:12 GMT
That commit was also made to the 2.26.2 version, so there shouldn't be differences between 2.26.2 and 2.27.1.
Comment by Ulf Winkelvos (uwinkelvos) - Saturday, 13 June 2009, 20:51 GMT
[sry for this double post]
should i file a bug report upstream?
Comment by Ulf Winkelvos (uwinkelvos) - Wednesday, 24 June 2009, 21:04 GMT
I did just test fedora-core 11 live, which also uses gnome-power-manager 2.26.2 and it also does not suspend on idle. Therefore this is not an ARCH problem. I already filed an bug report upstream.
Comment by Greg (dolby) - Wednesday, 24 June 2009, 21:12 GMT
It would be helpful if you pasted the URL to the upstream bug report here too.
Comment by Ulf Winkelvos (uwinkelvos) - Wednesday, 24 June 2009, 21:49 GMT

Loading...