Am 20.05.2011 09:44, schrieb Arief M Utama:
> Hi Ben,
> 
> 
> 
> On 05/19/2011 08:36 PM, Ben Hutchings wrote:
>> On Thu, 2011-05-19 at 13:53 +0700, Arief M Utama wrote:
>>> Latest try with only pm-utils package, I can do hibernate and resume
>>> just fine, but suspend and resume does not work, suspend ok, resume fail.
>> Suspend and resume are normally handled by the kernel, with some help
>> from initramfs-tools for resuming from disk.  pm-utils is not required
>> for this, although it has other useful functionality.
>>
> 
> My use-case is a reguler user, with laptop and using gnome3 desktop. So 
> is that mean, I dont need to install any other packages to do suspend 
> resume from the desktop? Was always under the impressions that at least 
> pm-utils is required.
> 
> But, even so, I have done some test with  "echo 'mem' > 
> /sys/power/state" and "echo 'disk' > /sys/power/state" few times before, 
> and it shows same behaviour with desktop initiated suspend and 
> hibernate, "mem" suspend failed at resume, "disk" hibernate-resume 
> working ok.
> 

gnome-power-manager uses upower (via D-Bus), which in turn just calls pm-suspend
resp. pm-hibernate when requested by the user.

pm-utils is a simple shell script/framework which allows to run scripts on
suspend/resume to do certain tasks and then basically just runs echo (mem|disk)
> /sys/power/state, just as you did manually.

With KMS applying all the quirks in userspace has become obsolete and is only
done if a non-KMS system is detected.

So, if you use KMS, and echo 'mem' > /sys/power/state" fails, then this is a
kernel issue and should be addressed there.

Michael

-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to