Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Suspending to RAM with GNOME Power Manager
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC
View previous topic :: View next topic  
Author Message
Sodki
Guru
Guru


Joined: 11 Aug 2003
Posts: 419
Location: London, U.K. & Lisbon, Portugal

PostPosted: Sat Jun 16, 2007 4:42 am    Post subject: Suspending to RAM with GNOME Power Manager Reply with quote

Hello,

I've recently made a new installation of Gentoo on my laptop and so far I've only installed the basics and GNOME. Unfortunately, suspending to RAM via GNOME Power Manager doesn't seem to work. I know the kernel is OK because I can suspend with pbbuttons, but I really wanted to use GNOME Power Manager. I am running a stable system with the latest unstable gentoo-sources. Specifically:

sys-kernel/gentoo-sources-2.6.21-r3
gnome-extra/gnome-power-manager-2.16.3
sys-apps/hal-0.5.9-r1


Here's the output of "hald --verbose=yes --daemon=no" after I tell GNOME Power Manager to suspend the computer:

Code:
05:29:23.253 [D] hald_dbus.c:2950: udi=/org/freedesktop/Hal/devices/computer_logicaldev_input_0
05:29:23.266 [I] hald_dbus.c:4561: OK for method 'Suspend' with signature 'i' on interface 'org.freedesktop.Hal.Device.SystemPowerManagement' for UDI '/org/freedesktop/Hal/devices/computer' and execpath 'hal-system-power-suspend'
05:29:23.266 [I] hald_dbus.c:3509: no need to enqueue
Run started hal-system-power-suspend (0) (1)
!  full path is '/usr/lib/hal/scripts/hal-system-power-suspend', program_dir is '/usr/lib/hal/scripts'
05:29:23.516 [I] device.c:1811: Removing locks from ':1.107'
05:29:23.526 [I] hald_dbus.c:2849: entering, local_interface=0
05:29:23.528 [I] access-check.c:67: uid for caller is 0
05:29:23.528 [D] hald_dbus.c:2858: udi=/org/freedesktop/Hal/devices/pmu_lid
method return sender=:1.104 -> dest=:1.108
   boolean true
05:29:23.530 [I] ci-tracker.c:119: Removing CICallerInfo object for :1.108
05:29:23.530 [I] device.c:1811: Removing locks from ':1.108'
05:29:23.738 [I] hald_dbus.c:2849: entering, local_interface=0
05:29:23.739 [I] access-check.c:67: uid for caller is 0
05:29:23.740 [D] hald_dbus.c:2858: udi=/org/freedesktop/Hal/devices/computer_logicaldev_input_3
Run started hald-probe-input (10000) (0)
!  full path is '/usr/libexec/hald-probe-input', program_dir is '/usr/libexec'
05:29:23.746 [I] hald_dbus.c:4766: ***************************
05:29:23.746 [I] hald_dbus.c:4767: ********* got a connection 10064748
05:29:23.746 [I] hald_dbus.c:4768: ***************************
[23252]: 05:29:23.747 [D] probe-input.c:94: Doing probe-input for /dev/input/event7 (udi=/org/freedesktop/Hal/devices/computer_logicaldev_input_3)
05:29:23.749 [D] hald_dbus.c:1550: udi=/org/freedesktop/Hal/devices/computer_logicaldev_input_3, key=button.state.value
05:29:23.752 [I] hald_dbus.c:4711: ************************
05:29:23.752 [I] hald_dbus.c:4712: Client to local_server was disconnected for 10064748
05:29:23.753 [I] hald_dbus.c:4713: ************************
05:29:23.753 [I] hald_dbus.c:4752: ***************************
05:29:23.753 [I] hald_dbus.c:4753: ********* unregistered 10064748
05:29:23.753 [I] hald_dbus.c:4754: ***************************
/usr/libexec/hald-probe-input exited
05:29:23.753 [I] device.c:3417: dev_rescan_device_done: exit_type=0, return_code=0
method return sender=:1.104 -> dest=:1.109
   boolean true
05:29:23.756 [I] ci-tracker.c:119: Removing CICallerInfo object for :1.109
05:29:23.756 [I] device.c:1811: Removing locks from ':1.109'
05:29:23.969 [I] hald_dbus.c:2849: entering, local_interface=0
05:29:23.970 [I] access-check.c:67: uid for caller is 0
05:29:23.970 [D] hald_dbus.c:2858: udi=/org/freedesktop/Hal/devices/usb_device_5ac_20c_noserial_if1_logicaldev_input
method return sender=:1.104 -> dest=:1.110
   boolean false
