FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian Development

 
 
LinkBack Thread Tools
 
Old 05-20-2011, 03:00 PM
Clint Adams
 
Default Suspend/Hibernate Resume in debian

On Fri, May 20, 2011 at 03:09:56PM +0200, Bastian Blank wrote:
> Hibernate is completely covered by the kernel; there is not much that

Is it supposed to work with swap on an LVM volume on top of dm-crypt?
This only works for me with uswsusp.


--
To UNSUBSCRIBE, email to debian-devel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 20110520150018.GA7870@scru.org">http://lists.debian.org/20110520150018.GA7870@scru.org
 
Old 05-20-2011, 06:34 PM
Michael Biebl
 
Default Suspend/Hibernate Resume in debian

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?
 
Old 07-25-2011, 06:24 PM
Arief M Utama
 
Default Suspend/Hibernate Resume in debian

On 20/05/11 19:34, Jon Dowland wrote:

On Fri, May 20, 2011 at 02:44:42PM +0700, Arief M Utama wrote:

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.

Fundamentally, that implies a bug in the kernel for your particular hardware.
Packages like uswsusp sometimes have more success because they apply
kludges/quirks to work around the bug. These kludges/quirks are better
handled in the kernel itself (sometimes hardware has quirks; other times it
is a software error).


Update, and this might need to go also into Debian Suspend/Resume wiki,

For suspend-resume, I've just discovered there's this bug notes in
kernel's bugzilla:


https://bugzilla.kernel.org/show_bug.cgi?id=16396

A changes regarding skip saving of nvs state on suspend apparently
affected some systems. Affected system should be blacklisted in the
table by looking at dmidecode output.


My system, Sony Vaio VGN-SR26GN, is affected, the solution for me
currently is to add acpi_sleep=nonvs as boot parameter.


I've also attached my laptop's dmidecode output in there hopefully it
will be included in the blacklist table in the next round.


Hope it helps anyone else out there

Thanks all for the help and pointers.


All the best.
-arief



--
To UNSUBSCRIBE, email to debian-devel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 4E2DB4D6.4000604@gmail.com">http://lists.debian.org/4E2DB4D6.4000604@gmail.com
 

Thread Tools




All times are GMT. The time now is 07:04 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org