Hi, I am observing that when I do, powersave -u The laptop starts the process of going to suspend to ram. I see this in /var/log/messages and /var/log/suspen2ram.log. The suspend2ram.log file ends with prepare_sleep finished for suspend2ram I see that some services are stopped and modules are removed in the suspend2ram.log file (which I have attached). However, the laptop does not switch to console and starts suspending. It just stays on. If at this point, I manually do echo 3 > /proc/acpi/sleep the laptop does suspend fine. Also, the laptop resumes fine as well. However, none of the modules that were unloaded are loaded. It seems that restore_after_suspend_to_ram is not being called. Also, the screen saver is not running as I would expect. This is what I have in my /usr/etc/powersave/events EVENT_GLOBAL_SUSPEND2DISK="prepare_suspend_to_disk screen_saver do_suspend_to_disk" EVENT_GLOBAL_SUSPEND2RAM="prepare_suspend_to_ram screen_saver do_suspend_to_ram" EVENT_GLOBAL_STANDBY="prepare_standby screen_saver do_standby" EVENT_GLOBAL_RESUME_SUSPEND2DISK="restore_after_suspend_to_disk" EVENT_GLOBAL_RESUME_SUSPEND2RAM="restore_after_suspend_to_ram" EVENT_GLOBAL_RESUME_STANDBY="restore_after_standby" I did everything I could think of (turned the debug mode of acpid, powersaved DEBUG is set to 16 etc.) but could not find any reason why this is happenning. I am using powersave 0.12.15 with Kernel 2.6.16.13, dbus 0.61, hal 0.5.7. Any help would be greatly greatly appreciated. thanks, Osho
Here is some more info on what I saw in /var/log/messages when I do
powersave -u with DEBUG set to 31.
May 11 19:06:12 pxpl2885 [powersave]: Debug (filter_function:83)
May 11 19:06:12 pxpl2885 [powersave]: Info (filter_function:188)
Signal from org.freedesktop.DBus with member NameOwnerChanged received
May 11 19:06:12 pxpl2885 [powersave]: Info (filter_function:253) Message handled
May 11 19:06:12 pxpl2885 [powersave]: Debug (filter_function:83)
May 11 19:06:12 pxpl2885 [powersave]: Info (filter_function:176)
Method sent to action interface
May 11 19:06:12 pxpl2885 [powersave]: Info (handleDBusRequest:654)
Received msg: 'SuspendToRam'
May 11 19:06:12 pxpl2885 [powersave]: Debug (handleDBusRequest:655)
Obj.path '/com/novell/powersave' serial '2' from ':1.22049'
May 11 19:06:12 pxpl2885 [powersave]: Info (handleActionMessage:1026)
Client has requested suspend2ram
May 11 19:06:12 pxpl2885 [powersave]: Info (registerEvent:46)
registering event no.'4'
May 11 19:06:12 pxpl2885 [powersave]: Info (executeInternalAction:274)
Executing internal action: suspend_networkmanager
May 11 19:06:12 pxpl2885 [powersave]: DIAG (suspendNetworkManager:507)
Networkmanager not running
May 11 19:06:12 pxpl2885 [powersave]: Info (continueEvent:250)
Internal action suspend_networkmanager executed
May 11 19:06:12 pxpl2885 [powersave]: Info (checkScriptReturn:172)
SCRIPT returned: Name: 'suspend_networkmanager', Return value: 0,
Comment: 'internal action successfull: suspend_networkmanager'
May 11 19:06:12 pxpl2885 [powersave]: Info (execute_program:167) Going
to execute external action prepare_suspend_to_ram
May 11 19:06:12 pxpl2885 [powersave]: Info (execute_program:198)
Program /usr/libexec/powersave/scripts//prepare_suspend_to_ram will be
executed for event global.suspend2ram. Param 1:
global.suspend2ram,Param 2: scheme_performance
May 11 19:06:12 pxpl2885 [powersave-prepare_suspend_to_ram][17052]:
DIAG: Process script for event global.suspend2ram ID 4
May 11 19:06:12 pxpl2885 [powersave-prepare_suspend_to_ram][17052]:
INFO: Event: GLOBAL_SUSPEND2RAM occured.
May 11 19:06:12 pxpl2885 [powersave-prepare_suspend_to_ram][17052]:
INFO: Parameters: Event - global.suspend2ram; Current Active Scheme:
scheme_performance - ACPI event line: empty
May 11 19:06:12 pxpl2885 [powersave-prepare_suspend_to_ram][17052]:
DIAG: script_return() invoked: event_id: 4, request: 4, text: 0
May 11 19:06:12 pxpl2885 [powersave-prepare_suspend_to_ram][17052]:
DEBUG: Stop services: slmodemd irda upsd apcupsd
May 11 19:06:12 pxpl2885 [powersave-prepare_suspend_to_ram][17052]:
DEBUG: Modules to unload: usb_storage sbp2 ohci_hcd uhci_hcd ehci_hcd
usbhid stir4200 ohci1394 rt2500 prism54 ath_pci r8169 lt_modem
Intel536 Intel537 ndiswrapper
May 11 19:06:12 pxpl2885 [powersave-prepare_suspend_to_ram][17052]:
DIAG: script_return() invoked: event_id: 4, request: 4, text:
20|stopping services
May 11 19:06:12 pxpl2885 [powersave-prepare_suspend_to_ram][17052]:
INFO: Service slmodemd stop requested but was not running. Return
code: '127'
May 11 19:06:12 pxpl2885 [powersave]: Info (sendReply:337) Send
error_id 0, 'success'
May 11 19:06:12 pxpl2885 [powersave]: Info (filter_function:253) Message handled
May 11 19:06:12 pxpl2885 [powersave]: Debug (filter_function:83)
May 11 19:06:12 pxpl2885 [powersave]: Info (filter_function:188)
Signal from org.freedesktop.DBus with member NameOwnerChanged received
May 11 19:06:12 pxpl2885 [powersave]: Info (filter_function:253) Message handled
May 11 19:06:12 pxpl2885 [powersave-prepare_suspend_to_ram][17052]:
INFO: Service irda stop requested but was not running. Return code:
'3'
May 11 19:06:12 pxpl2885 [powersave-prepare_suspend_to_ram][17052]:
INFO: Service upsd stop requested but was not running. Return code:
'127'
May 11 19:06:12 pxpl2885 [powersave-prepare_suspend_to_ram][17052]:
INFO: Service apcupsd stop requested but was not running. Return code:
'127'
May 11 19:06:12 pxpl2885 [powersave-prepare_suspend_to_ram][17052]:
DIAG: script_return() invoked: event_id: 4, request: 4, text:
40|unloading modules
May 11 19:06:12 pxpl2885 [powersave-prepare_suspend_to_ram][17052]:
DIAG: Modules unloaded
May 11 19:06:12 pxpl2885 [powersave-prepare_suspend_to_ram][17052]:
DIAG: script_return() invoked: event_id: 4, request: 4, text: 50
May 11 19:06:12 pxpl2885 [powersave-prepare_suspend_to_ram][17052]:
DIAG: script_return() invoked: event_id: 4, request: 4, text:
60|syncing file systems
May 11 19:06:13 pxpl2885 [powersave-prepare_suspend_to_ram][17052]:
DIAG: script_return() invoked: event_id: 4, request: 4, text: 101
May 11 19:06:13 pxpl2885 [powersave-prepare_suspend_to_ram][17052]:
DIAG: script_return() invoked: event_id: 4, request: 0, text:
prepare_sleep finished successfully for global.suspend2ram
May 11 19:08:14 pxpl2885 [powersave]: WARNING (checkEventTimeouts:374)
Timeout for event global.suspend2ram with id 4 reached, removing
It seems that the external event prepare_suspend_to_ram never finished
and returned to the daemon so it never gets to the screen_saver and
then do_suspend_to_ram actions.
Osho
On 5/11/06, Osho GG
Hi,
I am observing that when I do,
powersave -u
The laptop starts the process of going to suspend to ram. I see this in /var/log/messages and /var/log/suspen2ram.log. The suspend2ram.log file ends with
prepare_sleep finished for suspend2ram
I see that some services are stopped and modules are removed in the suspend2ram.log file (which I have attached). However, the laptop does not switch to console and starts suspending. It just stays on.
If at this point, I manually do
echo 3 > /proc/acpi/sleep
the laptop does suspend fine. Also, the laptop resumes fine as well. However, none of the modules that were unloaded are loaded. It seems that restore_after_suspend_to_ram is not being called. Also, the screen saver is not running as I would expect.
This is what I have in my /usr/etc/powersave/events
EVENT_GLOBAL_SUSPEND2DISK="prepare_suspend_to_disk screen_saver do_suspend_to_disk" EVENT_GLOBAL_SUSPEND2RAM="prepare_suspend_to_ram screen_saver do_suspend_to_ram" EVENT_GLOBAL_STANDBY="prepare_standby screen_saver do_standby"
EVENT_GLOBAL_RESUME_SUSPEND2DISK="restore_after_suspend_to_disk" EVENT_GLOBAL_RESUME_SUSPEND2RAM="restore_after_suspend_to_ram" EVENT_GLOBAL_RESUME_STANDBY="restore_after_standby"
I did everything I could think of (turned the debug mode of acpid, powersaved DEBUG is set to 16 etc.) but could not find any reason why this is happenning. I am using powersave 0.12.15 with Kernel 2.6.16.13, dbus 0.61, hal 0.5.7.
Any help would be greatly greatly appreciated.
thanks, Osho
participants (1)
-
Osho GG