05:29:23.973 [I] ci-tracker.c:119: Removing CICallerInfo object for :1.110
05:29:23.973 [I] device.c:1811: Removing locks from ':1.110'
05:29:23.985 [I] hald_dbus.c:2849: entering, local_interface=0
05:29:23.986 [I] access-check.c:67: uid for caller is 0
05:29:23.986 [D] hald_dbus.c:2858: udi=/org/freedesktop/Hal/devices/usb_device_5ac_20c_noserial_if0_logicaldev_input
method return sender=:1.104 -> dest=:1.111
   boolean false
05:29:23.988 [I] ci-tracker.c:119: Removing CICallerInfo object for :1.111
05:29:23.988 [I] device.c:1811: Removing locks from ':1.111'
05:29:24.213 [I] hald_dbus.c:2849: entering, local_interface=0
05:29:24.214 [I] access-check.c:67: uid for caller is 0
05:29:24.214 [D] hald_dbus.c:2858: udi=/org/freedesktop/Hal/devices/computer_logicaldev_input_1
method return sender=:1.104 -> dest=:1.112
   boolean false
05:29:24.217 [I] ci-tracker.c:119: Removing CICallerInfo object for :1.112
05:29:24.217 [I] device.c:1811: Removing locks from ':1.112'
05:29:24.227 [I] hald_dbus.c:2849: entering, local_interface=0
05:29:24.228 [I] access-check.c:67: uid for caller is 0
05:29:24.229 [D] hald_dbus.c:2858: udi=/org/freedesktop/Hal/devices/computer_logicaldev_input_0
method return sender=:1.104 -> dest=:1.113
   boolean false
05:29:24.231 [I] ci-tracker.c:119: Removing CICallerInfo object for :1.113
05:29:24.231 [I] device.c:1811: Removing locks from ':1.113'
05:29:24.464 [I] device.c:1811: Removing locks from ':1.114'
05:29:24.474 [I] hald_dbus.c:2849: entering, local_interface=0
05:29:24.476 [I] access-check.c:67: uid for caller is 0
05:29:24.476 [D] hald_dbus.c:2858: udi=/org/freedesktop/Hal/devices/pmu_battery_0_0
method return sender=:1.104 -> dest=:1.115
   boolean true
05:29:24.479 [I] ci-tracker.c:119: Removing CICallerInfo object for :1.115
05:29:24.480 [I] device.c:1811: Removing locks from ':1.115'
05:29:24.707 [I] device.c:1811: Removing locks from ':1.116'
05:29:24.716 [I] hald_dbus.c:2849: entering, local_interface=0
05:29:24.718 [I] access-check.c:67: uid for caller is 0
05:29:24.718 [D] hald_dbus.c:2858: udi=/org/freedesktop/Hal/devices/pmu_info_1
method return sender=:1.104 -> dest=:1.117
   boolean true
05:29:24.721 [I] ci-tracker.c:119: Removing CICallerInfo object for :1.117
05:29:24.721 [I] device.c:1811: Removing locks from ':1.117'
/usr/lib/hal/scripts/hal-system-power-suspend exited
05:29:24.724 [I] hald_dbus.c:3533: No more methods in queue
05:29:27.338 [D] addon-cpufreq.c:1345: exit


If I manually run /usr/lib/hal/scripts/hal-system-power-suspend, I get the following error message:

Code:
org.freedesktop.Hal.Device.UnknownError
No back-end for your operating system


Am I missing something?
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Mon Jun 18, 2007 11:40 am    Post subject: Reply with quote

Does it actually support suspending separately without pbbuttonsd? Have you tried enabling APM emulation support in the kernel?
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
Sodki
Guru
Guru


Joined: 11 Aug 2003
Posts: 419
Location: London, U.K. & Lisbon, Portugal

PostPosted: Wed Jun 20, 2007 3:26 pm    Post subject: Reply with quote

No, when pbbuttonsd isn't running I can't suspend my computer and I'm not even sure how to do it manually, via the command line. I didn't had APM emulation on the kernel, but now I do and the result is the same.
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Thu Jun 21, 2007 12:41 pm    Post subject: Reply with quote

What does this do?
Code:
/usr/libexec/hal-system-power-pmu sleep

_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
Sodki
Guru
Guru


Joined: 11 Aug 2003
Posts: 419
Location: London, U.K. & Lisbon, Portugal

