Comment 60 for bug 292256

Revision history for this message
Chow Loong Jin (hyperair) wrote : Re: [Bug 292256] Re: backlight failed after suspend to ram on IBM X40

On Mon, 2009-05-18 at 21:25 +0000, maximi89 wrote:
> guys, edit the file of pm-utils
> /usr/lib/pm-utils/defaults
>
> maximi89@Maximiliano:/usr/share/emesene$ cat /usr/lib/pm-utils/defaults
> ##########################################################
> # DO NOT EDIT THIS FILE! #
> # #
> # Add files in /etc/pm/config.d/ instead! #
> ##########################################################
>
> # Default method to power down the system when hibernating.
> # If commented out, the system will use the kernel default as a
> # default value.
> #
> # Check /sys/power/disk for valid values. The default value
> # will be surrounded by [square brackets].
> HIBERNATE_MODE="shutdown"
>
> # Whether we need to post the video card when resuming from
> # hibernate. You should not normally need to set this.
> # In the future pm-utils will get this setting from HAL.
> #
> # Valid values are "no" and "yes"
> # HIBERNATE_RESUME_POST_VIDEO="no"
>
> # The default sleep/wake system to use. Valid values are:
> # kernel The built-in kernel suspend/resume support.
> # Use this if nothing else is supported on your system.
> # uswsusp If your system has support for the userspace
> # suspend programs (s2ram/s2disk/s2both), then use this.
> # tuxonice If your system has support for tuxonice, use this.
> #
> # The system defaults to "kernel" if this is commented out.
> SLEEP_MODULE="uswsusp"
>
> # These variables will be handled specially when we load files in
> # /etc/pm/config.d.
> # Multiple declarations of these environment variables will result in
> # their contents being concatenated instead of being overwritten.
>
> # If you need to unload any modules to suspend/resume, add them here.
> SUSPEND_MODULES="nvidia ehci_hcd ohci_hcd uhci_hcd iwl3945"
>
> # If you want to keep hooks from running, add their names here.
> # HOOK_BLACKLIST=""
>
> # If you want to unconditionally add parameters to the commandline,
> # add them here.
> # ADD_PARAMETERS=""
>
> # If you want to ignore commandline parameters, add them here.
> # DROP_PARAMETERS=""
>
> # If you need to synchronize the system clock across a suspend/resume or
> # hibernate/thaw cycle, set this variable.
> # NEED_CLOCK_SYNC="true"
>
>
> i get the same as you, the suspend mode hangs my computer, but editing this file i get working all again...
>
Did you read the header of the file? It said "DO NOT EDIT THIS FILE! Add
files in /etc/pm/config.d/ instead", which is what you should have done.
The reason for this is that if you modify the variables here, they will
be overwritten when you upgrade pm-utils. So you should just dump a file
in /etc/pm/config.d with the line "HIBERNATE_MODE=shutdown".
--
Regards,
Chow Loong Jin