PostPosted: Thu Jun 21, 2007 4:03 pm    Post subject: Reply with quote

If I do that, the computer goes to sleep. Is that what pbbuttonsd uses?
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Thu Jun 21, 2007 5:42 pm    Post subject: Reply with quote

Nope, that's what HAL is supposed to do. So sleep does work with the HAL tools, but it doesn't seem to actually be calling this properly. Did you run /usr/lib/hal/scripts/hal-system-power-suspend as root?
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
Sodki
Guru
Guru


Joined: 11 Aug 2003
Posts: 419
Location: London, U.K. & Lisbon, Portugal

PostPosted: Thu Jun 21, 2007 11:04 pm    Post subject: Reply with quote

Yes, I ran it as root.
Back to top
View user's profile Send private message
Vidarsson
n00b
n00b


Joined: 13 Jul 2007
Posts: 2
Location: The Netherlands

PostPosted: Fri Jul 13, 2007 1:08 pm    Post subject: Reply with quote

I, too, seem to be having problems with the GNOME Power Manager. Rather than triggering deep sleep (suspend to RAM), pressing the power button or closing the lid on my PowerBook G3 (Pismo) puts it into a strange suspend mode where disk spins down and the screen goes blank (but is still on, sort of a blank console). Sleeping without GNOME Power Manager seems to work fine, however.

I tried changing the settings in the GNOME Power Manager so that all actions (closing lid, power button, critical battery etc.) strigger a suspend action, but that didn't seem to help.

Sleeping works fine in Xfce4 and without X running. I have therefore switched to Xfce.
Back to top
View user's profile Send private message
trogie
n00b
n00b


Joined: 06 Jul 2004
Posts: 54
Location: Kortrijk, Belgium, Europe

PostPosted: Mon Jul 30, 2007 10:58 am    Post subject: Reply with quote

Hmm... I seem to have a simular problem: working with 'hibernate-ram' from the hibernate-script package works OK with a root shell but having gnome-power-manager suspend works only half, that is: suspending itself seems to work but my backlight doesnt go on after resuming...

Is the gnome-power-manager using a different suspending system? acpi, swsuspend2,...?

Trogie
_________________
Visit Belgiums Paraglide Portal - Bezoek de Belgische Paraglide portaal
-- http://www.paraglide.be --
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Mon Jul 30, 2007 11:36 pm    Post subject: Reply with quote

Trogie:
I'm not sure if you're in the right forum, ACPI isn't available on PowerPC.

Sodki, Vidarsson:
This could very well be a HAL issue, does the unstable HAL work?
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
trogie
n00b
n00b


Joined: 06 Jul 2004
Posts: 54
Location: Kortrijk, Belgium, Europe

PostPosted: Tue Jul 31, 2007 6:04 am    Post subject: Reply with quote

Yes, I saw afterwards that I was in a PPC forum but I didn't find out then how gpm is suspending. Looks like it takes the sysfs way before the hibernate-script... nothing to do with acpi.
_________________
Visit Belgiums Paraglide Portal - Bezoek de Belgische Paraglide portaal
-- http://www.paraglide.be --
Back to top
View user's profile Send private message
Vidarsson
n00b
n00b


Joined: 13 Jul 2007
Posts: 2
Location: The Netherlands

PostPosted: Mon Aug 06, 2007 4:40 pm    Post subject: Reply with quote

Contrary to what I said, sleep still doesn't seem to be working in Xfce (has thus nothing to do with the GNOME Power Manager, apparently). It simply seems to randomly console-blank the X screen instead of sleeping, where the only way to get out of that partial sleep mode is by a forced restart.

Updating 'hal' to the most recent unstable version does not seem to change anything (my whole system consists otherwise of most recent stable versions of everything), I still get this strange sleep behaviour (sometimes, and often). Will have to try to isolate the cause somehow, quite irritating on a laptop.
Back to top
View user's profile Send private message
Dirk.R.Gently
Guru
Guru


Joined: 29 Jan 2007
Posts: 546
Location: Titan

PostPosted: Thu Jan 10, 2008 2:35 am    Post subject: Reply with quote

I too have this issue of gnome-power-manager failing to suspend. Thanks jose for pointing out the HAL equivalent. I posted a bug for it:

http://bugzilla.gnome.org/show_bug.cgi?id=508420

It's bug number like 1300 some of active bugs, so so... I also found a similiar subject on launchpad

https://bugs.launchpad.net/ubuntu/+bug/144305
_________________
Helpful Linux Tidbits
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum